[issue4116] name conflict in ScrolledCanvas.__init__() in Lib/turtle.py

2008-11-19 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Thanks for the patch. Committed as r67279, r67280, and r67281. -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4116

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-19 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: tk 8.4.19 here, but windows and linux almost surely uses different window managers (you could run gnome and others under windows, but I'm betting it is not the case). Now, it is very hard to say that we shouldn't care about this bug here. Tcl

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-19 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12056/distutils_upload_2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4338 ___

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-19 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12057/distutils_upload_2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4338 ___

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2008-11-19 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: The example works correctly on Linux (py3k trunk). The problem is maybe specific to Windows? -- nosy: +haypo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4352

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2008-11-19 Thread Gregor Lingl
Gregor Lingl [EMAIL PROTECTED] added the comment: I cannot call the Canvas method _update_idletasks() from within _Screen.setup() becaus this would contradict to the architecture of the module which isolates all direct references to Tkinter to TurtleScreenBase. (The idea behind this is to make

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2008-11-19 Thread TJ Usiyan
TJ Usiyan [EMAIL PROTECTED] added the comment: same here -- nosy: +TJ ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4017 ___ ___ Python-bugs-list

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2008-11-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Indeed. It happens when the filesystem encoding is not utf-8. I have several changes in my local workspace about this, which also deal with zipimport and other places that import modules. I suggest to let 3.0 go out and correct all this

[issue4289] Python 2.6 installer crashes when selecting 'advanced' and cancelling it

2008-11-19 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Thanks for the report. Fixed in r67283, r67284, and r67285. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4289

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: To correct the reported problem, 3 lines are indeed enough. I just wanted to test my changes, so I ran setup.py bdist upload on my favourite package, even if I expect it to fail at the end because I don't have a valid PyPI account. Here

[issue4347] Dependencies of graminit.h are not rebuilt when the file is regenerated

2008-11-19 Thread Thomas Lee
Thomas Lee [EMAIL PROTECTED] added the comment: Updating affected versions. Probably affects 3.x too. -- versions: +Python 2.7 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4347 ___

[issue4353] Move description what a trace should should return to settrace from pdb section into sys.settrace section

2008-11-19 Thread rocky bernstein
New submission from rocky bernstein [EMAIL PROTECTED]: This sentence: The local trace function should return a reference to itself (or to another function for further tracing in that scope), or None to turn off tracing in that scope. which appears under How it [the debugger] Works

[issue4008] IDLE: checksyntax() doesn't support Unicode?

2008-11-19 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This patch has two problems: 1. saving files fails, since there is still a call left to the function coding_spec, but that function is removed. 2. if saving would work: it doesn't preserve the line endings of the original file when writing it

[issue4309] ctypes documentation

2008-11-19 Thread David W. Lambert
David W. Lambert [EMAIL PROTECTED] added the comment: Changing the string to type byte 'Works' from ctypes import * libc = CDLL('libc.so.6') libc.printf(b'hello') ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4309

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-19 Thread Hagen Fürstenau
Hagen Fürstenau [EMAIL PROTECTED] added the comment: I just tested Amaury's patch and it seems to work fine. There's a similar str/bytes issue with the register command, but I'll open another issue for that. ___ Python tracker [EMAIL PROTECTED]

[issue4354] distutils.command.register is broken

2008-11-19 Thread Hagen Fürstenau
New submission from Hagen Fürstenau [EMAIL PROTECTED]: The distutils command register has two problems with Python 3.0: 1. The authentication dialog crashes because of a problem with the functiopn raw_input defined there. 2. Uploading the data fails because of str/bytes confusion. The

[issue4355] Error in docs of urllib.request and urllib.parse

2008-11-19 Thread Hagen Fürstenau
New submission from Hagen Fürstenau [EMAIL PROTECTED]: The docs refer to urllib.urlencode instead of urllib.parse.urlencode. A patch is attached. -- assignee: georg.brandl components: Documentation files: doc_urlencode.patch keywords: patch messages: 76056 nosy: georg.brandl, hagen

[issue4323] Wrong encoding in files saved from IDLE (3.0rc2 on Windows)

2008-11-19 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Here is a patch that removes the entire IDLE coding option machinery, thus implementing PEP 3120. -- keywords: +needs review Added file: http://bugs.python.org/file12060/remove_coding_option.py ___

[issue4340] xmlrpc.client - default 'SlowParser' not defined

2008-11-19 Thread Mike Watkins
Mike Watkins [EMAIL PROTECTED] added the comment: Running the same code today passes, despite the fact I'm still running the same svn version. Bizarre. However the core reported issue - SlowParser being undefined in the module, remains. ___ Python tracker

[issue4356] Add key argument to bisect module functions

2008-11-19 Thread Miki Tebeka
New submission from Miki Tebeka [EMAIL PROTECTED]: It'd be helpful of the functions in the bisect modules will have a key argument just like sort. -- messages: 76060 nosy: tebeka severity: normal status: open title: Add key argument to bisect module functions

[issue4356] Add key argument to bisect module functions

2008-11-19 Thread Miki Tebeka
Changes by Miki Tebeka [EMAIL PROTECTED]: -- components: +Library (Lib) type: - feature request versions: +Python 2.7, Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4356 ___

[issue4354] distutils.command.register is broken

2008-11-19 Thread Hagen Fürstenau
Hagen Fürstenau [EMAIL PROTECTED] added the comment: Attached new patch without sys. Added file: http://bugs.python.org/file12061/distutils_register_2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4354

[issue4357] frozen?set operations create incorrectly initialized instances of subclasses

2008-11-19 Thread Alex Samuel
New submission from Alex Samuel [EMAIL PROTECTED]: Methods of set and frozenset that return new set or frozenset instances return instances of subclasses, but these instances are not initialized correctly. In the attached code sample, z is an instance of MySet but MySet.__new__ and

[issue4357] frozen?set operations create incorrectly initialized instances of subclasses

2008-11-19 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: The bug is that the set operations return instances of the subclass, rather than instances of set. This is already fixed for 3.0: see issue 1721812. It was deemed too risky to backport the change to 2.x. -- assignee: theller -

[issue4332] asyncore.file_dispatcher does not use dup()'ed fd

2008-11-19 Thread Josiah Carlson
Josiah Carlson [EMAIL PROTECTED] added the comment: Oy. You are right. Fixed in Py3k in r67286, in trunk (2.7) in r67287, and 2.6-maintenance in r67288. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue4358] Segfault in stringobject.c

2008-11-19 Thread Farshad Khoshkhui
New submission from Farshad Khoshkhui [EMAIL PROTECTED]: I'm encountering random segfaults on multiple machines. By examining core dumps, it's all happening in stringobject.c (_PyString_Resize or string_join). By using pyframev I figured out it's always happening inside xmlrpclib.py

[issue4358] Segfault in stringobject.c

2008-11-19 Thread Farshad Khoshkhui
Farshad Khoshkhui [EMAIL PROTECTED] added the comment: Another Backtrace. I have three other core dumps with exact same backtrace on two different machines. Added file: http://bugs.python.org/file12064/backtrace2 ___ Python tracker [EMAIL PROTECTED]

[issue4357] frozen?set operations create incorrectly initialized instances of subclasses

2008-11-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Well, this was changed only three days ago. Please wait for the next 3.0rc3... -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4357

[issue4358] Segfault in stringobject.c

2008-11-19 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: Has nothing to do with ctypes (the package), unassigning. -- components: -ctypes ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4358 ___

[issue4354] distutils.command.register is broken

2008-11-19 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4354 ___ ___ Python-bugs-list mailing list

[issue2306] Update What's new in 3.0

2008-11-19 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- versions: +Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2306 ___ ___ Python-bugs-list mailing

[issue4358] Segfault in stringobject.c

2008-11-19 Thread Thomas Heller
Changes by Thomas Heller [EMAIL PROTECTED]: -- assignee: theller - nosy: -theller ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4358 ___ ___

[issue4348] bytearray methods returning self

2008-11-19 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: make_sure_to_copy.patch seems fine short of adding a comment to the test referencing this issue. -- assignee: - benjamin.peterson nosy: +brett.cannon ___ Python tracker [EMAIL PROTECTED]

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2008-11-19 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I cannot call the Canvas method _update_idletasks() from within _Screen.setup() becaus this would contradict to the architecture of the module which isolates all direct references to Tkinter to TurtleScreenBase. (The idea behind this is to

[issue4348] bytearray methods returning self

2008-11-19 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12047/make_sure_to_copy.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4348 ___

[issue4348] bytearray methods returning self

2008-11-19 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: And it turns out I should have looked at the other patch instead. =) The missing comment from the test still holds. I also think you did not need to cut out the fast path from translate as much as you did when there is no deletion. It's still

[issue4356] Add key argument to bisect module functions

2008-11-19 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: This request has come up repeatedly (and been rejected) in the past. See issues 2954, 3374, 1185383, 1462228, 1451588, 1619060. Could you perhaps explain your particular use case for this? A few truly convincing use-cases might increase

[issue4348] bytearray methods returning self

2008-11-19 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Fixed in r67291. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4348 ___

[issue4236] Crash when importing builtin module during interpreter shutdown

2008-11-19 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: So if you look at Python/pythonrun.c, there is a comment from Tim Peters (from r34776) where he explicitly points out that this is possibility but that it has never been reported before. Oops. =) -- nosy: +brett.cannon

