ANN: numarray-1.5.0

2005-12-06 Thread Todd Miller
Numarray is an array processing package designed to efficiently manipulate large multi-dimensional arrays. Numarray is modelled after Numeric and features c-code generated from python template scripts, the capacity to operate directly on arrays in files, arrays of heterogeneous records, string

Re: Python 2.4.2 make failure in posixmodule on OSX 10.4.3

2005-12-06 Thread Martin v. Löwis
smurphus wrote: I hope that information is of some use. Not sure where to go from here. Please try gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-06 Thread malv
Where did I suggest that [distros should] come with nearly everything installed? This is utterly ridiculous. Common sense could helped you with that one. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pygene - genetic algorithms package

2005-12-06 Thread aum
On Mon, 05 Dec 2005 23:45:30 -0800, Erik Max Francis wrote: I only scanned through the API documentation, but it looks like only genetic algorithms are supported, not full genetic programming. Correct. Organisms of a species have a fixed genome. I've been planning on releasing my

Re: ANN: pygene - genetic algorithms package

2005-12-06 Thread malv
How is your package different from a nn package? Is this an addon for genetic programming or does it include the standard nn components as well, such as backprop etc? Not being very familiar with genetic programming, forgive me my naive question, I could not immediately find the answer. Thank you,

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread Antoon Pardon
Op 2005-12-06, [EMAIL PROTECTED] schreef [EMAIL PROTECTED]: Paul Rubin wrote: Why use temporary variables when all you have to do is make your expressions three lines long to avoid polluting the namespace? Indeed. I'd much rather say x = a + b + (c * d) + e than temp1 = a + b

Python and OLAP?

2005-12-06 Thread Wolfgang Keller
Hello, does anyone know of Python modules for OLAP work? E.g. efficient manipulation of large multi-dimensional structures (arrays) of arbitrary (not only numeric) data? TIA, Sincerely, Wolfgang Keller -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pygene - genetic algorithms package

2005-12-06 Thread Erik Max Francis
aum wrote: Correct. Organisms of a species have a fixed genome. My bad, you had mentioned in the announcement that you had looked at genetic programming systems but didn't claim that pygene was itself a genetic programming system. I misread that; my apologies. I've been planning on

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread bonono
Antoon Pardon wrote: Op 2005-12-06, [EMAIL PROTECTED] schreef [EMAIL PROTECTED]: Paul Rubin wrote: Why use temporary variables when all you have to do is make your expressions three lines long to avoid polluting the namespace? Indeed. I'd much rather say x = a + b + (c * d)

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread Paul Rubin
[EMAIL PROTECTED] writes: I think there is, for python. Not that I agree with it. The language doesn't prevent you from using the short one-liner style but the idioms prefer the line by line(and one single op/action per line) style. Are you serious?!! You're saying idiomatic Python prefers

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread Antoon Pardon
Op 2005-12-06, [EMAIL PROTECTED] schreef [EMAIL PROTECTED]: Antoon Pardon wrote: Op 2005-12-06, [EMAIL PROTECTED] schreef [EMAIL PROTECTED]: Paul Rubin wrote: Why use temporary variables when all you have to do is make your expressions three lines long to avoid polluting the

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread bonono
Paul Rubin wrote: [EMAIL PROTECTED] writes: I think there is, for python. Not that I agree with it. The language doesn't prevent you from using the short one-liner style but the idioms prefer the line by line(and one single op/action per line) style. Are you serious?!! You're saying

Re: option argument length

2005-12-06 Thread Peter Otten
Ritesh Raj Sarraf wrote: I'm using this for option arguments which are mutually inclusive. But I want the user to pass atleast one option argument for the program to function properly. For example, I have an option --fetch-update which requires a file foo to check what it has to fetch. If

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2005-12-06 Thread Alex Stapleton
On 6 Dec 2005, at 04:55, Xah Lee wrote: i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ To be fair, the PHP manual is pretty good most of the time. I mean, just imagine trying to use PHP *without* the manual?! It's not like the language is even vaguely

Pickle for MPI

2005-12-06 Thread tooper
Hello, Did anybody tried python pickle module over heterogeneous 32/64 bits mpi exchanges to overcome the translation problem ? i.e. pickling on one side (let's say a 32-bits OS side), sending the buffer as string through mpi and unpickling on the other side (let's say a 64-bits OS side) Any

