[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-04 Thread Tom Clarke
Tom Clarke t.cla...@ic.ac.uk added the comment: NB - (discussion of significance of this bug) Defaultdict called with no argument is anomalous this problem can be avoided in such cases by using dict. However this is not possible if default value can change and the documentation specifically

[issue6562] OverflowError in RLock.acquire()

2009-08-04 Thread David Roberts
David Roberts d...@vidr.cc added the comment: I think I've narrowed it down to the ImageQt class provided by PIL - commenting out the reference to this (in the constructor of the Tile class referenced by TileProvider.run) stops the errors. So how do I go about determining where the problem with

[issue6562] OverflowError in RLock.acquire()

2009-08-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't know, but you should probably contact the author, Fredrik Lundh, and/or post on the PIL list. Since it is probably not a bug in Python itself, I'm closing the issue. (please reopen if you discover a problem in Python itself) --

[issue6562] OverflowError in RLock.acquire()

2009-08-04 Thread Fredrik Lundh
Fredrik Lundh fred...@effbot.org added the comment: PIL is completely thread-agnostic, so I not sure there's anything PIL can do to fix this. (and ImageQt is of course an interface to PyQt, which is an interface to Qt, which consists of a *lot* more than 50 lines...) --

[issue6641] strptime doesn't support %z format ?

2009-08-04 Thread Esteban Feldman
New submission from Esteban Feldman esteban.feld...@gmail.com: When trying to use datetime.strptime %z directive got an unexpected error. from datetime import datetime fecha = u'Sun Aug 02 19:01:25 + 2009' datetime.strptime(fecha, '%a %b %d %H:%M:%S %z %Y') Traceback (most recent call

[issue3961] Arrows key do not browse in the IDLE

2009-08-04 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Richard, IDLE doesn't support browsing the history of the commands entered (see issue2704), so I believe this is not related to IDLE and I believe you meant to talk about the standard python shell. Since you have compiled python yourself it is

[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-04 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Thanks for the clear report. I'll get this fixed-up. -- assignee: - rhettinger components: +Extension Modules -Library (Lib) nosy: +rhettinger priority: - high versions: +Python 2.7, Python 3.1, Python 3.2

[issue6628] IDLE freezes after encountering a syntax error

2009-08-04 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I can't reproduce a hang with the python.org 3.1 IDLE on either 10.4 or 10.5 and with the system Tcl/Tk or with a newer Active Tcl/Tk 8.4 installed. Do you have another version of Tcl/Tk installed in /Library/Frameworks? Can you give a step-by-step

[issue4832] idle filename extension

2009-08-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: With this new patch, is it possible to create a file without extension on Windows? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4832

[issue4765] IDLE fails to Delete Custom Key Set properly

2009-08-04 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Interesting, this is reproducible in any version under any OS but it is more noticeable under Windows. In the step 6 you mentioned, IDLE is busy printing warnings that you will never see if you don't run IDLE from a terminal. Also, when you

[issue4765] IDLE fails to Delete Custom Key Set properly

2009-08-04 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: -- versions: +Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4765 ___ ___

[issue4832] idle filename extension

2009-08-04 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: With this new patch, is it possible to create a file without extension on Windows? It is tricky but, answering your question, you could enter a name ending with a period to save without an extension. It seems this isn't going anywhere then.

[issue6642] returning after forking a child thread doesn't call Py_Finalize

2009-08-04 Thread Reid Kleckner
New submission from Reid Kleckner r...@mit.edu: I attached a test case to reproduce. Here is what it does: - The main thread in the parent process starts a new thread and waits for it. - The child thread forks. - The child process creates a daemon thread, and returns. - The parent process (in

[issue4691] IDLE Code Caching Windows

2009-08-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Yes, the -n switch was removed from the Windows installer with r72335 (issue5847) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4691

[issue6643] joining a child that forks can deadlock in the forked child process

2009-08-04 Thread Reid Kleckner
New submission from Reid Kleckner r...@mit.edu: This bug is similar to the importlock deadlock, and it's really part of a larger problem that you should release all locks before you fork. However, we can fix this in the threading module directly by freeing and resetting the locks on the main

[issue6562] OverflowError in RLock.acquire()

2009-08-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This error is certainly due to a C function that sets an exception but does not return an error value. When running with a debug build of python, you will see XXX undetected error printed to stderr. --

[issue6644] cmathmodule.c: Extra comma in enum - fails on AIX

2009-08-04 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: Please the remove extra comma in Modules/cmathmodule.c 64 :eimes enum special_types { 65 :eimes ST_NINF,/* 0, negative infinity */ 66 :eimes ST_NEG,

[issue6644] cmathmodule.c: Extra comma in enum - fails on AIX

2009-08-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks! Fixed in r74303, r74304, r74305, r74306. -- nosy: +marketdickinson resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6637] non-empty defaultdict .copy() fails returning empty dict

2009-08-04 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed. See r74299, r74300, r74301, and r74302. Thanks for the bug report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6645] multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found

2009-08-04 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: ./Modules/ld_so_aix cc_r -qlanglvl=ansi -bI:Modules/python.exp build/ temp.aix-5.1-2.6/home/apy/rrun/build/activ epython-DEV/build/py2_6_2-aix-powerpc-apyee26-rrun/python/Modules/ _multiprocessing/multiprocessing.o build/temp

[issue6633] No handlers could be found for logger

2009-08-04 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- assignee: - vsajip nosy: +vsajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6633 ___

[issue6642] returning after forking a child thread doesn't call Py_Finalize

2009-08-04 Thread Reid Kleckner
Changes by Reid Kleckner r...@mit.edu: -- versions: +Python 2.6 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6642 ___ ___

[issue6463] IDLE with Tk-Cocoa: Edit, format menus hang

2009-08-04 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- assignee: - ronaldoussoren components: +Macintosh nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6463 ___

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-08-04 Thread Lenard Lindstrom
Lenard Lindstrom le...@telus.net added the comment: Here is the build with Python 2.6.2. It works now. C:\pygame\bug2698python setup.py build --compiler=mingw32 --verbose running build running build_ext building 'simple' extension creating build creating build\temp.win32-2.6 creating

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-08-04 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: ok then, I am closing it thanks for the feedback ! -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2698

[issue6643] joining a child that forks can deadlock in the forked child process

2009-08-04 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: Here's a patch for 3.2 which adds the fix and a test case. I also verified that the problem exists in 3.1, 2.7, and 2.6 and backported the patch to those versions, but someone should review this one before I upload those. -- keywords:

[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-04 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: Yes it does -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6620 ___ ___

[issue6622] [RFC] wrong variable used in Lib/poplib.py

2009-08-04 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: Could someone ensure the attached unittest does the job, I blindly copied from above... I don't know how to launch an unittest with the svn 'Lib', it takes the system one and just messing with PYTHONPATH won't work either. --

[issue6628] IDLE freezes after encountering a syntax error

2009-08-04 Thread brian
brian omniscient.br...@gmail.com added the comment: I have Tcl/tk 8.4.7 installed. To reproduce the hang on my machine: open IDLE new window enter the following code: for i in range(10) print(i) run module (saved as test.py) interpreter complains (shell is still responsive at this

[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks. Committed in r74312 (trunk), r74313 (py3k). -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6623] Lib/ftplib.py netrc class parsing problem

2009-08-04 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: If the macro_lines is not emptied upon end of parsing a macro definition, if there's another macro definiton it will 'inherit' the lines from the previous one, which could very well be uncool. The use before definition should also be

[issue2335] Backport set literals

2009-08-04 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Here is a patch for backporting set literals to the trunk. -- keywords: +patch nosy: +alexandre.vassalotti stage: - patch review Added file: http://bugs.python.org/file14650/backport_set_literal.diff

[issue2335] Backport set literals

2009-08-04 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Guido, I thought you had decided for this to just be a 3.x feature. Alex, if this goes forward, were you also going to change the repr() for sets and the corresponding pprint code? Are set comprehensions on the radar screen

[issue6628] IDLE freezes after encountering a syntax error

2009-08-04 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks, I'm now able to reproduce on both 10.4 and 10.5 with the Apple- supplied Tcl/Tk 8.4.7 but apparently not with a newer Tcl/Tk nor with 2.6.2. Investigating further. -- ___ Python tracker

[issue6641] strptime doesn't support %z format ?

2009-08-04 Thread David House
David House dmho...@gmail.com added the comment: From the documentation from time.strptime() (which acts the same as datetime.strptime()): Only the directives specified in the documentation [of time.strftime()] are supported. Because strftime() is implemented per platform it can sometimes offer

[issue5449] bug fix to prevent io.BytesIO from accepting arbitrary keyword arguments

2009-08-04 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Committed in r74316. Thanks! -- nosy: +alexandre.vassalotti resolution: - accepted stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue2335] Backport set literals

2009-08-04 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: I think we should keep the repr() of sets as is to avoid breaking any code. And yes, I plan to port set comprehensions along with dict comprehension. -- ___ Python tracker

[issue1967] Backport dictviews to 2.7

2009-08-04 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: I have refreshed Thomas's patch to reflect recent updates to dictviews. I also added the documentation for dictviews. -- nosy: +alexandre.vassalotti stage: - patch review Added file:

[issue1967] Backport dictviews to 2.7

2009-08-04 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Here is a patch for 2to3 to support the translation of code using dictviews. -- Added file: http://bugs.python.org/file14652/2to3_fixer_dictviews.diff ___ Python tracker

[issue6636] Non-existant directory in sys.path prevents further imports

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Looks like an optimization for the common case when directories aren't created on the fly. Your proposal would slow down all imports (a typical sys.path actually contains a few nonexisting directories). Quoting PEP302: The

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I agree with you; the docs should be improved, and I see no reason for sys.exit(msg) NOT to write to stderr inside a child thread. -- nosy: +gagenellina ___ Python tracker

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-04 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6632 ___ ___

[issue2335] Backport set literals

2009-08-04 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Raymond, I know you see this differently, but personally I don't see a problem with 2.7 getting additional backports of 3.x features, as long as they are backwards compatible. While personally I wouldn't spend effort on this particular

[issue6642] returning after forking a child thread doesn't call Py_Finalize

2009-08-04 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: Here's a patch against 2.6 for one way to fix it. I imagine it has problems, but I wanted to throw it out there as a straw man. This patch builds on the patch for http://bugs.python.org/issue6643 since some of the test cases will occasionally

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: With 2.6.2 on Windows, I get filenames surrounded by {}, all in a single unicode string. The change may be related to the new Tk library used, not directly the tkFileDialog module. (BTW, I don't see *any* unit tests for tkinter :( )

[issue6646] test_pickle fails on AIX -- 6.9999999999999994e-308 != 6.9999999999999984e-308

2009-08-04 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: test test_pickle failed -- errors occurred; run in verbose mode for details test_pickletools test test_pickletools failed -- Traceback (most recent call last): File /home/apy/rrun/tmp/autotest/apy/lib/python2.6/test/

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: AFAIK, WSAEWOULDBLOCK means that the socket is in nonblocking mode and the attempted operation could wait indefinitely to complete. But I don't understand how that could happen since a previous select() confirmed the socket is

[issue2335] Backport set literals

2009-08-04 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: These all seem fine to me. Was just checking in because I thought you had previously pronounced otherwise. -- ___ Python tracker rep...@bugs.python.org

[issue6625] UnicodeEncodeError on pydoc's CLI

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: After applying your patch, are string (not unicode) docstrings still being handled properly? Adding a test case (in Lib/test/test_pydoc.py) would be nice too. -- nosy: +gagenellina ___

[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: This is a duplicate of #1633941 -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5505 ___

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2009-08-04 Thread Fan Decheng
Changes by Fan Decheng fandech...@gmail.com: -- nosy: +r_mosaic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1633941 ___ ___ Python-bugs-list

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2009-08-04 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: With 2.6.2 on Windows, I get filenames surrounded by {}, all in a single unicode string. This string surrounded by { } indicates it is supposed to be a tcl list, which didn't get converted but should be done by tkFileDialog. The change may

[issue6562] OverflowError in RLock.acquire()

2009-08-04 Thread David Roberts
David Roberts d...@vidr.cc added the comment: Ok, so if it's a bug in (Py)Qt then I'm not going to worry about it. I've managed to fix the issue in my case anyway, by (essentially) replacing: image = Image.open(fname) image.load() tile = ImageQt(image) with (the much more obvious

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2009-08-04 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: AFAIK, WSAEWOULDBLOCK means that the socket is in nonblocking mode and the attempted operation could wait indefinitely to complete. Rather pessimistic way to see it :) I've always read it as operation cannot be completed without blocking.

[issue6526] importlib.import_module affects permissions of .pyc files subsequently created by import

2009-08-04 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: OK, I need a double-check here, David. At this point I have narrowed it down to this code triggering it:: finder = importlib._bootstrap._PyPycFileFinder('.') sys.path_importer_cache['.'] = finder And I am not kidding, that assignment is

[issue6647] warnings.catch_warnings is not thread-safe

2009-08-04 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: warnings.catch_warnings is a context manager supposed to save and restore warnings filters, and optionally record all warnings issued. But it does so in a completely thread-unsafe way, by replacing the module's showwarning and

[issue6635] Profiler doesn't print usage (indexError instead)

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: The patch looks fine to me. -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6635 ___

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: So this patch should fix it. But I cannot fire the bug using the posted example, and there are no test cases for this module yet, so I could not test it. -- keywords: +patch Added file: