Re: Idioms and Anti-Idioms Question

2009-06-22 Thread Lie Ryan
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-continue-statements) It says: ...if the code was: value =

Re: Re: Help: Group based synchronize decorator

2009-06-22 Thread Vishal Shetye
Thanks. - vishal -Original Message- Sent: Friday, June 19, 2009 3:15 PM To: python-list@python.org Subject: Python-list Digest, Vol 69, Issue 214 Message: 6 Date: Fri, 19 Jun 2009 10:53:27 +0200 From: Piet van Oostrum p...@cs.uu.nl To: python-list@python.org Subject: Re: Help:

Re: RE: RE: Good books in computer science?

2009-06-22 Thread Bob Martin
in 118305 20090621 214008 Phil Runciman ph...@aspexconsulting.co.nz wrote: How many instruction sets have you used? I have used at least 9. IBM 1401 IBM 1410 IBM 7090/7094 IBM 1620 IBM 360 IBM System/7 IBM 1130 IBM 1800 IBM Series/1 Intel 8080 etc Motorola 6800 etc Texas 9900 (my second

Re: failed to build decompyle/unpyc project on WindowsXP

2009-06-22 Thread Артем Николаевич
Hello! Project: http://unpyc.googlecode.com/svn/trunk/ For resolve problem You must: 1. modify file setup.py replace ext_modules = [Extension('unpyc/marshal_20', ['unpyc/'], define_macros=[]),

Re: Can I replace this for loop with a join?

2009-06-22 Thread Ulrich Eckhardt
Ben Finney wrote: Paul Watson paul.hermeneu...@gmail.com writes: On Mon, 2009-04-13 at 17:03 +0200, WP wrote: dict = {1:'astring', 2:'anotherstring'} for key in dict.keys(): print 'Press %i for %s' % (key, dict[key]) In addition to the comments already made, this code will be quite

Re: Can I replace this for loop with a join?

2009-06-22 Thread Paul Rubin
WP no.i.d...@want.mail.from.spammers.com writes: I could do it like this: dict = {1:'astring', 2:'anotherstring'} for key in dict.keys(): print 'Press %i for %s' % (key, dict[key]) Press 1 for astring Press 2 for anotherstring Note that dict.keys() will return the keys in random order.

ctypes list library

2009-06-22 Thread luca72
There is a command for ctypes that help me to know the entry points inside a library. Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

error when use libgmail with proxy

2009-06-22 Thread 马不停蹄的猪
Hi all, Does anybody use libgmail with proxy? I met error here. Below is code snip: libgmail.PROXY_URL = G_PROXY # the proxy url self.ga = libgmail.GmailAccount(account,pwd) self.ga.login() Error information: ga.login () File

Re: os.system vs subprocess

2009-06-22 Thread Tim Golden
Nate wrote: Thanks for your response. Related to this talk about shells, maybe you could point me towards a resource where I could read about how windows commands are processed w/w/o shells? I guess I assumed all subprocess commands were intepreted by the same thing, cmd.exe., or perhaps the

Re: Idioms and Anti-Idioms Question

2009-06-22 Thread Lawrence D'Oliveiro
In message h0f%l.20231$y61.5...@news-server.bigpond.net.au, Lie Ryan wrote: The preferred style is to put the binary operators before the line-break ... Not by me. I prefer using a two-dimensional layout to make the expression structure more obvious: value = \ (

Re: Status of Python threading support (GIL removal)?

2009-06-22 Thread Hendrik van Rooyen
Paul Rubin http://phr...@nospam.invalid wrote: Hendrik van Rooyen m...@microcorp.co.za writes: I think that this is because (like your link has shown) the problem is really not trivial, and also because the model that can bring sanity to the party (independent threads/processes that

Re: raw_input with a pre-compiled data

2009-06-22 Thread Luca
On Sun, Jun 21, 2009 at 12:51 PM, Peter Otten__pete...@web.de wrote: With traduced you stumbled upon another false friend ;) http://it.wikipedia.org/wiki/Falso_amico D'oh!!! x-) import readline def input_default(prompt, default):    def startup_hook():        

Re: raw_input with a pre-compiled data

2009-06-22 Thread Chris Rebert
On Mon, Jun 22, 2009 at 1:19 AM, Lucaluca...@gmail.com wrote: On Sun, Jun 21, 2009 at 12:51 PM, Peter Otten__pete...@web.de wrote: With traduced you stumbled upon another false friend ;) http://it.wikipedia.org/wiki/Falso_amico D'oh!!!   x-) import readline def input_default(prompt,

Re: ctypes list library

