[issue2532] file that breaks 2to3 (despite being correct python)

2008-07-18 Thread engelbert gruber
engelbert gruber <[EMAIL PROTECTED]> added the comment: The much simpler input might be another problem:: # this is accepted b = ("a = 0\n" * 100) # this one breaks it ("a = 0\n" * 100) this looks similar to ``map(None, t)`` on a line by itself is translated to ``list(map(None, t))`` a

[issue3415] Interpreter error when running a script under debugger control

2008-07-18 Thread Nir
New submission from Nir <[EMAIL PROTECTED]>: Interpreter error results in erroneous exception when running a script under debugger control. Full repro description: On Windows System, try to run idle.py under the inspection of pdb.py. Note that you must set a breakpoint somewhere otherwise pdb w

[issue3414] frameworkinstall doesn't create Python.app, which breaks python

2008-07-18 Thread Erick Tryzelaar
New submission from Erick Tryzelaar <[EMAIL PROTECTED]>: Hello again! It looks like doing "make frameworkinstall maninstall" isn't creating "Python.framework/Versions/3.0/Resources/Python.app", so when I try to run python it errors out with: "python3.0: execv: /opt/local/Library/Frameworks/Py

[issue2772] Add PendingDeprecationWarning for % formatting

2008-07-18 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: I think this is premature until be know for sure that % formatting will in-fact be deprecated in Py3.1. Time will tell how well the new format options get accepted. Likewise, we'll learn more about how readily legacy code can get conve

[issue3413] typo in Mac/Makefile.in breaks installing IDLE

2008-07-18 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Thanks! Fixed in r65129. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue3413] typo in Mac/Makefile.in breaks installing IDLE

2008-07-18 Thread Erick Tryzelaar
New submission from Erick Tryzelaar <[EMAIL PROTECTED]>: There's a slight typo in Mac/Makefile.in, where DESDIR was used instead of DESTDIR. This patch fixes it: --- /tmp/Makefile.in2008-07-18 19:42:29.0 -0700 +++ Mac/Makefile.in 2008-07-18 19:42:33.0 -0700 @@ -216,7 +2

[issue1869] Builtin round function is sometimes inaccurate for floats

2008-07-18 Thread George Boutsioukis
George Boutsioukis <[EMAIL PROTECTED]> added the comment: The issue is that the implementation of round includes multiplying the number by 10**ndigits, thus unnecessarily losing some precision for large numbers within the IEEE754 double limits. This means that even smaller numbers can produce the

[issue3344] IDLE - use enumerate instead of zip(count(), ...)

2008-07-18 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: This looks as straightforward as patches get. I verified that itertools.count is not used elsewhere in the file, so it is ok to zap the import. Suggest apply. -- nosy: +tjreedy ___ Python tracker

[issue3344] IDLE - use enumerate instead of zip(count(), ...)

2008-07-18 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: -- components: +IDLE ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mail

[issue2772] Add PendingDeprecationWarning for % formatting

2008-07-18 Thread Eric Smith
Changes by Eric Smith <[EMAIL PROTECTED]>: -- assignee: eric.smith -> ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list m

[issue3411] str.format() on negative floats

2008-07-18 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: Thanks for catching this. I was not skipping the leading sign char when looking for the decimal point in the string, which was causing me to incorrectly determine that a decimal wasn't present. Fixed in r65125 (trunk) and r65126 (py3k). ---

[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer
Changes by Florian Mayer <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10943/floating.rst ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3355] Display bug in :show-inheritance: for class with standard docstring

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r65123. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: I'll build-out the discussion a bit and mention the new float.hex() and float.as_integer_ratio() methods. Will also add references to decimal and fractions. -- assignee: georg.brandl -> rhettinger nosy: +rhettinger

