Re: Reading a large csv file

2009-06-23 Thread Terry Reedy
Mag Gam wrote: Yes, the system has 64Gig of physical memory. drool ;-). What I meant was, is it possible to load to a hdf5 dataformat (basically NumPy array) without reading the entire file at first? I would like to splay to disk beforehand so it would be a bit faster instead of having 2 copi

Re: Measuring Fractal Dimension ?

2009-06-23 Thread Mark Dickinson
On Jun 23, 3:52 am, Steven D'Aprano wrote: > On Mon, 22 Jun 2009 13:43:19 -0500, David C. Ullrich wrote: > > In my universe the standard definition of "log" is different froim what > > log means in a calculus class > > Now I'm curious what the difference is. It's just the usual argument about whe

Re: GNUstep and Python

2009-06-23 Thread Eric Brunel
Diez B. Roggisch wrote: > Paul Watson schrieb: >> Has anyone used GNUstep? >> >> In addition to Objective-C, there are Java and Ruby bindings. >> >> Has anyone created a Python binding to GNUstep? > > There is the pyobjc-binding for OSX, maybe that's suitable for GNUStep. Apparently, it's not: The

Re: Open source python projects

2009-06-23 Thread Michael Ströder
saurabh wrote: > I am an experienced C programmer and recently dived into python, > I have developed an instant love for it. > I have been doing some routine scripting for day to day admin tasks,also > have done some Tkinter and socket programming using python. > > I am looking for some open sour

Re: launch a .py file from a batch file

2009-06-23 Thread Paul Moore
2009/6/23 C M : >> Assuming you're running on Windows XP, try the following line in your >> batch file: >> @start path\MyPythonApp.pyw >> >> That's of course after you rename your script to a pyw extension.  That's >> associated with pythonw, which doesn't need a command window. > > Well, I renamed

Re: Error in reg dll

2009-06-23 Thread Girish
Hi, somehow I fixed the issue related to error code 0xc005. Now I am getting a different error code while registering DLL.. it says: "DllRegisrerServer in Dspacvce.dll Failed. Reyurn Code was: 0x80040201" On Jun 20, 8:15 am, "Gabriel Genellina" wrote: > En Tue, 16 Jun 2009 02:09:57 -0300,Gir

How to find info about python 3.x extension module availability?

2009-06-23 Thread Francesco Bochicchio
Hi all, is there any site that reports the current porting (to Python 3.x) status of the main non-standard extension modules (such as pygtk, pywin32, wxpython, ...) ? I think such information would be very useful for people - like me - which are tryiing to decide how/when/if to port existing scrip

Re: Idioms and Anti-Idioms Question

2009-06-23 Thread Lawrence D'Oliveiro
In message , Peter Billam wrote: > Damian Conway, in Perl Best Practices, puts forward a clear argument > for breaking *before* the operator: Except in JavaScript, where you have no choice. -- http://mail.python.org/mailman/listinfo/python-list

Re: UnicodeDecodeError: problem when path contain folder start withcharacter 'u

2009-06-23 Thread aberry
thanks all for help... actually this was in old code having 'unicode_escape' . i hope it was there to handle path which may contain localized chars... but removing unicode_escape' it worked fine... :) rgds, aberry Mark Tolonen-3 wrote: > > > "aberry" wrote in message > news:24146775.p...@t

I look for private Python Index server on my local network... What do you use ?

2009-06-23 Thread Klein Stéphane
Hi, I wonder what Python Index server (like as pypi.python.org) do you use in your corporation for handle your private python eggs ? I found three solutions : * http://pypi.python.org/pypi/basketweaver/0.1.2-r6 * http://pypi.python.org/pypi/pypi/2005-08-01 * http://pypi.python.org/pypi/EggBaske

Authenticating to web service using https and client certificate

2009-06-23 Thread jakecjacobson
Hi, I need to post some XML files to a web client that requires a client certificate to authenticate. I have some code that works on posting a multipart form over http but I need to modify it to pass the proper certificate and post the XML file. Is there any example code that will point me in th

Re: launch a .py file from a batch file

