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

2008-11-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I suceeded to reproduce this issue with coLinux + UltraVNC on Win2000. Yes, py3k claimed utf-8 error, so I tried trunk. Here is result. *** event.keycode: 8 *** event.state: 0 *** event.char: '' *** event.keycode: 16 *** event.state:

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

2008-11-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I did little modification to tkintertest.py. Please use this line. my_print(*** event.char: , repr(event.char)) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028

[issue4367] segmentation fault in ast_for_atom

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Yes, it's better to simply call str() on the exception. I was confused by the fact that UnicodeError is a simple exception, with a single message, unlike UnicodeDecodeError which has more attributes. About the patch: - The test does not

[issue4373] Reference leaks in Python 3.0rc3

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I have studied this some time ago. The xx module comes each time from a different file (in a directory created with tempfile.mkdtemp). Every instance of the module creates a new entry in the static extensions dictionary in

[issue4087] Document the effects of NotImplemented on == and !=

2008-11-21 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Looks good. Thanks, Raymond. Minor typos: numberic - numeric the expression ``x in y`` equivalent to - the expression ``x in y`` is equivalent to ___ Python tracker [EMAIL PROTECTED]

[issue4375] inspect.getsource doesn't work with PYTHONPATH and source compiled from a different dir

2008-11-21 Thread Erick Tryzelaar
New submission from Erick Tryzelaar [EMAIL PROTECTED]: I'm running into a similar problem as Jean-Paul in: http://bugs.python.org/issue4223 But the patch in it doesn't work for me. My issue is also with files compiled already with python3.0, but then being accessed from a different location

[issue4373] Reference leaks in Python 3.0rc3

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The refleak in test_pickle comes from unpickler_read(). The attached patch corrects it. Added file: http://bugs.python.org/file12090/pickle-leak2.patch ___ Python tracker [EMAIL PROTECTED]

[issue4376] Nested ctypes 'BigEndianStructure' fails

2008-11-21 Thread Aaron Brady
New submission from Aaron Brady [EMAIL PROTECTED]: Nested 'BigEndianStructure' fails in 2.5 and 2.6.: TypeError: This type does not support other endian Example and traceback in attached file. -- assignee: theller components: ctypes files: ng36.py messages: 76171 nosy: castironpi,

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

2008-11-21 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: You are missing the point on using Tcl_CreateObjCommand, I didn't mean to just go and and do s/Tcl_CreateCommand/Tcl_CreateObjCommand/ because if you are going to convert everything to unicode then there is no point in using

[issue4336] Fix performance issues in xmlrpclib

2008-11-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson [EMAIL PROTECTED] added the comment: Just a thought here: Maybe it would be better just to change socket._fileobject to always use a minimum of 8k readbuffer for readline() just as read() already does. The read() documentation states that recv(1) is very inefficient,

[issue4373] Reference leaks in Python 3.0rc3

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The problem is that on Windows (and cygwin) you cannot unlink a .pyd that is currently loaded in memory. I tried to use ctypes and call FreeLibrary. Now the .pyd can be removed, but the interpreter crashes when it comes to free the

[issue4373] Reference leaks in Python 3.0rc3

2008-11-21 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Good analysis Amaury! The new patch for build ext uses a single temp dir. -- nosy: +loewis Added file: http://bugs.python.org/file12092/issue4373_build_ext2.patch ___ Python tracker [EMAIL

[issue1597850] Cross compiling patches for MINGW

2008-11-21 Thread Stephan Raue
Stephan Raue [EMAIL PROTECTED] added the comment: when i crosscompile Python 2.6 with Patch cross-2.6-0.7.diff which is based on cross-2.5.1.patch i become follow error: ld -s -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict- prototypes -I. -IInclude -I./Include

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

2008-11-21 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12089/adhok.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028 ___

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

2008-11-21 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: I'm sorry if it sounded like I were bashing you, I was just pointing out my view of the patch -- you didn't need to remove it. The patch I submitted here can also be improved (although it works), but I'm leaving it as a possible idea for

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

