[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.C_Test) ... FAIL

It seems that interpreting type c_int and c_short is wrong in bit field for 
AIX. If i change the type c_int and c_short 
to c_unit and c_ushort of class "BITS(Structure)" in file test_bitfields.py 
then no failures are seen and all the test 
cases got passed

This issue is common for both 32 and 64-bit versions

Attaching the complete test case result for reference.

--
assignee: theller
components: ctypes
files: ctype-tests.txt
messages: 97395
nosy: mallayya, theller
severity: normal
status: open
title: test_ctypes failure on AIX 5.3
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file15784/ctype-tests.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 versions, so if you have a 64-bit Python and try to 
install the 32-bit wx, the wx installer won't immediately find a registry 
entry. It will be redirected to HKLM\Software\Wow6432Node\Python, which won't 
exist.

I think we can close this. Any thoughts, Martin?

--
nosy: +brian.curtin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 of the failing tests.

--
assignee: gregory.p.smith
components: Tests
messages: 97391
nosy: gregory.p.smith, r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: test_hashlib fails on some installations (specifically Neal's regression 
test runner)
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
BOM, the BOM is used but skipped. Example:
-
from _pyio import open

with open('test.txt', 'w', encoding='utf-8-sig') as fp:
print("abc", file=fp)
print("d\xe9f", file=fp)

with open('test.txt', 'r') as fp:
print("open().read(): {!r}".format(fp.read()))
-

Unpatched Python displays '\ufeffabc\ndéf\n', whereas patched Python displays 
'abc\ndéf\n'.

--
keywords: +patch
Added file: http://bugs.python.org/file15782/open_bom.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

> Other changes are not necessary.

Would you please clarify?  There are a few other (minor) bugs that were 
discovered while writing unicode_escape_reorg.patch that I think should be 
fixed:
  * the UTF-16 surrogate pair decoding logic could read past the end of the 
provided Py_UNICODE character array if the last character is between 0xD800 and 
0xDC00
  * _PyString_Resize() will be called on an empty string if the size argument 
of unicodeescape_string() is 0.  This will raise a SystemError because 
_PyString_Resize() can only be called if the object's ref count is 1 (even if 
no resizing is to take place) yet PyString_FromStringAndSize() returns a shared 
empty string instance if size is 0.
  * it is unclear what unicodeescape_string() should do if size < 0

Beyond those issues, I'm worried about manageability stemming from the amount 
of code duplication.  If a bug is found in one of those encoding functions, the 
other two will likely need updating.

> The pickle copy of the codec can be left untouched (both cPickle.c 
> and pickle.py) - it doesn't matter whether quotes are escaped or not 
> in the pickle data stream.

Unfortunately, pickle.py must be modified because it does its own backslash 
escaping before encoding with the raw_unicode_escape codec.  This means that 
backslashes would become double escaped and the decoded value would differ 
(confirmed by running the pickle unit tests).

The (minor) bugs in PyUnicode_EncodeRawUnicodeEscape() are also present in 
cPickle.c, so they should probably be fixed as well.

> The codecs' encode direction is not defined anywhere in the 
> documentation, AFAIK, and basically an implementation detail.

I read the escape codec documentation (see the original post) as implying that 
the encoders can generate eval-able string literals.  I'll add some clarifying 
statements.

Thanks for the feedback!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: open
title: PEP 374 Title usage & script redirection typo fixes
Added file: http://bugs.python.org/file15781/pep-0374.txt.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: patch
messages: 97380
nosy: flox
severity: normal
status: open
title: [patch] Enable additional bytes and memoryview tests.
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file15780/enable_bytes_memoryview_tests.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 for decorators

--
nosy: +serprex

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 duplicate code.

An approach similar to the one taken in test_warnings.py might work: write 
common test code as a base class, then subclass it to be run against both the C 
and Py versions of the module.

--
nosy: +brian.curtin

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:
>   * unicode_escape_single_quotes.patch:  Only escapes single quotes, simple 
> patch.
>   * unicode_escape_single_and_double_quotes:  Superset of the above (also 
> escapes double quotes), but probably unnecessary.  Still a relatively simple 
> patch.
>   * unicode_escape_reorg.patch:  Superset of 
> unicode_escape_single_quotes.patch that also fixes raw_unicode_escape and 
> other small issues.  It's a bigger patch with a greater potential for 
> backwards-compatibility issues.  (Pickle is an example:  It implemented its 
> own workaround to address raw_unicode_escape's broken escaping, so fixing 
> raw_unicode_escape ended up breaking pickle.  The reorg patch removes 
> pickle's workaround, but there will probably be similar workarounds in other 
> existing code.)
> 
> My preference is to have unicode_escape_reorg.patch committed, but I'm not 
> sure how conservative the core developers are.  The release of Python 2.7 is 
> approaching, and they may not want to take on the risk right now.  If that's 
> the case, I'd be happy with applying unicode_escape_single_quotes.patch for 
> now and moving unicode_escape_reorg.patch to a new issue report.

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.

Other changes are not necessary. The pickle copy of the codec can be
left untouched (both cPickle.c and pickle.py) - it doesn't matter
whether quotes are escaped or not in the pickle data stream.

It's only important that the decoders can reliably decode the
additional escapes (which AFAIK, they do automatically anyway).

>> I imagine there are might be small doc updates required, as well.
> 
> Certainly Misc/NEWS will need to be patched.  I'm unfamiliar with what else 
> the devs might want for documentation, so I'd love to get some additional 
> guidance.  I would also appreciate additional feedback on the technical 
> merits of the reorg patch before investing too much time on updating 
> documentation.

Misc/NEWS needs an entry which makes the changes clear.

The codecs' encode direction is not defined anywhere in the
documentation, AFAIK, and basically an implementation detail.
The codecs were originally only meant for Python's internal
use to decode Python literal byte strings into Unicode.
In PEP 100, I only defined the decoding direction. The
main idea was to have a set of codecs which read and produce
Latin-1 compatible text - Python 2.x used to accept Latin-1
Unicode literals without source code encoding marker.

>> I haven't looked at the patch itself, but concerning your test 
>> patch:  your try/except style is unnecessary, I think.  Better to 
>> just let the syntax error bubble up on its own.
> 
> OK, I'll make that change.  I added the try/except as an attempt to convert a 
> known ERROR to a FAIL in case that was important for some reason.

I'll have to have a look at the patch itself as well. No time for
that now, perhaps tomorrow.

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com



::: Try our new mxODBC.Connect Python Database Interface for free ! 

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   http://www.egenix.com/company/contact/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/file15778/issue7653.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, and would make it clear what 
the differences between them are.  It looks like there's currently a lot of 
duplicate code.

(2) At some point we'll need some documentation.  Even if all it says is:  the 
cdecimal module operates identically to the decimal module, with the following 
exceptions... (notes on threading differences, exponent limits, correct 
rounding of pow, etc.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 also be done through the Windows registry: 
Edit HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\version\PythonPath.

It should say:

Modifying the module search path can also be done through the Windows registry. 
To add a folder to the module search path, create a subkey under 
HKLM\SOFTWARE\Python\PythonCore\version\PythonPath. The subkey name is not 
important (but might, say, identify the package being added to the search 
path). Put the name of the folder you want searched in the default string value 
of the key you have created. Specify multiple folders as a semicolon-delimited 
list. If you create more than one subkey, all will be used, in alphabetical 
order of subkey name. If a folder appears in more than one subkey then it will 
appear only once in sys.path, in the position corresponding to the first 
mention.

Do not amend the list of folders given in the default value at the PythonPath 
key level. Installers create this value but it is a holdover from earlier 
versions of Python and amending it has no effect.

--
assignee: georg.brandl
components: Documentation
messages: 97371
nosy: BoarGules, georg.brandl
severity: normal
status: open
title: Fix description of the way the PythonPath Windows registry key works
type: feature request
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 contributed by Sean Reifschneider (r25016, r31581, r34435 - 
taken from issue823259).

Assigning the issue to jafo - Sean, if you don't want it, unassign it.

--
assignee:  -> jafo
nosy: +jafo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
patch.
  * unicode_escape_single_and_double_quotes:  Superset of the above (also 
escapes double quotes), but probably unnecessary.  Still a relatively simple 
patch.
  * unicode_escape_reorg.patch:  Superset of unicode_escape_single_quotes.patch 
that also fixes raw_unicode_escape and other small issues.  It's a bigger patch 
with a greater potential for backwards-compatibility issues.  (Pickle is an 
example:  It implemented its own workaround to address raw_unicode_escape's 
broken escaping, so fixing raw_unicode_escape ended up breaking pickle.  The 
reorg patch removes pickle's workaround, but there will probably be similar 
workarounds in other existing code.)

My preference is to have unicode_escape_reorg.patch committed, but I'm not sure 
how conservative the core developers are.  The release of Python 2.7 is 
approaching, and they may not want to take on the risk right now.  If that's 
the case, I'd be happy with applying unicode_escape_single_quotes.patch for now 
and moving unicode_escape_reorg.patch to a new issue report.

> I imagine there are might be small doc updates required, as well.

Certainly Misc/NEWS will need to be patched.  I'm unfamiliar with what else the 
devs might want for documentation, so I'd love to get some additional guidance. 
 I would also appreciate additional feedback on the technical merits of the 
reorg patch before investing too much time on updating documentation.

> I haven't looked at the patch itself, but concerning your test 
> patch:  your try/except style is unnecessary, I think.  Better to 
> just let the syntax error bubble up on its own.

OK, I'll make that change.  I added the try/except as an attempt to convert a 
known ERROR to a FAIL in case that was important for some reason.

Thanks for the feedback!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 clarify the current situation would probably be 
accepted and applied, but I suspect the email team is not going to provide them 
due to lack of time :(.

--
nosy: +r.david.murray
priority:  -> normal
resolution:  -> postponed
versions: +Python 3.2 -Python 3.0

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 allow creation of UUIDs using the MAC address of a machine's 
Ethernet card.

I'm reopening this, as Wine's implementation of UuidCreateSequential calls 
UuidCreate, whereas it should use the MAC address-based method.  Setting 
component to rpcrt4, too.

My comment about the multicast bit occasionally being set (when the machine on 
which UuidCreateSequential is called has no MAC address) still stands, so 
there's still a Python bug.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue7649.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 described on msg97334.

--
nosy: +flox

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, I think.  Better to just let the syntax error 
bubble up on its own.  After all, you don't *know* that the SyntaxError is 
because the quotes aren't escaped.  I've run into other unit tests in the test 
suite where the author made such an assumption, which turned out to be false 
and confused me for a bit while debugging the failure.  I had to remove the 
code producing the mistaken reason message in order to see the real problem.  
So it's better to just let the real error show up in the first place, in my 
experience.

--
nosy: +r.david.murray
stage: test needed -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 be great.  I'm expecting there to be 
synergy between the two, so you might be interested in joining the effort to 
update the email module as well.  See http://wiki.python.org/moin/Email%20SIG 
for more details.  (Trying to use nntplib in py3 is how I myself wound up 
involved in the email effort).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 preserves compatibility on the 2.x side.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 error, the user will have to either use unicode strings or ints 
and he will avoid further problems. Moreover, the fact that no one noticed this 
problems means that is not a common operation, so no one probably expects it to 
work anyway and raising an error could even help to find the problem if someone 
used %c in older versions.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 help out by 
exposing the methods that parse format specifiers and do some of the low level 
formatting. They're used internally by the int, float, and str formatting code. 
Let me know.

--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-dev 
about next steps.

--
components: Extension Modules, Library (Lib)
messages: 97347
nosy: mark.dickinson, rhettinger, skrah
severity: normal
status: open
title: Merge C version of decimal into py3k.
type: performance
versions: Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 modification in cPickle.c)

With this, all regression tests pass.

--
Added file: http://bugs.python.org/file15771/unicode_escape_reorg.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com