2009-06-23 Thread Dave Angel
Paul Moore wrote: 2009/6/23 C M : Assuming you're running on Windows XP, try the following line in your batch file: @start path\MyPythonApp.pyw That's of course after you rename your script to a pyw extension. That's associated with pythonw, which doesn't need a command window. Well

C-extension 2 times slower than exe

2009-06-23 Thread Rolf Wester
Hi, I have a C++ program that I would like to steer using Python. I made the wrapper using swig and linked the code (without the main function) into a shared object. My Python script loads the extension and calls a function of the C-extension, the rest runs entirely within the C-extension. For com

Re: C-extension 2 times slower than exe

2009-06-23 Thread Philip Semanchuk
On Jun 23, 2009, at 9:51 AM, Rolf Wester wrote: Hi, I have a C++ program that I would like to steer using Python. I made the wrapper using swig and linked the code (without the main function) into a shared object. My Python script loads the extension and calls a function of the C-extensio

Re: C-extension 2 times slower than exe

2009-06-23 Thread Rolf Wester
Philip Semanchuk wrote: > > On Jun 23, 2009, at 9:51 AM, Rolf Wester wrote: > >> Hi, >> >> I have a C++ program that I would like to steer using Python. I made the >> wrapper using swig and linked the code (without the main function) into >> a shared object. My Python script loads the extension a

Re: UnicodeDecodeError: problem when path contain folder startwithcharacter 'u

2009-06-23 Thread Mark Tolonen
"aberry" wrote in message news:24164207.p...@talk.nabble.com... Mark Tolonen-3 wrote: "aberry" wrote in message news:24146775.p...@talk.nabble.com... I am facing an error on Unicode decoding of path if it contain a folder/file name starting with character 'u' . Here is what I did in IDLE

Re: walking a directory with very many files

2009-06-23 Thread Mel
Steven D'Aprano wrote: > Lawrence D'Oliveiro wrote: > >>> Ok, now pipe ls to less, take three days to browse through all the >>> filenames to locate the file you want to see. >> >> Sounds like you're approaching the issue with a GUI-centric mentality, >> which is completely hopeless at dealing w

Re: I look for private Python Index server on my local network... What do you use ?

2009-06-23 Thread Jeff McNeil
On Jun 23, 7:47 am, Klein Stéphane wrote: > Hi, > > I wonder what Python Index server (like as pypi.python.org) do you use in > your corporation for handle your private python eggs ? > > I found three solutions : > > *http://pypi.python.org/pypi/basketweaver/0.1.2-r6 > *http://pypi.python.org/pypi

Re: How to find info about python 3.x extension module availability?

2009-06-23 Thread Francesco Bochicchio
On 23 Giu, 12:59, Francesco Bochicchio wrote: > Hi all, > > is there any site that reports the current porting (to Python 3.x) > status of the main non-standard extension modules (such as pygtk, > pywin32, wxpython, ...) ? > I think such information would be very useful for people - like me - > wh

Help with dictionaries and multidimensial lists

2009-06-23 Thread Cameron Pulsford
Hey all, I have a dictionary that looks like this (small example version) {(1, 2): 0} named a so I can do a[1,2] which returns 0. What I also have is a list of coordinates into a 2 dimensional array that might look like this b = [[1,2]]. Is there anyway I can call a[b[0]] and have it return 0? --

Re: [Mac] file copy

2009-06-23 Thread Diez B. Roggisch
Tobias Weber wrote: > Hi, > which is the best way to copy files on OS X? I want to preserve resource > forks and extended attributes. Are these still relevant on OSX? I've always only copied files directly, and never had any troubles. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Procedures

2009-06-23 Thread J. Cliff Dyer
Please keep the discussion on-list. (Reply-all, rather than just replying to me.) On Mon, 2009-06-22 at 15:36 -0700, Greg Reyna wrote: > It's not the error that concerned me. The fact that there is an > error of this type makes clear that there's something wrong with the > way the scripts are

Re: [Mac] file copy

2009-06-23 Thread Philip Semanchuk
On Jun 23, 2009, at 10:54 AM, Diez B. Roggisch wrote: Tobias Weber wrote: Hi, which is the best way to copy files on OS X? I want to preserve resource forks and extended attributes. Are these still relevant on OSX? I've always only copied files directly, and never had any troubles.

Re: How to find info about python 3.x extension module availability?