[issue4236] Crash when importing builtin module during interpreter shutdown

2008-11-19 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: I don't think there is anything to fix here beyond the docs for __del__. You should never expect anything to be working in __del__, and that includes the import machinery. It should be bare-bones, not trying to pull in new code! I have attached

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2008-11-19 Thread Gregor Lingl
Gregor Lingl [EMAIL PROTECTED] added the comment: I find that desire misguided; this is (IMO) a case of false abstraction. Is there any kind of proof that this design actually works, i.e. can be ported to a different GUI library (like, say, PythonWin? or AWT, when run in Jython?) Yes

[issue4358] Segfault in stringobject.c

2008-11-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This is difficult: the backtrace only show plain python operations. Some hints though: One backtrace shows a memory corruption in the obmalloc data. This may come from a buffer overrun. You initially selected ctypes in Components,

[issue3947] configure --with-threads on cygwin = crash on thread related tests

2008-11-19 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: I'm not sure that reported issue is openssl bug. Just tested a GCC(mingw) build of test case reproduce.zip with openssl(0.9.8i) and pthreads-w32. The test run without problems on nt5.1(xp). -- nosy: +rpetrov

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-19 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: If you look at the 2.7 code all it requires of keys and values in __setitem__ is that they are strings; there is nothing about Latin-1 in terms of specific encoding (must be a 3.0 addition to make the str/unicode transition the easiest). That

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2008-11-19 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: 2. Is it really fruitful to discuss general design issues along with (comparatively) small problems like this one - in the sense of alternative ways to fix that problem? Most definitely. The module went into Python without any review

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-19 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: OK, now I see why it is called 'dumb'; the thing literally just dumps out the repr of two strings on each line for key/value pairs. To read it just evals each line in the string. And whichdb detects this format by looking for ' or as the first

