Re: Reading a large csv file

2009-06-22 Thread Peter Otten
Mag Gam wrote: > Yes, the system has 64Gig of physical memory. > > > 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: Reading a large csv file

2009-06-22 Thread Mag Gam
Yes, the system has 64Gig of physical memory. 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 copies in memory. On Tue, Jun

square box graph (?) API in python

2009-06-22 Thread Astan Chee
Hi, I'm trying to graph something that looks like the bottom half of this http://windirstat.info/images/windirstat.jpg I was wondering if there is any API in python or wxPython specifically to do this? I know it is possible to do calculation manually and use floatcanvas or something similar but

square box graph (?) API in python

2009-06-22 Thread Astan Chee
Hi, I'm trying to graph something that looks like the bottom half of this http://windirstat.info/images/windirstat.jpg I was wondering if there is any API in python or wxPython specifically to do this? I know it is possible to do calculation manually and use floatcanvas or something similar but

Re: Reading a large csv file

2009-06-22 Thread Horace Blegg
Do you even HAVE 14 gigs of memory? I can imagine that if the OS needs to start writing to the page file, things are going to slow down. -- http://mail.python.org/mailman/listinfo/python-list

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

2009-06-22 Thread Mark Tolonen
"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 1. >>> fp = "C:\\ab\\anil" 2. >>> unicode(fp, "unicode_escape") 3. u'C:\x07b\x07nil' 4.

Re: Re: Re: How to output a complex List object to a file.

2009-06-22 Thread Chris Rebert
On Mon, Jun 22, 2009 at 7:31 PM, bluefisher80 wrote: > Hi > > Thanks for you tip, > > I am generating some code for another python application, > > so is there a better way for code generating? Actually i just need to > generate some list objects to define EDI syntax using python. Well, I would sa

Re: Reading a large csv file

2009-06-22 Thread Steven D'Aprano
On Mon, 22 Jun 2009 23:17:22 -0400, Mag Gam wrote: > Hello All, > > I have a very large csv file 14G and I am planning to move all of my > data to hdf5. [...] > I was wondering if anyone knows of any techniques to load this file > faster? Faster than what? What are you using to load the file?

Reading a large csv file

2009-06-22 Thread Mag Gam
Hello All, I have a very large csv file 14G and I am planning to move all of my data to hdf5. I am using h5py to load the data. The biggest problem I am having is, I am putting the entire file into memory and then creating a dataset from it. This is very inefficient and it takes over 4 hours to cr

Re: Open source python projects

2009-06-22 Thread John Fabiani
pyt...@bdurham.com wrote: > Saurabh, > > 1. The Dabo crew is doing some exciting thing. Might be worth checking > out. > http://dabodev.com yes Dabo is doing a lot these days. Using wxPython for the GUI, a fast interface for data supporting SQLite, MySQL,Postgres, Firebird, MsSQL and Now a web

Converting Python code to C/C++

2009-06-22 Thread Andras Pikler
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 research deals with generating variations from a musical melody; current

Re: Re: Re: How to output a complex List object to a file.

2009-06-22 Thread bluefisher80
Hi Thanks for you tip, I am generating some code for another python application, so is there a better way for code generating? Actually i just need to generate some list objects to define EDI syntax using python. 2009-06-23 bluefisher80 发件人: Chris Rebert 发送时间: 2009-06-23 09:55:41

Re: launch a .py file from a batch file

2009-06-22 Thread C M
On Mon, Jun 22, 2009 at 8:04 PM, Dave Angel wrote: > CM wrote: > >> I'd like to launch a number of programs, one of which is a Python GUI >> app, from a batch file launcher. I'd like to click the .bat file and >> have it open all the stuff and then not show the "DOS" console. >> >> I can launch

Re: Re: How to output a complex List object to a file.

2009-06-22 Thread Chris Rebert
2009/6/22 bluefisher80 : > > Actually I think i am just looking for > > print >> myFile.py, myListObj Well, that syntax is deprecated. And you'd have to create the actual file object. And put it in a variable. So it's more like: f = file("myFile.py", "w") f.write(str(myListObj)) f.close() Howeve

