[issue43924] print unexpected values in infinite loop

2021-04-23 Thread Rafi Hassan Chowdhury
Change by Rafi Hassan Chowdhury : Added file: https://bugs.python.org/file49978/main.py ___ Python tracker <https://bugs.python.org/issue43924> ___ ___ Python-bugs-list m

[issue43924] print unexpected values in infinite loop

2021-04-23 Thread Rafi Hassan Chowdhury
Change by Rafi Hassan Chowdhury : Removed file: https://bugs.python.org/file49977/main.py ___ Python tracker <https://bugs.python.org/issue43924> ___ ___ Python-bug

[issue43924] print unexpected values in infinite loop

2021-04-23 Thread Rafi Hassan Chowdhury
Change by Rafi Hassan Chowdhury : Removed file: https://bugs.python.org/file49976/main.py ___ Python tracker <https://bugs.python.org/issue43924> ___ ___ Python-bug

[issue43924] print unexpected values in infinite loop

2021-04-23 Thread Rafi Hassan Chowdhury
Change by Rafi Hassan Chowdhury : Added file: https://bugs.python.org/file49977/main.py ___ Python tracker <https://bugs.python.org/issue43924> ___ ___ Python-bugs-list m

[issue43924] print unexpected values in infinite loop

2021-04-23 Thread Rafi Hassan Chowdhury
Change by Rafi Hassan Chowdhury : Added file: https://bugs.python.org/file49976/main.py ___ Python tracker <https://bugs.python.org/issue43924> ___ ___ Python-bugs-list m

[issue43924] print unexpected values in infinite loop

2021-04-23 Thread Rafi Hassan Chowdhury
Change by Rafi Hassan Chowdhury : Removed file: https://bugs.python.org/file49975/main.py ___ Python tracker <https://bugs.python.org/issue43924> ___ ___ Python-bug

[issue43924] print unexpected values in infinite loop

2021-04-23 Thread Rafi Hassan Chowdhury
Change by Rafi Hassan Chowdhury : -- type: behavior -> ___ Python tracker <https://bugs.python.org/issue43924> ___ ___ Python-bugs-list mailing list Un

[issue43924] print unexpected values in infinite loop

2021-04-23 Thread Rafi Hassan Chowdhury
Change by Rafi Hassan Chowdhury : -- files: main.py nosy: rafihassan190041234 priority: normal severity: normal status: open title: print unexpected values in infinite loop type: behavior versions: Python 3.9 Added file: https://bugs.python.org/file49975/main.py

How to Manage Your Python Open Source - free webinar

2014-07-07 Thread rafi . michaeli
://attendee.gotowebinar.com/register/7034105107342895362 we hope to see you there :) Rafi, WhiteSource software. -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Webinar on How to Manage Your Python Open Source

2014-07-06 Thread rafi . michaeli
://attendee.gotowebinar.com/register/7034105107342895362 we hope to see you there :) Rafi, WhiteSource software. -- https://mail.python.org/mailman/listinfo/python-list

Re: aproximate a number

2005-08-28 Thread rafi
an int import math math.ceil (12.3) 13.0 int (math.ceil (12.3)) 13 hth -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: variable hell

2005-08-26 Thread rafi
Ron Garret wrote: Because eval() takes an expression as an argument, and assignment is a statement. And if you find this distinction annoying, try Lisp. that's were I come from :-) -- rafi Imagination is more important than knowledge. (Albert

Re: RE Despair - help required

2005-08-25 Thread rafi
with weird REs, why not use Python's standard filename manipulation library instead? http://docs.python.org/lib/module-os.path.html /F -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman

Re: variable hell

2005-08-25 Thread rafi
Adriaan Renting wrote: You might be able to do something along the lines of for count in range(0,maxcount): value = values[count] exec(eval('a%s=%s' % (count, value))) why using the eval? exec ('a%s=%s' % (count, value)) should be fine -- rafi Imagination is more important

Re: Speed quirk: redundant line gives six-fold speedup

2005-08-25 Thread rafi
for a distributed operating system] -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: variable hell

2005-08-25 Thread rafi
I cannot find an answer to: any idea why does eval() consider '=' as a syntax error? eval ('a=1') Traceback (most recent call last): File stdin, line 1, in ? File string, line 1 a=1 ^ SyntaxError: invalid syntax Thanks -- rafi Imagination is more important than

Re: variable hell