2008-11-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: You are missing the point on using Tcl_CreateObjCommand, I didn't mean to just go and and do s/Tcl_CreateCommand/Tcl_CreateObjCommand/ because if you are going to convert everything to unicode then there is no point in using

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

2008-11-21 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Hirokazu Yamamoto added the comment: You are missing the point on using Tcl_CreateObjCommand, I didn't mean to just go and and do s/Tcl_CreateCommand/Tcl_CreateObjCommand/ because if you are going to convert everything to unicode then there

[issue4372] __cmp__ removal not in What's New

2008-11-21 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Duplicate issue: see #4372. Anyway, an you write a patch? -- nosy: +haypo resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4372

[issue4372] __cmp__ removal not in What's New

2008-11-21 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4372 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4358] Segfault in stringobject.c

2008-11-21 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: The application is a web service with postgresql backend, so it heavily uses pyexpat and pygresql in a threaded environment. pyexpat or pygresql is maybe not thread safe. To catch such error, you have to use Valgrind. And to use Valgrind,

[issue3741] DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception

2008-11-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3741 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3799 ___

[issue4373] Reference leaks in Python 3.0rc3

2008-11-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4373 ___

[issue2306] Update What's new in 3.0

2008-11-21 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2306 ___

[issue4303] [2.5 regression] ctypes fails to build on arm-linux-gnu

2008-11-21 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: Deferring until 3.0 final is out. -- nosy: +barry priority: release blocker - deferred blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4303

[issue2306] Update What's new in 3.0

