Re: pickle alternative

2005-07-08 Thread TZOTZIOY
listens on port 82 (we're behind a strict firewall), so I don't know if my following question has a reason to exist, but there we go: Have you considered basing your module on xdrlib, which is more of a cross-language standard? -- TZOTZIOY, I speak England very best. "Dear Pa

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Jun 29)

2005-07-04 Thread TZOTZIOY
humourous, I believe you noticed :) -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for everything?

2005-07-02 Thread TZOTZIOY
piler ("Unix" compiler) you consider as such? Were there other Unix C compilers before K&R wrote one? Or are you considering as "K&R Unix compilers" those after the publication of the white book and before C89? -- TZOTZIOY, I speak England very best. "Dear P

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-07-02 Thread TZOTZIOY
I would bet that somewhere in the "Ingliy-spiking werld" both terms sound exactly the same. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-07-02 Thread TZOTZIOY
On 28 Jun 2005 13:24:42 -0700, rumours say that "muldoon" <[EMAIL PROTECTED]> might have written: > Now, what forum would you recommend? Any help would be appreciated. alt.usage.english? alt.languages.english? alt.english.usage? uk.culture.language.english? -- TZOTZIOY, I

Re: Better console for Windows?

2005-07-02 Thread TZOTZIOY
stem menu, doesn't it? Talk about blindness... >Seems to work for cmd.exe on NT4 XP too. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Python choice of database

2005-07-02 Thread TZOTZIOY
es to *view* the directory contents using Explorer. Command-line dir had no problem on a directory with >15000 files. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Python choice of database

2005-07-02 Thread TZOTZIOY
er dbs? > >You could use ADO + adodbapi for both. >http://adodbapi.sourceforge.net/ Or pywin32/ctypes and COM (btw, I prefer DAO to ADO, but that is a personal choice). -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Python choice of database

2005-07-02 Thread TZOTZIOY
se. There aren't any non-posix-conformant --or, at least, any non-self-described-as-posix-conformant :-)-- operating systems in wide use today. Hint: win32file.CreateHardLink -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Jun 29)

2005-07-02 Thread TZOTZIOY
ty Towers :-) Then surely it should have been "its" first attempt? Aren't piranhas neutral? -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: MD5 problem

2005-07-02 Thread TZOTZIOY
algorithm. I think some >character are strange for python, and makes it stop before the end of >the .msg file. FYI: the character that was strange for Windows (not Python) was chr(26), or Ctrl-Z, or end-of-file, which is special for files opened as text instead of binary. -- TZOTZIOY, I speak

Re: Boss wants me to program

2005-07-02 Thread TZOTZIOY
oject name is pretty offensive too, since it's related to the term "Sun" and not the term "Java". If one has heard of the differences between Sun and IBM about Java, and knowing that Eclipse started as an IBM project, then the reasoning for choosing the name "Eclipse"

Re: Which kid's beginners programming - Python or Forth?

2005-07-02 Thread TZOTZIOY
ew that would love Forth only for that. The perfect language for many kids I know would be Python with boolean operators reversed. Oh, and 'print' should be 'do_NOT_print'. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re:

2005-07-01 Thread TZOTZIOY
ble libraries and more advanced developement tools. More advanced development tools, yes. More available libraries? Perhaps. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Controlling WinAMP (WM_COPYDATA problem)

2005-07-01 Thread TZOTZIOY
;s available in the www.winamp.com site. (Search for plugin "winampcom") -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Better console for Windows?

2005-07-01 Thread TZOTZIOY
no keyboard shortcut to scroll: http://www.xvsxp.com/power_user/terminal/ -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite non-python language trick?

2005-07-01 Thread TZOTZIOY
aced >directly with names's byte code contents at compile time. > >Defer could be shortened to def I suppose, but I think defer would be >clearer. Anyway, it's only a wish list item for now. This is similar: http://groups-beta.google.com/group/comp.lang.python/msg/6fc88414

