Re: very puzzling doctest behaviour

2007-12-17 Thread Gabriel Genellina
En Mon, 17 Dec 2007 21:29:55 -0300, André <[EMAIL PROTECTED]> escribió: >> I am using the doctest.testfile() interface to load up tests that >> resides in a text file. Here's a description of the puzzling feature. >> >> The second expected "<" fails; instead, we get "<" >> >> file 3: all t

Re: WikiInclude on 0.11 - Noah Kantrowitz blocks bug-fix

2007-12-17 Thread Ilias Lazaridis
On Dec 18, 4:23 am, Ilias Lazaridis <[EMAIL PROTECTED]> wrote: > Essence: > > * Deletion of valid defect reports on trac community resources UPDATE: Instead of fixing the "WikiInclude" in the repo (or at least leave the ticket open, thus a developer can do it), Mr. Noah Kantrowitz goes his very

Re: very puzzling doctest behaviour

2007-12-17 Thread André
On Dec 17, 11:53 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 17 Dec 2007 21:29:55 -0300, André <[EMAIL PROTECTED]> > escribió: > > >> I am using the doctest.testfile() interface to load up tests that > >> resides in a text file. Here's a description of the puzzling feature. > > >>

Re: strptime() in _strptime.py vs lib-dynload/time.so

2007-12-17 Thread Gabriel Genellina
En Mon, 17 Dec 2007 01:53:24 -0300, <[EMAIL PROTECTED]> escribió: > On Dec 16, 8:47 pm, [EMAIL PROTECTED] wrote: >>ncalls tottime percall cumtime percall filename:lineno(function) >> 577656.0200.000 12.9700.000 >> /usr/lib64/python2.4/_strptime.py:273(strptime) >> ... >

Re: Calculate an age

2007-12-17 Thread StephenRFerg
You might want to look at pyfdate: http://www.ferg.org/pyfdate This Python program: == from pyfdate import * birthday = Time(2000,2,29) today = Time(2003,2,28) years, months, period = today.diffym(birthday) print "On", to

Re: Label Variables

2007-12-17 Thread Gabriel Genellina
En Tue, 18 Dec 2007 00:46:27 -0300, Sam Garson <[EMAIL PROTECTED]> escribió: > I am trying to get the text of the selection in a list box and put into a > variable, which is put into a label. i.e., whatever is selected will > show in > the label. > > However, because at the beginning there is

Re: New to Python Would like debug advice

2007-12-17 Thread Ramsey Nasser
On Dec 17, 2007 9:17 PM, PatrickMinnesota <[EMAIL PROTECTED]> wrote: > Yep, I'm new to the language, it's been a couple of months. > > I opted for gvim and console window for developing on a Windows XP > box. I'm not a huge fan of IDEs except for when I need some > debugging. I've done my googlin

More than one interpreter per process?

2007-12-17 Thread sturlamolden
Python has a GIL that impairs scalability on computers with more than one processor. The problem seems to be that there is only one GIL per process. Solutions to removing the GIL has always stranded on the need for 'fine grained locking' on reference counts. I believe there is a second way, which h

Re: Another newbie design question

2007-12-17 Thread bambam
Original languages were line oriented, newer languages were block oriented. Original languages has line comments. Newer languages had block comments, and had line comments added back in. So I would read that as line comments being more fundamental, but people who used line comments got so sick of

Re: More than one interpreter per process?

2007-12-17 Thread Michael L Torrie
sturlamolden wrote: > Python has a GIL that impairs scalability on computers with more than > one processor. The problem seems to be that there is only one GIL per > process. Solutions to removing the GIL has always stranded on the need > for 'fine grained locking' on reference counts. I believe th

Re: MySQL_python install failed on Ubuntu 7.1

2007-12-17 Thread Bruza
On Dec 17, 1:31 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Bruza a écrit : > > > I installed MySQL 5.0.45 onUbuntu7.1and downloadMySQL_pythonfrom > > Sourceforge (http://sourceforge.net/project/showfiles.php? > > group_id=22307). Then I untar the package and executed "python > > setup.pyi

Re: [OT] Fractions on musical notation

2007-12-17 Thread Dafydd Hughes
> > Time signatures are crap. They should have switched to a number > > over a note value a long time ago; we could have easily avoided > > abominable travesties like the time signature on the 2nd > > movement of Beethoven's 9th (B needed four over dotted quarter). If > > music notation had been in

Re: Finite State Machine GUI editor in python?

2007-12-17 Thread Hendrik van Rooyen
"Alexander Schliep" wrote: > > In case nothing better comes up and you want to code it yourself: Our > Hidden Markov Model library GHMM (http://ghmm.org) has a graphical > editor with XML output. > > Maybe http://networkx.lanl.gov/ or other general Python graph packages > have what you want.

Re: int vs long

2007-12-17 Thread Hendrik van Rooyen
"Nick Craig-Wood" wrote: > So you might see longs returned when you expected ints if the result > was >= 0x800. did you mean 0x8000 ? ;-) - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenOpt install

2007-12-17 Thread dmitrey
When earlier OpenOpt versions had been installed there were no compiled pyc-files (in destination directory). I called to mailing list but no obvious receipt had been achieved. Matthieu had done some changes but it yielded other mistakes (no some py-files detected or kind of), so I had removed thos

Re: strptime() in _strptime.py vs lib-dynload/time.so

2007-12-17 Thread igor . tatarinov
On Dec 17, 8:01 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 17 Dec 2007 01:53:24 -0300, <[EMAIL PROTECTED]> escribió: > > > On Dec 16, 8:47 pm, [EMAIL PROTECTED] wrote: > >>ncalls tottime percall cumtime percall filename:lineno(function) > >> 577656.0200.000 1

<    1   2