[issue7657] test_ctypes failure on AIX 5.3

2010-01-07 Thread sangamesh
New submission from sangamesh : I built the python-2.6.2 with the latest libffi-3.0.9 in AIX 5.3 using xlc compiler. When i try to run the ctypes test cases, two failures are seen in test_bitfields. test_ints (ctypes.test.test_bitfields.C_Test) ... FAIL test_shorts (ctypes.test.test_bitfields.

[issue2539] Windows Registry issue with 2.5.2 AMD64 msi

2010-01-07 Thread Brian Curtin
Brian Curtin added the comment: It seems like this may have been the result of registry redirection. Jason didn't say if the 2.5.1 install he went back to was 64-bit or not, but that could have been the difference. Given how old this is, I doubt he remembers :) wxPython has 32 and 64 bit vers

[issue7653] Fix description of the way the PythonPath Windows registry key works

2010-01-07 Thread R. David Murray
R. David Murray added the comment: If, as the OP indicates, the value of the key itself is ignored, this should be mentioned in the doc, especially if it normally has an apparently valid value. -- nosy: +r.david.murray ___ Python tracker

[issue7105] weak dict iterators are fragile because of unpredictable GC runs

2010-01-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: LGTM -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue5277] email message.get_params() and related methods sometimes fail.

2010-01-07 Thread R. David Murray
Changes by R. David Murray : -- keywords: +easy priority: -> normal stage: -> test needed versions: +Python 2.7, Python 3.2 -Python 2.4, Python 2.5, Python 3.0 ___ Python tracker __

[issue7656] test_hashlib fails on some installations (specifically Neal's regression test runner)

2010-01-07 Thread R. David Murray
New submission from R. David Murray : The patch in issue3745 to build and run all hash tests in a debug build seems to have caused test_hashlib to start failing when run by the build.sh regression test runner. See the recent emails on python-checkins, where I used -W to get a verbose listing

[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-01-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- title: UnicodeEncodeError - I can't even see license -> Use Py_UCS4 instead of Py_UNICODE in unicodectype.c versions: +Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker

[issue7635] 19.6 xml.dom.pulldom doc: stub?

2010-01-07 Thread Ezio Melotti
Ezio Melotti added the comment: The xml.dom.pulldom module doesn't have docstrings so I guess that when the doc page has been created only the names of the classes/method have been listed. -- nosy: +ezio.melotti, loewis priority: -> normal versions: +Python 2.6, Python 2.7 __

[issue5827] os.path.normpath doesn't preserve unicode

2010-01-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7654] [patch] Enable additional bytes and memoryview tests.

2010-01-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue7651] Python3: guess text file charset using the BOM

2010-01-07 Thread STINNER Victor
STINNER Victor added the comment: Oops, fix read() method of my previous patch. -- Added file: http://bugs.python.org/file15783/open_bom-2.patch ___ Python tracker ___ __

[issue1006238] cross compile patch

2010-01-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +needs review stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue1006238] cross compile patch

2010-01-07 Thread Jacob Godserv
Jacob Godserv added the comment: The stage of this bug could be changed to "patch review", since a patch is available. -- ___ Python tracker ___ _

[issue1006238] cross compile patch

2010-01-07 Thread Jacob Godserv
Jacob Godserv added the comment: This bug affects me as well. Adding myself to CC. -- nosy: +javaJake ___ Python tracker ___ ___ Py

[issue7651] Python3: guess text file charset using the BOM

2010-01-07 Thread STINNER Victor
STINNER Victor added the comment: open_bom.patch is the proof of concept. It only works in read mode. The idea is to delay the creation of the encoding and the decoder. We wait for just after the first read_chunk(). The patch changes the default behaviour of open(): if the file starts with a

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Changes by Richard Hansen : Removed file: http://bugs.python.org/file15716/unicode_escape_single_quotes.patch ___ Python tracker ___ ___ Pytho

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen added the comment: > We'll need a patch that implements single and double quote escaping > for unicode_escape and a \u style escaping of quotes for the > raw_unicode_escape encoder. OK, I'll remove unicode_escape_single_quotes.patch and update unicode_escape_reorg.patch.

[issue7655] PEP 374 Title usage & script redirection typo fixes