[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer
Changes by Florian Mayer <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10941/floating ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer
Florian Mayer <[EMAIL PROTECTED]> added the comment: Updated file to fix a minor problem Added file: http://bugs.python.org/file10942/floating.rst ___ Python tracker <[EMAIL PROTECTED]> __

[issue3379] Option to not-exit on test

2008-07-18 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: I'm not sure it's a good idea. When exit=False, don't you lose the results? It would be better to return the results, but then that makes for an ugly API (changing the return value based on an argument is a general no-no in Python). It wou

[issue3410] platform.version() don't work as expected in Vista in portuguese

2008-07-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: Could you please check whether this is still the case with the current version of platform.py we have in SVN ? http://svn.python.org/view/python/trunk/Lib/platform.py?rev=64233&view=markup ___ Python t

[issue3412] Fraction and Decimal in the Tutorial

2008-07-18 Thread Florian Mayer
New submission from Florian Mayer <[EMAIL PROTECTED]>: I think that when floating point number limitations are mentioned we should also tell that there are alternatives for processing numbers with decimal extensions. I wrote a text that introduces the Decimal and the Fraction type to the reader.

[issue3379] Option to not-exit on test

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Barry, this looks useful and shouldn't be at all disruptive even after beta2. May I check it in? -- assignee: -> barry nosy: +barry, georg.brandl ___ Python tracker <[EMAIL PROTECTED]>

[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I see. The CHM file includes some old files that weren't cleaned up after the urllib and urllib2 modules were removed. This should be fixed for the coming releases. ___ Python tracker <[EMAIL PROTECTED]>

[issue3347] urllib.robotparser doesn't work in Py3k

2008-07-18 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: Committed revision 65118. I applied a simple version of this patch and added a unittest. -- assignee: -> jhylton nosy: +jhylton status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3411] str.format() on negative floats

2008-07-18 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3410] platform.version() don't work as expected in Vista in portuguese

2008-07-18 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: -> lemburg nosy: +lemburg ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3411] str.format() on negative floats

2008-07-18 Thread Hagen Fürstenau
New submission from Hagen Fürstenau <[EMAIL PROTECTED]>: This happens with an empty type field in the format specification: >>> "{0:1}".format(-1.23) '.0-1.23' With type "g" it's ok: >>> "{0:1g}".format(-1.23) '-1.23' -- components: Library (Lib) messages: 69988 nosy: hagen severity:

[issue3410] platform.version() don't work as expected in Vista in portuguese

2008-07-18 Thread Felipe Portella
New submission from Felipe Portella <[EMAIL PROTECTED]>: Using Vista in Portuguese platform.version is returning "32bits" instead of "6.0.6001". This is because in file platform.py line 379 thee regular expression try to search for the word "Version" in english, while in Portuguese the command

[issue3409] ElementPath.Path.findall problem with unicode input

2008-07-18 Thread Uwe Hoffmann
New submission from Uwe Hoffmann <[EMAIL PROTECTED]>: if you call Element.findall(u"...") some silent errors can occure because of the isinstance(,type("")) check. I'm not sure if it is even allowed to call findall with a unicode parameter. The attached diff solves *my* problem. ---

[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread vizcayno
vizcayno <[EMAIL PROTECTED]> added the comment: Ok. In the python 3.0b2 on line documentation that comes with the .msi installer: 1) Search with word urllib and access the fourth line found: "urllib — Open arbitrary resources by URL" 2) Search with word urllib2 and select first line found:

[issue3390] [PATCH] replace last has_key in unittest by in operator

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, committed in r65111. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Yes, but you can also post them here, I'll fix it ASAP. ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread vizcayno
vizcayno <[EMAIL PROTECTED]> added the comment: Thanks Georg. Python 3.0b2 on line manual continues indicating with explanation and some examples that import urllib and import urllib2 are valid. Do you recommend me to open another issue about this? Regards.

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber <[EMAIL PROTECTED]> added the comment: http://bugs.python.org/issue3390 is similar trivial , replacing has_key by in (this small patches might be considered tweaking the bugfix statistic) i am off now (tell me if you think i should stay there) On 7/18/08, Georg Brandl <[EMAIL P

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: OK, I nixed the "simple" uses of map(None, a). ___ Python tracker <[EMAIL PROTECTED]> ___

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I'm sorry, my use of "supposedly" was wrong here. ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Karen Tracey
Karen Tracey <[EMAIL PROTECTED]> added the comment: Thanks for responding. It had been fixed. 2.4/2.5 behave like so: Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber <[EMAIL PROTECTED]> added the comment: it is only one in string.py, but then again it is save to do. thanks On 7/18/08, Georg Brandl <[EMAIL PROTECTED]> wrote: > > Georg Brandl <[EMAIL PROTECTED]> added the comment: > > > I can replace those too. > > > ___