2009-06-22 Thread Diez B. Roggisch
luca72 schrieb: There is a command for ctypes that help me to know the entry points inside a library. dir() on a loaded library? But it won't do you any good, without having the header-file you can't possibly know what the functions take for parameters. Diez --

Re: raw_input with a pre-compiled data

2009-06-22 Thread Peter Otten
Luca wrote: On Sun, Jun 21, 2009 at 12:51 PM, Peter Otten__pete...@web.de wrote: import readline Any one knows is this working also on Windows? I've no Win system right no to test this... I do not have Windows available, either, but you might try

Re: ctypes list library

2009-06-22 Thread luca72
Thanks for your reply. I have another question i can load a list of library? Thanks Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes list library

2009-06-22 Thread Diez B. Roggisch
luca72 schrieb: Thanks for your reply. I have another question i can load a list of library? Yes. Diez -- http://mail.python.org/mailman/listinfo/python-list

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

2009-06-22 Thread Bruno Desthuilliers
Aahz a écrit : In article 4a3b5dc3$0$2985$426a7...@news.free.fr, Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: NB : answering the OP (original post didn't show up on c.l.py ???) Correct. There's a problem with the mail-news gateway, I think that MIME messages are

Re: ctypes list library

2009-06-22 Thread Nick Craig-Wood
luca72 lucabe...@libero.it 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.1 A

Re: Convert hash to struct

2009-06-22 Thread Nick Craig-Wood
D'Arcy J.M. Cain da...@druid.net wrote: On Fri, 19 Jun 2009 13:17:24 -0500 Amita Ekbote amita.ekb...@gmail.com wrote: I am retrieving values from a database in the form of a dictionary so I can access the values as d['column'] and I was wondering if there is a way to convert the hash to

Re: ctypes list library

2009-06-22 Thread Carlo Salinari
Diez B. Roggisch wrote: luca72 schrieb: There is a command for ctypes that help me to know the entry points inside a library. dir() on a loaded library? But it won't do you any good, without having the header-file you can't possibly know what the functions take for parameters. I was

Re: ctypes list library

2009-06-22 Thread Diez B. Roggisch
Carlo Salinari wrote: Diez B. Roggisch wrote: luca72 schrieb: There is a command for ctypes that help me to know the entry points inside a library. dir() on a loaded library? But it won't do you any good, without having the header-file you can't possibly know what the functions take

Check module without import it

2009-06-22 Thread Kless
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: pass else: print 'make anything' - --

Re: error when use libgmail with proxy

2009-06-22 Thread Vincent
On Jun 22, 3:33 pm, 马不停蹄的猪 sunrui...@gmail.com wrote: Hi all, Does anybody use libgmail with proxy? I met error here. Below is code snip: libgmail.PROXY_URL = G_PROXY # the proxy url self.ga = libgmail.GmailAccount(account,pwd) self.ga.login() Error information:

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

2009-06-22 Thread Kushal Kumaran
On Sun, Jun 21, 2009 at 9:04 PM, Vincent Davisvinc...@vincentdavis.net 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.

Re: error when use libgmail with proxy

2009-06-22 Thread eGlyph
On 22 июн, 10:33, 马不停蹄的猪 sunrui...@gmail.com 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. --

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] +

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

2009-06-22 Thread OdarR
On 22 juin, 12:44, Kushal Kumaran kushal.kumaran+pyt...@gmail.com wrote: On Sun, Jun 21, 2009 at 9:04 PM, Vincent Davisvinc...@vincentdavis.net 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

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 --

Re: Inheritance and forward references (prototypes)

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

Re: Idioms and Anti-Idioms Question

2009-06-22 Thread Lawrence D'Oliveiro
In message mailman.1941.1245668263.8015.python-l...@python.org, 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

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: 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

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 --

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

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

Re: Measuring Fractal Dimension ?

2009-06-22 Thread pdpi
On Jun 19, 8:13 pm, Charles Yeomans char...@declaresub.com 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