2010-01-07 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied in r77361. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue7655] PEP 374 Title usage & script redirection typo fixes

2010-01-07 Thread Bernard A. Badger
New submission from Bernard A. Badger : Change obvious usage error /chosing/choosing/ and script redirection /./>/ typos. -- assignee: georg.brandl components: Documentation files: pep-0374.txt.patch keywords: patch messages: 97383 nosy: bab9e9, georg.brandl severity: normal status: op

[issue7652] Merge C version of decimal into py3k.

2010-01-07 Thread Stefan Krah
Stefan Krah added the comment: Yes, formatting is completely implemented in io.c, together with quite a comprehensive test suite. I like the new Python format strings, so I wanted them in the C library, too. -- ___ Python tracker

[issue7624] isinstance(... , collections.Callable) fails with oldstyle class i nstances

2010-01-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7653] Fix description of the way the PythonPath Windows registry key works

2010-01-07 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied your patch in r77360. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7654] [patch] Enable additional bytes and memoryview tests.

2010-01-07 Thread Florent Xicluna
New submission from Florent Xicluna : Some tests in test_bytes are XXX. They could be enabled. Additionally the BaseBytesTest.test_index() is duplicated. This patch enable the additional tests and remove dead code. -- components: Tests files: enable_bytes_memoryview_tests.diff keywords

[issue7532] Extended slicing with classic class behaves strangely

2010-01-07 Thread Mark Dickinson
Mark Dickinson added the comment: Okay, sounds reasonable. Reopening to consider tests. -- assignee: -> mark.dickinson status: closed -> open ___ Python tracker ___ ___

[issue1506122] Add "compose" function to the functools

2010-01-07 Thread Demur Rumed
Demur Rumed added the comment: A type safe compose could be useful. One which instead of returning a function that takes (*args,**kwargs), takes the same as the first function which the arguments would be passed to. Copying a functions argument semantics would be useful in general, such as fo

[issue7652] Merge C version of decimal into py3k.

2010-01-07 Thread Brian Curtin
Brian Curtin added the comment: >mark> (1) Could we unify test_decimal and test_cdecimal somehow? >mark> This would avoid them getting out of sync when new tests are >mark> added, and would make it clear what the differences between >mark> them are. It looks like there's currently a lot of dup

[issue7532] Extended slicing with classic class behaves strangely

2010-01-07 Thread Florent Xicluna
Florent Xicluna added the comment: I would suggest to keep the tests, even if the bug is closed. -- Added file: http://bugs.python.org/file15779/issue7532_wontfix_tests.diff ___ Python tracker _

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Richard Hansen wrote: > > Richard Hansen added the comment: > >> Does the last patch obsolete the first two? If so please delete the >> obsolete ones. > > Yes and no -- it depends on what the core Python developers want and are > comfortable with: >

[issue7653] Fix description of the way the PythonPath Windows registry key works

2010-01-07 Thread Brian Curtin
Brian Curtin added the comment: It seems a bit wordy. I propose an alternate wording in the attached patch. -- keywords: +needs review, patch nosy: +brian.curtin priority: -> low stage: -> patch review versions: +Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/fi

[issue7652] Merge C version of decimal into py3k.

2010-01-07 Thread Mark Dickinson
Mark Dickinson added the comment: So the new branch looks great---thanks, Stefan! I'm only just beginning to look at the code properly, though. A couple of things: (1) Could we unify test_decimal and test_cdecimal somehow? This would avoid them getting out of sync when new tests are added,

[issue7652] Merge C version of decimal into py3k.

2010-01-07 Thread Mark Dickinson
Mark Dickinson added the comment: To answer Eric's question: Decimal.__format__ is already implemented in Stefan's work---it looks like most of the code is in http://svn.python.org/projects/python/branches/py3k-cdecimal/Modules/cdecimal/io.c (Stefan, is this right?) --

[issue7653] Fix description of the way the PythonPath Windows registry key works

