[issue3991] urllib.request.urlopen does not handle non-ASCII characters

2009-02-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue1911] webbrowser.open firefox 3 issues

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Out-of-date: fixed in trunk. -- nosy: +ajaksu2 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1384175] random module - Provider DLL failed to initialize correctly

2009-02-08 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- resolution: -> works for me status: open -> closed versions: +3rd party -Python 2.4 ___ Python tracker ___

[issue1170065] HTTPResponse.getheaders() returns lowercased header names

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Superseder: issue 2275. -- nosy: +ajaksu2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue924806] email.Header.Header() produces wrong headers with utf8 enc.

2009-02-08 Thread Andreas Jung
Andreas Jung added the comment: No idea - this bug is five years old! ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1056293] dir() should only return strings

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Still present in trunk:69418: class obj: pass obj.__dict__[1] = 0 [k for k in dir(obj) if k.startswith("set_")] -- nosy: +ajaksu2 type: -> behavior versions: +Python 2.7 ___ Python tracker

[issue1005113] test__locale fails on MacOS X

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Out-of-date? -- nosy: +ajaksu2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue1175686] add "reload" function

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Superseder: issue 5138. -- nosy: +ajaksu2 versions: +Python 2.7, Python 3.1 ___ Python tracker ___

[issue1384175] random module - Provider DLL failed to initialize correctly

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Given MvL's diagnostics and lack of response from OP, suggest closing. -- nosy: +ajaksu2 ___ Python tracker ___ ___

[issue1397850] libpython2.4.so get not installed

2009-02-08 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue461890] xdrlib allow subclass for file access

2009-02-08 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue1397850] libpython2.4.so get not installed

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: configure.in still doesn't have a "*) AC_MSG_ERROR(--enable-shared not supported on this system)", closing as won't fix still sounds good. -- nosy: +ajaksu2 title: libpython2.4.so get not installed -> libpython2.4.so get not installed versions: +Python 2

[issue461890] xdrlib allow subclass for file access

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Seems like a very rare use case, closing is suggested. -- components: +Library (Lib) -None nosy: +ajaksu2 versions: +Python 2.7, Python 3.1 ___ Python tracker _

[issue736428] allow HTMLParser error recovery

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Superseder: issue 755660. -- nosy: +ajaksu2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue779191] BasicModuleLoader behaviour in Python 2.3c2

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Even if the described behavior still occurs, looks like a won't fix. -- nosy: +ajaksu2 type: -> behavior ___ Python tracker ___ ___

[issue924806] email.Header.Header() produces wrong headers with utf8 enc.

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Is the perceived incompatibility (still) a real problem? -- nosy: +ajaksu2 type: -> feature request ___ Python tracker ___

[issue960821] Add an updating load function in pickle

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Any real use cases beyond being very nice? -- nosy: +ajaksu2 versions: +Python 2.7, Python 3.1 ___ Python tracker ___ __

[issue1046092] HTMLParser fix to accept mailformed tag attributes

2009-02-08 Thread Daniel Diniz
Changes by Daniel Diniz : -- type: -> feature request versions: +Python 2.7 -Python 2.3 ___ Python tracker ___ ___ Python-bugs-list

[issue975556] HTMLParser lukewarm on bogus bare attribute chars

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Per #921657, looks like the current behavior is correct. -- nosy: +ajaksu2 type: -> feature request versions: +Python 2.7 -Python 2.3 ___ Python tracker __

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Besides being outdated, the OP shows it's trivial to access the fileno: "r.fileno = r.fp.fileno". I suggest closing. -- nosy: +ajaksu2 ___ Python tracker _

[issue1660009] continuing problem with httplib multiple set-cookie headers

2009-02-08 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> georg.brandl components: +Documentation -Library (Lib) nosy: +georg.brandl type: -> behavior versions: +Python 2.7 -Python 2.3 ___ Python tracker __

[issue5189] test_cmd_line failure on the OS X buildbot