Re: Re: How to output a complex List object to a file.

2009-06-22 Thread bluefisher80
Actually I think i am just looking for print >> myFile.py, myListObj 2009-06-23 bluefisher80 发件人: J. Cliff Dyer 发送时间: 2009-06-22 22:17:12 收件人: Jim Qiu 抄送: python-list 主题: Re: How to output a complex List object to a file. Have you looked at the JSON module? On Mon, 2009-06-22 at

Re: Re: How to output a complex List object to a file.

2009-06-22 Thread bluefisher80
Let me get my question more clear, I want like the "structure" object printed into another python source file, which i will use in other program. The pickled format or even JSONed format does not fullfil my requirement, does it? Do i make it clear, I still need your guides. Jim Detail ste

Re: re.NONE

2009-06-22 Thread Lawrence D'Oliveiro
In message , 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 solved. -- http://mail.python.org/mailman/listinfo/python-list

Re: launch a .py file from a batch file

2009-06-22 Thread Dave Angel
CM wrote: I'd like to launch a number of programs, one of which is a Python GUI app, from a batch file launcher. I'd like to click the .bat file and have it open all the stuff and then not show the "DOS" console. I can launch an Excel and Word file fine using, e.g.: Start "" "path/mydocument.do

Re: re.NONE

2009-06-22 Thread Xavier Ho
Rhodri wrote: They aren't talking about None, they're talking about a hypothetical re.NONE to use as a flag to re.match() and the like. There's no issue with defining that to be 0, since it is the correct value! Ah, I see. That makes more sense. Thanks. :] (... I fail at sending to mailing list

Re: re.NONE

2009-06-22 Thread Rhodri James
Re-ordered to eliminate the top-posting. On Tue, 23 Jun 2009 00:47:49 +0100, Xavier Ho wrote: On Tue, Jun 23, 2009 at 9:43 AM, MRAB wrote: 1x7y2z9 wrote: I am currently using python v2.5.2. Not sure if this is defined in a later version, but it would be nice to define re.NONE = 0 in the

re.NONE

2009-06-22 Thread Xavier Ho
(arg, MRAB, sorry, wrong address!) Defining None to 0 is a bad idea. You'll have trouble debugging later on. Ching-Yun "Xavier" Ho, Technical Artist Contact Information Mobile: (+61) 04 3335 4748 Skype ID: SpaXe85 Email: cont...@xavierho.com Website: http://xavierho.com/ On Tue, Jun 23, 2009 at

Re: re.NONE

2009-06-22 Thread MRAB
1x7y2z9 wrote: I am currently using python v2.5.2. Not sure if this is defined in a later version, but it would be nice to define re.NONE = 0 in the re module. This would be useful in cases such as: flags = re.DOTALL if dotall else re.NONE Also useful for "building up" flags by ORing with othe

Re: Open source python projects

2009-06-22 Thread Alan G Isaac
On 6/22/2009 3:40 PM saurabh apparently 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. > >

Performance problem in ndPython 2.5.2. Why ?

2009-06-22 Thread Pegasus
Hi, I'm working on a version of Stackless Python (2.5.2) for Nanodesktop PSP. The interpreter works, but it is slow. So, I want to ask this: is there any option/#define that I can pass to pyconfig.h that makes faster the interpreter ? Which are the #define that affect the performance of Stackles

Re: Open source python projects

2009-06-22 Thread Pegasus
ndPython for Nanodesktop http://www.psp-ita.com/forum/viewtopic.php?t=28323 It shall be the most advanced, professional, reliable Python interpreter for Playstation Portable but there is actually a lack of performance and we are working to identify the origin of the problem. We need help. --

Re: Idioms and Anti-Idioms Question

2009-06-22 Thread Miles Kaufmann
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 an IndentationError would be raised). Perhaps, along with o

Re: Procedures

2009-06-22 Thread Dave Angel
Greg Reyna wrote: Learning Python (on a Mac), with the massive help of Mark Lutz's excellent book, "Learning Python". What I want to do is this: I've got a Class Object that begins with a def. It's designed to be fed a string that looks like this: "scene 1, pnl 1, 3+8, pnl 2, 1+12, pnl 3,

