[issue5200] unicode.normalize gives wrong result for some characters

2009-02-11 Thread Peter Landgren
Peter Landgren added the comment: > Martin v. Löwis added the comment: > > The same applies "Å" and "A", "Ä" and "A" and "Ö" and "O" > > which also are also different letters as "Ø" and "O" are. > > Sure. And rightfully, they "Å" is *not* (I repeat: not) > normalized as "A", under NFD: > > py>

[issue5211] Fix complex type to avoid coercion in 2.7.

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: Comment by gumtree copied from issue3734 discussion: > While Mark Dickinson's patch fixes the documentation, it does not offer > a solution to the original problem, which was rooted in a need to > provide special behaviour based on the numeric types. I made

[issue3734] subclassing complex

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: [gumtree] > [...] does not offer > a solution to the original problem, which was rooted in a need to > provide special behaviour based on the numeric types. I made the > original posting because I hoped that this problem could be resolved. Please see issue 5

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

2009-02-11 Thread Adam Olsen
Adam Olsen added the comment: The alignment requirements (long double) make it impossible to have anything in those bits. Hypothetically, a custom allocator could lower the alignment requirements to sizeof(void *). However, rotating to the high bits is pointless as they're the least likely to

[issue1552880] Unicode Imports

2009-02-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Ah, this one is still alive? We still use this patch at CCP for our 2.x python. I'll give it some more love to answer the issues raised. Hm, is this still an issue with 3.x? Does the imput machinery use unicode as the internal format when working wit

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

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: [Adam Olsen] > The alignment requirements (long double) make it impossible to have > anything in those bits. Not necessarily, since not all pointers passed to _Py_HashPointer come from a PyObject_Malloc. _Py_HashPointer is used for function pointers as well.

[issue1552880] Unicode Imports

2009-02-11 Thread Thomas Heller
Changes by Thomas Heller : -- nosy: +theller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1076233] distutils.core.setup() with unicode arguments broken

2009-02-11 Thread Walter Dörwald
Walter Dörwald added the comment: It does indeed work with Python 2.6 (however not with 2.5). Closing. -- resolution: -> out of date status: open -> closed ___ Python tracker ___

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

2009-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 11 février 2009 à 03:31 +, Adam Olsen a écrit : > > .. although, if I replace object() with list() I get best results with a > shift of 6 bits. Replacing it with dict() is best with 8 bits. But list() and dict() don't use id() for hash. _

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

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: Here's an updated patch, that errs on the conservative side: - rotate instead of shifting, as suggested by Raymond. This costs very little, and I admit to feeling uncomfortable about the possibility of just throwing bits away - explicit check for -1 - s

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-11 Thread Walter Dörwald
Walter Dörwald added the comment: The patch doesn't include any changes to the documentation. -- nosy: +doerwalter ___ Python tracker ___

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

2009-02-11 Thread Chema Cortés
Changes by Chema Cortés : -- nosy: +chemacortes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4799] handling inf/nan in '%f'

2009-02-11 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> marketdickinson nosy: +marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4880] PyInt_FromSsize_t LONG_MIN and LONG_MAX typecasts needed

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: It seems likely that this is a wine bug rather than a Python bug. -- resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue1507] complex constructor loses signs of zeros

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: This is out of date for 2.5. Closing. -- status: open -> closed ___ Python tracker ___ ___ Python-b

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: OK, I'll work on a test + patch. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5216] distutils.tests.test_build_ext.BuildExtTestCase fails when srcdir != builddir

2009-02-11 Thread Matthias Klose
New submission from Matthias Klose : these tests fail, when python is built with builddir != srcdir. == ERROR: test_build_ext (distutils.tests.test_build_ext.BuildExtTestCase)

[issue5217] testExtractDir (test.test_zipfile.TestWithDirectory) fails when python built with srcdir != builddir