2009-02-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: This would be a duplicate of #4388. -- nosy: +benjamin.peterson resolution: -> duplicate status: open -> closed ___ Python tracker ___ _

[issue5185] Idle doesn't work on 2.6 on Macbook

2009-02-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5189] test_cmd_line failure on the OS X buildbot

2009-02-08 Thread Antoine Pitrou
New submission from Antoine Pitrou : From http://www.python.org/dev/buildbot/3.0/OS%20X%20x86%203.0/builds/81/step-test/0: Re-running test 'test_cmd_line' in verbose mode test_directories (test.test_cmd_line.CmdLineTest) ... ok test_optimize (test.test_cmd_line.CmdLineTest) ... ok test_q (test.t

[issue5185] Idle doesn't work on 2.6 on Macbook

2009-02-08 Thread Jeffery Aubin
Jeffery Aubin added the comment: I was using 2.6, but now I've downloaded 2.6.1. and it works. Thanks ___ Python tracker ___ ___ Python-bugs-l

[issue4631] urlopen returns extra, spurious bytes

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: The test looks good to me. I can't comment on the bugfix patch, but if it's ok to you, you can go ahead :) ___ Python tracker ___ ___

[issue5171] itertools.product docstring missing 'repeat' argument

2009-02-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks, I'll fix this up. -- priority: -> high ___ Python tracker ___ ___ Python-bugs-list maili

[issue918368] urllib doesn't correct server returned urls

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Superseded by issue 1153027 ? -- nosy: +ajaksu2 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1027206] unicode DNS names in socket, urllib, urlopen

2009-02-08 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Library (Lib) -None type: -> feature request versions: +Python 2.7 ___ Python tracker ___ ___

[issue1153027] http_error_302() crashes with 'HTTP/1.1 400 Bad Request

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: As always with urllib, the fix is trivial but adding a test is hard. -- keywords: +patch nosy: +ajaksu2 versions: +Python 2.7 -Python 2.4 Added file: http://bugs.python.org/file12989/302_with_spaces.diff ___ Python tra

[issue1349732] urllib.urlencode provides two features in one param

2009-02-08 Thread Daniel Diniz
Changes by Daniel Diniz : -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl versions: +Python 2.7 -Python 2.4 ___ Python tracker ___

[issue1599329] urllib(2) should allow automatic decoding by charset

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: There's an attempt to implement this behavior, for 3.1, in issue 4733. Maybe having a parallel in 2.7 could help the 2.x 3.x transition for some users? -- nosy: +ajaksu2 versions: +Python 2.7, Python 3.1 ___ Python tra

[issue4631] urlopen returns extra, spurious bytes

2009-02-08 Thread Daniel Diniz
Changes by Daniel Diniz : Removed file: http://bugs.python.org/file12975/test_urllib_chunked.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue4631] urlopen returns extra, spurious bytes

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Antoine, Thanks for reviewing, here's an updated version. Added file: http://bugs.python.org/file12988/test_urllib_chunked2.diff ___ Python tracker ___ __

[issue1712522] urllib.quote throws exception on Unicode URL

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: IMHO, the TypeError would be a bugfix for 2.6.x. A urllib.quote_unicode could be provided (in 2.7) to match urllib.parse.quote in 3.0 and the OP usecase. I can provide a simple patch, but I'm afraid the OP's remarks about ASCII-range and thread-safety wouldn't be

[issue4608] urllib.request.urlopen does not return an iterable object

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Test cases attached. The second one highlights a bug in the current patch, as it fails to return a line longer than 65475 chars. This behavior doesn't match trunk's. -- nosy: +ajaksu2 Added file: http://bugs.python.org/file12987/tests_issue4608_py31.diff

[issue5188] telnetlib process_rawq buffer handling is confused

2009-02-08 Thread David Christian
David Christian added the comment: The result of this bug is that any callback set via set_option_negotiation_callback will not be called. ___ Python tracker ___ _

[issue5188] telnetlib process_rawq buffer handling is confused