Re: What is different with Python ? (OT I guess)

2005-06-28 Thread TZOTZIOY
On Tue, 28 Jun 2005 15:46:01 +0300, rumours say that Christos "TZOTZIOY" Georgiou <[EMAIL PROTECTED]> might have written: >(kudos to Steve Holden for >[EMAIL PROTECTED] where the term PIPO >(Poetry In, Poetry Out) could be born) oops! kudos to Michael Spencer (I never sa

Re: Better console for Windows?

2005-06-28 Thread TZOTZIOY
the top-left icon, or press Alt-Space), go to Properties, Layout tab, Window Size, Width. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Plain text email?

2005-06-28 Thread TZOTZIOY
t of the e-mail system. I suggest you send your "info" as an attached text file; no client will mess with it. The email package is your friend for MIME messages. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: What is different with Python ? (OT I guess)

2005-06-28 Thread TZOTZIOY
the PSF could sell Python-branded shampoos named "poetry in lotion" etc. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: What is different with Python ?

2005-06-28 Thread TZOTZIOY
(even better, read :) the rest of Andrea's paragraph, it would be obvious that you actually agree with Andrea. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Plain text email?

2005-06-27 Thread TZOTZIOY
BTW you don't have a newline before "Ubicación:"; is it intentional?) Tabs are infamous confusers of email clients, unfortunately. -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Plain text email?

2005-06-27 Thread TZOTZIOY
calhost', '[EMAIL PROTECTED]', ['[EMAIL PROTECTED]']) and I had no problem. What happens for you (substitute other server and email addresses, obviously :) ? -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Plain text email?

2005-06-27 Thread TZOTZIOY
MAIL PROTECTED]']) and I had no problem. What happens for you (substitute other server and email addresses, obviously :) ? -- TZOTZIOY, I speak England very best. "Dear Paul, please stop spamming us." The Corinthians -- http://mail.python.org/mailman/listinfo/python-list

Re: Thanks for PIL (and other stuff)

2005-06-24 Thread TZOTZIOY
On 23 Jun 2005 19:12:03 -0700, rumours say that "jean-marc" <[EMAIL PROTECTED]> might have written: >So I wish it and its author(s) a good day, week, month, year and more! >Really! That is, "So long and thanks for all the PIL." -- TZOTZIOY, I speak England very b

Re: getting an object name

2005-06-22 Thread TZOTZIOY
o find out what it's called is to ask >all your neighbours (namespaces) if it's their cat (object) ... and >don't be surprised if you'll find that it's known by many names, or no >name at all!" Whom should we bug to add it? -- TZOTZIOY, I speak England ver

Re: Dynamic Lists, or...?

2005-06-22 Thread TZOTZIOY
Dict() >exec data in {}, d >print d.items() For kids trying this at home, note that it only works if the descriptor is a valid Python identifier. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: getting list of all available modules

2005-06-21 Thread TZOTZIOY
ive prompt: >>> type(help) -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: the python way?

2005-06-16 Thread TZOTZIOY
0 MHz (battery powered). Suggestion /a/ has the advantage of no repetion of the names like the original line. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: "also" to balance "else" ?

2005-06-14 Thread TZOTZIOY
lse: > print "this is not a pipe" >I prefer the second over the first. I am not advocating for either side AFA python 2 is concerned (however I would substitute "then" for "also"), however the second way does not handle /elegantly/ multiple break points.

Re: sudo open() ? (python newbee question)

2005-06-14 Thread TZOTZIOY
do chown root /tmp/ax.py sudo chmod a=rx,u+s /tmp/ax.py ls -l /tmp/ax.py /tmp/tmp /tmp/ax.py I get: -r-sr-xr-x 1 root users 75 2005-06-14 16:15 /tmp/ax.py -rw--- 1 root users 6 2005-06-14 16:15 /tmp/tmp Traceback (most recent call last): File "/tmp/ax.py", line 2, in ? x = op