[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This is expected. (Most of) the content of Python 2's urllib and urllib2 modules is now in the urllib.request submodule. Look at the documentation in http://docs.python.org/dev/3.0/library/urllib.request for more details. -- nosy: +geo

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I can replace those too. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list m

[issue3408] urllib incomplete and urllib2 does not exist

2008-07-18 Thread vizcayno
New submission from vizcayno <[EMAIL PROTECTED]>: I am under Win XP sp 3: After importing urllib it only shows a few objects when using dir() urllib2 module does not exist. .python Python 3.0b2 (r30b2:65106, Jul 18 2008, 18:44:17) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright",

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Reopening. For reference, the revision in which Raymond supposedly fixed this is r39305. -- nosy: +georg.brandl priority: normal -> critical status: closed -> open ___ Python tracker <[EMAIL PROTECTE

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber <[EMAIL PROTECTED]> added the comment: so i add a one liner replacing map(None with list ? On 7/18/08, Georg Brandl <[EMAIL PROTECTED]> wrote: > > Georg Brandl <[EMAIL PROTECTED]> added the comment: > > > That is true. Barry might not want to allow a large catch-all patch; but

[issue3407] test_urllib2_localnet fails on MacOS X 10.4.11 (Intel)

2008-07-18 Thread Jean Brouwers
New submission from Jean Brouwers <[EMAIL PROTECTED]>: The test_urllib2_localnet fails on MacOS X 10.4.11 (Intel) with Python 2.6b2 (and 3.0b2), see below. The same test also failed for Python 2.6b1 but was not reported as a test failure. % ./python.exe Python 2.6b2 (r26b2:65082, Jul 18 20

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: That is true. Barry might not want to allow a large catch-all patch; but since those changes are not adding new features, simple small ones can certainly get in before beta3. ___ Python tracker <[EMAIL PROTEC

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber <[EMAIL PROTECTED]> added the comment: i just wanted to get rid of one "python2.6 -3" warning in string and found that a patch was already waiting. from this thing i conclude smaller patches might get committed earlier , do they ? On Fri, Jul 18, 2008 at 8:42 PM, Georg Brandl <[

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: May even be too late for 2.6. :) ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bug

[issue1513299] Clean up usage of map() in the stdlib

2008-07-18 Thread engelbert gruber
engelbert gruber <[EMAIL PROTECTED]> added the comment: and now it is 2.6 ? -- nosy: +grubert ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2532] file that breaks 2to3 (despite being correct python)

2008-07-18 Thread Nick Edds
Nick Edds <[EMAIL PROTECTED]> added the comment: My iterative pattern matching doesn't break on this file, but as mentioned elsewhere, the iterative solution is slower. I'll work on speeding it up, but I don't immediately see a good way to do so. Any ideas would be greatly appreciated. -

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Karen Tracey
Karen Tracey <[EMAIL PROTECTED]> added the comment: This behavior has reappeared in the 2.6 beta releases: Python 2.6b2 (r26b2:65082, Jul 18 2008, 13:36:54) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more information

[issue2894] 2to3 discards comments before import statements

2008-07-18 Thread Nick Edds
Nick Edds <[EMAIL PROTECTED]> added the comment: Yeah sorry. I can't commit changes, so I have the diff in the other issue but it has not yet been committed. Here it is again for redundancy. -- keywords: +patch Added file: http://bugs.python.org/file10938/fix_import.diff ___

[issue2894] 2to3 discards comments before import statements

2008-07-18 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I still this problem with the latest version of 2to3. -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> __

[issue2894] 2to3 discards comments before import statements

2008-07-18 Thread Nick Edds
Nick Edds <[EMAIL PROTECTED]> added the comment: This seems to have been the same problem that was causing whitespace to get lost before some imports. I believe the fix_import change I provided in that issue, issue 3334, also corrects this problem. -- nosy: +nedds __

[issue2638] tkSimpleDialog Window Flashing

2008-07-18 Thread Ron Longo
Ron Longo <[EMAIL PROTECTED]> added the comment: Excellent! That solution works as well. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-b

[issue3376] Use Python 3 lexer for 3.0 docs

2008-07-18 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10937/for_py3k_branch.diff ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3376] Use Python 3 lexer for 3.0 docs

2008-07-18 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: I'm attaching two patches. One, for the Sphinx trunk, adds a pygments_default_lexer option. The other, for the py3k branch, changes the default lexer to python3. It also includes a rather hacky, overriden highlightlang directive that chan

[issue3334] 2to3 looses indentation on import fix

2008-07-18 Thread Nick Edds
Nick Edds <[EMAIL PROTECTED]> added the comment: I believe the problem was that in the case of this fix, rather than using set_prefix to give the new node the same prefix as before, new.prefix = was used. Here is the one line fix which preserves the prefix in the example given. -- keywor

[issue3358] 2to3 Iterative Wildcard Matching

2008-07-18 Thread Nick Edds
Nick Edds <[EMAIL PROTECTED]> added the comment: Just as an added note: with the new changes made to fix_imports, this is now noticeably slower than the recursive approach, even after I made a few optimizations like removing the unnecessary len() in the while loop. __

[issue3346] test_ossaudiodev fails

2008-07-18 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3346] test_ossaudiodev fails

2008-07-18 Thread Ismail Donmez
Ismail Donmez <[EMAIL PROTECTED]> added the comment: Works fine in beta2. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue3399] Memory corruption in multiprocessing module, OS X 10.5.4

2008-07-18 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: It looks like this isn't just me. See the buildbot output at: http://www.python.org/dev/buildbot/all/x86%20osx.5%20trunk/builds/33/ste p-test/0 which shows: test_multiprocessing Assertion failed: (bp != NULL), function PyObject_Malloc, fil

[issue3088] test_multiprocessing hangs intermittently on POSIX platforms

2008-07-18 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: I confirm this is solved for me in beta 2 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pytho

[issue3406] LocaleTextCalendar and LocaleHTMLCalendar break without a locale

2008-07-18 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: This was fixed in r45302 and r58936 -- nosy: +gpolo resolution: -> out of date status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3372] socket.setsockopt() is broken for multicast TTL and Loop options