2008-11-21 Thread Skip Montanaro
Changes by Skip Montanaro [EMAIL PROTECTED]: -- nosy: +skip.montanaro ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2306 ___ ___ Python-bugs-list

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: damn... my cc to [EMAIL PROTECTED] didn't work. Here's the recap (message to python-checkins): me ... I thought Guido was of the opinion that the 3.0 version should me be able to read dumb dbms written by earlier Python versions

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Skip Montanaro
Changes by Skip Montanaro [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12096/mydb3read.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3799 ___

[issue3799] Re: r67310 - in python/branches/py3k: Lib/dbm/dumb.py Lib/test/test_dbm_dumb.py Misc/NEWS

2008-11-21 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: I think the ability to read old files is essential. The ability to write them is a mer nice-to-have. On Fri, Nov 21, 2008 at 7:36 AM, [EMAIL PROTECTED] wrote: me ... I thought Guido was of the opinion that the 3.0 version should me

[issue3799] Re: r67310 - in python/branches/py3k: Lib/dbm/dumb.py Lib/test/test_dbm_dumb.py Misc/NEWS

2008-11-21 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Reading old dumbdbm files is essential. Writing them is not. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3799 ___

[issue4378] howto doc update

2008-11-21 Thread David W. Lambert
New submission from David W. Lambert [EMAIL PROTECTED]: http://docs.python.org/dev/3.0/howto/functional.html Gone: itertools.ifilter itertools.imap itertools.izip changed: itertools.ifilterfalse -- itertools.filterfalse strange? functools.reduce is described, but not with

[issue3926] Idle doesn't obey the new improved warnings arguements

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This is already corrected by r66922 (issue3391), but the patches are different and there are some things I don't like in the present implementation: - in idle_showwarning, the file argument is ignored and always replaced by

[issue1711800] SequenceMatcher bug with insert/delete block after replace

2008-11-21 Thread Andrew Inglis
Andrew Inglis [EMAIL PROTECTED] added the comment: Are there any updates for this issue? I am having the same problem, or, lack of feature, with SequenceMatcher. Gabriel, Differ doesn't seem to have the functionality, or an easy way to patch it to get the functionality, that Christian is talking

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2008-11-21 Thread Kevin Watters
New submission from Kevin Watters [EMAIL PROTECTED]: After releasing a Py_DEBUG build to some users who were experiencing problems, I noticed a pattern in some of the crash reports I got back: msvcr90d!_wassert+0xb64 python25_d!FILE_TIME_to_time_t_nsec+0xac

[issue4368] A bug in ncurses.h still exists in FreeBSD 4.9 - 4.11

2008-11-21 Thread Akira Kitada
Akira Kitada [EMAIL PROTECTED] added the comment: Yes, that change was not merged into 2.5 branch. I Hope it's not yet been too late for 2.5.3. I confirmed this fixes the problem on FreeBSD 4.11. ___ Python tracker [EMAIL PROTECTED]

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: So the use of pickle is not fair as that doesn't round-trip if you simply write out a file because py3k pickle doesn't like classic classes and the new-style classes want copy_reg which is not in existence in py3k since it was renamed. See

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12099/mydb2write.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3799 ___

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12100/mydb3read.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3799 ___ ___

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- resolution: accepted - ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3799 ___ ___ Python-bugs-list

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Brett In other words I think my solution works and pickle is the Brett trouble-maker in all of this. I can buy that. Should pickle map copy_reg to copyreg? Is that the only incompatibility? Actually, it seems this ticket should be

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Fri, Nov 21, 2008 at 10:32, Skip Montanaro [EMAIL PROTECTED] wrote: Skip Montanaro [EMAIL PROTECTED] added the comment: Brett In other words I think my solution works and pickle is the Brett trouble-maker in all of this. I can buy

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: One doc nit: There is still reference to ``gdbm`` and Dbm (or dbm) objects when they should probably use ``dbm.gnu`` and ``dbm.ndbm``, respectively. I'm confused by the encoding=Latin-1 args to _io.open for dbm.dumb. I thought the default

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: -- nosy: -haypo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3799 ___ ___ Python-bugs-list mailing list

[issue3799] Byte/string inconsistencies between different dbm modules

2008-11-21 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Fri, Nov 21, 2008 at 11:01, Skip Montanaro [EMAIL PROTECTED] wrote: Skip Montanaro [EMAIL PROTECTED] added the comment: One doc nit: There is still reference to ``gdbm`` and Dbm (or dbm) objects when they should probably use ``dbm.gnu``

[issue4380] Deepcopy of functools.partial gives wierd exception

2008-11-21 Thread Kevin Fitch
New submission from Kevin Fitch [EMAIL PROTECTED]: from functools import partial from copy import deepcopy p = partial(Hello world.replace, world) p(mom) p2 = deepcopy(p) The output I get is: Hello mom Followed by: type 'exceptions.TypeError' Traceback (most recent call last)

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: You almost gave the answer in your question - the FILE_TIME is about to be converted to a time_t greater than 2**31. in posixmodule.c::FILE_TIME_to_time_t_nsec(), a comment says: /* XXX Win32 supports time stamps past 2038; we currently

[issue4381] Cannot declare multiple classes via exec when inside a function.

2008-11-21 Thread Kevin Fitch
New submission from Kevin Fitch [EMAIL PROTECTED]: codeText = class foo(object): pass class bar(object): baz = foo() def doExec(text): exec text ### This works: # Although if I do this before the doExec below, then the # doExec doesn't fail. # exec codeText ### But this does not:

[issue4356] Add key argument to bisect module functions

2008-11-21 Thread Miki Tebeka
Miki Tebeka [EMAIL PROTECTED] added the comment: I agree you can get around this with defining __cmp__, however same goes to sort and it was added anyway. My take on it is that sometimes I need to find something in a big list of objects, and I don't like to do DSU and not add __cmp__ to the

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The attached patch corrects the problem: since VS2008 time_t is a 64bit integer; now os.stat() can return times after 2038 on Windows. This prevents the crash, but the functionality is far from complete: os.utime() at least should

[issue4381] Cannot declare multiple classes via exec when inside a function.

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I agree that it is confusing; in short: a bare exec() does not play well with closures; This is a consequence of the python execution model, and is unlikely to change. Here, the class 'foo' is stored in the function's local variables.

[issue4367] segmentation fault in ast_for_atom

2008-11-21 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This new patch address review issues. Added file: http://bugs.python.org/file12102/use_PyObject_Str_and_test3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4367

[issue4363] Make uuid module functions usable without ctypes

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Fixed in r63718 (trunk) and r63719 (2.6) Thanks for the report! -- nosy: +amaury.forgeotdarc resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue4382] test_dbm_dumb fails due to character encoding issue on Mac OS X

2008-11-21 Thread Martina Oefelein
New submission from Martina Oefelein [EMAIL PROTECTED]: test_dbm_dumb fails due to what appears to be a character encoding issue on Mac OS X: Majestix:Python-3.0rc3 martina$ DYLD_FRAMEWORK_PATH=/Users/martina/Downloads/Python-3.0rc3: ./python.exe -E -bb ./Lib/test/regrtest.py -l

[issue4382] test_dbm_dumb fails due to character encoding issue on Mac OS X

2008-11-21 Thread Martina Oefelein
Martina Oefelein [EMAIL PROTECTED] added the comment: Example of verbose output (other testcases are similar): == ERROR: test_dumbdbm_creation (test.test_dbm_dumb.DumbDBMTestCase)

[issue4382] test_dbm_dumb fails due to character encoding issue on Mac OS X

2008-11-21 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- nosy: +brett.cannon ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4382 ___ ___ Python-bugs-list

[issue4367] segmentation fault in ast_for_atom

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Everything looks good. (20 lines of a complex test for two simple lines of code that nobody will ever run... unit tests is a religion) -- keywords: -needs review resolution: - accepted ___

[issue4367] segmentation fault in ast_for_atom

2008-11-21 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Fri, Nov 21, 2008 at 4:21 PM, Amaury Forgeot d'Arc [EMAIL PROTECTED] wrote: Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Everything looks good. Thanks for the review. Fixed in r67320. (20 lines of a complex test for

[issue4367] segmentation fault in ast_for_atom

2008-11-21 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: accepted - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4367 ___

[issue4382] test_dbm_dumb fails due to character encoding issue on Mac OS X

2008-11-21 Thread Martina Oefelein
Martina Oefelein [EMAIL PROTECTED] added the comment: The Mac Roman encoding comes into play, because _commit opens _dirfile without explicitly specifying an encoding. io.open then gets the encoding via locale.getpreferredencoding, which returns mac-roman: Majestix:Python-3.0rc3 martina$

[issue4383] UnboundLocalError when IDLE cannot connect to its subprocess

2008-11-21 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]: When IDLE cannot connect to its subprocess, it tries to display the socket.error. But since python 3.0 the exception variable is cleared after the except: block and unavailable for the displaying code. Exception in thread SockThread:

[issue4382] test_dbm_dumb fails due to character encoding issue on Mac OS X

2008-11-21 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Issue 3799 already has a patch that specifies the encoding upon opening the file so this should be fixed by final. Can you test the patch (specify_open_encoding.diff) and let me know if that solves your problem, Martina? -- dependencies:

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

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The patch is good and does simplify things: the py3k conversion to unicode may have some advantages sometimes! I suggest to also remove the remaining two occurrences of frameEncoding in configDialog.py. This will suppress the extra

[issue4383] UnboundLocalError when IDLE cannot connect to its subprocess

2008-11-21 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Looks good. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4383 ___

[issue4328] à in ufoo raises a misleading error

2008-11-21 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: | but then it works with: | b'f' in 'foo' | True Not True in 3.0rc3. Same message as you quoted: 'in string' requires string as left operand, not bytes bytes + string fails too -- nosy: +tjreedy

[issue4329] base64 does not properly handle unicode strings

2008-11-21 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: It's not a bug. base64 is a codec to encode *bytes* and characters. You have to encode your unicode string to bytes using a charset Example (utf-8): from base64 import b64encode, b64decode b64encode(u'a\xe9'.encode(utf-8)) 'YcOp'

[issue4383] UnboundLocalError when IDLE cannot connect to its subprocess

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Thanks for the fast review, fixed in r67323 -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4383

[issue4380] Deepcopy of functools.partial gives wierd exception

2008-11-21 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- priority: - normal ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4380 ___ ___ Python-bugs-list

[issue4374] Pickle tests fail w/o _pickle extension

2008-11-21 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - alexandre.vassalotti nosy: +alexandre.vassalotti ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4374 ___

[issue4374] Pickle tests fail w/o _pickle extension

2008-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The test could be skipped for the pure-python version of pickle: after all, it just tests that the interpreter does not segfault... A simpler change is to change the expected exception into Exception. -- nosy:

[issue4384] Add a warnings.showwarning replacement for logging

2008-11-21 Thread Brett Cannon
New submission from Brett Cannon [EMAIL PROTECTED]: It would be nice if the logging package provided a replacement for warnings.showwarning() so that all warning redirect to the logging package. -- components: Library (Lib) keywords: easy messages: 76221 nosy: brett.cannon priority:

[issue4371] coerce gone---but not from docs

2008-11-21 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks for the suggestions. Done in r67324 and r67311. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4371

[issue4384] Add a warnings.showwarning replacement for logging

2008-11-21 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - vsajip nosy: +vsajip ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4384 ___ ___

[issue4329] base64 does not properly handle unicode strings

2008-11-21 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: This module provides data encoding and decoding as specified in RFC 3548. This standard defines the Base16, Base32, and Base64 algorithms for encoding and decoding arbitrary binary strings into text strings that can be safely sent by email,

[issue4329] base64 does not properly handle unicode strings

2008-11-21 Thread Terry J. Reedy
Changes by Terry J. Reedy [EMAIL PROTECTED]: -- resolution: fixed - invalid ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4329 ___ ___ Python-bugs-list

[issue4385] Py_Object_HEAD_INIT in Py3k

2008-11-21 Thread Nick Coghlan
New submission from Nick Coghlan [EMAIL PROTECTED]: The memory layout of PyType object's changes in Py3k from the *compiler's* point of view. This means PyObject_HEAD_INIT can no longer be used to initialise PyVarObject type definitions. However, the documentation doesn't point this out (or

[issue4386] A binary file should show b in its mode

2008-11-21 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]: The changes following r67300 introduced the .mode and .name attributes on all the file-like objects returned by the open() function. This also changed the mode returned by a file opened in binary mode: it was rb, now it is r. The

[issue4387] binascii b2a functions accept strings (unicode) as data

2008-11-21 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: Binascii b2a_xxx functions accept 'binary data' and return ascii-encoded bytes. The corresponding a2b_xxx functions turn the ascii-encoded bytes back to 'binary data' (bytes). If the binary data is bytes, these should be inverses of each

[issue4386] A binary file should show b in its mode

2008-11-21 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Amaury, thanks for getting the tests to pass. Applied in r67325. -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4386

[issue4374] Pickle tests fail w/o _pickle extension

2008-11-21 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: I think the best way to fix this is to add sanity checks similar to the ones in _pickle. The checks are obviously useless in pickle.py, but I think it is simpler than to try to skip tests, and it gives a nicer error message to people who

[issue4337] Iteration over a map object with list()

2008-11-21 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: Dict views and range objects are *iterables* because they are based on reusable information. Map, filter, and similar objects are *iterators* because they are based on iterables that could be once-through iterators. The built-in function

[issue4356] Add key argument to bisect module functions

2008-11-21 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: Just a reminder that __cmp__ is gone in 3.0. I presume bisect, like sort, only requires __lt__ and perhaps __eq__, though I can find no doc of either. -- nosy: +tjreedy ___ Python tracker [EMAIL

[issue4361] Docstring for Lib/string.py is outdated

2008-11-21 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: In rc3 also: The problem is partial update: DESCRIPTION Public module variables: whitespace -- a string containing all characters considered whitespace lowercase -- a string containing all characters considered lowercase