2009-06-23 Thread Jeff McNeil
On Jun 23, 6:59 am, Francesco Bochicchio wrote: > Hi all, > > is there any site that reports the current porting (to Python 3.x) > status of the main non-standard extension modules (such as pygtk, > pywin32, wxpython, ...) ? > I think such information would be very useful for people - like me - >

Re: Idioms and Anti-Idioms Question

2009-06-23 Thread Gabriel Genellina
En Mon, 22 Jun 2009 20:34:40 -0300, Miles Kaufmann escribió: On Jun 22, 2009, at 12:14 AM, Ben Charrow wrote: What is subtly wrong about this piece of code? I can't see any bugs and can't think of subtle gotchas (e.g. the '\' is removed or the lines become separated, because in both cases

Re: Help with dictionaries and multidimensial lists

2009-06-23 Thread Jaime Fernandez del Rio
On Tue, Jun 23, 2009 at 4:45 PM, Cameron Pulsford wrote: > Hey all, I have a dictionary that looks like this (small example version) > {(1, 2): 0} named a > > so I can do a[1,2] which returns 0. What I also have is a list of > coordinates into a 2 dimensional array that might look like this b = > [

Re: Idioms and Anti-Idioms Question

2009-06-23 Thread Carl Banks
On Jun 21, 9:14 pm, Ben Charrow wrote: > I have a question about the "Using Backslash to Continue Statements" in the > howto "Idioms and Anti-Idioms in Python" > (http://docs.python.org/howto/doanddont.html#using-backslash-to-contin...) > > It says: > > "...if the code was: > > value = foo.bar()['

Re: Help with dictionaries and multidimensial lists

2009-06-23 Thread Cameron Pulsford
Thanks! On Tue, Jun 23, 2009 at 11:29 AM, Jaime Fernandez del Rio < jaime.f...@gmail.com> wrote: > On Tue, Jun 23, 2009 at 4:45 PM, Cameron > Pulsford wrote: > > Hey all, I have a dictionary that looks like this (small example version) > > {(1, 2): 0} named a > > > > so I can do a[1,2] which retu

Re: Converting Python code to C/C++

2009-06-23 Thread Kurt Smith
On Mon, Jun 22, 2009 at 9:49 PM, Andras Pikler wrote: > Hi! > > > > Short: I need to turn a Python program that I (mostly) wrote into C code, > and I am at a loss. > > > > Long: I’m doing research/programming for a professor, and we are working > with MIDI files (a type of simple music file). The r

Re: Idioms and Anti-Idioms Question

2009-06-23 Thread J. Cliff Dyer
On Mon, 2009-06-22 at 22:52 +, Peter Billam wrote: > I wonder on what grounds PEP8 > says "The preferred place to break around a binary operator is > *after* the operator" ? > Perhaps it's just the "continutation marker" rationale? > > Regards, Peter > > -- > Peter Billam www.pjb.com

help!

2009-06-23 Thread tanner barnes
Python Version: 2.6 GUI toolkit: WxPython Ok so i am writing a program for my school's football team. In one part there is a notebook with 4 tabs for that stats. In each tab there are 4 txtctrl's with a + and - for each. The problem im having is that i need when you click the + or - button tha

Re: How to find info about python 3.x extension module availability?

2009-06-23 Thread Francesco Bochicchio
On 23 Giu, 17:12, Jeff McNeil wrote: > On Jun 23, 6:59 am, Francesco Bochicchio wrote: > > > > > > > Hi all, > > > is there any site that reports the current porting (to Python 3.x) > > status of the main non-standard extension modules (such as pygtk, > > pywin32, wxpython, ...) ? > > You can pul

Re: [Mac] file copy

2009-06-23 Thread Philip Semanchuk
On Jun 23, 2009, at 12:20 PM, Tobias Weber wrote: In article , Philip Semanchuk wrote: I think resource forks are now stored as extended attributes, and No I'll take your word for it because I was just guessing, but then why do the xattrs in the example I gave show a resource fork?

Re: reply to OT diversion (was: What is the best method to match a pattern in set of lines

2009-06-23 Thread Aahz
In article <024d7a38$0$20654$c3e8...@news.astraweb.com>, Steven D'Aprano wrote: >Dennis Lee Bieber wrote: >> On Sat, 20 Jun 2009 13:47:24 -0700 (PDT), Bearophile >> declaimed the following in >> gmane.comp.python.general: >>> >>> Dennis Lee Bieber, may I ask why most or all your posts are set t

Re: Open source python projects

2009-06-23 Thread Aahz
In article <4a3fde13$0$48239$14726...@news.sunsite.dk>, saurabh wrote: > >I am an experienced C programmer and recently dived into python, >I have developed an instant love for it. >I have been doing some routine scripting for day to day admin tasks,also >have done some Tkinter and socket progra

Dynamic method invocation

2009-06-23 Thread jythonuser
Hi I am new to jythong and was wondering if/how I can do the following - a) register a java object with a given name with jython interpreter using set method b) call methods on the java object - but the methods may not exist on the object, so I would like to call from jython a generic method that

Re: reply to OT diversion

2009-06-23 Thread MRAB
Aahz wrote: [snip] Your response to Dennis seems at least a little over-the-top. So far as I'm concerned, anyone who joined Usenet after DejaNews is a latecomer; trying to change the cultural beliefs of those who were here first is asserting your superiority. I happen to disagree with people wh

Re: Measuring Fractal Dimension ?

2009-06-23 Thread Lie Ryan
Mark Dickinson wrote: > On Jun 23, 3:52 am, Steven D'Aprano > wrote: >> On Mon, 22 Jun 2009 13:43:19 -0500, David C. Ullrich wrote: >>> In my universe the standard definition of "log" is different froim what >>> log means in a calculus class >> Now I'm curious what the difference is. > > It's jus

Re: Reading a large csv file

2009-06-23 Thread python
Mag, If your source data is clean, it may also be faster for you to parse your input files directly vs. use the CSV module which may(?) add some overhead. Check out the struct module and/or use the split() method of strings. We do a lot of ETL processing with flat files and on a slow single core

Re: Idioms and Anti-Idioms Question

2009-06-23 Thread Lie Ryan
Peter Billam wrote: > On 2009-06-22, Lie Ryan wrote: >> Ben Charrow wrote: >>> value = foo.bar()['first'][0]*baz.quux(1, 2)[5:9] \ >>> + calculate_number(10, 20)*forbulate(500, 360) >>> What is subtly wrong about this piece of code? I can't see any bugs and >>> can't think of subtle gotch

Re: launch a .py file from a batch file

2009-06-23 Thread Che M
On Jun 23, 5:30 am, Paul Moore wrote: > 2009/6/23 C M : > > >> Assuming you're running on Windows XP, try the following line in your > >> batch file: > >> @start path\MyPythonApp.pyw > > >> That's of course after you rename your script to a pyw extension.  That's > >> associated with pythonw, whic

Re: Perl's @foo[3,7,1,-1] ?

2009-06-23 Thread Lie Ryan
Jean-Michel Pichavant wrote: > Lie Ryan wrote: >> Jean-Michel Pichavant wrote: >> >> >> >> >>> Maybe I've been a little bit too dictatorial when I was saying that >>> renaming namespaces should be avoided. >>> Sure your way of doing make sense. In fact they're 2 main purposes of >>> having stron

Re: [Mac] file copy

2009-06-23 Thread Michael Torrie
Tobias Weber wrote: >> Apple's version of cp is aware of extended attributes. > > Yes, but the manual doesn't say to what extent, nor anything about ACLs mv, cp, etc (but not rsync) are completely aware of resource forks from Tiger on. This is well documented and known on the Mac forums. So shu

Re: C-extension 2 times slower than exe

2009-06-23 Thread Michael Torrie
Rolf Wester wrote: > The runtime is about 2.5 sec and 5.0 sec respectively. I not only use > the time command to measure the time consumed but I also measure the > time within the C-code using clock() and get similar result. So the > Python startup time is not the reason for the runtime difference

Re: Help with dictionaries and multidimensial lists

2009-06-23 Thread Terry Reedy
Cameron Pulsford wrote: Hey all, I have a dictionary that looks like this (small example version) {(1, 2): 0} named a so I can do a[1,2] which returns 0. What I also have is a list of coordinates into a 2 dimensional array that might look like this b = [[1,2]]. Is there anyway I can call a[b[

Re: [Mac] file copy

2009-06-23 Thread Jerry Hill
On Tue, Jun 23, 2009 at 2:28 PM, Michael Torrie wrote: > mv, cp, etc (but not rsync) are completely aware of resource forks from > Tiger on.  This is well documented and known on the Mac forums. > > So shutils should work just fine for copying, moving, etc. I don't think that's true. The shutil d

Re: Dynamic method invocation

2009-06-23 Thread Diez B. Roggisch
jythonuser schrieb: Hi I am new to jythong and was wondering if/how I can do the following - a) register a java object with a given name with jython interpreter using set method b) call methods on the java object - but the methods may not exist on the object, so I would like to call from jython

Re: [Mac] file copy

2009-06-23 Thread Miles Kaufmann
On Jun 23, 2009, at 9:52 AM, Tobias Weber wrote: Hi, which is the best way to copy files on OS X? I want to preserve resource forks and extended attributes. ... bin/cp -p This. cp -p, mv, rsync -E, tar, and other utilities will use the copyfile(3) API to preserve extended attributes, r

Re: help!

2009-06-23 Thread Benjamin Kaplan
On Tue, Jun 23, 2009 at 12:19 PM, tanner barnes wrote: > Python Version: 2.6 > GUI toolkit: WxPython > > Ok so i am writing a program for my school's football team. In one part > there is a notebook with 4 tabs for that stats. In each > tab there are 4 txtctrl's with a + and - for each. The problem

Trouble with running java using Popen

2009-06-23 Thread Edward Grefenstette
I have a java prog I need to run at some point during the execution of a python module. The path to the folder containing the all the relevant java stuff (which runs fine from the command line) is stored in pkgpath. The relevant code is this: >>> os.chdir(pkgpath) >>> arglist = "java -Xmx1024m Se

Re: re.NONE

2009-06-23 Thread 1x7y2z9
On Jun 22, 5:56 pm, Lawrence D'Oliveiro wrote: > In message > c77d-4a47-8cb4-7dd916d69...@s1g2000prd.googlegroups.com>, 1x7y2z9 wrote: > > Not sure if this is defined in a later version, but it would be nice > > to define re.NONE = 0 in the re module. > > Do so: > >     re.NONE = 0 > > Problem so

Re: launch a .py file from a batch file

2009-06-23 Thread Dave Angel
Che M wrote: On Jun 23, 5:30 am, Paul Moore wrote: 2009/6/23 C M : Assuming you're running on Windows XP, try the following line in your batch file: @start path\MyPythonApp.pyw That's of course after you rename your script to a pyw extension. That's associated with pythonw,

Re: Trouble with running java using Popen

2009-06-23 Thread norseman
Edward Grefenstette wrote: I have a java prog I need to run at some point during the execution of a python module. The path to the folder containing the all the relevant java stuff (which runs fine from the command line) is stored in pkgpath. The relevant code is this: os.chdir(pkgpath) arglis

Re: Trouble with running java using Popen

2009-06-23 Thread Chris Rebert
On Tue, Jun 23, 2009 at 2:29 PM, Edward Grefenstette wrote: > I have a java prog I need to run at some point during the execution of > a python module. > > The path to the folder containing the all the relevant java stuff > (which runs fine from the command line) is stored in pkgpath. The > relevan

Re: Trouble with running java using Popen

2009-06-23 Thread Diez B. Roggisch
Edward Grefenstette schrieb: I have a java prog I need to run at some point during the execution of a python module. The path to the folder containing the all the relevant java stuff (which runs fine from the command line) is stored in pkgpath. The relevant code is this: os.chdir(pkgpath) argl

Python 3.0.1 and mingw

2009-06-23 Thread smartmobili
I wanted to know if you have some patch to compile python 3.x on mingw platform because I found some but doesn't work very well : make gcc -o python.exe \ Modules/python.o \ libpython3.0.a-lm Could not find platform independent libraries Could not find platform dependent libraries Co

IDLE / Python 2.5 under Jaunty

2009-06-23 Thread duncan smith
A little off-topic perhaps, but I can't think of anywhere more likely to contain people with answers. I've just upgraded to Jaunty Jackalope where Python 2.6 is the default Python version. I'm still developing under 2.5, but IDLE now refuses to respond to left click events (for code editing, menu

Re: C-extension 2 times slower than exe

2009-06-23 Thread Carl Banks
On Jun 23, 7:20 am, Rolf Wester wrote: > Philip Semanchuk wrote: > > > On Jun 23, 2009, at 9:51 AM, Rolf Wester wrote: > > >> Hi, > > >> I have a C++ program that I would like to steer using Python. I made the > >> wrapper using swig and linked the code (without the main function) into > >> a shar

Forwarding keyword arguments

2009-06-23 Thread Robert Dailey
Suppose I have 2 functions like so: def Function2( **extra ): # do stuff def Function1( **extra ): Function2( extra ) As you can see, I would like to forward the additional keyword arguments in variable 'extra' to Function2 from Function1. How can I do this? I'm using Python 3.0.1 -- http

Re: IDLE / Python 2.5 under Jaunty

2009-06-23 Thread David Lyon
On Wed, 24 Jun 2009 00:55:14 +0100, duncan smith wrote: > Does anyone know how I can configure Boa to use wxPython 2.8.9.1? Does > anyone know if it's possible to configure the Python version under SPE? It definitely is possible. In fact you need to use wxpython 2.8 with Boa. I had a similar p

Re: Forwarding keyword arguments

2009-06-23 Thread Stephen Hansen
> Suppose I have 2 functions like so: > > def Function2( **extra ): > # do stuff > > def Function1( **extra ): > Function2( extra ) > > As you can see, I would like to forward the additional keyword > arguments in variable 'extra' to Function2 from Function1. How can I > do this? I'm using Pyth

Re: Forwarding keyword arguments

2009-06-23 Thread Gabriel Genellina
En Tue, 23 Jun 2009 20:57:36 -0300, Robert Dailey escribió: Suppose I have 2 functions like so: def Function2( **extra ): # do stuff def Function1( **extra ): Function2( extra ) As you can see, I would like to forward the additional keyword arguments in variable 'extra' to Function2

Re: Forwarding keyword arguments

2009-06-23 Thread Robert Dailey
On Jun 23, 7:34 pm, "Gabriel Genellina" wrote: > En Tue, 23 Jun 2009 20:57:36 -0300, Robert Dailey   > escribió: > > > Suppose I have 2 functions like so: > > > def Function2( **extra ): > >    # do stuff > > > def Function1( **extra ): > >    Function2( extra ) > > > As you can see, I would like

Re: Forwarding keyword arguments

2009-06-23 Thread Ben Finney
Robert Dailey writes: > Suppose I have 2 functions like so: > > def Function2( **extra ): ># do stuff > > def Function1( **extra ): >Function2( extra ) (Style note: The Python style guide, PEP 8, would have the above code written as:: def function2(**extra): # do stuff

Re: [Mac] file copy

2009-06-23 Thread Michael Torrie
Tobias Weber wrote: > Why "so"? shutil does not use bin/cp! That's good to know. I had always thought that that was what shutils did, but you're right; it does not. That said, since cp indeed *can* copy resource forks on Tiger and up, you could use subprocess to call it. Just as an aside, your

Re: walking a directory with very many files

2009-06-23 Thread Steven D'Aprano
On Tue, 23 Jun 2009 10:29:21 -0400, Mel wrote: > Steven D'Aprano wrote: > >> Lawrence D'Oliveiro wrote: >> Ok, now pipe ls to less, take three days to browse through all the filenames to locate the file you want to see. >>> >>> Sounds like you're approaching the issue with a GUI-centr

Re: Trouble with running java using Popen

2009-06-23 Thread Edward Grefenstette
Bingo. I was running the python script in GNU script, and it wasn't loading my bash config file properly. Have fixed it by altering .screenrc and now the code runs fine. Would have never guessed to look if you hadn't mentioned it, cheers! Best, Ed On Jun 23, 11:29 pm, "Diez B. Roggisch" wrote: >

Re: Measuring Fractal Dimension ?

2009-06-23 Thread Aahz
In article , Mark Dickinson wrote: >On Jun 22, 7:43=A0pm, David C. Ullrich wrote: >> >> Surely you don't say a curve is a subset of the plane and >> also talk about the integrals of verctor fields over _curves_? >> [snip rest of long response that needs a decent reply, but >> possibly not here.

Re: Python 3.0.1 and mingw

2009-06-23 Thread Kay Schluehr
On 24 Jun., 00:59, smartmobili wrote: > I wanted to know if you have some patch to compile python 3.x on mingw > platform because I found some > but doesn't work very well : > > make > > gcc -o python.exe \ > Modules/python.o \ > libpython3.0.a-lm > Could not find platform independent li

Re: Beauty and Fitness

2009-06-23 Thread Aahz
In article <7a73lrf1totc...@mid.uni-berlin.de>, Diez B. Roggisch wrote: > >My god, these days they allow just anybody to spam, even f***tards that >are to stupid to include the actual URL of the spam they want to divulge. Thank you for reposting the spam in its entirety, with special thanks for

Re: urllib2 urlopen takes too much time

2009-06-23 Thread Aahz
In article , =?UTF-8?Q?Filip_Gruszczy=C5=84ski?= wrote: > >I have encountered a performance problem using suds, which was traced >down to _socket.recv. I am calling some web services and each of them >uses about 0.2 sec and 99% of this time is spent on urllib2.urlopen, >while the rest of the call

Re: Meta question: disappearing posts (was Re: calculating a self.value, self.randomnum = normalvariate(x, y))

2009-06-23 Thread Aahz
In article , Ross Ridge wrote: >Aahz wrote: >>Piet van Oostrum wrote: >>> I notice that I see several postings on news:comp.lang.python that are >>>replies to other postings that I don't see. >> >>As stated previously, my suspicion is that at least some is caused by a >>problem with MIME

Re: IDLE / Python 2.5 under Jaunty

2009-06-23 Thread Lie Ryan
duncan smith wrote: > I've just upgraded to Jaunty Jackalope where Python 2.6 is the default > Python version. I'm still developing under 2.5, but IDLE now refuses to > respond to left click events (for code editing, menus etc. respond as > expected). If I right click, then left click I can move

Re: generator expression works in shell, NameError in script

2009-06-23 Thread ssc
On Jun 18, 10:49 am, Jon Clements wrote: > Why are you doing this? I'm assuming a code to title look up is > required (don't forget military, royal and honorable titles > etc... :) ) I'm in New Zealand. Hardly any need for military titles, rarely any for royal and damn sure none for honorable :-D