2009-02-11 Thread Matthias Klose
New submission from Matthias Klose : == ERROR: testExtractDir (test.test_zipfile.TestWithDirectory) -- Traceback (most recent call last): File "/home/packages/

[issue1633648] incomplete numerical comparisons

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: This issue is out of date from the perspective of python-pgsql, since that's long been fixed. It's difficult to figure out exactly what the issue is here. As best as I can guess, it's something like the following. After: class MyInt(object): def __init__

[issue3694] Undetected error in _struct.pack_into

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Looks like both Undetected errors were corrected by Victor's patches, which Benjamin committed around rev66693, so trunk only needs a test. Here are the patches. I think IndexError fits better (and matches trunk), as the issue is that None is passed as "offset",

[issue3694] Undetected error in _struct.pack_into

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : Removed file: http://bugs.python.org/file13017/pynumber_assizet.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue3694] Undetected error in _struct.pack_into

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : Added file: http://bugs.python.org/file13028/pynumber_assizet_trunk.diff ___ Python tracker ___ ___ Python-bugs-list

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-11 Thread Rafe Kaplan
Rafe Kaplan added the comment: I thought I had uploaded this last night, apologies. Added file: http://bugs.python.org/file13029/datetime-utc-doc.patch ___ Python tracker ___ ___

[issue2279] distutils sdist add_defaults does not add data_files

2009-02-11 Thread George Sakkis
George Sakkis added the comment: Agreed; package_data are also ignored by sdist. Unfortunately, neither setuptools seems to work as expected on sdist but at least bdist_egg does. MANIFEST.in is an ugly hack and should be deprecated; you shouldn't have to repeat yourself in two files. -

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: IMHO, using a fileno property looks better than __getattr__. Setting an attribute in init works too, unless fp changes during the object life (then 3.x is broken IIUC). It works OK as a property of either urllib.addinfourl or of httplib.HTTPResponse (socket would

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Library (Lib) -None type: -> behavior Added file: http://bugs.python.org/file13031/urllib_fileno.diff ___ Python tracker ___

[issue4910] Remove uses of nb_long slot, and rename to nb_reserved.

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: PyNumber_Int deprecated in r69517, r69518. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Hmm, always run all the tests :) fileno is set in test_urllib2. New patches. Added file: http://bugs.python.org/file13032/httplib_fileno_2.diff ___ Python tracker ___

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : Removed file: http://bugs.python.org/file13030/httplib_fileno.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : Added file: http://bugs.python.org/file13033/urllib_fileno_2.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : Removed file: http://bugs.python.org/file13031/urllib_fileno.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue1294032] Distutils writes keywords comma-separated

2009-02-11 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: akuchling -> tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5200] unicode.normalize gives wrong result for some characters

2009-02-11 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Can you think of any solution to this conflict? I don't quite understand why you want to place É, È, Ë, Ê all along with E, yet Å,Ä,Ö after Z. Because that's what the Swedish alphabet says? Please understand that collation varies across languages. For exam

[issue2805] 2to3 doesn't correct divisions

2009-02-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: I concur with Raymond. There isn't yet a "-3" warning for class division, though. I suppose the compiler could emit one when "/" is used without from __future__ import division. That's another issue, though. -- resolution: -> rejected status: open -

[issue5200] unicode.normalize gives wrong result for some characters

2009-02-11 Thread Peter Landgren
Peter Landgren added the comment: The È... comes from French surnames and our French developer wants to group all versions of E together. The É... can be found in French surnames in Sweden as well as in Germany. The program, GRAMPS is a genealogy program used in about 20 languages, so there

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2009-02-11 Thread Guilherme Polo
New submission from Guilherme Polo : Hi, I find it weird that given this sample code: def g(): yield iter(None) list(*g()) I get this traceback: Traceback (most recent call last): File "a1.py", line 3, in list(*g()) TypeError: type object argument after * must be a sequence, not ge

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2009-02-11 Thread Guilherme Polo
Changes by Guilherme Polo : -- components: +Interpreter Core type: -> behavior versions: +Python 2.7, Python 3.1 ___ Python tracker ___ __

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2009-02-11 Thread Guilherme Polo
Guilherme Polo added the comment: (Btw, the suggestion to check for tp_iter came from Antoine Pitrou. It seemed fine to me.) ___ Python tracker ___ ___

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2009-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: You must check tp_iter as well, not only Py_TPFLAGS_HAVE_ITER. Py_TPFLAGS_HAVE_ITER only tells you that the tp_iter field exists, not that it's non-NULL. (see the code for PyObject_GetIter() in Objects/abstract.c for an example) -- nosy: +pitrou __