Re: easiest way to check python version?

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

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 version

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 delr...@gmail.com Étudiant à l'EPITA / Student at EPITA

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. Traceback (most

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

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:[

Re: Re: ctypes list library

2009-06-22 Thread Dave Angel
Nick Craig-Wood wrote: luca72 lucabe...@libero.it 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

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 bruno.42.desthuilli...@websiteburo.invalid wrote: Aahz a écrit : In article 4a3b5dc3$0$2985$426a7...@news.free.fr, Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: NB : answering the OP (original post

Re: Graphical library - charts

2009-06-22 Thread BJörn Lindqvist
2009/6/22 przemol...@poczta.fm-n-o-s-p-a-m: 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

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: 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.

Re: Graphical library - charts

2009-06-22 Thread przemolicc
BJörn Lindqvist wrote: 2009/6/22 przemol...@poczta.fm-n-o-s-p-a-m: 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

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 in

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 p...@cs.uu.nl 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 a...@pythoncraft.com wrote: As stated previously, my suspicion is that at least some is caused by a problem with MIME messages and the

Re: Graphical library - charts

2009-06-22 Thread przemolicc
BJörn Lindqvist wrote: 2009/6/22 przemol...@poczta.fm-n-o-s-p-a-m: 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

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

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 numpy as np -- Pierre

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:[

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 char...@declaresub.com wrote: On Jun 19, 2009, at 2:43 PM, David C. Ullrich wrote: snick Hmm. You left out a bit in the first definition you cite: A simple closed curve J, also called a Jordan curve, is the

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

2009-06-22 Thread Vlastimil Brom
2009/6/22 aberry abe...@aol.in: 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,

Re: Check module without import it

2009-06-22 Thread member thudfoo
On Mon, Jun 22, 2009 at 3:06 AM, Klessjonas@googlemail.com 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

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: 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 Davisvinc...@vincentdavis.net 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

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: UnicodeDecodeError: problem when path contain folder start with character 'u

2009-06-22 Thread Piet van Oostrum
aberry abe...@aol.in (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:\\ab\\unil a 5.

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 ?

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=3458package_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

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

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?

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

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 przemol...@poczta.fm-n-o-s-p-a-m wrote in message

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, zelegolaszelego...@gmail.com 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.

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

2009-06-22 Thread Lie Ryan
Jean-Michel Pichavant wrote: snip 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 Andre Engels
On Mon, Jun 22, 2009 at 6:58 PM, zelegolaszelego...@gmail.com 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

Re: Graphical library - charts

2009-06-22 Thread Lie Ryan
BJörn Lindqvist wrote: 2009/6/22 przemol...@poczta.fm-n-o-s-p-a-m: 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

Re: Measuring Fractal Dimension ?

2009-06-22 Thread David C . Ullrich
On Mon, 22 Jun 2009 05:46:55 -0700 (PDT), pdpi pdpinhe...@gmail.com wrote: On Jun 19, 8:13 pm, Charles Yeomans char...@declaresub.com 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

Re: Measuring Fractal Dimension ?

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

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

2009-06-22 Thread Jean-Michel Pichavant
Lie Ryan wrote: Jean-Michel Pichavant wrote: snip 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

Re: Measuring Fractal Dimension ?

2009-06-22 Thread David C . Ullrich
On Fri, 19 Jun 2009 12:40:36 -0700 (PDT), Mark Dickinson dicki...@gmail.com wrote: On Jun 19, 7:43 pm, David C. Ullrich ullr...@math.okstate.edu 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

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: 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: wikipedia with python

2009-06-22 Thread ZeLegolas
On Mon, 22 Jun 2009 21:01:16 +0200, Andre Engels andreeng...@gmail.com wrote: On Mon, Jun 22, 2009 at 8:24 PM, ZeLegolaszelego...@gmail.com 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

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

Re: wikipedia with python

2009-06-22 Thread Andre Engels
On Mon, Jun 22, 2009 at 8:24 PM, ZeLegolaszelego...@gmail.com 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,

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 ? shrug It depends on the audience. For

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'm

Re: Measuring Fractal Dimension ?

2009-06-22 Thread Mark Dickinson
On Jun 22, 7:43 pm, David C. Ullrich ullr...@math.okstate.edu 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

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

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 --

Re: itertools.intersect?

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

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: Open source python projects

2009-06-22 Thread Giampaolo Rodola'
On 22 Giu, 21:40, saurabh saur...@saurabh.org 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

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:

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 char...@declaresub.com wrote: On Jun 22, 2009, at 8:46 AM, pdpi wrote: On Jun 19, 8:13 pm, Charles Yeomans char...@declaresub.com wrote: On Jun 19, 2009, at 2:43 PM, David C. Ullrich

Re: wikipedia with python

2009-06-22 Thread garabik-news-2005-05
Andre Engels andreeng...@gmail.com wrote: On Mon, Jun 22, 2009 at 6:58 PM, zelegolaszelego...@gmail.com 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

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 try

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.

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 Qiubluefishe...@gmail.com wrote: Hi all, I have a object list list this: snip 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

Re: Idioms and Anti-Idioms Question

2009-06-22 Thread Peter Billam
On 2009-06-22, Lie Ryan lie.1...@gmail.com 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 '\'

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

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

Re: Procedures

2009-06-22 Thread Dave Angel
Greg Reyna wrote: div class=moz-text-flowed style=font-family: -moz-fixedLearning 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

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. I am

  1   2   >