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=[]), Extension(

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

2009-06-22 Thread Ulrich Eckhardt
Ben Finney wrote: > Paul Watson 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 >> broken

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

2009-06-22 Thread Paul Rubin
WP 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. > but can I use a join instead

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 "C:\Python25\Lib\site-packages\libg

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 she

Re: Idioms and Anti-Idioms Question

2009-06-22 Thread Lawrence D'Oliveiro
In message , 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 = \ ( foo.bar()['first'][0] * baz.quux(1, 2)[5:9]

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

2009-06-22 Thread Hendrik van Rooyen
"Paul Rubin" wrote: > "Hendrik van Rooyen" 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 communicate >

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(): >        readline.insert

Re: raw_input with a pre-compiled data

2009-06-22 Thread Chris Rebert
On Mon, Jun 22, 2009 at 1:19 AM, Luca 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, de

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 -- http://mail.python.org/mailma

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 http://ipython.scipy.org/moin/PyRea

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 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 failing. I "fixed" the problem for c.l.py.

Re: Inheritance and forward references (prototypes)

2009-06-22 Thread Bruno Desthuilliers
Piet van Oostrum a écrit : Steven D'Aprano (SD) wrote: (snip) SD> # A.__base__ = DebugA ## Uncomment this line for debugging. A.__base__ = DebugA TypeError: readonly attribute Make that: A.__bases__ = DebugA, or even better (readability-wise): A.__bases__ = (DebugA,) Just the sam

Re: Inheritance and forward references (prototypes)

2009-06-22 Thread Bruno Desthuilliers
Dave Angel a écrit : (snip Default arguments of class methods are evaluated during the definition of the class Default arguments of functions are eval'd during the execution of the def statement. The fact that you use a def statement within a class statement's body is totally orthogonal -

Re: ctypes list library

2009-06-22 Thread Nick Craig-Wood
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.1 A GLIBC_2.3.3 0

Re: Allocating memory to pass back via ctypes callback function

2009-06-22 Thread Nick Craig-Wood
Scott wrote: > I think I found the answer to my own question. Can anyone spot any > issues with the following solution? The application I'm writing will > be hitting these callbacks pretty heavily so I'm nervous about mucking > up the memory management and creating one of those bugs that pass

Re: Convert hash to struct

2009-06-22 Thread Nick Craig-Wood
D'Arcy J.M. Cain wrote: > On Fri, 19 Jun 2009 13:17:24 -0500 > Amita Ekbote 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 a struct like format so i can

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.

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

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' - -- http:/

Re: error when use libgmail with proxy

2009-06-22 Thread Vincent
On Jun 22, 3:33 pm, 马不停蹄的猪 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 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/where > to install

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

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

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

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.

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

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

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

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

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

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

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

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 wrote in message news:h1nv4q$5k...@news.dialog.net.pl... > Hello, > > I have thousend

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

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

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

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

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

  1   2   >