Re: Hopefully simple regular expression question

2005-06-14 Thread TZOTZIOY
Subsection 4.2.1 is Regular Expression Syntax; it'll help a lot if you read it. Cheers. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: Destructive Windows Script

2005-06-06 Thread TZOTZIOY
a hard drive in the clear anyway. A little healthy insanity never hurt anyone in the security field :) -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... --

Re: Encryption with Python?

2005-05-27 Thread TZOTZIOY
ld say that "hey, you changed the algorithm, and that means your previous declaration of unbreakability wasn't." but honestly I was overwhelmed by the audacity (and foolishness, if these are truly his credit card data) of Frederic. ObSF: DNA; The Restaurant At The End Of The Universe;

Re: Encryption with Python?

2005-05-26 Thread TZOTZIOY
replied to my last question, and in good spirit I say you earned a little respect from me, at least for standing up to your words. Now I hope no-one gives a try to your data (for your own sake :) -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving."

Re: Python on a public library computer

2005-05-17 Thread TZOTZIOY
omputer again!", and then came to the following conclusion (much similar to a Python motto): "If Python can do this, it {Python} should be forbidden..." PS Unfortunately, I could not charge "security consulting" fees. -- TZOTZIOY, I speak England very best. "Be stric

Re: python-dev Summary for 2005-04-16 through 2005-04-30

2005-05-16 Thread TZOTZIOY
`PEP 310 Updates Requested`_ > >5. `Sharing Namespaces`_ > >6. `PEP 340 Proposed`_ > >[SJB] Great job, Steve... -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: Solipsis: Python-powered Metaverse

2005-05-13 Thread TZOTZIOY
his case, *typically* you would map port (router_ext, 6000) to (int1, 6000) and (router_ext, 6001) to (int2, 6000). The internal computers would both think that some computer is doing a connect at their port 6000. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when r

Re: creating words of diff lengths

2005-05-13 Thread TZOTZIOY
Is there an echo in here? -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption with Python?

2005-05-13 Thread TZOTZIOY
expiry date, billing address and your first dog's name)? Do you trust the 'unbreakability' of your algorithm that much? -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python or PHP?