2009-02-08 Thread David Christian
New submission from David Christian : in telnetlib's process_rawq, rawq_getchar() returns a bytes object of length 1. However, that buffer is then compared directly against the variable IAC, which is the integer 255. This is always false, as bytes([255]) != 255. Checked svn and looks like this

[issue4473] POP3 missing support for starttls

2009-02-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4471] IMAP4 missing support for starttls

2009-02-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3991] urllib.request.urlopen does not handle non-ASCII characters

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: I think Toshio's usecase is important enough to deserve a fix (patch attached) or a special-cased error message. IMO, newbies trying to fix failures from urlopen may have a hard time figuring out the maze: urlopen -> _opener -> open -> _open -> _call_chain -> htt

[issue1448325] re search infinite loop

2009-02-08 Thread Matthew Barnett
Matthew Barnett added the comment: This problem has been addressed in issue #2636. Although the extra checks certainly aren't foolproof, some regular expressions which were slow won't be any more. -- nosy: +mrabarnett ___ Python tracker

[issue1721518] Small case which hangs

2009-02-08 Thread Matthew Barnett
Matthew Barnett added the comment: This problem has been addressed in issue #2636. Although the extra checks certainly aren't foolproof, neither of the examples given are slow. -- nosy: +mrabarnett ___ Python tracker

[issue5187] distutils upload should prompt for the user/password too

2009-02-08 Thread Tarek Ziadé
New submission from Tarek Ziadé : finalize_option in upload command should ask for the password, if not given by pypirc or by a previous register command. -- assignee: tarek components: Distutils messages: 81420 nosy: tarek priority: low severity: normal status: open title: distutils upl

[issue4913] wave.py: add writesamples() and readsamples()

2009-02-08 Thread Alex Robinson
Alex Robinson added the comment: I'll upload the latest monkey-patch file, wave_futz.py, and test_wave.py, which has a gob of tests added to it. I found a 64-bit bug in the wave.py formats for 32-bit sample wave files. The pcm files read in to CoolEdit ok, including the 32-bit sample files. A

[issue5137] SystemError when __len__ returns a non-number

2009-02-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the reviews! Fixed in r69451. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

[issue4894] documentaion doesn't include parameter in urllib.request.HTTPRedirectHandler.redirect_request

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: This patch adds the "newurl" parameter to signature of redirect_request (important, IMHO) and mentions it in the doc (less important). It also describes the behavior of http_error_30* in more detail, perhaps too much? -- keywords: +patch nosy: +ajaksu2 Ad

[issue2624] swig support in distutils should use the build and temp dirs

2009-02-08 Thread Kjell Braden
Kjell Braden added the comment: Except that the _wrap.c file would still be created at the wrong place, yes, you're right. ___ Python tracker ___ _

[issue5128] compileall: consider ctime

2009-02-08 Thread Brett Cannon
Brett Cannon added the comment: On Sun, Feb 8, 2009 at 09:15, Martin von Gagern wrote: > > Martin von Gagern added the comment: > > Any progress with the review? > I am planning to get to it on Tuesday. > By the way, what branch are we aiming for? 2.7/3.1. It's a backwards-incompatible chan

[issue1718574] build_clib --build-clib/--build-temp option bugs

2009-02-08 Thread Pearu Peterson
Pearu Peterson added the comment: Consider a trivial setup file: from distutils.core import setup setup() Here is an example traceback (the second command illustrates the bug): $ python setup.py build --build-temp=/tmp running build $ python setup.py build_clib --build-temp=/tmp usage: setup.

[issue3613] base64.encodestring does not actually accept strings

2009-02-08 Thread Daniel Diniz
Daniel Diniz added the comment: Here's a trivial patch for xmlrpc.client:1168. The testcase below doesn't seem to fit well in test_xmlrpc, should it just be hacked in? import xmlrpc.client transp = xmlrpc.client.Transport() transp.get_host_info("u...@host.tld") -- keywords: +patch nos