[issue1159] os.getenv() not updated after external module uses C putenv()

2009-02-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: As a workaround, could you use ctypes to pull the environment back into the python context? For example: http://paste.turbogears.org/paste/34734 -- nosy: +jaraco ___ Python tracker

[issue5200] unicode.normalize gives wrong result for some characters

2009-02-11 Thread Martin v. Löwis
Martin v. Löwis added the comment: > The È... comes from French surnames and our French developer wants to group > all versions > of E together. The É... can be found in French surnames in Sweden as well as > in Germany. > The program, GRAMPS is a genealogy program used in about 20 languages,

[issue5219] IDLE: slowness, pauses enter long strings

2009-02-11 Thread John DeLuca
New submission from John DeLuca : In Interpreted Mode, when enter long strings, such as ofile.write (" this is a long string...") or print ("this is a long string..."), the keyboard entry is delayed - sometimes for 20+ seconds. If one completes the string (typing blindly as not text is visible

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: The urllib patch breaks test_pyclbr because test_pyclbr can't handle properties. I think the test is wrong here, hence the hack attached... otherwise, let's go with httplib. Added file: http://bugs.python.org/file13036/test_pyclbr_property.diff _

[issue2437] Distutils runtime_library_dirs broken on Windows

2009-02-11 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5215] change value of local variable in debug

2009-02-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Could you describe the problem in more detail please? I've having trouble understanding you description. For example, you could you paste the pdb session you used and explain what you expected? -- nosy: +benjamin.peterson ___

[issue969718] BASECFLAGS are not passed to module build line

2009-02-11 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-11 Thread David Jones
David Jones added the comment: On 10 Feb 2009, at 21:15, David Jones wrote: > > David Jones added the comment: > > On 10 Feb 2009, at 16:57, Guilherme Polo wrote: > >> >> Guilherme Polo added the comment: >> >> Now, is there some problem if we remove the calls to the "tell" >> method >> in

[issue5220] os.makedirs' mode argument has bad default value

2009-02-11 Thread Joshua Bronson
New submission from Joshua Bronson : os.makedirs' mode argument defaults to a hardcoded value of 511 (0777 in octal). This forces the caller to either pass in a different hardcoded value (commonly 0750), or to implement a workaround that calculates the expected mode based on the process owner'

[issue5216] distutils.tests.test_build_ext.BuildExtTestCase fails when srcdir != builddir

2009-02-11 Thread Roumen Petrov
Roumen Petrov added the comment: I guess fixed in trunk - see issue4070 and issue4151 . -- nosy: +rpetrov ___ Python tracker ___ ___ P

[issue5221] help related topic doesn't exist

2009-02-11 Thread David W. Lambert
New submission from David W. Lambert : help function is not current, then again, neither is my python3. Possibly sequencemethods[12] are eradicated. $ p3 Python 3.0rc1+ (py3k, Nov 5 2008, 14:44:46) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 Type "help", "copyright", "credits" or "licens

[issue5220] os.makedirs' mode argument has bad default value

2009-02-11 Thread Martin v. Löwis
Martin v. Löwis added the comment: I don't understand the problem. The directory creation *does* take the umask into account - that's the whole point of the umask! The directory being created has the bits (mode & ~umask & 0777) set - because of the semantics of mkdir(2), not because of Python's

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