2010-01-07 Thread Paul Keating
New submission from Paul Keating : The 2.6.4 docs (at http://docs.python.org/using/windows.html) do not give enough detail for an ordinary user to work out how the registry key HKLM\SOFTWARE\Python\PythonCore\version\PythonPath actually works. It says: Modifying the module search path can als

[issue2777] subprocess unit tests for kill, term and send_signal flaky

2010-01-07 Thread Brian Curtin
Brian Curtin added the comment: Minor patch change -- keywords: +needs review stage: -> patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0 Added file: http://bugs.python.org/file15777/issue2777.patch ___ Python tracker

[issue2777] subprocess unit tests for kill, term and send_signal flaky

2010-01-07 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file15313/issue2777.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue5063] python-2.6.spec doesn't build properly

2010-01-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: I just created the first version of the spec file after migration to subversion, by copying from an older version, which then got copied across versions. The original RPM support was from Jeremy Hylton (r18101); the spec file in its current form was contrib

[issue5063] python-2.6.spec doesn't build properly

2010-01-07 Thread R. David Murray
R. David Murray added the comment: I see that, eg, 'libver', which the patch wants to change to 'libvers', is still 'libver' in trunk/py3k. I know nothing about RPM, so am adding Martin as nosy since svn indicates he was the author of most of the file. -- nosy: +loewis, r.david.murra

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-07 Thread Florent Xicluna
Florent Xicluna added the comment: The Big Patch™. It removes 99% of noisy deprecation messages. -- Added file: http://bugs.python.org/file15776/issue7092_Lib_tests_big_patch.diff ___ Python tracker __

[issue4388] test_cmd_line fails on MacOS X

2010-01-07 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> needs patch versions: +Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ _

[issue7651] Python3: guess text file charset using the BOM

2010-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: You should ask on the mailing-list (python-dev) because this is an important behaviour change which I'm not sure will get accepted. -- nosy: +pitrou ___ Python tracker ___

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen added the comment: Attaching updated unit tests for the raw_unicode_escape codec. -- Added file: http://bugs.python.org/file15775/raw_unicode_escape_tests.patch ___ Python tracker ___

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen added the comment: Attaching updated unit tests for the unicode_escape codec. I removed the raw_unicode_escape tests and will attach a separate patch for those. -- Added file: http://bugs.python.org/file15774/unicode_escape_tests.patch _

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Changes by Richard Hansen : Removed file: http://bugs.python.org/file15746/unicode_escape_tests.patch ___ Python tracker ___ ___ Python-bugs-li

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen added the comment: > Does the last patch obsolete the first two? If so please delete the > obsolete ones. Yes and no -- it depends on what the core Python developers want and are comfortable with: * unicode_escape_single_quotes.patch: Only escapes single quotes, simple pat

[issue4766] email documentation needs to be precise about strings/bytes

2010-01-07 Thread R. David Murray
R. David Murray added the comment: We've concluded that the email package does need to be able to read bytes. To do this and still support reading text, we're going to have to change the API. So the docs will get fixed when they get rewritten for the new API. Patches to the 3.1 docs to clar

[issue7650] test_uuid is invalid

2010-01-07 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> needs patch type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker ___ __

[issue7455] cPickle: stack underflow in load_pop()

2010-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in all four branches. Thank you Victor and Florent! -- nosy: +pitrou resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue7636] Add a set update action to optparse

2010-01-07 Thread R. David Murray
Changes by R. David Murray : -- priority: -> low resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-07 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15628/issue7092_compiler.diff ___ Python tracker ___ ___ Python-bugs-list

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-07 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15740/issue7092_lib_many_fixes_v3.diff ___ Python tracker ___ ___ Python-

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-07 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15773/issue7092_cpickle.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue1379416] email.Header encode() unicode P2.6

2010-01-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7650] test_uuid is invalid

2010-01-07 Thread Austin English
Austin English added the comment: More info from the wine bug: Whoops, I didn't notice that Python uses UuidCreateSequential. From MSDN: For security reasons, UuidCreate was modified so that it no longer uses a machine's MAC address to generate UUIDs. UuidCreateSequential was introduced to

[issue1379416] email.Header encode() unicode P2.6

2010-01-07 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Any hope of this being fixed? -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list

[issue7455] cPickle: stack underflow in load_pop()

2010-01-07 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15605/issue7455_silence_py3k_warning.diff ___ Python tracker ___ ___ Pyt

[issue7652] Merge C version of decimal into py3k.

2010-01-07 Thread Juan José Conti
Changes by Juan José Conti : -- nosy: +jjconti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7636] Add a set update action to optparse