2005-05-11 Thread TZOTZIOY
er PHP if there are >> any? >As you learn Python, you will find that your PHP code will improve, >possibly becoming more and more concise until it disappears completely. +1 QOTW -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (f

Re: unicode encoding problem

2005-05-11 Thread TZOTZIOY
d just assume it is Latin-1. What is >sys.stdin.encoding on your system? The difference between theory and practice is that in theory there is no difference. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really shou

Re: Supercomputer and encryption and compression @ rate of 96%

2005-05-11 Thread TZOTZIOY
ke (I even suggested a correction, which was a mistake because I hadn't understood the full joke[1] :) [snip effbot's code] [1] I thought that Fredrik just made up something that looked like working, and he explained that his code *was* working. -- TZOTZIOY, I speak England ve

Re: Python Challenge ahead [NEW] for riddle lovers

2005-05-06 Thread TZOTZIOY
a little time to think some new riddles to suggest (extending stdlib coverage). -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: delete will assure file is deleted?

2005-04-28 Thread TZOTZIOY
ound it: http://groups.google.com.gr/groups?selm=87llgxuyf5.fsf%40pobox.com --not exactly what I remembered, but close.) I think throwing subclasses of OSError based on errno would make life easier --always assuming that Python requires POSIX conformance on all platforms. I will give it a try

Re: delete will assure file is deleted?

2005-04-27 Thread TZOTZIOY
b. Example: import errno try: ... except OSError, exc: if exc.errno == errno.ENOENT: # file inexistant ... elif exc.errno == errno.EPERM: # no permissions ... else: raise -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when r

Re: Python licence again

2005-04-26 Thread TZOTZIOY
ball? Or heeding the sucker call (like I just did?) >>the google >>suggestions that probably looked like "didn't you mean : Python License" >You might find, were you to try it, that it makes no such suggestions. Google isn't what it used to be when I was 6

Re: Python, Perl & PDF files

2005-04-26 Thread TZOTZIOY
On Tue, 26 Apr 2005 11:58:29 +0300, rumours say that Christos "TZOTZIOY" Georgiou <[EMAIL PROTECTED]> might have written: >http://www.mythfolklore.net/aesopica/oxford/480.htm BTW, does anyone see the connection between: > we should make every possible effort on our own

Re: Python, Perl & PDF files

2005-04-26 Thread TZOTZIOY
On Mon, 25 Apr 2005 13:00:51 -0400, rumours say that Peter Hansen <[EMAIL PROTECTED]> might have written: >Peter Hansen wrote: >> Dennis Lee Bieber wrote: >>> On Mon, 25 Apr 2005 17:24:36 +0300, Christos "TZOTZIOY" Georgiou: >>>> I don't k

Re: Python, Perl & PDF files

2005-04-25 Thread TZOTZIOY
ReportLab and pdflib are not helpful to you (packages suggested directly by Mike Meyer and indirectly by me). -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with peop

Re: Python, Perl & PDF files

2005-04-25 Thread TZOTZIOY
about a peasant's cart getting stuck in the mud, so the peasant starts calling out for help from goddess Athena. Another peasant passing by tells him: "Syn Athena kai kheira kinei", which means, more or less, "keep on calling Athena, but start also using your hands." I don

Re: goto statement

2005-04-20 Thread TZOTZIOY
On Wed, 20 Apr 2005 16:24:19 +0100, rumours say that Simon Brunning <[EMAIL PROTECTED]> might have written: >On 4/20/05, Christos TZOTZIOY Georgiou <[EMAIL PROTECTED]> wrote: >> If you need more help, I would gladly send you the output of `man vi' >> from a non-GN

Re: goto statement

2005-04-20 Thread TZOTZIOY
ou like python (if you really do :) -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread TZOTZIOY
ven block un/commenting and un/indenting. Otherwise, I believe your reply above is slightly adrift (you wondered what one can do to comment a block of code when using vi, and I replied to that; I don't quite understand what your exact point is.) -- TZOTZIOY, I speak England very best. "

Re: random number between 0 and 20

2005-04-20 Thread TZOTZIOY
nutes before aleksander asked his question, you might want to either check your computer clock for accuracy or return the time machine to Guido... -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind wh

Re: random number between 0 and 20

2005-04-20 Thread TZOTZIOY
) See also the random.randrange function. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread TZOTZIOY
ey To control autoindent, you can type: :se ai or :se noai If you need more help, I would gladly send you the output of `man vi' from a non-GNU Unix. I can also send you the output of `man vim' from a GNU system. -- TZOTZIOY, I speak England very best. "Be strict when sending and

Re: goto statement

2005-04-20 Thread TZOTZIOY
like to relax at some more interesting way than >to comment each of rows What editor exactly are you using that can't un/indent and un/comment a block of lines? Obviously, neither vi, nor emacs, nor idle. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant w

Re: How standard is the standard library?

2005-04-18 Thread TZOTZIOY
gle search), so take a look at this: http://www.python.org/peps/pep-0004.html -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: curses for different terminals

2005-04-15 Thread TZOTZIOY
es calls; is there a "current" term per thread, or is there one per process? I couldn't find an answer in the short search I did. I am afraid you will have to make it into a 3-tier arch; that is, your server has the data model and absolutely no curses knowledge, and the clients run

Re: How to name Exceptions that aren't Errors

2005-04-15 Thread TZOTZIOY
click of the name "Breebart"[1] falling into place. [1] "Breeb*aa*rt" you say. Ok then, double click. >I doubt anybody here cares! I WAS EXPECTING TO MEET THEE IN ALT.FAN.PRATCHETT. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when r