2009-02-11 Thread Adam Olsen
Adam Olsen added the comment: Antoine, I only meant list() and dict() to be an example of objects with a larger allocation pattern. We get a substantial benefit from the sequentially increasing memory addresses, and I wanted to make sure that benefit wasn't lost on larger allocations than objec

[issue1303434] Please include pdb with windows distribution

2009-02-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Hi Martin, wouldn't just uploading the pythonXX.pdb to the release page be enough. The distributed DLL already points to the source location on your system :-) E.g. for Python 2.5, this was c:\loewis\25\python\PCbuild\python25.pdb Or are you thinking of ha

[issue1303434] Please include pdb with windows distribution

2009-02-11 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- versions: +Python 2.7, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: I'm fine with rotating 4 bits instead of 3, especially if the timings look good on 32-bit as well as 64-bit. We should really benchmark dict lookups (and set membership tests) as well as dict creation. ___ Python tracker

[issue1303434] Please include pdb with windows distribution

2009-02-11 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Hi Martin, wouldn't just uploading the pythonXX.pdb to the release page > be enough. It's not clear to me what is being requested: just that single PDB file, or also the PDB files for all of the extension modules? Also, shouldn't the file be compressed someh

[issue5220] os.makedirs' mode argument has bad default value

2009-02-11 Thread Joshua Bronson
Joshua Bronson added the comment: Ah, I was misunderstanding the behavior of mkdir, thank you for the explanation. My misunderstanding stemmed from recently coming across two widely-used packages which both pass mode=0750 to os.makedirs. I have no idea why they would be doing this (as it eff

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2009-02-11 Thread Guilherme Polo
Guilherme Polo added the comment: Thanks for taking a look, my bad for taking so long to reply. I'm adding a new patch now. This one, besides the fix needed mentioned above, disregards tp_iter from old class instances (since they are always available and tell us nothing). Added file: http://bu

[issue5202] wave.py cannot write wave files into a shell pipeline

2009-02-11 Thread Guilherme Polo
Guilherme Polo added the comment: Nice. I said tests in hope wave gets more tests, since right one there is a single one. I will see if I can produce something. ___ Python tracker ___ __

[issue5220] os.makedirs' mode argument has bad default value

2009-02-11 Thread Martin v. Löwis
Martin v. Löwis added the comment: > My misunderstanding stemmed from recently coming across two widely-used > packages which both pass mode=0750 to os.makedirs. I have no idea why > they would be doing this (as it effectively throws away part of the > umask), unless they too are misunderstan

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

2009-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: At four bits, you may be throwing away information and I don't think that's cool. Even if some selected timings are better with more bits shifted, all you're really showing is that there is more randomness in the upper bits than the lower ones. But that doe

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

2009-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm *much* more comfortable with a byte-swap, rotation, or xoring-in > upper bits than with shifts that potentially destroy entropy. > Otherwise, your taxing apps that build giant sets/dicts and need all > distinguishing bits to avoid collision pile-ups. Wou

[issue5220] os.makedirs' mode argument has bad default value

2009-02-11 Thread Joshua Bronson
Joshua Bronson added the comment: > My suspicion is that people setting explicit file permissions > typically know what they are doing, and that you will find that > your tickets get closed as invalid, explaining to you that this > mode usage is fully intentional. For what it's worth, I asked M

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

2009-02-11 Thread Mark Dickinson
Mark Dickinson added the comment: > At four bits, you may be throwing away information and I don't think > that's cool. The current patch *does* do a rotation: it doesn't throw away any information. ___ Python tracker __

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

2009-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch. It uses a 4-bit shift and an addition. We should avoid the use of logical or, because it makes the outputs non-uniformly distributed ('1' bits are more likely). Added file: http://bugs.python.org/file13038/pointer_hash3.patch

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

2009-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated benchmark script, for both object() and an user-defined class, and adding dict lookup, set lookup and set difference. Set difference is massively faster: up to 60% faster. Added file: http://bugs.python.org/file13039/time_object_hash.py

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

2009-02-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file12981/time_object_hash.py ___ Python tracker ___ ___ Python-bugs-list mail

[issue1381476] csv.reader endless loop

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed as working on trunk and py3k. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ __

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

2009-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guys, let's be careful. Make sure that efforts to randomize lower bits don't destroy information. Something like x |= x>>8 is reversible and fast. Other fun looking transformations are not: >>> len(set((x >> 4) + (x & 15) for x in range(10**6)))

[issue1303434] Please include pdb with windows distribution

2009-02-11 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-02-11 22:20, Martin v. Löwis wrote: > Martin v. Löwis added the comment: > >> Hi Martin, wouldn't just uploading the pythonXX.pdb to the release page >> be enough. > > It's not clear to me what is being requested: just that single PDB file, > or a

[issue1008086] patch for 767150

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Test from issue 767150: """ socket.inet_aton() returns an 8 byte string when built on Linux/IA64. This should be 4 bytes on all architectures. Example: >>> import socket >>> socket.inet_aton('192.168.2.1') '\xc0\xa8\x02\x01\x00\x00\x00\x00' """ The bug was con

[issue1103926] email.base64MIME.header_encode vs RFC 1522

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1008086] patch for 767150