[issue1718574] build_clib --build-clib/--build-temp option bugs

2009-02-08 Thread Tarek Ziadé
Tarek Ziadé added the comment: can you provide an example and/or a traceback of the problem ? -- assignee: -> tarek ___ Python tracker ___ ___

[issue1004696] translate Windows cr-lf when installing scripts on Linux

2009-02-08 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1016626] distutils support for swig is under par

2009-02-08 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek type: -> behavior versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Pyth

[issue1326113] Letting "build_ext --libraries" take more than one lib

2009-02-08 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek versions: +Python 2.7, Python 3.0, Python 3.1 ___ Python tracker ___ ___ Python-bugs

[issue5170] logging to file + encoding

2009-02-08 Thread Vinay Sajip
Vinay Sajip added the comment: Sorry, misread the original issue and tested with Python 2.5 rather than 2.6. This is a regression; fix and additional test case checked into trunk and release26-maint. -- resolution: works for me -> fixed status: pending -> closed ___

[issue1718574] build_clib --build-clib/--build-temp option bugs

2009-02-08 Thread Akira Kitada
Changes by Akira Kitada : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1004696] translate Windows cr-lf when installing scripts on Linux

2009-02-08 Thread Akira Kitada
Changes by Akira Kitada : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1294032] Distutils writes keywords comma-separated

2009-02-08 Thread Tarek Ziadé
Tarek Ziadé added the comment: Maybe we could fix the docs and PEP 241 and PEP 314, but PEP 345 has never been fully implemented, so it should probably be marked as rejected. ___ Python tracker __

[issue1016626] distutils support for swig is under par

2009-02-08 Thread Akira Kitada
Akira Kitada added the comment: Same with issue2624? -- nosy: +akitada, tarek ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue828336] Allow set swig include dirs in setup.py

2009-02-08 Thread Akira Kitada
Akira Kitada added the comment: seems this is already fixed in issue1046644. -- nosy: +akitada ___ Python tracker ___ ___ Python-bug

[issue2624] swig support in distutils should use the build and temp dirs

2009-02-08 Thread Akira Kitada
Akira Kitada added the comment: Same with issue1016626? -- nosy: +akitada ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue1326113] Letting "build_ext --libraries" take more than one lib

2009-02-08 Thread Akira Kitada
Changes by Akira Kitada : -- nosy: +tarek type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2009-02-08 Thread Martin von Gagern
Martin von Gagern added the comment: I had my first indication to rather use "macintosh" instead of "mac_roman" from Wikipedia http://en.wikipedia.org/wiki/Mac_OS_Roman which states that the charset part of a MIME content-type specification should be maciontosh. I'm not quoting this as any kind

[issue1092365] Distutils needs a way *not* to install files

2009-02-08 Thread Akira Kitada
Akira Kitada added the comment: I don't understand the use case of that option. -- nosy: +akitada, tarek ___ Python tracker ___ ___

[issue1294032] Distutils writes keywords comma-separated

2009-02-08 Thread Akira Kitada
Akira Kitada added the comment: I think it still need to be clarified in PEP that Keywords field accept comma-or-space-separated values. ___ Python tracker ___

[issue5164] backport distutils 3.x changes into 2.7 when appliabl

2009-02-08 Thread Martin v. Löwis
Martin v. Löwis added the comment: That's ok in principle, as long as you avoid committing behavioral changes along with style changes in the same change set. ___ Python tracker ___ _

[issue5137] SystemError when __len__ returns a non-number

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch is ok to me. (I assume all tests pass fine :-)) -- assignee: -> benjamin.peterson keywords: -needs review resolution: -> accepted ___ Python tracker __

[issue5164] backport distutils 3.x changes into 2.7 when appliabl

2009-02-08 Thread Tarek Ziadé
Tarek Ziadé added the comment: Unfortunately, these changes are most of the time made as small extra changes when people are working in distutils modules : they fix something, and in the same changeset, they fix a small PEP-8 issue in the area they are working on. So it seems hard to merge bac

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: I observe even greater speedups (15%/20%/37%) on set creation. Here is the updated benchmark script. Added file: http://bugs.python.org/file12981/time_object_hash.py ___ Python tracker ___