2005-08-25 Thread rafi
Steve Holden wrote: Because eval() takes an expression as an argument, and assignment is a statement. I am definitely not a language lawyer... but I should a little bit more thanks, -- rafi Imagination is more important than knowledge. (Albert

Re: a dummy python question

2005-08-25 Thread rafi
I suppose you wrote this down (instead of cut and paste) as the none is not capitalized. There must be something else in your module that writes the none as your code presented above should really not as is. -- rafi Imagination is more important than knowledge

Re: Email client in Pyhton

2005-08-24 Thread rafi
existing mail client, written in python which wud serve my cause. i searched google for no avail. -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: Default function arguments behaving badly

2005-08-24 Thread rafi
and int or a string as they are non mutable objects. however lists are mutable objects so... modify your function as follow: def myFunction(l1,l2,result=None): if result is None: result = [] hth -- rafi Imagination is more important than knowledge

Re: loop in python

2005-08-23 Thread rafi
answer, it is like driving a truck with the eyes closed in down town (I can go fast, I am not scared, I do not see the dangers). Please tell us for you are working in order for us to avoid the software / services you are providing. -- rafi Imagination is more important than knowledge

Re: while c = f.read(1)

2005-08-23 Thread rafi
, the function hangs. (Which is the cas for receive) -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: how to deal with space between numbers

2005-08-23 Thread rafi
bruno modulix wrote: Mohammed Altaj wrote: Dear All This is my problem again , (snip) Read my answers to your two previous posts. (in short : use str.split() - but *do* read my answers if you want to save you a lot of pain) especially when several persons replied to you... -- rafi

Re: Reading just a few lines from a text file

2005-08-23 Thread rafi
the last 20 lines. How do I do this? Thomas Philips If you are using a Unix: tail -20 file.txt -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: split function

2005-08-22 Thread rafi
for a good ppiece of code from my point of view. my 2 cents -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: loop in python

2005-08-22 Thread rafi
running two times slower but with two times less bugs, imagine how many hours we would benefit... -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter text widget question

2005-08-21 Thread rafi
problem easily my 2 cents -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: get a list of mounted filesystems under MacOSX

2005-08-15 Thread rafi
calling mount as an external program and parsing the output - but I prefer cleaner solutions. Is there one? why not looking at the content of the /Volumes folder? my 2 cents -- rafi Imagination is more important than knowledge. (Albert Einstein

Re: Library vs Framework (was Dr. Dobb's Python-URL!)

2005-08-15 Thread rafi
the library provide basic blocks that you may assemble in your own way (even if some constaints exist). -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: Art of Unit Testing

2005-08-02 Thread rafi
is again not the one of an expert of unit testing). I do agree with Benjamin Niermann when he says: Or because it is already close to perfection (at least in what it is intended to do). unittest is for unittesting :-) my 2 cents -- rafi Imagination is more important than knowledge

Re: Art of Unit Testing

2005-08-02 Thread rafi
rafi wrote: In order to unit test a function / method one should use mock objects, otherwise you may not be sure that your code is faulty. 'should' may be too strong, 'may' may be better. In the meantime I found: http://python-mock.sourceforge.net/ my 2 cents -- rafi

Re: inheriting from datetime

2005-08-01 Thread rafi
of the use of the code? on my box it runs, except that ValueError is not caught by the except. side question: what is the point of accepting invalid dates? -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org

Re: multiple inheritance super()

2005-07-28 Thread rafi
compared to C++) because of the lack of multiple inheritance. -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple inheritance super()

2005-07-27 Thread rafi
in the definition of C (here the value of foo in A). Am I right? I am mostly using old style (without type unification) init but this motivate the shift for the new style. Is there somewhere a document about this? Thanks a lot Scott -- rafi Imagination is more important than knowledge

Re: multiple inheritance super()

2005-07-27 Thread rafi
Michele Simionato wrote: I am mostly using old style (without type unification) init but this motivate the shift for the new style. Is there somewhere a document about this? Yes, see http://www.python.org/2.3/mro.html by yours truly Michele Simionato Thanks a lot -- rafi

Re: multiple inheritance super()

2005-07-26 Thread rafi
may have googled the wrong keywords) for the order of the __init__ calls from C. I was expecting (following the same order as the method lookup): i am an A i am a B i am a C A.foo Thanks -- rafi Imagination is more important than knowledge. (Albert

Re: OS X py2app confusion

2005-07-25 Thread rafi
py2app? Have you tried to re-install the py2app (even version 0.17)? my 2 cents -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list

Re: FAQ?

2005-07-24 Thread rafi
, it may mean that you are ready to post a question :-) my 2 cents -- rafi Imagination is more important than knowledge. (Albert Einstein) -- http://mail.python.org/mailman/listinfo/python-list