2009-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixing now. -- assignee: twouters -> gregory.p.smith keywords: +easy nosy: +gregory.p.smith ___ Python tracker ___

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

2009-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, updated patch: - uses a 4-bit rotate (not shift) - avoids comparing an unsigned long to -1 - tries to streamline the win64 special path (but I can't test) Added file: http://bugs.python.org/file13040/pointer_hash4.patch

[issue767150] socket.inet_aton on 64bit platform

2009-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Sad that this was closed as wontfix years ago. anyways I am fixing this. see #1008086. -- keywords: +64bit nosy: +gregory.p.smith superseder: -> patch for 767150 ___ Python tracker

[issue1008086] socket.inet_aton returns 8 bytes on LP64 platforms

2009-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r69519. needs backporting to release26-maint and release30-maint. leaving open until that happens. -- keywords: +64bit -patch title: patch for 767150 -> socket.inet_aton returns 8 bytes on LP64 platforms type: -> behavior versions:

[issue1046092] HTMLParser fix to accept mailformed tag attributes

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Heh, the patch applies cleanly to trunk more than four years later and tests pass fine. We'll surely need better tests if the behavior change is considered an improvement. -- nosy: +ajaksu2 ___ Python tracker

[issue755660] allow HTMLParser to continue after a parse error

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Tests still pass with updated patch, but new tests (and docs!) for this feature are needed if Titus' positive review stands. -- nosy: +ajaksu2 stage: -> test needed versions: +Python 2.7 -Python 2.3 Added file: http://bugs.python.org/file13041/htmlparser

[issue755660] allow HTMLParser to continue after a parse error

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue775321] plistlib error handling

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : -- dependencies: +plistlib error handling stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue5211] Fix complex type to avoid coercion in 2.7.

2009-02-11 Thread Blair
Blair added the comment: I am happy to collaborate in finding a solution, but I do not have enough knowledge or skill to work with the code alone. Simply documenting it does not remove the frustration that a few people will enounter. The key point being that you can subclass the other numeri

[issue816059] popen2 work, fixes bugs 768649 and 761888

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: The test code seems to run fine in a debug build of trunk, but the linked issues requires a more complex context. -- dependencies: +popen2.Popen3 and popen2.Popen4 leaks filedescriptors stage: -> test needed type: -> behavior versions: +Python 2.6 -Pyth

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

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : -- versions: +Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue918368] urllib doesn't correct server returned urls

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Any idea about how to test this one reliably? -- stage: -> test needed type: -> behavior versions: +Python 2.6, Python 2.7 -Python 2.3 ___ Python tracker