Problem patching SimpleXMLRPCServer.py

2005-12-06 Thread Thomas G. Apostolou
Hello all, I use Python 2.3.3 and try to patch SimpleXMLRPCServer.py with the patch i got from Python.org. so after changing to the directory where both SimpleXMLRPCServer.py and SimpleXMLRPCServer.patch reside i run : patch -i SimpleXMLRPCServer.patch -b --verbose --dry-run SimpleXMLRPCServer.py

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread Steve Holden
[EMAIL PROTECTED] wrote: Paul Rubin wrote: [EMAIL PROTECTED] writes: I think there is, for python. Not that I agree with it. The language doesn't prevent you from using the short one-liner style but the idioms prefer the line by line(and one single op/action per line) style. Are you

Force Focus in Tkinter

2005-12-06 Thread annagel
I am looking for a way to force a Tkinter window into focus on a system level. I know the force focus method should bring one window of my application into focus, but it seems I need to have some part of my application already in focus on a system level to make this work. If for example I am

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread Fredrik Lundh
Steve Holden wrote: One perhaps needs to be a little more careful with instance variables, but again most *temporaries* are simply local to the method in which they're called, they don't exist for the lifetime of the instance. and more importantly, temporary variables can be reused. they're

Re: win32com 'catastrophic failure'

2005-12-06 Thread Richie Hindle
[gerd] com_error: (-2147418113, 'catastrophic failure', None, None) The last time I saw this error it was because I'd created a control instance but hadn't initialised it before trying to use it. I had to do something like this (apologies for the C++): IPersistStreamInit* IPSI = NULL;

Re: Problem patching SimpleXMLRPCServer.py