Re: curses for different terminals

2005-04-14 Thread TZOTZIOY
t cover your case, and we will try to help you more. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: Supercomputer and encryption and compression @ rate of 96%

2005-04-14 Thread TZOTZIOY
ot;, "filename") > >if you do that, decompression won't work. How obvious, now that you mention it... :) -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: Supercomputer and encryption and compression @ rate of 96%

2005-04-14 Thread TZOTZIOY
whole Pink Floyd collection on a 5.25 floppy (zip of zip of zip of...) [0] -- btw, in your code, Fredrik: """file = open(keycode + ".out", "wb")""".replace("keycode", "filename") [1] disk space -- the final frontier -- TZOTZIOY, I

Re: Supercomputer and encryption and compression @ rate of 96%

2005-04-14 Thread TZOTZIOY
On 14 Apr 2005 02:27:26 -0700, rumours say that [EMAIL PROTECTED] might have written: >Supercomputer and encryption and compression @ rate of 96% [snip] In other words, the story of your life can be expressed as a single binary zero. Get one. -- TZOTZIOY, I speak England very best. "B

Re: LD_LIBRARY_PATH - how to set?

2005-04-04 Thread TZOTZIOY
rg3 Here follow "last lines" and the corresponding sys.argv[1:]: LAST LINE: $* SYS.ARGV : ["File", "with", "space.txt", "arg2", "arg3"] LAST LINE: "$*" SYS.ARGV : ["File with space.txt arg2 arg3"] LAST LINE:

Re: return the last item in a list

2005-03-30 Thread TZOTZIOY
bout > >list[len(list)-1] > >but thought there would be a more gracefull way. There is. alist[-1] Did you read the tutorial? This is referenced in "3. An Informal Introduction to Python". -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when

Re: Want to meet any of these people? They are registered for PyCon

2005-03-30 Thread TZOTZIOY
utility built into Cygwin, thereby avoiding >> writing any code at all. > >an easier way is to publish it unsorted, but claim it is sorted. >someone is sure to correct it with the proper sorted list. For parents, the other way is to forbid their children sorting the list. -- TZOTZIOY,

Re: Little Q: how to print a variable's name, not its value?

2005-03-29 Thread TZOTZIOY
On 28 Mar 2005 22:06:44 -0800, rumours say that "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> might have written: Read about locals() and globals() in the Python documentation. These provide the information you request (ie what names are bound to what objects). -- TZOTZIOY, I sp

Re: Module function can't see globals after import.

2005-03-28 Thread TZOTZIOY
with globals for some reason of your own, in the module you can: import __main__ and access the main modules globals (eg 'x') as: __main__.x -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that

Re: "static" variables in functions (was: Version Number Comparison Function)

2005-03-28 Thread TZOTZIOY
t;@sticky('fixup') # evaluate binding only first time >def cmpver(a , b): > def fixup ... ? One of the previous related threads is this (long URL): http://groups-beta.google.com/group/comp.lang.python/messages/f7dea61a92f5e792,5ce65b041ee6e45a,dbf695317a6faa26,19284769722775d2,7599103bb1

Re: Python for a 10-14 years old?

2005-03-28 Thread TZOTZIOY
On 24 Mar 2005 13:33:58 GMT, rumours say that Fred Pacquier <[EMAIL PROTECTED]> might have written: >Christos "TZOTZIOY" Georgiou <[EMAIL PROTECTED]> said : > >> At the age of nine at school, two guys from a French computer-making >> company named as

Re: Version Number Comparison Function

2005-03-25 Thread TZOTZIOY
to tuples: (0, 1, 0) < (0, 1, 2) (1, 876, 'b') < (1, 876, 'c') (3, 2, 2) < (3, 4) All of the above are True. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for a 10-14 years old?