Best way to enumerate classes in a module

2009-06-23 Thread Дамјан Георгиевски
I need to programmaticaly enumerate all the classes in a given module. Currently I'm using dir(module) but the Notice on the documentation page [1] says "dir() is supplied primarily as a convenience for use at an interactive prompt" so that kind of scares me. Is there a better approach? If th

Re: walking a directory with very many files

2009-06-23 Thread Lawrence D'Oliveiro
In message , Steven D'Aprano wrote: > On Tue, 23 Jun 2009 10:29:21 -0400, Mel wrote: > >> Steven D'Aprano wrote: >> >>> Lawrence D'Oliveiro wrote: >>> > Ok, now pipe ls to less, take three days to browse through all the > filenames to locate the file you want to see. Sounds

Re: I look for private Python Index server on my local network... What do you use ?

2009-06-23 Thread Chris Withers
Klein Stéphane wrote: I wonder what Python Index server (like as pypi.python.org) do you use in your corporation for handle your private python eggs ? I found three solutions : * http://pypi.python.org/pypi/basketweaver/0.1.2-r6 * http://pypi.python.org/pypi/pypi/2005-08-01 * http://pypi.pytho

Re: Tutorial on working with Excel files in Python (without COM and crossplatform!) at EuroPython 2009

2009-06-23 Thread Chris Withers
Jeremiah Jester wrote: Chris, Do you have any online tutorial for this topic? I'm afraid not currently... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to enumerate classes in a module

2009-06-23 Thread Peter Otten
Дамјан Георгиевски wrote: > I need to programmaticaly enumerate all the classes in a given module. > Currently I'm using dir(module) but the Notice on the documentation page > [1] says "dir() is supplied primarily as a convenience for use at an > interactive prompt" so that kind of scares me. >