[issue1294032] Distutils writes keywords comma-separated

2009-02-08 Thread Tarek Ziadé
Tarek Ziadé added the comment: seems to work fine today on PyPI side. If Andrew agrees, I'll close it. ___ Python tracker ___ ___ Python-bug

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Benchmark results on my machine (64-bit Linux, gcc 4.3.2, AMD X2 3600+): Before: dict creation (selected): 5.09600687027 dict creation (shuffled): 5.66548895836 dict creation: 3.72823190689 After: dict creation (selected): 4.57248306274 (10% speedup) dic

[issue1294032] Distutils writes keywords comma-separated

2009-02-08 Thread Akira Kitada
Akira Kitada added the comment: s/PEP341/PEP345/? -- nosy: +akitada, tarek type: -> behavior ___ Python tracker ___ ___ Python-bug

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: The code path for SIZEOF_LONG < SIZEOF_VOID_P could probably also benefit from this optimization by casting the pointer to a size_t (this will effect 64-bit Windows, where long is 32 bits but pointers are 64 bits). (unfortunately it seems the 64-bit Windows bui

[issue5137] SystemError when __len__ returns a non-number

2009-02-08 Thread Benjamin Peterson
Changes by Benjamin Peterson : Added file: http://bugs.python.org/file12980/bad_len3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5137] SystemError when __len__ returns a non-number

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think you need to call PyNumber_Check() (unless you want to customize the error message). ___ Python tracker ___

[issue5185] Idle doesn't work on 2.6 on Macbook

2009-02-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Are you using 2.6.1 or 2.6? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-li

[issue5137] SystemError when __len__ returns a non-number

2009-02-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, good idea. Added file: http://bugs.python.org/file12979/SystemError_bad_len2.patch ___ Python tracker ___ __

[issue5128] compileall: consider ctime

2009-02-08 Thread Martin von Gagern
Martin von Gagern added the comment: Any progress with the review? By the way, what branch are we aiming for? I'm using 2.5 here, so I reported this issue against that version, and wrote the patch against that branch. I guess it should work for trunk as well, but the imports of with_statement f

[issue5175] negative PyLong -> C unsigned integral, TypeError or OverflowError?

2009-02-08 Thread Lisandro Dalcin
Lisandro Dalcin added the comment: I can contribute a patch. However, I would like to wait until Tim comments on this. ___ Python tracker ___

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Here are some timings for dict creation, created with the attached script. They're not particularly scientific, but they at least show that this one- line optimization can make a significant difference. Typical results on my machine (OS X 10.5.6/Intel), 32-bi

[issue5186] Reduce hash collisions for objects with no __hash__ method

2009-02-08 Thread Mark Dickinson
New submission from Mark Dickinson : In the issue 5169 discussion, Antoine Pitrou suggested that for an object x without a __hash__ method, id()/8 might be a better hash value than id(), since dicts use the low order bits of the hash as initial key, and the 3 lowest bits of an id() will always

[issue5185] Idle doesn't work on 2.6 on Macbook

2009-02-08 Thread Jeffery Aubin
New submission from Jeffery Aubin : I work with IDLE on a PC at the office and now I've installed version 2.6 for mac on my Macbook at home. I wanted to have access to IDLE at home to read my code and add some things here and there. But, I cannot get it to work. It opens up on the dock and dis

[issue5179] subprocess leaves open fds on construction error

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps you could add a test? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5137] SystemError when __len__ returns a non-number

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Wouldn't it be better to use PyNumber_AsSsize_t() instead, so as to support all __index__-enabled objects? -- nosy: +pitrou ___ Python tracker _

