On Mon, Jun 3, 2013 at 3:04 AM, Rick Johnson
wrote:
> * Woefully inadequate because: Switching on or off the debug
>messages is only valid in the current module that the
>function was imported. What if you want to kill all
>debugprint messages EVERYWHERE? Do you really want to edit
>
On Mon, Jun 3, 2013 at 3:12 AM, Νικόλαος Κούρας wrote:
> Τη Κυριακή, 2 Ιουνίου 2013 8:05:32 μ.μ. UTC+3, ο χρήστης Chris Angelico
> έγραψε:
>
>> A programmer chooses his own clients, and you are the Atherton Wing to
>> my Inara Serra.
>
> You might want to explain
On Mon, Jun 3, 2013 at 3:30 AM, Andrew Berg wrote:
> I don't think you go far enough. Obviously we need way more flexibility. A
> simple on/off is okay for some things, but a finer granularity
> would be really helpful because some things are more important than others.
> And why stop at stdout/
On Mon, Jun 3, 2013 at 5:25 AM, Mok-Kong Shen wrote:
> b'7' is the byte with the character 7 in a certain code, so that's
> ok. In other PLs one assigns an int to a byte, with that int in either
> decimal notation or hexadecimal notation, or else one assigns a
> character to it, in which case it g
On Mon, Jun 3, 2013 at 4:09 AM, Rick Johnson
wrote:
> On Jun 2, 12:20 pm, Chris Angelico wrote:
>> On Mon, Jun 3, 2013 at 3:04 AM, Rick Johnson
>> > * Woefully inadequate because: Switching on or off the debug
>> >messages is only valid in the current module th
On Mon, Jun 3, 2013 at 4:58 AM, Steven D'Aprano
wrote:
>> I've found that many subtle bugs are caused by not limiting the inputs
>> to sane values (or types). And with Python's duct typing
>
> Nothing worse than having pythons roaming through your ducts, eating your
> ducks.
Steven, you misunders
On Mon, Jun 3, 2013 at 5:51 AM, wrote:
> Now, is anyone willing to help me on this please?
> I also accept hints on how to solve this!
Hints I can do. Here, I've set up a scavenger hunt for you. You'll go
to a number of web sites that I nominate, type in keywords, and hit
enter.
The first web s
On Mon, Jun 3, 2013 at 10:16 AM, Jason Swails wrote:
> Copy-and-pasting your timeit experiment on my machine yields different
> timings (Python 2.7):
>
import sys
timeit.timeit('debugprint("asdf")','def debugprint(*args):\n\tif not
DEBUG: return\n\tsys.stdout.write(*args)\nDEBUG=Fal
On Mon, Jun 3, 2013 at 11:52 AM, Dan Sommers wrote:
> On Sun, 02 Jun 2013 18:12:33 -0700, Fdama wrote:
>
>> I combined the int conversion and the input on the same line, rather
>> than to have two different statements. But got an error message:
>
>> Traceback (most recent call last):
>> File "C:
On Mon, Jun 3, 2013 at 9:57 AM, Erik Max Francis wrote:
> On 05/29/2013 08:05 AM, Chris Angelico wrote:
>>
>> It's not a bad tool. I used it as a sort of PHP preprocessor, because
>> requirements at work had me wanting to have a source file defining a
>> PHP c
On Mon, Jun 3, 2013 at 12:30 PM, alex23 wrote:
> On Jun 1, 10:24 am, Chris Angelico wrote:
>> Hmm. What other MUD commands have obvious Unix equivalents?
>>
>> say --> echo
>> emote --> python -c
>> attack --> sudo rm -f
>
> who --> who
> te
On Mon, Jun 3, 2013 at 9:10 AM, Tim Delaney wrote:
>> A programmer chooses his own clients, and you are the Atherton Wing to
>> my Inara Serra.
>
>
> I've just been watching this train wreck (so glad I didn't get involved at
> the start) but I have to say - tha
On Mon, Jun 3, 2013 at 2:34 PM, Dan Sommers wrote:
> On Mon, 03 Jun 2013 13:37:27 +1000, Tim Delaney wrote:
>
>> With the increase in use of higher-level languages, these days
>> Heisenbugs most often appear with multithreaded code that doesn't
>> properly protect critical sections, but as you say
On Mon, Jun 3, 2013 at 3:49 PM, Michael Torrie wrote:
> On 06/02/2013 12:18 PM, Rick Johnson wrote:
>> On Sunday, June 2, 2013 12:49:02 PM UTC-5, Dan Sommers wrote:
>>> On Mon, 03 Jun 2013 03:20:52 +1000, Chris Angelico wrote:
>>>> On Mon, Jun 3, 2013 at 3:04 AM, Ric
On Mon, Jun 3, 2013 at 4:46 PM, Steven D'Aprano
wrote:
> Then, when
> you try to read the file names in UTF-8, you hit an illegal byte, half of
> a surrogate pair perhaps, and everything blows up.
Minor quibble: Surrogates are an artifact of UTF-16, so they're 16-bit
values like 0xD808 or 0xDF45.
On Mon, Jun 3, 2013 at 7:00 PM, Mark Lawrence wrote:
> On 03/06/2013 07:11, Νικόλαος Κούρας wrote:
>>
>> Thankls Michael,
>>
>> are these two behave the same in your opinion?
>>
>> sys.stdout = os.fdopen(1, 'w', encoding='utf-8')
>>
>> which is what i have now
>> opposed to this one
>>
>> import o
On Tue, Jun 4, 2013 at 6:31 AM, Steven D'Aprano
wrote:
> ... quite frankly I have no sympathy for
> the view that CPU cycles are so precious that we mustn't waste them. If
> that were the case, Python is the wrong language.
CPU cycles *are* valuable still, though. The efficiency of your code
dete
On Tue, Jun 4, 2013 at 8:37 AM, Carlos Nepomuceno
wrote:
>
>> From: na...@animats.com
>> Subject: Re: [RELEASED] Python 2.7.5
>> Date: Mon, 3 Jun 2013 12:20:43 -0700
> [...]
>> 3.x is a different language, with different libraries, and lots of
>> things tha
On Tue, Jun 4, 2013 at 11:37 AM, Rick Johnson
wrote:
> The print function is the very definition of a "syntactic sugar".
>
> For example:
> print("some sting")
>
> is much more readable than:
>
> sys.stdout.write("some string"+"\n")
> ...
> Again, the removal of a print function (or print
On Tue, Jun 4, 2013 at 4:28 PM, wrote:
> Τη Τρίτη, 4 Ιουνίου 2013 1:46:53 π.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε:
>
>> Not so -- it actually shows correctly, provided you use the right
>> encoding. Tell your browser to view the page as UTF-8, and the file name
>> is displayed correctly.
>
>
On Tue, Jun 4, 2013 at 2:45 PM, Michael Torrie wrote:
> On 06/03/2013 05:33 PM, Carlos Nepomuceno wrote:
>> I did a httpd 'make install' on CentOS 6 and it worked fine. Needed a
>> few tweaks that I don't remember though.
>>
>> If you don't have any previous experience with Apache httpd settings
>
On Tue, Jun 4, 2013 at 5:57 PM, John Ladasky wrote:
> On Tuesday, June 4, 2013 12:45:38 AM UTC-7, Anssi Saari wrote:
>
>> BTW, did I get the logic correctly, the end result is random?
>
> You're right! I'm guessing that's not what the OP wants?
I'm guessing that's exactly what the OP wants. This
On Tue, Jun 4, 2013 at 10:57 PM, Νικόλαος Κούρας wrote:
> root@nikos [~]# nano /usr/local/apache/conf/httpd.conf
>
> and altering user nobody to user root.
>
> root@nikos [~]# service httpd restart
> [Tue Jun 04 15:56:42 2013] [warn] module rpaf_module is already loaded,
> skipping
> Syntax error
On Tue, Jun 4, 2013 at 11:17 PM, Νικόλαος Κούρας wrote:
> I DONT KNOW WHAT ELSE TO TRY PLEASE HELP ILL TRY ANYTHING YOU SAY.
You should try power surging your drivers. Have you got a spare power cord?
ChrisA
[1] http://www.oocities.org/timessquare/4753/bofh.htm
--
http://mail.python.org/mailma
On Wed, Jun 5, 2013 at 1:06 AM, Chris “Kwpolska” Warrick
wrote:
>> [1] http://www.oocities.org/timessquare/4753/bofh.htm
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>
> Please link and read at the BOFH’s page. [0] is the page and [1] is
> this
On Wed, Jun 5, 2013 at 1:44 AM, Rick Johnson
wrote:
> But we are really ignoring the elephant in the room. Implict
> conversion to Boolean is just a drop in the bucket compared
> to the constant "shell game" we are subjected to when
> reading source code. We so naively believe that a symbol
> name
On Wed, Jun 5, 2013 at 2:19 AM, Rick Johnson
wrote:
> On Jun 4, 11:00 am, Chris Angelico wrote:
>> You know, if you want a language with strict type declarations and
>> extreme run-time efficiency, there are some around.
>
> I don't like declaring types everywhere
On Wed, Jun 5, 2013 at 3:02 AM, Νικόλαος Κούρας wrote:
> I'm willing to let someone with full root access to my webhost to see thigns
> from the inside.
>
> Does someone want to take o allok or at elast tell me what else i need to
> try, that hasn't been tried out yet?
You need to read up on wh
On Wed, Jun 5, 2013 at 5:51 AM, Joshua Landau
wrote:
> On 4 June 2013 14:39, Grant Edwards wrote:
>> On 2013-06-03, Dan Stromberg wrote:
>>> Today though, it would be difficult to sell a conventional (Von Neumann)
>>> computer that didn't have 8 bit bytes.
>>
>> There are tons (as in millions of
On Wed, Jun 5, 2013 at 6:03 AM, Νικόλαος Κούρας wrote:
>>UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc5' in position
>>>61: surrogates not allowed
>
> This indicates that i'am reading the filenames in a different encoding than
> what they actually are? What is i try to use byte
On Wed, Jun 5, 2013 at 3:12 AM, Νικόλαος Κούρας wrote:
> I know what full root access mean.
> I also trust you.
> I'm hopeless man, its 1 week now dealing with this.
The call is strong... I could rule the galaxy alongside my father...
I've searched my feelings, and I know this to be true!
Okay.
On Wed, Jun 5, 2013 at 1:28 PM, Νικόλαος Κούρας wrote:
>
> YOU of all people should not speak at all, because you haven't helped me a
> bit.
> Its funny, how knowledge people that in facte tried to help me treat me with
> respect while people like you who have never been of any help tend to just
On Wed, Jun 5, 2013 at 2:59 PM, alex23 wrote:
> On Jun 5, 2:40 pm, Νικόλαος Κούρας wrote:
>> Of course '/home/nikos/public_html/cgi-bin' = '/home/nikos/www/cgi-bin'
>> What this has to do with what i asked?
>
> You display an error of "No such file or directory" and you wonder why
> I'm trying to
On Wed, Jun 5, 2013 at 4:11 PM, Russ P. wrote:
> On Tuesday, June 4, 2013 8:44:11 AM UTC-7, Rick Johnson wrote:
>
>> Yes, but the problem is not "my approach", rather the lack
>>
>> of proper language design (my apologizes to the "anointed
>>
>> one". ;-)
>
> If you don't like implicit conversion
On Wed, Jun 5, 2013 at 1:55 PM, Νικόλαος Κούρας wrote:
> Good Day Chris, thanks for accepting.
>
> Please mail me and i will send you the root login credentials.
Well, I wasn't sure whether this would actually happen or not, but it did.
I made it fairly clear to him in multiple po
On Wed, Jun 5, 2013 at 6:26 PM, Νικόλαος Κούρας wrote:
>
> I gave you out of my good and trustworthy heart my root password so for you
> to look upon my systrem configuration and all you did was trying to fuck me
> by sending mails to my clients?
That would be "trusting", not "trustworthy", and
On Wed, Jun 5, 2013 at 6:53 PM, Νικόλαος Κούρας wrote:
> So, iam to blame this for trusting you?
Your clients trust you to not compromise their security. You
compromised their security by giving the root password to a stranger.
> YOU COULD HAVE ACTUALLY TRIED TO SEE WHATS WRONG WITH 'FILES.PY' I
On Wed, Jun 5, 2013 at 7:04 PM, Heiko Wundram wrote:
> Seeing how riled up you get about this, what Chris did is for the better. At
> least it seems that you won't be able to change your root password back,
> either, and as such you won't have root access anymore to your sy
On Wed, Jun 5, 2013 at 7:14 PM, Νικόλαος Κούρας wrote:
> NEXT THIS YOU'RE GONNA TELL ME IS TO BE HAPPY THAT YOU DIDN'T WIPE THE WHOLE
> SYSTEM OUT BY 'RM -RF /'
Yes. Actually, yes. Do you understand now what you have done by giving
your password to multiple people? This is *completely* different
On Wed, Jun 5, 2013 at 7:19 PM, Νικόλαος Κούρας wrote:
> I'am a perosn that eaisly trust other people to have ethics, especially
> python programmers who knows how difficult its to debug a script and have it
> working.
> Some people can be trusted, and actually try to help.
>
On Wed, Jun 5, 2013 at 7:32 PM, Νικόλαος Κούρας wrote:
> iI got back root access and i
>
> 'rm -y /home/user/public_html/Hello_from_ROSUAV'
> so to delete your deface. Thank God you just placed that text file there and
> did not deface frontpages.
Indeed. That's one of the few truly accurate sta
On Wed, Jun 5, 2013 at 7:37 PM, Νικόλαος Κούρας wrote:
> TheRE is this saying that applis to you:
> A THIEF BELEIVES EVERYBODY STEALS.
>
> You do not trust people because you think all of them are likely to screw
> you, when its the other way around.
You really need to do a basic course in inter
On Wed, Jun 5, 2013 at 7:52 PM, alex23 wrote:
> On Jun 5, 7:48 pm, Chris Angelico wrote:
>> No wonder the economy of Greece is in trouble.
>
> This isn't addressed just to Chris, as this isn't the first time the
> joke has been made, but could we not? There's a
On Wed, Jun 5, 2013 at 9:07 PM, Νικόλαος Κούρας wrote:
> I will understand by his attitude in general if he is likely to help me or
> not.
How much of my attitude did you read before you decided I would trust
you? Posts like this:
http://mail.python.org/pipermail/python-list/2013-June/648428.ht
On Wed, Jun 5, 2013 at 9:19 PM, Νικόλαος Κούρας wrote:
> Τη Τετάρτη, 5 Ιουνίου 2013 2:14:34 μ.μ. UTC+3, ο χρήστης Heiko Wundram έγραψε:
>> Am 05.06.2013 13:07, schrieb οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½ οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½:
>>
>> >Btw, since history doesnt show me his history comamnds when he logged in
>> >f
On Thu, Jun 6, 2013 at 12:46 AM, Serhiy Storchaka wrote:
> 05.06.13 11:09, Chris Angelico написав(ла):
>>
>> Oh, and I changed the root password, since the current one was sent in
>> clear text across the internet. Nikos, the new password has been
>> stored in /ho
On Thu, Jun 6, 2013 at 2:15 AM, Russ P. wrote:
> On Wednesday, June 5, 2013 1:59:01 AM UTC-7, Mark Lawrence wrote:
>> I want to launch this rocket with an expensive satellite on top. I know
>>
>> it's safe as the code is written in ADA. Whoops :(
>
>
> So Python would have been a better choice?
On Thu, Jun 6, 2013 at 3:05 AM, Νικόλαος Κούρας wrote:
> I grant shell access to very new account i create but some of my customers
> dont evn know the existance of linux, and the other that do, have no idea of
> what a shell access is. But i grant them the ability just in cae for future
> usag
On Thu, Jun 6, 2013 at 3:02 AM, Νικόλαος Κούρας wrote:
> Τη Τετάρτη, 5 Ιουνίου 2013 7:33:50 μ.μ. UTC+3, ο χρήστης Chris Angelico
> έγραψε:
>> In fact, I didn't even bother fiddling with syslog. All I did was
>> .bash_history. Of course, I wasn't worried about you get
On Thu, Jun 6, 2013 at 3:29 AM, Νικόλαος Κούρας wrote:
> Now about what you did to me. I wanted to tell you that I (and I am sure
> there are other people too) don't agree with what you did. I think it was
> pretty rotten -- you told me it was a bad idea to give out the root password
> and that
On Thu, Jun 6, 2013 at 2:17 AM, DRJ Reddy wrote:
>
>> Do you have other magazines? Which ones? How are you going to supply
>> contents?
>
> We don't have other magazines. I was referring to old python magazines which
> terminated now. Portable documents(PDF , EPUB or MOBI) for now is being
> pl
On Thu, Jun 6, 2013 at 1:14 AM, iMath wrote:
> 在 2012年12月24日星期一UTC+8上午8时34分47秒,iMath写道:
>> how to detect the character encoding in a web page ?
>>
>> such as this page
>>
>>
>>
>> http://python.org/
>
> by the way ,we cannot get character encoding programmatically from the mate
> data without k
On Thu, Jun 6, 2013 at 4:08 AM, Νικόλαος Κούρας wrote:
> Anyway, i should'n have given root access to you, i was a bit worried doing
> so, but i was also under stress of also correcting this damn encoding issue
> and i wanted to think you would be the one that finally help solving it.
>
> You sh
On Thu, Jun 6, 2013 at 4:22 AM, Νικόλαος Κούρας wrote:
> Τη Τετάρτη, 5 Ιουνίου 2013 9:16:56 μ.μ. UTC+3, ο χρήστης Chris Angelico
> έγραψε:
>
>>Do you contact strangers to ask them to feed your cat? Or do you talk to a
>>>trusted friend?
>
> Well i dont consider y
On Thu, Jun 6, 2013 at 4:34 AM, Νικόλαος Κούρας wrote:
> Here is the mails you sent to my customers for the other members to see.
Yep, containing nothing I haven't said on-list.
> Thanks for screwing me up entirely and made me look what you made me look for
> all i did was to trust you.
Making
On Thu, Jun 6, 2013 at 4:55 AM, rusi wrote:
> If you obdurately, obstinately, insistently, incessantly behave like
> an asshole, you leave no-one the choice but to treat you like an
> asshole.
This is Python. We duck-type people.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jun 6, 2013 at 4:58 AM, Νικόλαος Κούρας wrote:
> Well, if he had ethics he would have told me that his intentiosn were to
> screw my business and also he could actually tried to help me out.
I did. :)
> I'am not incompetentm i;m a beginner and i learn along the way, also i ahve a
> hos
On Thu, Jun 6, 2013 at 5:54 AM, Νικόλαος Κούρας wrote:
> print( cookie, "Content-type: text/html; charset=utf-8\n", message )
>
Do you know what this does?
Try it at the console. See what it outputs.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jun 6, 2013 at 5:59 AM, Armando Montes De Oca
wrote:
> Well I am replying to To whom it may concern at this point I am a bit lost. I
> posted all my code. I am not taking classes on this nor do I have a book I
> followed a guy on You Tube. I am a student but I heard Python is a good
> l
On Thu, Jun 6, 2013 at 6:56 AM, wrote:
> On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote:
>>...
>> print( cookie, "Content-type: text/html; charset=utf-8\n", message )
>>...
>
> If you look in the Apache error log file, you will see something like,
>
> [Wed Jun 05 16:39:14 20
On Thu, Jun 6, 2013 at 7:18 AM, wrote:
> On Wednesday, June 5, 2013 3:03:29 PM UTC-6, Chris Angelico wrote:
>> On Thu, Jun 6, 2013 at 6:56 AM, wrote:
>> > On Wednesday, June 5, 2013 1:54:45 PM UTC-6, Νικόλαος Κούρας wrote:
>> >>...
>> >> print( cookie,
On Thu, Jun 6, 2013 at 8:36 AM, wrote:
>> And it's really easy to try things out interactively to see what
>> they'll do...
>
> Sure, once one makes the connection between "Server Error" and missing "\n"
> which is where Νικόλαος was stuck I'm guessing.
I know that's a bit of a jump. That's why,
On Thu, Jun 6, 2013 at 11:37 AM, Steven D'Aprano
wrote:
> What prevents bugs is the skill of the people writing the code, not the
> compiler.
+1 QOTW.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jun 6, 2013 at 11:56 AM, Steven D'Aprano
wrote:
> On Wed, 05 Jun 2013 14:59:31 -0700, Russ P. wrote:
>> As for Python, my experience with it is that, as
>> your application grows, you start getting confused about what the
>> argument types are or are supposed to be.
>
> Whereas people neve
On Thu, Jun 6, 2013 at 3:54 PM, jmfauth wrote:
> ("filesystems are just bytes",
> yeah, whatever...).
Sure. You tell me what a proper Unicode rendition of an animated GIF is.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jun 6, 2013 at 4:22 PM, Nobody wrote:
> On Thu, 06 Jun 2013 03:55:11 +1000, Chris Angelico wrote:
>
>> The HTTP header is completely out of band. This is the best way to
>> transmit encoding information. Otherwise, you assume 7-bit ASCII and start
>> parsing. Once
On Thu, Jun 6, 2013 at 7:29 PM, Steven D'Aprano
wrote:
> Whatever benefit there is in declaring the type of a function is lost due
> to the inability to duck-type or program to an interface. There's no type
> that says "any object with a 'next' method", for example. And having to
> declare local v
On Fri, Jun 7, 2013 at 12:09 AM, rusi wrote:
> When we switched from to python (via Scheme and a haskell-
> predecessor), I dont remember ever getting a segmentation fault.
Oh, it's easy to segfault Python.
import sys
sys.setrecursionlimit(9)
def foo(): foo()
foo()
:)
ChrisA
--
http:
On Thu, Jun 6, 2013 at 10:14 PM, Dave Angel wrote:
> If you're planning on having the files densely populated (meaning no gaps in
> the numbering), then you could use a binary search to find the last one.
> Standard algorithm would converge with 10 existence checks if you have a
> limit of 1000 fi
On Fri, Jun 7, 2013 at 1:36 AM, rusi wrote:
> On Jun 6, 8:26 pm, Chris Angelico wrote:
>> On Fri, Jun 7, 2013 at 12:09 AM, rusi wrote:
>> > When we switched from to python (via Scheme and a haskell-
>> > predecessor), I dont remember ever getting a segmentation fa
On Fri, Jun 7, 2013 at 1:35 AM, Robert Kern wrote:
> On 2013-06-06 10:45, Chris Angelico wrote:
>
>> For the "accept any object that has a next() method" sorts of rules, I
>> don't know of any really viable system that does that usefully. The
>> concept o
On Fri, Jun 7, 2013 at 1:54 AM, MRAB wrote:
> On 06/06/2013 16:37, Chris Angelico wrote:
>>
>> On Thu, Jun 6, 2013 at 10:14 PM, Dave Angel wrote:
>>>
>>> If you're planning on having the files densely populated (meaning no gaps
>>> in
>>&g
On Fri, Jun 7, 2013 at 1:49 AM, Rick Johnson
wrote:
> On Wednesday, June 5, 2013 11:59:07 AM UTC-5, Chris Angelico wrote:
>
>> Frankly, I don't think the language much matters. It's all
>> down to the skill of the programmers and testers. Ada
>> wasn't the
On Fri, Jun 7, 2013 at 2:49 AM, Rick Johnson
wrote:
> On Wednesday, June 5, 2013 2:15:57 AM UTC-5, Chris Angelico wrote:
>> [...]
>> I cannot name a single modern programming language that does NOT have
>> some kind of implicit boolification.
>
> Congrats: Again
-camp/torpy13/
Seattle PyCamp 2013 offered September 9-13, 2013 at the University of
Washington's Paul G. Allen Center for Computer Science and Engineering:
http://trizpug.org/boot-camp/seapy13/
--
Sincerely,
Chris Calloway
UNC-CH Department of Marine Sciences
3313 Venable Hall CB 3300
C
On Fri, Jun 7, 2013 at 4:35 PM, wrote:
> Yes, but but 'putty' seems to always forget when i tell it to use utf8 for
> displaying and always picks up the Win8's default charset and it doesnt have
> a save options dialog. I cant always remember to switch to utf8 charset or
> renaming all the tim
On Fri, Jun 7, 2013 at 5:08 PM, Νικόλαος Κούρας wrote:
> I'll google Traal right now.
The one thing you're actually willing to go research, and it's
actually something that won't help you. Traal is the name of my
personal laptop. Spend your Googletrons on something else. :)
ChrisA
--
http://mai
On Sat, Jun 8, 2013 at 12:32 PM, Tim Chase
wrote:
> def calculate(params):
> a = b = 0
> if some_calculation(params):
> a += 1
> if other_calculation(params):
> b += 1
> return (a, b)
>
> alpha = beta = 0
> temp_a, temp_b = calculate(...)
> alpha += temp_a
> b
On Sat, Jun 8, 2013 at 4:49 PM, Νικόλαος Κούρας wrote:
> Oh my God i cant beleive i missed a colon *again*:
For most Python programmers, this is a matter of moments to solve. Run
the program, get a SyntaxError, fix it. Non-interesting event. (Maybe
even sooner than that, if the editor highlights
On Sat, Jun 8, 2013 at 4:53 PM, Νικόλαος Κούρας wrote:
> Τη Παρασκευή, 7 Ιουνίου 2013 11:47:58 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:
>> On 07/06/2013 19:24, Νικόλαος Κούρας wrote:
\>> > Τη Παρασκευή, 7 Ιουνίου 2013 5:32:09 μ.μ. UTC+3, ο χρήστης MRAB έγραψε:
>> >> It's looking for '/home/nikos/public_
On Sat, Jun 8, 2013 at 5:26 PM, Steven D'Aprano
wrote:
> On Fri, 07 Jun 2013 23:49:17 -0700, Νικόλαος Κούρας wrote:
>
> [...]
>> Oh iam very sorry.
>> Oh my God i cant beleive i missed a colon *again*:
>>
>> I have corrected this:
>
> [snip code]
>
> Stop posting your code after every trivial edit
On Sun, Jun 9, 2013 at 1:36 AM, Νικόλαος Κούρας wrote:
> Τη Σάββατο, 8 Ιουνίου 2013 10:01:51 π.μ. UTC+3, ο χρήστης Chris Angelico
> έγραψε:
>> On Sat, Jun 8, 2013 at 4:53 PM, Νικόλαος Κούρας
>> wrote:
>>
>> > Τη Παρασκευή, 7 Ιουνίου 2013 11:47:58 μ.μ. UTC+3, ο
of three characters, which you can work with as
characters. The chr() and ord() functions let you switch between
characters and numbers, and str.encode() and bytes.decode() let you
switch between characters and byte sequences. Once you get your head
around the differences between those three, it all works fairly
neatly.
Chris Angelico
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Jun 9, 2013 at 7:21 AM, Νικόλαος Κούρας wrote:
> Sorry for displaying my code so many times, i know i ahve exhaust you but hti
> is the last thinkg i am gonna ask from you in this thread. We are very close
> to have this working.
You need to spend more time reading and less time frantic
On Sun, Jun 9, 2013 at 7:31 AM, Malte Forkel wrote:
> # This version of the SRE library can be redistributed under CNRI's
> # Python 1.6 license. For any other use, please contact Secret Labs
> # AB (i...@pythonware.com).
I presume that's referring to this:
http://www.handle.net/python_licenses
On Sun, Jun 9, 2013 at 2:56 AM, Νικόλαος Κούρας wrote:
> Τη Σάββατο, 8 Ιουνίου 2013 7:03:57 μ.μ. UTC+3, ο χρήστης Chris Angelico
> έγραψε:
>> On Sun, Jun 9, 2013 at 1:36 AM, Νικόλαος Κούρας
>> wrote:
>
>> > Well, www as symlink to public_html is always a symlink
On Sun, Jun 9, 2013 at 11:21 PM, Malte Forkel wrote:
> At least partially, my confusion seems to be caused by the dichotomy of
> the concepts of copyright and license. How do these relate to each other?
Ah, that one's easy enough to answer!
When you create something, you own it. That is what cop
On Mon, Jun 10, 2013 at 1:10 AM, Rick Johnson
wrote:
> On Sunday, June 9, 2013 8:21:43 AM UTC-5, Malte Forkel wrote:
>> I have asked the PSF for help regarding the implications of the license
>> status of code from sre_parse.py and the missing license statement in
>> sre.py. I'll happily report t
On Mon, Jun 10, 2013 at 1:39 AM, Mark Janssen wrote:
>> The Secret Labs license is very explicit: "All rights reserved". That line
>> means you can't touch it under pain of lawsuit.
>
> That's not true. It means whatever rights they do have, they are
> stating, in effect, that they have not give
On Mon, Jun 10, 2013 at 6:32 AM, Mark Janssen wrote:
> That's not entirely correct. If he *publishes* his code (I'm using
> this term "publish" technically to mean "put forth in a way where
> anyone of the general public can or is encouraged to view"), then he
> is *tacitly* giving up protections
# handles all the details of args-or-stdin
output=['line','headers','here']
for char in line:
if char==' ':
output[*]+=' ' # not Python syntax but so close
continue
utf8=char.encode('utf-8')
output[0]+=char+' '*len(utf8)-1
utf8=binascii.hexlify(utf8).decode()
output[1]+=utf8[::2]; output[2]+=utf8[1::2]
print(output[*])
That's actually very close to real code, feel free to flesh it out a
smidge and run it :) I seriously was going to start by writing just
pseudo-code, but it got closer and closer to actual working Python...
Oh, and since we have a current thread about copyright and license:
This is copyright 2013 Chris Angelico, MIT license. So go ahead, use
it. :)
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Jun 10, 2013 at 10:34 AM, Steven D'Aprano
wrote:
> On Mon, 10 Jun 2013 08:07:57 +1000, Chris Angelico wrote:
>
>> On Mon, Jun 10, 2013 at 6:32 AM, Mark Janssen
>> wrote:
>>> That's not entirely correct. If he *publishes* his code (I'm using
&
On Mon, Jun 10, 2013 at 1:06 PM, wrote:
> if input()!=('duck', 'parry'):
> if input()=='duck':
> if input()=='parry':
Every time you call input(), it waits for you to type something. You
want to record what the person typed and then use it in each place.
Have you been taught a means of doing thi
On Mon, Jun 10, 2013 at 4:42 PM, Malte Forkel wrote:
> Had I known in the beginning how convoluted things would become, I might
> have considered two other options: Just publish or keep the code to
> myself. But I still think, first understanding the legal aspects and
> then publishing (to give b
s raised with.
The package is on PyPI and a full list of all the links to docs, issue
trackers and the like can be found here:
http://www.simplistix.co.uk/software/python/testfixtures
Any questions, please do ask on the Testing in Python list or on the
Simplistix open source mailing list
On Tue, Jun 11, 2013 at 5:40 AM, Mark Janssen wrote:
>> Weird Al can be a complex case, because sometimes his songs are true
>> parodies, and sometimes they're more satires. Parody has a pretty firm
>> history of being protected under fair use, and Weird Al's MJ-inspired songs
>> ("Fat" and "E
On Tue, Jun 11, 2013 at 8:27 AM, dhyams wrote:
> I guess I'll have to agree to disagree here...the situation I'm in is that I
> want a user to be able to write a mathematical plugin with as little effort
> as possible. So I want the "from __future__ import division" to be baked
> into the plug
On Tue, Jun 11, 2013 at 6:34 AM, Roy Smith wrote:
> new_songs = [s for s in songs if s.is_new()]
> old_songs = [s for s in songs if not s.is_new()]
Hmm. Would this serve?
old_songs = songs[:]
new_songs = [songs.remove(s) or s for s in songs if s.is_new()]
Python doesn't, AFAIK, have a "destruct
On Tue, Jun 11, 2013 at 8:39 AM, Grant Edwards wrote:
> On 2013-06-10, Terry Jan Reedy wrote:
>
>> Another principle similar to 'Don't add extraneous code' is 'Don't
>> rebind builtins'.
>
> OK, we've all done it by accident (especially when starting out), but
> are there people that rebind built
ately doesn't fit
the bill due to its sorting requirement.
There is regrettably no itertools.partition(). And given how dead-set
Raymond seems to be against adding things to the itertools module,
there will likely never be.
Maybe more-itertools (https://pypi.python.org/pypi/more-itertools )
601 - 700 of 20027 matches
Mail list logo