2010-01-07 Thread Brian Curtin
Brian Curtin added the comment: I think it's overkill, especially given the easy alternatives. -- ___ Python tracker ___ ___ Python-bu

[issue7636] Add a set update action to optparse

2010-01-07 Thread Georg Brandl
Georg Brandl added the comment: I'm not sure how much value this adds, given that you can just call set() on the list resulting from "append" actions. -- nosy: +georg.brandl ___ Python tracker

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-07 Thread Brian Curtin
Brian Curtin added the comment: >Antoine> (2to3 should be able to do the module rename -- Benjamin, does it?). 2to3 will rename cPickle to pickle. -- nosy: +brian.curtin ___ Python tracker _

[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2010-01-07 Thread Brian Curtin
Changes by Brian Curtin : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7319] Silence DeprecationWarning by default

2010-01-07 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file15743/warnings_rst_reword.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue7652] Merge C version of decimal into py3k.

2010-01-07 Thread Mark Dickinson
Mark Dickinson added the comment: Just to clarify, no decision has yet been made on *whether* the cdecimal work should be integrated into py3k; we'll consult python-dev on this once we've got a working branch and performance information. -- ___ Py

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-01-07 Thread Ezio Melotti
Ezio Melotti added the comment: First patch that makes u'%c' % '\x80' raise a UnicodeDecodeError. I could reproduce the problem on Linux 32/64bit, Windows 32bit and Python from 2.4 to 2.7. The '\Uff80' is returned by wide builds. -- Added file: http://bugs.python.org/file15772/iss

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-01-07 Thread Florent Xicluna
Florent Xicluna added the comment: Tested on 2.5... ~ $ python2.5 Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> u'%c' % '\x80' u'\Uff80' >>> On 2.7 (trunk) I get same behaviour as describe

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread R. David Murray
R. David Murray added the comment: Does the last patch obsolete the first two? If so please delete the obsolete ones. I imagine there are might be small doc updates required, as well. I haven't looked at the patch itself, but concerning your test patch: your try/except style is unnecessary

[issue7644] bug in nntplib.body() method with possible fix

2010-01-07 Thread R. David Murray
R. David Murray added the comment: Yes, it should be another issue. That said, there are similar (worse, actually) problems with the py3 email package that we are moving toward addressing. There we are planning to have dual APIs. If you want to work on fixing nntplib similarly, that would

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-01-07 Thread Eric Smith
Eric Smith added the comment: There's no perfect answer. And since we've gotten this far without anyone caring, and 2.7 is basically the end of life for this issue, perhaps doing nothing is the best course. Any change we make will affect code that runs in both 2.6 and 2.7, doing nothing prese

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-01-07 Thread Ezio Melotti
Ezio Melotti added the comment: If we allow it to work on 2.7 the code will break: 1) when ported to Py3, where mixing bytes strings and unicode is not allowed; 2) when used on Py<2.7, where the behavior is broken; 3) when converted to str.format, where only ints are accepted. If we raise an er

[issue7652] Merge C version of decimal into py3k.

2010-01-07 Thread Eric Smith
Eric Smith added the comment: Is the intention to write Decimal.__format__ in C, too? That would be quite a bit of work, and I'm not sure I could recommend it. But I'm not sure if your plan is to get rid of all Python code or not. If your plan is to rewrite absolutely everything in C, I could

[issue7652] Merge C version of decimal into py3k.

2010-01-07 Thread Mark Dickinson
New submission from Mark Dickinson : I've created this issue to keep track of progress in merging Stefan Krah's work on decimal in c into py3k. We've created a branch py3k-cdecimal (with merge tracking from py3k) for this work. When the branch is fully working and tested we'll consult python-

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen added the comment: I believe this issue is ready to be bumped to the "patch review" stage. Thoughts? -- ___ Python tracker ___ __

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen added the comment: Attaching updated unicode_escape_reorg.patch. This addresses two additional issues: * removes pickle's workaround of raw-unicode-escape's broken escaping * eliminates duplicated code (the raw escape encode function was copied with only a slight modificati

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Changes by Richard Hansen : Removed file: http://bugs.python.org/file15748/unicode_escape_reorg.patch ___ Python tracker ___ ___ Python-bugs-li