[issue4631] urlopen returns extra, spurious bytes

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: On the principle, the test looks good. If you want to avoid the 'if "%" in value' hack, you can use the named-parameter form of string formatting: >>> "localhost:%(port)s" % dict(port=8080) 'localhost:8080' >>> "localhost" % dict(port=8080) 'localhost' ___

[issue789290] Minor FP bug in object.c

2009-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Fix merged in r69437, r69440, r69441. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue5182] str() on memoryview of bytearray failing on py3k

2009-02-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Done in r69438. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue5160] Intermittant segmentation fault with ctrl-c (threads and queues)

2009-02-08 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This seems to be duplicate of issue1856. Let me close this entry. -- resolution: -> duplicate status: open -> closed superseder: -> shutdown (exit) can hang or segfault with daemon threads running ___ Python tra

[issue5182] str() on memoryview of bytearray failing on py3k

2009-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Could we remove __str__ and just stick with __repr__? Yes, I think it's the best thing to do. ___ Python tracker ___ _

[issue789290] Minor FP bug in object.c

2009-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in the trunk in r69436. Will merge to 2.6, 3.1 and 3.0. ___ Python tracker ___ ___ Python-bugs-list

[issue5182] str() on memoryview of bytearray failing on py3k

2009-02-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: What sort of thing should str() on a memoryview return? Latin-1 decoded bytes? Could we remove __str__ and just stick with __repr__? -- nosy: +benjamin.peterson ___ Python tracker

[issue5170] logging to file + encoding

2009-02-08 Thread shamilbi
shamilbi added the comment: test_log.py: --- #! -*- coding: windows-1251 -*- import logging logger = logging.getLogger('test_log') logger.addHandler(logging.FileHandler('test.log', encoding='cp1251')) logger.setLevel(logging.DEBUG) logger.debug(u'Привет')# russian Hello exception

[issue5175] negative PyLong -> C unsigned integral, TypeError or OverflowError?

2009-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Looks like this was changed in a checkin by Tim Peters in r21099; before r21099, PyLong_AsUnsignedLongLong raised OverflowError for negative numbers. After the checkin, it raised TypeError. I suspect the change was inadvertent. Tim, any comments? Lisandr

[issue5175] negative PyLong -> C unsigned integral, TypeError or OverflowError?

2009-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: This also affects 3.1. Note that the current behaviour (or rather, its effects in PyLong_AsUnsignedLongLong) is as documented. In http://docs.python.org/dev/c-api/long.html it says for PyLong_AsUnsignedLongLong: "Return a C unsigned long long from a Python

[issue5156] IDLE exits with UnicodeDecodeError on Ctrl+Space

2009-02-08 Thread Guilherme Polo
Guilherme Polo added the comment: This is a duplicate, see issue1028. -- nosy: +gpolo resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue5156] IDLE exits with UnicodeDecodeError on Ctrl+Space

2009-02-08 Thread Peter Harris
Peter Harris added the comment: Yeah, I know that's what it's supposed to do. It does pop up the list of names, but then crashes. It happens no matter what has been input, even on an empty window. However, if it works for everyone else, maybe I built Tcl wrongly.

[issue1717] Get rid of more references to __cmp__

2009-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Deprecation warning for types that implement tp_compare but not tp_richcompare added in r69431, r69432. Just the doc fixes in Doc/extending/newtypes.rst left. Assigning to Georg and reducing priority. -- assignee: -> georg.brandl priority: release

[issue5184] Add -3 warning for extension types that implement tp_compare but not tp_richcompare

2009-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: N.B. The 3.x part of this was implemented in r69431 and r69432. ___ Python tracker ___ ___ Python-bugs-list m

[issue5184] Add -3 warning for extension types that implement tp_compare but not tp_richcompare

2009-02-08 Thread Mark Dickinson
New submission from Mark Dickinson : See http://mail.python.org/pipermail/python-dev/2009-February/085809.html where Nick Coghlan writes: "I'm wondering if Mark should add the exception he recently removed back in as a Deprecation Warning when tp_compare is defined, but tp_richcompare is not.

  1   2   >