2008-07-18 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: This is already fixed in release24-maint, release25-maint, trunk and py3k. -- nosy: +gpolo resolution: -> out of date status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3406] LocaleTextCalendar and LocaleHTMLCalendar break without a locale

2008-07-18 Thread WoLpH
New submission from WoLpH <[EMAIL PROTECTED]>: Steps to reproduce: >>> import calendar >>> calendar.LocaleHTMLCalendar() Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/calendar.py", line 540, in __init__ locale = locale.getdefaultlocale() AttributeError:

[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2008-07-18 Thread Guilherme Polo
New submission from Guilherme Polo <[EMAIL PROTECTED]>: Follows a patch that adds support for the new data option supported event generate. It allows virtual events to pass a tcl object. This patch is only intended to correctly support tcl objects, trying to pass other objects (like a dict) will

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2008-07-18 Thread cfr
cfr <[EMAIL PROTECTED]> added the comment: A work-around when using python from a shell environment (e.g. from a bash shell in Terminal) is to issue export __CF_USER_TEXT_ENCODING=0x1F5:0:0 before starting python. I haven't yet worked out how to apply this to GUI apps. I tried editing ~/.MacOSX

[issue3404] wrong precision in float formatting or doc error

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed docs in r65099. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3404] wrong precision in float formatting or doc error

2008-07-18 Thread Hagen Fürstenau
Hagen Fürstenau <[EMAIL PROTECTED]> added the comment: Just found it documented for the % operator: There precision is number of digits before and after decimal point for format "g". But then the documentation for 2.6 is wrong: "The precision is a decimal number indicating how many digits shou

[issue3404] wrong precision in float formatting

2008-07-18 Thread Hagen Fürstenau
New submission from Hagen Fürstenau <[EMAIL PROTECTED]>: This seems to be wrong: >>> "{0:.2}".format(1.2345) '1.2' The same happens for format specifiers "g" and "n", but not for "f": >>> "{0:.2f}".format(1.2345) '1.23' With empty format specifier it can even get really wrong: >>> "{0:.1}".f

[issue2674] unittest.TestProgram uses sys.exit()

2008-07-18 Thread J. Pablo Fernández
J. Pablo Fernández <[EMAIL PROTECTED]> added the comment: I was bothered by this 'bug' ages ago, and I was work-arounding it. So now I've spent some time in 'fixing' it with the patches on issue #3379. -- nosy: +pupeno ___ Python tracker <[EMAIL PROTE

[issue3389] [PATCH] Allow custom logging Handlers in logging config files

2008-07-18 Thread Vinay Sajip
Vinay Sajip <[EMAIL PROTECTED]> added the comment: Checked into SVN. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3403] Unexpected default arguments behaviour

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This is another "problem" due to the fact that parameter defaults are evaluated once during function definition, not every time the function is called. This is expected and will not change. -- nosy: +georg.brandl resolution: -> invalid

[issue3403] Unexpected default arguments behaviour

2008-07-18 Thread SukkoPera
New submission from SukkoPera <[EMAIL PROTECTED]>: I have just encountered a Python behaviour I wouldn't expect. Take the following code: class Parent: a = 1 def m (self, param = a): print "