[issue4359] at runtime, distutils uses buildtime files

2008-11-19 Thread Toshio Kuratomi
New submission from Toshio Kuratomi [EMAIL PROTECTED]: When using some distutils functions, distutils attempts to use buildtime files like Makefile and pyconfig*.h as data sources. For instance, this snippet:: from distutils.command.install import install from distutils.core import

[issue4356] Add key argument to bisect module functions

2008-11-19 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Miki, the issue is that bisect calls tend to be made repeatedly, so the key function can be called over and over again for the same argument. It is almost always a better design to simply decorate the list so the key function never gets

[issue3947] configure --with-threads on cygwin = crash on thread related tests

2008-11-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: With cygwin, calling sem_wait() in the DLL_THREAD_DETACH section of a DllMain function can crash the program. See attached zip file, it contains two C files which only include pthread.h and semaphore.h (no python, no openssl). The

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2008-11-19 Thread Gregor Lingl
Gregor Lingl [EMAIL PROTECTED] added the comment: Most definitely. The module went into Python without any review whatsoever. Nobody (but you) has ever looked at the code in detail. That's not True! Brad Miller, for example, who also had submitted patches to the pythontracker, coauthor of

[issue4309] ctypes documentation

2008-11-19 Thread David W. Lambert
David W. Lambert [EMAIL PROTECTED] added the comment: When patching py3k/Doc/library/ctypes.rst or ctypes module tree please consider uWorld! produces a syntax error. These wide character formats produce unintelligible output: for n in range(3,6): code = 'utf_%s'%2**n

[issue4353] Move description what a trace should should return to settrace from pdb section into sys.settrace section

2008-11-19 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks for the suggestion! Done in r67205. -- nosy: +benjamin.peterson resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4353

[issue3947] configure --with-threads on cygwin = crash on thread related tests

2008-11-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: OK, I'll close this entry, and I'll post message to cygwin ml about this issue. # I already posted it to openssl-dev, but there was no response.

[issue4358] Segfault in stringobject.c

2008-11-19 Thread Farshad Khoshkhui
Farshad Khoshkhui [EMAIL PROTECTED] added the comment: No, there isn't any custom made C extension, nor I'm using ctypes. (It was a mistake selecting ctypes). The application is a web service with postgresql backend, so it heavily uses pyexpat and pygresql in a threaded environment. I'll