2005-03-24 Thread TZOTZIOY
On 24 Mar 2005 14:50:39 +0200, rumours say that Ville Vainio <[EMAIL PROTECTED]> might have written: >>>>>> "Christos" == TZOTZIOY writes: > >Christos> (first hw upgrade I ever did!), and one year and a half >Christos> later, I managed

Re: Python for a 10-14 years old?

2005-03-24 Thread TZOTZIOY
s of computer magazines though, with lots of source code in them to keep a kid interested then (the age of home computers)... >Personally, at that age I knew everything about the solar system >planets, distances from the Sun, masses, diameters, albedos, etc. >Fortunately, now I have forgot n

Re: Suggestions for a Java programmer

2005-03-24 Thread TZOTZIOY
or Java programmers - Irmen's Python wiki Python & Java: Side by Side Comparison Jython Home Page (which you might like a lot) dirtSimple.org: Python Is Not Java (some useful pointers) among others. You didn't specify which blog you found, so HTH. -- TZOTZIOY, I speak England very b

Re: simultaneous copy to multiple media

2005-03-23 Thread TZOTZIOY
On Mon, 21 Mar 2005 00:17:05 +0100, rumours say that Heiko Wundram <[EMAIL PROTECTED]> might have written: >Well, 430 MB/s is only for USB 2.0. It's 480 Mb/s (megabit or mebibit, I am not sure... :), so it maxes at about 60 MB/s (or MiB/s) for all devices on the same controller. -

Re: simultaneous copy to multiple media

2005-03-22 Thread TZOTZIOY
pear anywhere on the command line? However, >/dev/null is a waste. Substitute one of the outfiles instead. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -

Re: Why tuple with one item is no tuple

2005-03-22 Thread TZOTZIOY
= (1, 2, 3) * 4; print tpl (1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3) So parentheses just change precedence (comma has lower precedence than star). -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that

Re: Pre-PEP: Dictionary accumulator methods

2005-03-22 Thread TZOTZIOY
st.append. PS I wrote these more than 36 hours ago, and before having read the so-far downloaded messages of the thread. I kept on reading and obviously others thought the same too (default argument at initialisation). What the heck, Bengt at least could like the class method idea :) -- TZOTZIOY

Re: [perl-python] sorting matrixes

2005-03-22 Thread TZOTZIOY
t;days. Don't bother writing a Python version... list.sort and its arguments are fine and send their greetings. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, a

Re: raise takes a long time

2005-03-20 Thread TZOTZIOY
ly fast in the two cases (for any obscure reasons). Did you time it (ie get the time at the start and end of the function)? >does not take a long time (<< 1 second). The exception LayoutError is trivial >class LayoutError(Exception): > pass -- TZOTZIOY, I speak England very best.

Re: Python scope is too complicated

2005-03-20 Thread TZOTZIOY
n that chapter giving us a chance to improve the documentation. Cheers! -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: how can I put a 1Gb file in a zipfile??

2005-03-20 Thread TZOTZIOY
7;w') > > for all in os.walk(os.getcwd()): > path = all[0] > for document in all[2]: > zipaccview.write(path + os.sep + document) > > zip.close() Can it be that you are creating a zip file that its to

Re: How two modules call functions defined in each other?

2005-03-20 Thread TZOTZIOY
ch is also a module) attributes, in your other modules do a: import __main__ and then access its attributes as __main__.attribute . It's not generally a good idea in Python, though, so you might like to explain what you need to do so that we suggest alternate approaches. >or python has so

Re: sound processing - avarage amplitude?

2005-03-20 Thread TZOTZIOY
If it's at maximum amplitude (1), then any value (except zero) can be expressed as (negative) dB by the following function: def amp2dB(amplitude): return 20*math.log(amplitude, 10) If you're converting from the 0...32767 range of 16bit PCM files, first divide the amplitude by 3276

Re: syntax incorrect with regex

2005-03-18 Thread TZOTZIOY
don't insert any spaces at the start of your line; if the former, compare indentation with the line above. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: I can do it in sed...

2005-03-17 Thread TZOTZIOY
t': printing=1 >if printing: print line >if line[:3]=='end': printing=0 and perhaps it's better to use startswith than slicing. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: computing a weighted sum

2005-03-17 Thread TZOTZIOY
On Thu, 17 Mar 2005 08:11:11 GMT, rumours say that "Raymond Hettinger" <[EMAIL PROTECTED]> might have written: >[Christos TZOTZIOY Georgiou] >> Anyway, a functional equivalent: >> >> .>> from itertools import starmap, izip >> .>> import ope

Re: Itertools wishlists

2005-03-17 Thread TZOTZIOY
e useful in this capacity than as immediate >solutions >to particular problems. Well, I have to respect your opinion and so I drop the subject... but with my dying breath, re: >to serve as a teaching tool showing >>how to combine the tools and how to integrate them with other Pyt

Re: Listbox fill=BOTH expand=YES (Tkinter)

2005-03-17 Thread TZOTZIOY
s* in a set, not of *subsets*. BTW, only a frozenset can be included in a set. To check for subsets, either use the issubset function, or the '<' operator (I believe they both call the same code): .>> set(['TRUE','YES']).issubset(set(dir(Tkconstants))) True c

Re: computing a weighted sum

2005-03-16 Thread TZOTZIOY
c. Anyway, a functional equivalent: .>> from itertools import starmap, izip .>> import operator .>> x= [1,2,3,4] .>> w=[3.0, 6.0, 9.0, 12.0] .>> sum(starmap(operator.mul, izip(x,w))) 90.0 .>> -- TZOTZIOY, I speak England very best. "Be strict when send

Re: unicode converting

2005-03-16 Thread TZOTZIOY
on linux2 Type "help", "copyright", "credits" or "license" for more information. .>> import sys, Tkinter .>> sys.maxunicode 1114111 .>> 2.4 built by me, 2.3.3 by SuSE. I see. So on SuSE 9.1 professional too, Python and Tcl/Tk are pre-built with ucs

Re: Listbox fill=BOTH expand=YES (Tkinter)

2005-03-16 Thread TZOTZIOY
n, I hope you also know that .>> 'inexistent keyword' and 'YES' in dir(Tkconstants) is also True... -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode converting

2005-03-16 Thread TZOTZIOY
er as pre-built on recent RedHat systems. Does it also apply to FreeBSD? On Windoze, Mandrake and SuSE python has UCS-2 unicode and Tkinter is working just fine. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should

Re: Itertools wishlists

2005-03-16 Thread TZOTZIOY
NST a_tuple/UNPACK_SEQUENCE/BUILD_TUPLE, "a,b,c=d,e,f" reordering and dropping of the tuple building/unpacking (which is a case already improved in C) etc. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode converting

2005-03-15 Thread TZOTZIOY
e('utf-16') # maybe utf-16be for network order You should not care about internal encoding of unicode objects. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from RFC1958) I really should keep that in mind when talking with people, actually... -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode study with unicodedata module

2005-03-15 Thread TZOTZIOY
EEK SMALL LETTER KAPPA}" or with .>> uc = unicodedata.lookup("GREEK SMALL LETTER KAPPA") and you get the ordinal with: .>> ord(uc) ord works for strings and unicode. -- TZOTZIOY, I speak England very best. "Be strict when sending and tolerant when receiving." (from

Re: python version anachronism

2005-03-15 Thread TZOTZIOY
On Tue, 15 Mar 2005 10:23:02 +, rumours say that Simon Brunning <[EMAIL PROTECTED]> might have written: >3.2.5 is a bugfix release of the 2.3 branch Damn, we're on Python 3 already? Where are all the PEPs I missed?-) -- TZOTZIOY, I speak England very best. "Be stri

  1   2   >