[issue5219] IDLE: slowness, pauses enter long strings

2009-02-11 Thread John DeLuca
John DeLuca added the comment: (pyJohn)... additional information since this is a performance issue: Lenovo s10; Win XP; 1GB; Intel Atom 1.66 Mhz ___ Python tracker ___ _

[issue1562822] decimal module borks thread

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Here's the output of trunk (debug) for OP's test: ./python ../thread.py Exiting test. Exception KeyError: KeyError(-1210869568,) in ignored [31071 refs] -- nosy: +ajaksu2 type: -> behavior ___ Python tracker

[issue1548371] filterwarnings('error') has no effect

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Confirmed in trunk. -- nosy: +ajaksu2 stage: -> needs patch ___ Python tracker ___ ___ Python-bugs

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

2009-02-11 Thread Adam Olsen
Adam Olsen added the comment: > At four bits, you may be throwing away information and I don't think > that's cool. Even if some selected timings are better with more bits > shifted, all you're really showing is that there is more randomness in > the upper bits than the lower ones. But that do

[issue1534764] sys.path gets munged with certain directory structures

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Reproduced on trunk, needed unsetting PYTHONPATH. A test case with os.mkdir, chdir, etc. would be great. -- nosy: +ajaksu2 stage: -> test needed type: -> behavior ___ Python tracker

[issue1074015] current directory in sys.path handles symlinks badly

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Still happens in trunk. -- nosy: +ajaksu2 stage: -> test needed ___ Python tracker ___ ___ Python-

[issue1161031] Neverending warnings from asyncore

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Josiah: that'd be around rev36408, as 1.53 corresponds to rev36033 (from the log and issue 957240) -- nosy: +ajaksu2 stage: -> test needed ___ Python tracker ___

[issue5208] urllib2.build_opener([handler, ...]) incorrect signature in docs

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: I believe those square brackets mean "supplying handlers is optional", but even so it'd be very ambiguous. -- nosy: +ajaksu2 ___ Python tracker __

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

2009-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Antoine] > Ok, updated patch: > - uses a 4-bit rotate (not shift) > - avoids comparing an unsigned long to -1 > - tries to streamline the win64 special path (but I can't test) pointer_hash4.patch looks fine to me. Still, I think it's worth considering the

[issue1661108] base64.urlsafe_b64encode() shouldn't use the = character

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Not following the spec doesn't seem reasonable. Adding a caveat about how we follow the spec doesn't make much sense (I started to write one and dropped it at "The resulting string" :D). -- nosy: +ajaksu2 stage: -> patch review _

[issue1777134] minidom pretty xml output improvement

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: @Roy: we can try :) Patch updated, tests pass. However, keeping the default output and adding an option to prettyprint should keep lots of current users sane, while those wanting prettier output could have it. -- keywords: +easy nosy: +ajaksu2 stage: ->

[issue1777134] minidom pretty xml output improvement

2009-02-11 Thread Roy Wood
Roy Wood added the comment: Thanks! :-) On Wed, Feb 11, 2009 at 9:28 PM, Daniel Diniz wrote: > > Daniel Diniz added the comment: > > @Roy: we can try :) > > Patch updated, tests pass. However, keeping the default output and > adding an option to prettyprint should keep lots of current users

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

2009-02-11 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Library (Lib) keywords: +easy stage: -> test needed ___ Python tracker ___ ___ Python-bugs-l

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

2009-02-11 Thread David W. Lambert
David W. Lambert added the comment: "x |= x>>4" Are you (Ray) sure you didn't mean "x ^= x>>4"? -- nosy: +LambertDW ___ Python tracker ___ _

[issue776100] new function 'islastline' in fileinput

2009-02-11 Thread Daniel Diniz
Daniel Diniz added the comment: Issue 968063 has better patch, use case and discussion. -- nosy: +ajaksu2 resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Add fileinput.islastline() ___ Python tracker

  1   2   >