Re: Open source python projects

2009-06-22 Thread python
Saurabh, 1. The Dabo crew is doing some exciting thing. Might be worth checking out. http://dabodev.com 2. The Py2exe project is also looking for help (and some C experience would be beneficial to this project). http://py2exe.org 3. There's a bunch of encryption code floating around in native Py

Re: Open source python projects

2009-06-22 Thread skip
Saurabh> I am looking for some open source python project preferably in Saurabh> one of the above areas (not strictly, am open to others too) to Saurabh> contribute. If you have some Windows programming experience the SpamBayes project (http://www.spambayes.org/) could use some assist

Re: Idioms and Anti-Idioms Question

2009-06-22 Thread Peter Billam
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 gotchas (e.g. the '\' is removed

Re: How to output a complex List object to a file.

2009-06-22 Thread Chris Rebert
On Mon, Jun 22, 2009 at 6:17 AM, Jim Qiu wrote: > Hi all, > > I have a object list list this: > I need to output this "structure" object into a file, how to do that ? Links for the modules mentioned: http://docs.python.org/library/pickle.html http://docs.python.org/library/json.html Cheers, Chr

re.NONE

2009-06-22 Thread 1x7y2z9
I am currently using python v2.5.2. Not sure if this is defined in a later version, but it would be nice to define re.NONE = 0 in the re module. This would be useful in cases such as: flags = re.DOTALL if dotall else re.NONE Also useful for "building up" flags by ORing with other flags. Thanks

launch a .py file from a batch file

2009-06-22 Thread CM
I'd like to launch a number of programs, one of which is a Python GUI app, from a batch file launcher. I'd like to click the .bat file and have it open all the stuff and then not show the "DOS" console. I can launch an Excel and Word file fine using, e.g.: Start "" "path/mydocument.doc" But if I

Re: wikipedia with python

2009-06-22 Thread garabik-news-2005-05
Andre Engels wrote: > On Mon, Jun 22, 2009 at 6:58 PM, zelegolas wrote: >> Let me know if it's the right place to ask. >> >> I'm looking for wiki writen with python where I can import all >> wikipedia site. >> If you have any links please let me know. > > I don't think that's possible. If you wna

Re: Measuring Fractal Dimension ?

2009-06-22 Thread Charles Yeomans
On Jun 22, 2009, at 2:16 PM, David C. Ullrich wrote: On Mon, 22 Jun 2009 10:31:26 -0400, Charles Yeomans wrote: On Jun 22, 2009, at 8:46 AM, pdpi wrote: On Jun 19, 8:13 pm, Charles Yeomans wrote: On Jun 19, 2009, at 2:43 PM, David C. Ullrich wrote: Hmm. You left out a bit in the

RE: Good books in computer science?

2009-06-22 Thread Phil Runciman
A big yes to Scott's remarks. The first law of programming is: "Write as you would be written unto". Apologies to Kingsley. Phil -Original Message- From: Scott David Daniels [mailto:scott.dani...@acm.org] Sent: Tuesday, 23 June 2009 7:14 a.m. To: python-list@python.org Subject: Re: Go

Re: Open source python projects

2009-06-22 Thread Giampaolo Rodola'
On 22 Giu, 21:40, saurabh wrote: > Hi There, > 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

Re: itertools.intersect?

2009-06-22 Thread Francis Carr
On Jun 11, 6:23 pm, Mensanator wrote: > Removing the duplicates could be a big problem. It is fairly easy to ignore duplicates in a sorted list: from itertools import groupby def unique(ordered): """Yield the unique elements from a sorted iterable. """ for key,_ in groupby(ordered):

Re: Procedures

2009-06-22 Thread J. Cliff Dyer
On Mon, 2009-06-22 at 12:13 -0700, Greg Reyna wrote: > Learning Python (on a Mac), with the massive help of Mark Lutz's > excellent book, "Learning Python". > > What I want to do is this: > I've got a Class Object that begins with a def. It's designed to be > fed a string that looks like this:

Re: fastest native python database?

2009-06-22 Thread Scott David Daniels
Lawrence D'Oliveiro wrote: ... Use Python mapping objects. Most real-world databases will fit in memory anyway. Interesting theory. Certainly true for some definitions of "most" and "real-world" (and "databases" for that matter). --Scott David Daniels scott.dani...@acm.org -- http://mail.pyt

Open source python projects

2009-06-22 Thread saurabh
Hi There, 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 source python project

Re: Measuring Fractal Dimension ?

2009-06-22 Thread Mark Dickinson
On Jun 22, 7:43 pm, 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... ] I wonder whether we can find a better pl

Procedures

2009-06-22 Thread Greg Reyna
Learning Python (on a Mac), with the massive help of Mark Lutz's excellent book, "Learning Python". What I want to do is this: I've got a Class Object that begins with a def. It's designed to be fed a string that looks like this: "scene 1, pnl 1, 3+8, pnl 2, 1+12, pnl 3, 12, pnl 4, 2+4," I'

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

2009-06-22 Thread Robert Kern
On 2009-06-22 13:31, Jean-Michel Pichavant wrote: Moreover, writing numpy instead of np is not harder for the coder than switching mentally from np to numpy for the reader. It's just about who you want to make the life easier, the coder or the reader ? It depends on the audience. For those fa

Re: Good books in computer science?

2009-06-22 Thread Scott David Daniels
Chris Jones wrote: Maybe I'm nitpicking, but the one thing I don't understand is how you practice programming. The term makes obvious sense when you're talking about your golf swing, acquiring competitive driving skills, playing tetris.. But programming..?? It is practice in the same

Re: wikipedia with python

2009-06-22 Thread ZeLegolas
On Mon, 22 Jun 2009 21:01:16 +0200, Andre Engels wrote: > On Mon, Jun 22, 2009 at 8:24 PM, ZeLegolas wrote: > >> Well sorry I was not clear. I have a wiki running with mediawiki and I >> want >> to import in a wiki written with python. > > I don't think it will work, but you could try using the

Re: wikipedia with python

2009-06-22 Thread Andre Engels
On Mon, Jun 22, 2009 at 8:24 PM, ZeLegolas wrote: > Well sorry I was not clear. I have a wiki running with mediawiki and I want > to import in a wiki written with python. I don't think it will work, but you could try using the Special:Export page. -- André Engels, andreeng...@gmail.com -- ht

Re: Help

2009-06-22 Thread Chris Withers
tanner barnes wrote: Hi i was wondering how i should go about this problem: ok so i am writing a program for my school's football team and to keep the stats for each player there is a notebook with 3 tabs that has a txtctrl and a + and - button. i need to find a way to when you click the + or -

Re: Graphical library - charts

2009-06-22 Thread cgoldberg
> I suggest you look at matplotlib. +1 Another vote Matplotlib. It has impressive graphing/plotting capabilities and is used as a Python module/library. Description from site: "matplotlib is a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats

Re: Measuring Fractal Dimension ?

2009-06-22 Thread David C . Ullrich
On Fri, 19 Jun 2009 12:40:36 -0700 (PDT), Mark Dickinson wrote: >On Jun 19, 7:43 pm, David C. Ullrich wrote: >> Evidently my posts are appearing, since I see replies. >> I guess the question of why I don't see the posts themselves >> \is ot here... > >Judging by this thread, I'm not sure that mu

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

2009-06-22 Thread Jean-Michel Pichavant
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 strong coding rules: 1/ ease the coder's life 2/ ease the rea

Re: Measuring Fractal Dimension ?

2009-06-22 Thread David C . Ullrich
On Mon, 22 Jun 2009 10:31:26 -0400, Charles Yeomans wrote: > >On Jun 22, 2009, at 8:46 AM, pdpi wrote: > >> On Jun 19, 8:13 pm, Charles Yeomans wrote: >>> On Jun 19, 2009, at 2:43 PM, David C. Ullrich wrote: >>> >>> >>> >>> >>> >>> Hmm. You left out a bit in the first definition you cite:

Re: Measuring Fractal Dimension ?

2009-06-22 Thread David C . Ullrich
On Mon, 22 Jun 2009 05:46:55 -0700 (PDT), pdpi wrote: >On Jun 19, 8:13 pm, Charles Yeomans wrote: >> On Jun 19, 2009, at 2:43 PM, David C. Ullrich wrote: >> >> >> >> >> >> > Evidently my posts are appearing, since I see replies. >> > I guess the question of why I don't see the posts themselves >

Re: Graphical library - charts

2009-06-22 Thread Lie Ryan
BJörn Lindqvist wrote: > 2009/6/22 : >> Hello, >> >> I have thousends of files with logs from monitoring system. Each file >> has some important data (numbers). I'd like to create charts using those >> numbers. Could you please suggest library which will allow creating >> such charts ? The preferr

Re: wikipedia with python

2009-06-22 Thread Andre Engels
On Mon, Jun 22, 2009 at 6:58 PM, zelegolas wrote: > Let me know if it's the right place to ask. > > I'm looking for wiki writen with python where I can import all > wikipedia site. > If you have any links please let me know. I don't think that's possible. If you wnat to import Wikipedia in a wiki,

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

2009-06-22 Thread Lie Ryan
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 strong coding rules: > 1/ ease the coder's life > 2/ ease the reader's life

Re: wikipedia with python

2009-06-22 Thread Martin
Does this help: http://www.mediawiki.org/wiki/MoinMoin On Mon, Jun 22, 2009 at 6:58 PM, zelegolas wrote: > Let me know if it's the right place to ask. > > I'm looking for wiki writen with python where I can import all > wikipedia site. > If you have any links please let me know. > > Thanks > -- >

Re: Graphical library - charts

2009-06-22 Thread Paul Simon
I suggest you look at matplotlib. It's a bit of a learning curve but will do whatever you need. I have a similar requirement and found that gnuplot did not work for me. The plots are impressive. Paul Simon wrote in message news:h1nv4q$5k...@news.dialog.net.pl... > Hello, > > I have thousend

wikipedia with python

2009-06-22 Thread zelegolas
Let me know if it's the right place to ask. I'm looking for wiki writen with python where I can import all wikipedia site. If you have any links please let me know. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Help

2009-06-22 Thread tanner barnes
Hi i was wondering how i should go about this problem: ok so i am writing a program for my school's football team and to keep the stats for each player there is a notebook with 3 tabs that has a txtctrl and a + and - button. i need to find a way to when you click the + or - button it updates th

ANN: Leo 4.6 beta 2 released

2009-06-22 Thread Edward K Ream
Leo 4.6 b2 is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106 Leo is a text editor, data organizer, project manager and much more. See: http://webpages.charter.net/edreamleo/intro.html The highlights of Leo 4.6: -- - Cached ext

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

2009-06-22 Thread Jean-Michel Pichavant
J. Cliff Dyer wrote: On Mon, 2009-06-22 at 14:57 +0200, Jean-Michel Pichavant wrote: J. Cliff Dyer wrote: On Wed, 2009-06-17 at 14:13 +0200, Jean-Michel Pichavant wrote: On Wed, Jun 17, 2009 at 04:14, Steven D'Aprano wrote: What's np.arange?

Re: Graphical library - charts

2009-06-22 Thread Terry Reedy
przemol...@poczta.fm-n-o-s-p-a-m wrote: Try Google Charts. It is quite excellent for easily creating simple charts. There is also Gnuplot which is more advanced and complicated. Both tools have python bindings. By the way: do I need any access to internet while using this library ? http://co

Re: UnicodeDecodeError: problem when path contain folder start with character 'u

2009-06-22 Thread Piet van Oostrum
> aberry (a) a écrit: >a> I am facing an error on Unicode decoding of path if it contain a folder/file >a> name starting with character 'u' . >a> Here is what I did in IDLE >a> 1. >>> fp = "C:\\ab\\anil" >a> 2. >>> unicode(fp, "unicode_escape") >a> 3. u'C:\x07b\x07nil' >a> 4. >>> fp = "C:\

Re: UnicodeDecodeError: problem when path contain folder start with character 'u

2009-06-22 Thread Terry Reedy
aberry wrote: 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 1. >>> fp = "C:\\ab\\anil" The results in two single \s in the string. Use / for paths, even on Windows, and you will have less trouble.

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread Terry Reedy
Kushal Kumaran wrote: On Sun, Jun 21, 2009 at 9:04 PM, Vincent Davis wrote: I am running python on a mac and when I was getting going it was difficult to setup information. Specifically how modify bash_profile, how pythonpath works and how to set it up. how to switch between python versions. How

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread Vincent Davis
tkp...@hotmail.com wrote: > I think a setup guide for the Mac would prove very useful. Earlier > this year, I tried installing Python 2.6 on my iMac, and ran into all > sorts of problems, largely as a result of the fact that I knew very > little about Unix. I finally downloaded and installed the

Re: Check module without import it

2009-06-22 Thread member thudfoo
On Mon, Jun 22, 2009 at 3:06 AM, Kless wrote: > Is there any way to check that it's installed a module without import > it directly? > > I'm using the nex code but it's possible that it not been necessary to > import a module > > - > try: >   import module > except ImportError: >  

Re: UnicodeDecodeError: problem when path contain folder start with character 'u

2009-06-22 Thread Vlastimil Brom
2009/6/22 aberry : > > 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 > 1. >>> fp = "C:\\ab\\anil" > 2. >>> unicode(fp, "unicode_escape") > 3. u'C:\x07b\x07nil' > 4. >>> fp = "C:\\ab\\unil" > 5. >>> un

Re: Measuring Fractal Dimension ?

2009-06-22 Thread Charles Yeomans
On Jun 22, 2009, at 8:46 AM, pdpi wrote: On Jun 19, 8:13 pm, Charles Yeomans wrote: On Jun 19, 2009, at 2:43 PM, David C. Ullrich wrote: Hmm. You left out a bit in the first definition you cite: "A simple closed curve J, also called a Jordan curve, is the image of a continuous one-t

Re: How to output a complex List object to a file.

2009-06-22 Thread J. Cliff Dyer
Have you looked at the JSON module? On Mon, 2009-06-22 at 21:17 +0800, Jim Qiu wrote: > Hi all, > > I have a object list list this: > > from bots.botsconfig import * > from D96Arecords import recorddefs > from edifactsyntax3 import syntax > > structure=[ > {ID:'UNH',MIN:1,MAX:1,LEVEL:[ > {I

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

2009-06-22 Thread J. Cliff Dyer
On Mon, 2009-06-22 at 14:57 +0200, Jean-Michel Pichavant wrote: > J. Cliff Dyer wrote: > > On Wed, 2009-06-17 at 14:13 +0200, Jean-Michel Pichavant wrote: > > > >> On Wed, Jun 17, 2009 at 04:14, Steven D'Aprano wrote: > >> > What's np.arange? > > > >>> import nu

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread Philip Semanchuk
On Jun 22, 2009, at 8:56 AM, aberry wrote: thanks for suggestion... what should I put in 'bashrc ' so that I can switch between different version. as python command will always point to one Python framework (lets either 2.4.x or 2.5.x). Something like this would work: alias py25='/Librar

Re: Graphical library - charts

2009-06-22 Thread przemolicc
BJörn Lindqvist wrote: > 2009/6/22 : >> Hello, >> >> I have thousends of files with logs from monitoring system. Each file >> has some important data (numbers). I'd like to create charts using those >> numbers. Could you please suggest library which will allow creating >> such charts ? The prefer

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

2009-06-22 Thread Ross Ridge
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. Aahz wrote: >As stated previously, my suspicion is that at least some is caused by a >problem with MIME messages and the mail->news gateway on python.org

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread Diez B. Roggisch
aberry wrote: > > thanks for suggestion... > what should I put in 'bashrc ' so that I can switch between different > version. > as python command will always point to one Python framework (lets either > 2.4.x or 2.5.x). if you want to switch, put in there three different lines, and comment that

Re: Graphical library - charts

2009-06-22 Thread przemolicc
BJörn Lindqvist wrote: > 2009/6/22 : >> Hello, >> >> I have thousends of files with logs from monitoring system. Each file >> has some important data (numbers). I'd like to create charts using those >> numbers. Could you please suggest library which will allow creating >> such charts ? The prefer

Re: Good books in computer science?

2009-06-22 Thread Steve Ferg
If you are looking for *classics*, then you can't beat Michael Jackson's "Principles of Program Design" and "System Development". They are pre-ObjectOriented, but if you really want to understand what application programming is all about, this is where you should start. I also recommend Eric S. Ro

Re: How to output a complex List object to a file.

2009-06-22 Thread Philip Semanchuk
On Jun 22, 2009, at 9:17 AM, Jim Qiu wrote: Hi all, I have a object list list this: from bots.botsconfig import * from D96Arecords import recorddefs from edifactsyntax3 import syntax structure=[ {ID:'UNH',MIN:1,MAX:1,LEVEL:[ {ID:'BGM',MIN:1,MAX:1}, {ID:'DTM',MIN:1,MAX:5}, ...snip...

Re: Graphical library - charts

2009-06-22 Thread BJörn Lindqvist
2009/6/22 : > Hello, > > I have thousends of files with logs from monitoring system. Each file > has some important data (numbers). I'd like to create charts using those > numbers. Could you please suggest library which will allow creating > such charts ? The preferred chart is line chart. > > Bes

Re: Missing c.l.py posts (was Re: A question on scope...)

2009-06-22 Thread Aahz
In article <4a3f4b46$0$11882$426a7...@news.free.fr>, Bruno Desthuilliers wrote: >Aahz a écrit : >> In article <4a3b5dc3$0$2985$426a7...@news.free.fr>, >> Bruno Desthuilliers wrote: >>> >>> NB : answering the OP (original post didn't show up on c.l.py ???) >> >> Correct. There's a problem with

Re: Re: ctypes list library

2009-06-22 Thread Dave Angel
Nick Craig-Wood wrote: luca72 wrote: There is a command for ctypes that help me to know the entry points inside a library. I don't know.. However nm on the library works quite well on the command line $ nm --defined-only -D /usr/lib/libdl.so A GLIBC_2.0 A GLIBC_2

How to output a complex List object to a file.

2009-06-22 Thread Jim Qiu
Hi all, I have a object list list this: from bots.botsconfig import * from D96Arecords import recorddefs from edifactsyntax3 import syntax structure=[ {ID:'UNH',MIN:1,MAX:1,LEVEL:[ {ID:'BGM',MIN:1,MAX:1}, {ID:'DTM',MIN:1,MAX:5}, {ID:'NAD',MIN:1,MAX:5,LEVEL:[ {ID:'CTA',MIN:0,MAX:5,LEVEL:[

Graphical library - charts

2009-06-22 Thread przemolicc
Hello, I have thousends of files with logs from monitoring system. Each file has some important data (numbers). I'd like to create charts using those numbers. Could you please suggest library which will allow creating such charts ? The preferred chart is line chart. Besides is there any library w

UnicodeDecodeError: problem when path contain folder start with character 'u

2009-06-22 Thread aberry
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 1. >>> fp = "C:\\ab\\anil" 2. >>> unicode(fp, "unicode_escape") 3. u'C:\x07b\x07nil' 4. >>> fp = "C:\\ab\\unil" 5. >>> unicode(fp, "unicode_escape") 6. 7.

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

2009-06-22 Thread Jean-Michel Pichavant
J. Cliff Dyer wrote: On Wed, 2009-06-17 at 14:13 +0200, Jean-Michel Pichavant wrote: On Wed, Jun 17, 2009 at 04:14, Steven D'Aprano wrote: What's np.arange? import numpy as np -- Pierre "delroth" Bourdon Étudiant à l'EPITA / Student at EPITA Perfect example of

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread aberry
thanks for suggestion... what should I put in 'bashrc ' so that I can switch between different version. as python command will always point to one Python framework (lets either 2.4.x or 2.5.x). regards, aberry Diez B. Roggisch-2 wrote: > > aberry wrote: > >> >> Switching between python ver

Re: easiest way to check python version?

2009-06-22 Thread Steve Ferg
Here is what I use in easygui: #-- # check python version and take appropriate action #-- """ >From the python documentation: sys.hexversion contains the version number encoded as a single integer. Thi

Re: Measuring Fractal Dimension ?

2009-06-22 Thread pdpi
On Jun 19, 8:13 pm, Charles Yeomans wrote: > On Jun 19, 2009, at 2:43 PM, David C. Ullrich wrote: > > > > > > > Evidently my posts are appearing, since I see replies. > > I guess the question of why I don't see the posts themselves > > \is ot here... > > > On Thu, 18 Jun 2009 17:01:12 -0700 (PDT),

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread tkp...@hotmail.com
I think a setup guide for the Mac would prove very useful. Earlier this year, I tried installing Python 2.6 on my iMac, and ran into all sorts of problems, largely as a result of the fact that I knew very little about Unix. I finally downloaded and installed the Enthought Python distribution for th

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread Diez B. Roggisch
aberry wrote: > > Switching between python version > Lets assume you have python 2.4.x and now you installed 2.5.x.By default > python path will point to 2.4.x. To switch to python 2.5.x, use following > commands... > > cd /usr/bin > sudo rm pythonw > sudo ln -s "/Library/Frameworks/Python.frame

Re: ctypes list library

2009-06-22 Thread Diez B. Roggisch
luca72 wrote: > Can you tell me how load a list of library from ctypes.util import find_library from ctypes import CDLL for name in list_of_libraries: lib = CDLL(find_library(name)) Do you actually read the documentation of ctypes? Or python, for that matter? Diez -- http://mail.python.or

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread aberry
Switching between python version Lets assume you have python 2.4.x and now you installed 2.5.x.By default python path will point to 2.4.x. To switch to python 2.5.x, use following commands... cd /usr/bin sudo rm pythonw sudo ln -s "/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw" py

Re: ctypes list library

2009-06-22 Thread luca72
Can you tell me how load a list of library Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Idioms and Anti-Idioms Question

2009-06-22 Thread Lawrence D'Oliveiro
In message , Wilbert Berendsen wrote: > I' prefer: > > value = (foo.bar()['first'][0] * baz.quux(1, 2)[5:9] + > calculate_number(10, 20) * forbulate(500, 360)) I prefer using a two-dimensional layout to make the expression structure more obvious: value = \ ( foo

Re: Inheritance and forward references (prototypes)

2009-06-22 Thread Lorenzo Di Gregorio
On 21 Jun., 22:51, Scott David Daniels wrote: > LorenzoDiGregoriowrote: > > On 21 Jun., 01:54, Dave Angel wrote: > >> ... > >> class B(object): > >>     def __init__(self,test=None): > >>         if test==None: > >>             test = A() > >>         self.obj =() > >>         return > > ... > >

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread OdarR
On 22 juin, 12:44, Kushal Kumaran > Have you seen the page athttp://www.python.org/download/mac/and the > pages linked from it? > As a (usefull) add-on : iPython (a must), I found this page a good help : http://www.brianberliner.com/2008/04/ipython-on-mac-os-x-105-leopard/ Olivier -- http://mail

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread OdarR
On 22 juin, 12:44, Kushal Kumaran wrote: > On Sun, Jun 21, 2009 at 9:04 PM, Vincent Davis > wrote: > > I am running python on a mac and when I was getting going it was difficult > > to setup information. Specifically how modify bash_profile, how pythonpath > > works and how to set it up. how to s

Re: Idioms and Anti-Idioms Question

2009-06-22 Thread Wilbert Berendsen
Op maandag 22 juni 2009, schreef Lawrence D'Oliveiro: > value = \ > ( > foo.bar()['first'][0] * baz.quux(1, 2)[5:9] > + > calculate_number(10, 20) * forbulate(500, 360) > ) I' prefer: value = (foo.bar()['first'][0] * baz.quux(1, 2)[5:9] + c

Re: error when use libgmail with proxy

2009-06-22 Thread eGlyph
On 22 июн, 10:33, 马不停蹄的猪 wrote: > Hi all, > Does anybody use libgmail with proxy? I met error here. I wouldn't recommend to use this module at all. It was writtent at the time when no IMAP was available at Google. Now there are POP and IMAP, so it's better to use them. -- http://mail.python.org

  1   2   >