2005-12-06 Thread Thomas G. Apostolou
Its ok now, it seems the problem was that i had saved the file in UTF-8 format ??? I got it again and saved it in Greek(ISO) format and it now goes fine Thomas G. Apostolou [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, I use Python 2.3.3 and try to patch

Re: Force Focus in Tkinter

2005-12-06 Thread Steve Holden
annagel wrote: I am looking for a way to force a Tkinter window into focus on a system level. I know the force focus method should bring one window of my application into focus, but it seems I need to have some part of my application already in focus on a system level to make this work. If

Output: Number of digits in exponent?

2005-12-06 Thread Jens Bloch Helmers
How can I control the number of digits in the exponent when writing floats to a file? It seems that Python2.4.2(winXP) prints three digits anyway. print 1.0e50 1e+050 print '%e' % (1.0e50) 1e+050 I would prefer two digits in the exponent. Usually 3 digits is not a problem, except for waisted

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-06 Thread Ben Sizer
[EMAIL PROTECTED] wrote: a decent description or tutorial... is better Sound good but... we're programmers, not documentation specialist or motivational speakers. Why, when I suggest fixing a design defect with code, do so many programmers want to respond with... documentation and

Re: Bitching about the documentation...

2005-12-06 Thread skip
Are you telling us you learned C#, smalltalk, lisp, C, perl, whatever, from 1 website only, without looking at any books, without spending any money on IDEs or any software? Cause that's what you're asking here. rurpy For perl and C, yes, that's (close to) what I'm

Re: Eclipse best/good or bad IDE for Python?

2005-12-06 Thread Aaron Bingham
Paul Boddie wrote: [EMAIL PROTECTED] wrote: Eclipse, for example, performs like a dog on my dual opteron workstation w/ 2GB of RAM, which is more than enough to annoy me. I shouldn't have to wait more than about 1 second for an editor to start and then open what is essentially a text file

shelve seg error

2005-12-06 Thread Philippe C. Martin
Hi, I just installed (compiled) Python 2.4.2 under Suse 10. The following code generates a seg error: import shelve print shelve.open ('test') I assume this has to do with the db behind shelve. How do I go about tracing/fixing the problem ? Regards, Philippe --

Re: Tabs bad

2005-12-06 Thread Björn Lindström
Paul Rubin http://[EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Björn Lindström) writes: Actually using tabs for eight spaces and then filling out with spaces to the correct indentation is the convention for Emacs Lisp. Of course, since everyone coding Emacs Lisp does it with the same editor,

Re: Eclipse best/good or bad IDE for Python?

2005-12-06 Thread Paul Boddie
Aaron Bingham wrote: Did you ever try double clicking the editor tab? Hi Aaron! Yes, I think I worked that one out, but perhaps the proliferation of panels containing tabs containing panels (containing tabs...) is one of the things that really puts me off IDEs, particularly Eclipse. I'm sure

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread Antoon Pardon
Op 2005-12-06, Fredrik Lundh schreef [EMAIL PROTECTED]: Steve Holden wrote: One perhaps needs to be a little more careful with instance variables, but again most *temporaries* are simply local to the method in which they're called, they don't exist for the lifetime of the instance. and more

Re: distutils problem windows xp python 2.4.2

2005-12-06 Thread [EMAIL PROTECTED]
Hello, I have .net framework 2.0 because I' already able to run visual studio express 2005. Should I install .net framework 1.1 and also ms toolkit ? Sincerely Yours, pujo -- http://mail.python.org/mailman/listinfo/python-list

Re: XML and namespaces

2005-12-06 Thread Alan Kennedy
[Fredrik Lundh] my point was that (unless I'm missing something here), there are at least two widely used implementations (libxml2 and the 4DOM domlette stuff) that don't interpret the spec in this way. Libxml2dom is of alpha quality, according to its CheeseShop page anyway.

iron python exe problem

2005-12-06 Thread [EMAIL PROTECTED]
Hello, I have test.py: print 'hello' I compile using iron python the result is test.exe I have got error message when I tried to call test.exe telling that test.exe is not a valid win32 application. How can I solve this problem? Sincerely Yours, Pujo --

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread Sybren Stuvel
Fredrik Lundh enlightened us with: def somefunc(x): return x*5 How is that a multi-line function definition? but that's namespace pollution! if you do this, nobody will never ever be able to use the name somefunc again! won't somebody please think about the children! If you use that as an

Re: XML and namespaces

2005-12-06 Thread Alan Kennedy
[EMAIL PROTECTED] You're the one who doesn't seem to clearly understand XML namespaces. It's your position that is bewildering, not XML namespaces (well, they are confusing, but I have a good handle on all the nuances by now). So you keep claiming, but I have yet to see the evidence. Again,

Re: Ant (with Python extensions) good replacement for distutils?

2005-12-06 Thread Cameron Laird
In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I know distutils well but don't know anything about Ant except that it is a build tool from Apache project. Could it possible be better or as good as distutils? (There are extensions for

Re: iron python exe problem

2005-12-06 Thread Nick Ballard
[EMAIL PROTECTED] wrote: Hello, I have test.py: print 'hello' I compile using iron python the result is test.exe I have got error message when I tried to call test.exe telling that test.exe is not a valid win32 application. How can I solve this problem? Sincerely Yours, Pujo

Re: How to execute an EXE via os.system() with spaces in the directory name?

2005-12-06 Thread rbt
[EMAIL PROTECTED] wrote: This comes up from time to time. The brain damage is all Windows', not Python's. Here's one thread which seems to suggest a bizarre doubling of the initial quote of the commandline.

Re: iron python exe problem

2005-12-06 Thread [EMAIL PROTECTED]
I use version 0.9.5 Windows xp with .net framework 2.0, visual studio Express pujo -- http://mail.python.org/mailman/listinfo/python-list

Re: what's wrong with lambda x : print x/60,x%60

2005-12-06 Thread Steve Holden
Sybren Stuvel wrote: Fredrik Lundh enlightened us with: def somefunc(x): return x*5 How is that a multi-line function definition? but that's namespace pollution! if you do this, nobody will never ever be able to use the name somefunc again! won't somebody please think about the children!

extract python install info from registry

2005-12-06 Thread rbt
On windows xp, is there an easy way to extract the information that Python added to the registry as it was installed? -- http://mail.python.org/mailman/listinfo/python-list

Re: Bitching about the documentation...

2005-12-06 Thread gene tani
[EMAIL PROTECTED] wrote: Are you telling us you learned C#, smalltalk, lisp, C, perl, whatever, from 1 website only, without looking at any books, without spending any money on IDEs or any software? Cause that's what you're asking here. rurpy For perl and C, yes, that's

Re: extract python install info from registry

2005-12-06 Thread Laszlo Zsolt Nagy
rbt wrote: On windows xp, is there an easy way to extract the information that Python added to the registry as it was installed? Using regedit.exe, look at the registry keys and values under HKEY_LOCAL_MACHINE\Software\Python If you need to know how to read the registry from Python: please

Re: shelve seg error

2005-12-06 Thread Philippe C. Martin
PS: This code however works, which seems to me means the problem is with the default database used by shelve ... which one is it ? import shelve import gdbm def gdbm_shelve(filename, flag=c): return shelve.Shelf(gdbm.open(filename, flag)) db = gdbm_shelve(dbfile) Regards, Philippe

windows installer problems

2005-12-06 Thread saxicek
Hi, I'm trying to install Python on Windows 2000 Server using remote desktop. I log as a user that is in administrators group. Instalator starts, I select default installation directory, on the next screen with parts to install I click just next. Than blicks screen with progress bar but it is

Re: extract python install info from registry

2005-12-06 Thread rbt
Laszlo Zsolt Nagy wrote: rbt wrote: On windows xp, is there an easy way to extract the information that Python added to the registry as it was installed? Using regedit.exe, look at the registry keys and values under HKEY_LOCAL_MACHINE\Software\Python If you need to know how to

i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Daniel Schüle
Hello NG, I am wondering if there were proposals or previous disscussions in this NG considering using 'while' in comprehension lists # pseudo code i=2 lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while i1000: i**=2 lst.append(i) usually I

Re: shelve seg error

2005-12-06 Thread Fredrik Lundh
Philippe C. Martin wrote: This code however works, which seems to me means the problem is with the default database used by shelve ... which one is it ? http://docs.python.org/lib/module-anydbm.html /F -- http://mail.python.org/mailman/listinfo/python-list

Re: extract python install info from registry

2005-12-06 Thread Laszlo Zsolt Nagy
There's more to it than that... isn't there? I've used _winreg and the win32 extensions in the past when working with the registry. I thought perhaps someone had already scripted something to extract this info. Ok, if you need to get all changes in the registry, you can use regdiff.

Re: windows installer problems

2005-12-06 Thread Laszlo Zsolt Nagy
[EMAIL PROTECTED] wrote: Hi, I'm trying to install Python on Windows 2000 Server using remote desktop. I log as a user that is in administrators group. Instalator starts, I select default installation directory, on the next screen with parts to install I click just next. Than blicks screen with

Re: extract python install info from registry

2005-12-06 Thread gene tani
There's more to it than that... isn't there? I've used _winreg and the win32 extensions in the past when working with the registry. I thought perhaps someone had already scripted something to extract this info. Yes, a small firm named Microsoft has done this (but not tested w/2.4):

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread D H
Daniel Schüle wrote: Hello NG, I am wondering if there were proposals or previous disscussions in this NG considering using 'while' in comprehension lists # pseudo code i=2 lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while i1000: i**=2

Re: iron python exe problem

2005-12-06 Thread D H
[EMAIL PROTECTED] wrote: Hello, I have test.py: print 'hello' I compile using iron python the result is test.exe I have got error message when I tried to call test.exe telling that test.exe is not a valid win32 application. How can I solve this problem? Sincerely Yours, Pujo

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-06 Thread Jon Perez
Ivan Shevanski wrote: Looking to replace my older flavor of linux with something new. . .What are some of your favorites for python programming and anything else? Still Slackware for me. Slackware is the 'true' Linux. To paraphrase the Brooke Shields Calvin Klein ad - Nothing comes between me

Re: extract python install info from registry

2005-12-06 Thread rbt
gene tani wrote: There's more to it than that... isn't there? I've used _winreg and the win32 extensions in the past when working with the registry. I thought perhaps someone had already scripted something to extract this info. Yes, a small firm named Microsoft has done this (but not tested

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread bonono
D H wrote: Daniel Schüle wrote: Hello NG, I am wondering if there were proposals or previous disscussions in this NG considering using 'while' in comprehension lists # pseudo code i=2 lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread D H
[EMAIL PROTECTED] wrote: You can use i**=2 for i in range(1000) instead I don't think one can use assignment in list comprehension or generator expression. The limitation is very much like lambda. i**2 -- http://mail.python.org/mailman/listinfo/python-list

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Duncan Booth
Daniel Schüle wrote: I am wondering if there were proposals or previous disscussions in this NG considering using 'while' in comprehension lists # pseudo code i=2 lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while i1000: i**=2

Re: shelve seg error

2005-12-06 Thread Philippe C. Martin
Can I ask anydb which db it's using ? Regards, Philippe On Tue, 06 Dec 2005 15:07:19 +0100, Fredrik Lundh wrote: Philippe C. Martin wrote: This code however works, which seems to me means the problem is with the default database used by shelve ... which one is it ?

Re: Most SHAMEFUL one-liner:

2005-12-06 Thread Jon Perez
Jeremy Moles wrote: I was looking through some code of my today and noticed this little gem I wrote a few days back that I had totally forgot about: fill = [(%%-%ds\n % (columns - 1)) % for i in range(yoffset - 2)] ...and then I went on to do: .join(fill) Talk about using the wrong

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

2005-12-06 Thread A.M. Kuchling
On 5 Dec 2005 14:10:00 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, I was running Python-2.4.1 so I upgraded to 2.4.2 and guess what? The docs still reference the old Howto. Perhaps you meant to say will be fixed in 2.5 rather than has been fixed? The docs reference the

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Daniel Schüle
D H wrote: [EMAIL PROTECTED] wrote: You can use i**=2 for i in range(1000) instead I don't think one can use assignment in list comprehension or generator expression. The limitation is very much like lambda. i**2 lst=[i**2 for i in range(1000)] you will get a list with 1000 items

Re: shelve seg error

2005-12-06 Thread Fredrik Lundh
Philippe C. Martin wrote: Can I ask anydb which db it's using ? the page says If the database file already exists, the whichdb module is used to determine its type and the appropriate module is used; if it does not exist, the first module listed above that can be imported is used

Re: how to handle two forms in cgi?

2005-12-06 Thread lli
Steve, You are right. I just test it. If users login application sucessfully, then they can see hidden values by view source. Next time they can use URL path ? key = value to open the second form. I will use session to handle it. By the way, do you write a book Python Web Programming? It is on my

Re: how to handle two forms in cgi?

2005-12-06 Thread lli
Thank you, fuzzyman. LLi -- http://mail.python.org/mailman/listinfo/python-list

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread bonono
Daniel Schüle wrote: D H wrote: [EMAIL PROTECTED] wrote: You can use i**=2 for i in range(1000) instead I don't think one can use assignment in list comprehension or generator expression. The limitation is very much like lambda. i**2 lst=[i**2 for i in range(1000)] you

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Daniel Schüle
hi, [...] # pseudo code i=2 lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while i1000: i**=2 lst.append(i) Neither of these loops would terminate until memory is exhausted. Do you have a use case for a 'while' in a list comprehension which

Re: Bitching about the documentation...

2005-12-06 Thread A.M. Kuchling
On Mon, 05 Dec 2005 20:56:50 GMT, Bengt Richter [EMAIL PROTECTED] wrote: A little more effort could present the referrer page with clickable paragraphs and other elements, to zoom in to what the commenter wants to comment on. And an automatic diff could be prepared for editors, and

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2005-12-06 Thread Pascal Bourguignon
Xah Lee [EMAIL PROTECTED] writes: i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality of its documentation, it is a impeccability. it has or

Re: Iterating over test data in unit tests

2005-12-06 Thread Scott David Daniels
Ben Finney wrote: Ben Finney [EMAIL PROTECTED] wrote: Summary: I'm looking for idioms in unit tests for factoring out repetitive iteration over test data. Thanks to those who've offered suggestions, especially those who suggested I look at generator functions. This leads to:: Here's

Re: XML and namespaces

2005-12-06 Thread Fredrik Lundh
Alan Kennedy wrote: [Fredrik Lundh] my point was that (unless I'm missing something here), there are at least two widely used implementations (libxml2 and the 4DOM domlette stuff) that don't interpret the spec in this way. Libxml2dom is of alpha quality, according to its CheeseShop page

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-06 Thread Zeljko Vrba
On 2005-12-02, Micah Elliott [EMAIL PROTECTED] wrote: On Dec 02, Dave Hansen wrote: Python recognizes the TAB character as valid indentation. TAB characters are evil. They should be banned from Python source code. AGREE! AGREE! AGREE! The day TABs are banned from the source, I drop

ANN: Leo 4.4a4 released

2005-12-06 Thread Edward K. Ream
Leo 4.4 alpha 4 is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458package_id=29106 To learn about Leo see http://webpages.charter.net/edreamleo/intro.html Leo 4.4 a4 redraws the screen more quickly, corrects numerous bugs in the 4.4 code base, and introduces

Re: Usenet falsehoods (was Re: Bitching about the documentation...)

2005-12-06 Thread skip
Hmm, I though he explained it: 1) Not using your real name. 2) A yahoo, aol, or hotmail address. In the ancient and hallowed (by net standards) history of Usenet, both of these (particularly the first one) have been pretty good predictors of

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2005-12-06 Thread Ulrich Hobelmann
Pascal Bourguignon wrote: Do you have an Approved by Xah Lee seal logo they could put on their web page? Funny, that'd *exactly* mirror the opinion I have of PHP :D (btw, why is this posted to every newsgroup EXCEPT a PHP one? make us feel good?) -- Majority, n.: That quality that

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Duncan Booth
Daniel Schüle wrote: hi, [...] # pseudo code i=2 lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while i1000: i**=2 lst.append(i) Neither of these loops would terminate until memory is exhausted. Do you have a use case for a 'while' in a

Re: Bitching about the documentation...

2005-12-06 Thread A.M. Kuchling
On Tue, 6 Dec 2005 00:05:38 -0500, François Pinard [EMAIL PROTECTED] wrote: It's a relatively recent phenomenon that maintainers go berzerk, foaming at the mouth over forms, borders, colors, and various other mania! :-) It's largely to ensure that the ideas aren't lost. E-mail sits

Re: XML and namespaces

2005-12-06 Thread Alan Kennedy
[Fredrik Lundh] but isn't libxml2dom just a binding for libxml2? as I mention above, I had libxml2 in mind when I wrote widely used, not the libxml2dom binding itself. No, libxml2dom is Paul Boddie's DOM API compatibility layer on top of the cpython bindings for libxml2. From the CheeseShop

SNMPV3

2005-12-06 Thread Jacek Popławski
Do you have any experience with Python in SNMPv3 area? I just realized that pySNMP we are using supports only v1 and v2c, development version probably supports SNMPv3 but I am unable to find any v3-specific documentation, could you help me? Is there any other solution than pySNMP? --

Re: how to handle two forms in cgi?

2005-12-06 Thread Steve Holden
[EMAIL PROTECTED] wrote: Steve, You are right. I just test it. If users login application sucessfully, then they can see hidden values by view source. Next time they can use URL path ? key = value to open the second form. I will use session to handle it. By the way, do you write a book

Re: Tabs bad

2005-12-06 Thread Paul McNett
Björn Lindström wrote: Paul Rubin http://[EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Björn Lindström) writes: Actually using tabs for eight spaces and then filling out with spaces to the correct indentation is the convention for Emacs Lisp. Of course, since everyone coding Emacs Lisp does

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Steven Bethard
Daniel Schüle wrote: I am wondering if there were proposals or previous disscussions in this NG considering using 'while' in comprehension lists # pseudo code i=2 lst=[i**=2 while i1000] I haven't had much need for anything like this. Can't you rewrite with a list comprehension

Re: Tabs bad

2005-12-06 Thread Christophe
Paul McNett a écrit : Björn Lindström wrote: Paul Rubin http://[EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Björn Lindström) writes: Actually using tabs for eight spaces and then filling out with spaces to the correct indentation is the convention for Emacs Lisp. Of course, since

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread bonono
Duncan Booth wrote: Daniel Schüle wrote: hi, [...] # pseudo code i=2 lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while i1000: i**=2 lst.append(i) Neither of these loops would terminate until memory is exhausted. Do you

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-06 Thread Christophe
Zeljko Vrba a écrit : On 2005-12-02, Micah Elliott [EMAIL PROTECTED] wrote: On Dec 02, Dave Hansen wrote: Python recognizes the TAB character as valid indentation. TAB characters are evil. They should be banned from Python source code. AGREE! AGREE! AGREE! The day TABs are banned

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Steve Holden
Daniel Schüle wrote: hi, [...] # pseudo code i=2 lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while i1000: i**=2 lst.append(i) Neither of these loops would terminate until memory is exhausted. Do you have a use case for a 'while' in a list

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2005-12-06 Thread Sherm Pendley
Ulrich Hobelmann [EMAIL PROTECTED] writes: btw, why is this posted to every newsgroup EXCEPT a PHP one? Xah's a pretty well-known troll in these parts. I suppose he thinks someone is going to take the bait and rush to defend the other languages or some such nonsense. sherm-- -- Cocoa

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Carsten Haese
On Tue, 2005-12-06 at 10:44, Steve Holden wrote: Daniel Schüle wrote: i=2 lst=[] while i1000: i**=2 lst.append(i) unless I am missing something obvious, I can not see why the loop should not terminate In that case, kindly explain how the condition i1000 can become

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Duncan Booth
Steve Holden wrote: lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while i1000: i**=2 lst.append(i) ... Don't you have an interpreter you could run the code in to verify that it does indeed loop interminably? You seem to be assuming that the

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Chris F.A. Johnson
On 2005-12-06, Steve Holden wrote: Daniel Schüle wrote: hi, [...] # pseudo code i=2 lst=[i**=2 while i1000] of course this could be easily rewritten into i=2 lst=[] while i1000: i**=2 lst.append(i) Neither of these loops would terminate until memory is exhausted. Do you have

Re: tricky time interval billing problem

2005-12-06 Thread pruebauno
First of all, you need to use ordering to ensure that the database gives you the most convenient order for processing, as this will make your computations much easier. So I'd suggest sorting by clientNumber, ServiceNumber, Begindate and Enddate. That way you can consider each service

Call for a cooperation

2005-12-06 Thread Giandomenico Sica
Dear all, I'm a PhD researcher in logic at the University of Leiden in Holland. At the present I'm doing a work about the implementation of some parts of the Braille code related to the representation of the logical and mathematical symbols. In order to the well development of this work I will

Re: SNMPV3

2005-12-06 Thread py
the most recent version of PySNMP (like 4.1.x) has SNMP v3 support. (not sure if its 100% or not...check with developer). Anyhow I think the documentation explains how to use PySNMP (http://pysnmp.sourceforge.net/docs/4.1.x/index.html) i think the interface is common amongst the different

Re: XML and namespaces

2005-12-06 Thread Paul Boddie
Alan Kennedy wrote: Libxml2dom is of alpha quality, according to its CheeseShop page anyway. Given that I gave it that classification, let me explain that its alpha status is primarily justified by the fact that it doesn't attempt to cover the entire DOM API. As I mentioned in my original

Re: iron python exe problem

2005-12-06 Thread [EMAIL PROTECTED]
Hello, I run exactly inside IronPython-0.9.5\bin where IronPython.dll exist. I've already uninstalled my .net 1.1 so there is onle .net 2.0 pujo -- http://mail.python.org/mailman/listinfo/python-list

Documentation suggestions

2005-12-06 Thread A.M. Kuchling
Here are some thoughts on reorganizing Python's documentation, with one big suggestion. The tutorial seems to be in pretty good shape because Raymond Hettinger has been keeping it up to date. It doesn't cover everything, but it's a solid introduction, and if people don't find it works for them,

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Bengt Richter
On 6 Dec 2005 07:41:45 -0800, [EMAIL PROTECTED] wrote: If one really wants a very messy one-liner, it is possible import operator x=3D[2] lst=3Dlist(((operator.setitem(x,0,x[0]**2),x[0])[1] for _ in xrange(1000) if x[0] 1000 or iter([]).next())) Or list(iter(lambda

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread Steve Holden
Carsten Haese wrote: On Tue, 2005-12-06 at 10:44, Steve Holden wrote: Daniel Schüle wrote: i=2 lst=[] while i1000: i**=2 lst.append(i) unless I am missing something obvious, I can not see why the loop should not terminate In that case, kindly explain how the condition i1000 can

Re: i=2; lst=[i**=2 while i1000]

2005-12-06 Thread bonono
Bengt Richter wrote: On 6 Dec 2005 07:41:45 -0800, [EMAIL PROTECTED] wrote: If one really wants a very messy one-liner, it is possible import operator x=3D[2] lst=3Dlist(((operator.setitem(x,0,x[0]**2),x[0])[1] for _ in xrange(1000) if x[0] 1000 or iter([]).next())) Or

Re: Documentation suggestions

2005-12-06 Thread Ben Sizer
A.M. Kuchling wrote: The tutorial seems to be in pretty good shape because Raymond Hettinger has been keeping it up to date. It doesn't cover everything, but it's a solid introduction, and if people don't find it works for them, they have lots of alternative books. No suggestions here. The

  1   2   3   >