float print formatting

2007-02-13 Thread hg
Hi, Considering the float 0.0, I would like to print 00.00. I tried '%02.02f' % 0.0 ... but I get 0.00 Any clue ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: float print formatting

2007-02-13 Thread hg
Neil Cerutti wrote: > On 2007-02-13, hg <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Considering the float 0.0, I would like to print 00.00. >> >> I tried '%02.02f' % 0.0 ... but I get 0.00 >> >> Any clue ? > > Yes. How wide (total) i

Re: Mulig SPAM: float print formatting

2007-02-13 Thread hg
NOSPAM plz wrote: > hg skrev: >> Hi, >> >> Considering the float 0.0, I would like to print 00.00. >> >> I tried '%02.02f' % 0.0 ... but I get 0.00 >> >> Any clue ? >> >> Thanks, >> >> hg >> >> > T

Re: float print formatting

2007-02-13 Thread hg
Peter Otten wrote: > hg wrote: > >> Considering the float 0.0, I would like to print 00.00. >> >> I tried '%02.02f' % 0.0 ... but I get 0.00 >> >> Any clue ? > > The first integer specifies the total width: > >>>

Re: float print formatting

2007-02-13 Thread hg
Neil Cerutti wrote: > The eighth-graders will be presenting Shakespeare's Hamlet in the church > basement on Friday at 7 p.m. The congregation is invited to attend this > tragedy. --Church Bulletin Blooper ;-) I like that ! hg -- http://mail.python.org/mailman/listinfo/python-list

Re: float print formatting

2007-02-13 Thread hg
Grant Edwards wrote: > On 2007-02-13, hg <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Considering the float 0.0, I would like to print 00.00. >> >> I tried '%02.02f' % 0.0 ... but I get 0.00 > ^^ > That's the specifierfor how

Re: f---ing typechecking

2007-02-14 Thread hg
> Its ugly and boring. It's rude, unnecessary _and_ boring -- http://mail.python.org/mailman/listinfo/python-list

Re: PyDev on Mac

2007-02-18 Thread hg
rg/~esr/faqs/smart-questions.html >> >> Diez > > > The main problem seems to be locating Python. > > Even though I installed the official python for mac, it says the > interpreter is invalid. > So I tried jPython, no succes on that either. It always tells me I am

Re: How to covert ASCII to integer in Python?

2007-02-22 Thread hg
John wrote: > Is there any built in function that converts ASCII to integer or vice > versa in Python? > > Thanks! >>> int('10') 10 >>> str(10) '10' >>> -- http://mail.python.org/mailman/listinfo/python-list

Re: How to covert ASCII to integer in Python?

2007-02-22 Thread hg
Some people spend many buck bying guessing games ... be nice ! hg -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the best queue implemetation in Python?

2007-02-22 Thread hg
people do not have your wonderful brain and still have to make it through 60+ years of life of learning ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the best queue implemetation in Python?

2007-02-22 Thread hg
hg wrote: > f u "f o" of course -- http://mail.python.org/mailman/listinfo/python-list

Re: Help on object scope?

2007-02-25 Thread hg
de of main() which are valid in all sub-modules? > > Thanks very much for your help! Might be wrong, but globals can only be global to the module they're declared in. I suggest you find another way such as passing your object as a parameter hg -- http://mail.python.org/mailman/listinfo/python-list

Python+Windows specific questions

2007-02-26 Thread hg
Hi, Do I need the pywin32 extentions to: 1) change the pc system date ? 2) launch a ppp connection ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python+Windows specific questions

2007-02-26 Thread hg
hg wrote: > Hi, > > Do I need the pywin32 extentions to: > > 1) change the pc system date ? > 2) launch a ppp connection ? > > Thanks, > > hg Yes to both I guess. hg -- http://mail.python.org/mailman/listinfo/python-list

Is there a technic to avoid this bug

2007-02-27 Thread hg
value = self.Get_Value() if value == WHATEVER: do this Is there a way to avoid such a bug with some type of construct ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a technic to avoid this bug

2007-02-27 Thread hg
Michele Simionato wrote: > pychecker Thanks all ... pydev extension does not however ... will have to install pychecker also. hg -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3