[issue19529] Fix unicode_aswidechar() with 4byte unicode and 2byte wchar_t, for AIX

2013-11-10 Thread Michael Haubenwallner

Michael Haubenwallner added the comment:

It is the abort() libc function being called, causing a core file to be 
written. And I can see the backtrace from both the core file or when running in 
the debugger.

Yes: I already have included this fix into my python-3.2.5 packaging. I'm 
basically fine when this patch is accepted "technically", although I'd prefer 
to see it included in the next 3.2 release, if any. In fact I've reported it 
only because I've seen a 2.7 release recently - ohw, and 2.6.9 yesterday, so 
I've expected there eventually may be another 3.2 release too.

Yes: This bug does not exist since 3.3 any more due to the rewrite.

And indeed I'd also call this a security fix because it is of the "invalid 
memory read" type: I do see the filenames being truncated after 112 characters 
when building in some longer build-path.

Thank you!

--

___
Python tracker 

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



[issue16685] audioop functions shouldn't accept strings

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 35cd00465624 by Serhiy Storchaka in branch 'default':
Fixed compile error on Windows caused by arithmetic with void * pointers
http://hg.python.org/cpython/rev/35cd00465624

--

___
Python tracker 

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



[issue19238] Misleading explanation of fill and align in format_spec

2013-11-10 Thread David Chambers

David Chambers added the comment:

These commits contain a typo: s/preceeded/preceded/

--

___
Python tracker 

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



[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Nick Coghlan

Nick Coghlan added the comment:

A few more:

- codec name normalisation (lower case,  space to hyphen) is not mentioned
in the codecs.register description

- search function registration is not reversible, which doesn't play well
with module reloading

- codecs.CodecInfo init signature is not covered

--

___
Python tracker 

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



[issue5815] locale.getdefaultlocale() missing corner case

2013-11-10 Thread Mike FABIAN

Mike FABIAN added the comment:

In glibc, sd...@devanagari.utf-8 is an invalid locale name,
only sd_IN.UTF-8@devanagari is valid:

mfabian@ari:~
$ LC_ALL=sd_IN.UTF-8@devanagari locale charmap
UTF-8
mfabian@ari:~
$ LC_ALL=sd...@devanagari.utf-8 locale charmap
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968
mfabian@ari:~
$ 

So I think this should be fixed in X.org.

--

___
Python tracker 

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



[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue19549] PKG-INFO is created with CRLF on Windows

2013-11-10 Thread anatoly techtonik

New submission from anatoly techtonik:

When packaging on Windows, sdist creates PKG-INFO, which is different in 
linefeeds. It will be better if this is consistent between platforms.

--
assignee: eric.araujo
components: Distutils, Distutils2
messages: 202602
nosy: alexis, eric.araujo, tarek, techtonik
priority: normal
severity: normal
status: open
title: PKG-INFO is created with CRLF on Windows
versions: Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue5815] locale.getdefaultlocale() missing corner case

2013-11-10 Thread Mike FABIAN

Mike FABIAN added the comment:

Serhiy> The /usr/share/X11/locale/locale.alias file in Ubuntu 12.04 LTS
Serhiy> contains ks...@devanagari.utf-8 and sd...@devanagari.utf-8
Serhiy> entities.

Yes, I know, that’s why I wrote that the Python code inherited this mistake
from X.org.

Serhiy> While the encoding is expected to be before the modifier, if
Serhiy> there are systems with ks...@devanagari.utf-8 or
Serhiy> sd...@devanagari.utf-8 locales we should support these weird case.

There are no such systems really, in X.org this is just a mistake.
glibc doesn’t write it like this and it is agains the specification
here:

http://pubs.opengroup.org/onlinepubs/007908799/xbd/envvar.html#tag_002

 [language[_territory][.codeset][@modifier]]

--

___
Python tracker 

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



[issue1097797] Encoding for Code Page 273 used by EBCDIC Germany Austria

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 93645b0b6750 by Andrew Kuchling in branch 'default':
#1097797: add the original mapping file
http://hg.python.org/cpython/rev/93645b0b6750

--

___
Python tracker 

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



[issue13276] bdist_wininst-created installer does not run the postinstallation script when uninstalling

2013-11-10 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue19249] Enumeration.__eq__

2013-11-10 Thread Ethan Furman

Ethan Furman added the comment:

Done and done.

--
stage: test needed -> patch review
Added file: http://bugs.python.org/file32572/issue19249.stoneleaf.02.patch

___
Python tracker 

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



[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski

Changes by Jan Kaliszewski :


--
versions:  -Python 2.6, Python 2.7, Python 3.1

___
Python tracker 

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



[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski

Jan Kaliszewski added the comment:

11. Ad encoding 'undefined': The sentence `Can be used as the system encoding 
if no automatic coercion between byte and Unicode strings is desired.` was 
suitable for Python 2.x, but not for Python 3.x'. I believe, this sentence 
should be removed.

--

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Thanks Ned. I did see that and have pushed 394ed9deebd4. I believe that 
corrects the only test failure.

--

___
Python tracker 

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



[issue16685] audioop functions shouldn't accept strings

2013-11-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

The patch as committed causes the Windows 64-bit builds to fail to compile. 
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/3187/steps/compile/logs/stdio

--
nosy: +jason.coombs
status: closed -> open

___
Python tracker 

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



[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski

Jan Kaliszewski added the comment:

8. Again ad `codecs.open`: the default file mode is actually 'rb', not 'r'.

9. Several places in the docs -- ad: `codecs.register_error`, `codecs.open`, 
`codecs.EncodedFile`, `Codec.encode/decode`, `codecs.StreamWriter/StreamReader` 
-- do not cover cases of using bytes-to-bytes and/or str-to-str encodings 
(especially when using `string`/`bytes` and `text`/`binary` terms).

10. `codecs.replace_errors` -- `bytestring` should be replaced with `bytes-like 
object` (as in other places).

--

___
Python tracker 

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



[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski

Jan Kaliszewski added the comment:

s/world/word
s/begginers/beginners

(sorry, it's late night here)

--

___
Python tracker 

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



[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski

New submission from Jan Kaliszewski:

When learning about the 'codecs' module I encountered several places in the 
docs of the module that, I believe, could be improved to be clearer and easier 
for codecs-begginers: 

1. Ad `codecs.encode` and `codecs.decode` descriptions: I believe it would be 
worth to mention that, unlike str.encode()/bytes.decode(), these functions (and 
all their counterparts in the classes the module contains) support not only 
"traditional str/bytes encodings", but also bytes-to-bytes as well as 
str-to-str encodings. 

2. Ad 'codecs.register': in two places there is such a text: `These have to be 
factory functions providing the following interface: factory([...] 
errors='strict')` -- `errors='strict'` may be confusing (at the first sight it 
may suggest that the only valid value is 'strict'; maybe `factory(errors=)` with an appropriate description below would be better?).

3. Ad `codecs.open`: I believe there should be a reference to the built-in 
open() as an alternative that is better is most cases.

4. Ad `codecs.BOM*`: `These constants define various encodings of the Unicode 
byte order mark (BOM).` -- the world `encodings` seems to be confusing here; 
maybe `These constants define various byte sequences being Unicode byte order 
marks (BOMs) for several encodings. They are used...` would be better?

5. Ad `7.2.1. Codec Base Classes` + 
`codecs.IncrementalEncoder`/`codecs/IncrementalDecoder`:
  * `Each codec has to define four interfaces to make it usable as codec in 
Python: stateless encoder, stateless decoder, stream reader and stream writer` 
-- only four? Not six? What about incremental encoder/decoder???
  * Comparing the fragments (and tables) about error halding methods (Codecs 
Base Classes, IncrementalEncoder, IncrementalDecoder) with similar fragment in 
the `codecs.register` description and with the `codecs.register_error` 
description I was confused: is it the matter of a particular codec 
implementation or of a registered error handler to implement a particular way 
of error handling? I believe it would be worth to describe clearly relations 
between these elements of the API. Also more detailed description of 
differences beetween error handling for encoding and decoding, and translation 
would be a good thing. 

6. Ad `7.2.1.6. StreamReaderWriter Objects` and `7.2.1.7. StreamRecoder 
Objects`: It would be worth to say explicitly that, contrary to previously 
described abstract classes (IncrementalEncoder/Decoder, StreamReader/Writer), 
these classes are *concrete* ones (if I understand it correctly).

7. Ad `7.2.4. Python Specific Encodings`:
  * `raw_unicode_encoding` -- see: ticket #19539.
  * `unicode_encoding` -- `Produce a string that is suitable as Unicode literal 
in Python source code` but it is *not* a string; it's a *bytes* object (which 
could be used in source code using an `ascii`-compatibile encoding).
  * `bytes-to-bytes` and `str-to-str` encodings -- maybe it would be nice to 
mention that these encodings cannot be used with str.encode()/bytes.decode() 
methods (and to mention again they *can* be used with the functions/method 
provided by the `codecs` module).

--
assignee: docs@python
components: Documentation
messages: 202593
nosy: docs@python, zuo
priority: normal
severity: normal
status: open
title: 'codecs' module docs improvements
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread Ned Deily

Ned Deily added the comment:

b1244046f37a appears to have broken buildbots.  See, for example:

http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/2984

--

___
Python tracker 

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



[issue19539] The 'raw_unicode_escape' codec buggy + not apropriate for Python 3.x

2013-11-10 Thread Jan Kaliszewski

Jan Kaliszewski added the comment:

Which means that the description "Produce a string that is suitable as raw 
Unicode literal in Python source code" is (in Python 3.x) no longer true.

So, if change/removal is not possible because of internal significance of the 
codec, I believe that the description should be changed to something like: "For 
internal use. This codec *does not* produce anything suitable as a raw string 
literal in Python 3.x source code."

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 3.2, Python 3.3

___
Python tracker 

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



[issue6286] distutils upload command doesn't work with http proxy

2013-11-10 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
status: open -> closed

___
Python tracker 

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



[issue6286] distutils upload command doesn't work with http proxy

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5e98c4e9c909 by Jason R. Coombs in branch '3.3':
Issue #19544 and Issue #6286: Restore use of urllib over http allowing use of 
http_proxy for Distutils upload command, a feature accidentally lost in the 
rollback of distutils2.
http://hg.python.org/cpython/rev/5e98c4e9c909

New changeset b1244046f37a by Jason R. Coombs in branch 'default':
Merge with 3.3 for Issue #19544 and Issue #6286. Merge is untested. I was 
unable to test due to bab0cbf86835.
http://hg.python.org/cpython/rev/b1244046f37a

--
nosy: +python-dev

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5e98c4e9c909 by Jason R. Coombs in branch '3.3':
Issue #19544 and Issue #6286: Restore use of urllib over http allowing use of 
http_proxy for Distutils upload command, a feature accidentally lost in the 
rollback of distutils2.
http://hg.python.org/cpython/rev/5e98c4e9c909

New changeset b1244046f37a by Jason R. Coombs in branch 'default':
Merge with 3.3 for Issue #19544 and Issue #6286. Merge is untested. I was 
unable to test due to bab0cbf86835.
http://hg.python.org/cpython/rev/b1244046f37a

--

___
Python tracker 

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



[issue19536] MatchObject should offer __getitem__()

2013-11-10 Thread Greg Ward

Greg Ward added the comment:

>>> import this
[...]
There should be one-- and preferably only one --obvious way to do it.

--
nosy: +gward

___
Python tracker 

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



[issue6516] reset owner/group to root for distutils tarballs

2013-11-10 Thread A.M. Kuchling

Changes by A.M. Kuchling :


--
versions: +Python 3.4 -Python 2.7, Python 3.2

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Patches for the default branch have been added to issue1180 (option to ignore 
~/.pydistutils.cfg) and issue6516 (setting the owner/group in Distutils-built 
tarballs).  Please double-check those patches; I can apply them.

--

___
Python tracker 

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



[issue6516] reset owner/group to root for distutils tarballs

2013-11-10 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Here's an updated patch, to be applied against the default branch.

--
nosy: +akuchling
stage:  -> patch review
Added file: http://bugs.python.org/file32571/3.4-patch.txt

___
Python tracker 

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



[issue7457] Adding a read_pkg_file to DistributionMetadata

2013-11-10 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue6286] distutils upload command doesn't work with http proxy

2013-11-10 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
versions: +Python 3.3, Python 3.4 -Python 3.2

___
Python tracker 

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



[issue7457] Adding a read_pkg_file to DistributionMetadata

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e19441e540ca by Jason R. Coombs in branch '3.3':
Issue 19544 and Issue #7457: Restore the read_pkg_file method to 
distutils.dist.DistributionMetadata accidentally removed in the undo of 
distutils2.
http://hg.python.org/cpython/rev/e19441e540ca

New changeset 28059d8b395b by Jason R. Coombs in branch 'default':
Merge with 3.3 for Issue #19544 and Issue #7457
http://hg.python.org/cpython/rev/28059d8b395b

--
nosy: +python-dev

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e19441e540ca by Jason R. Coombs in branch '3.3':
Issue 19544 and Issue #7457: Restore the read_pkg_file method to 
distutils.dist.DistributionMetadata accidentally removed in the undo of 
distutils2.
http://hg.python.org/cpython/rev/e19441e540ca

New changeset 28059d8b395b by Jason R. Coombs in branch 'default':
Merge with 3.3 for Issue #19544 and Issue #7457
http://hg.python.org/cpython/rev/28059d8b395b

--
nosy: +python-dev

___
Python tracker 

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



[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2013-11-10 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Here's a patch to restore the --no-user-cfg switch to 3.4.  If someone will 
take a quick look at the patch for sanity, I can apply it.

--
keywords: +needs review
resolution: fixed -> 
stage:  -> patch review
versions: +Python 3.4 -Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file32570/3.4-patch.txt

___
Python tracker 

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



[issue19547] HTTPS proxy support missing without warning

2013-11-10 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +orsenthil

___
Python tracker 

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



[issue17518] urllib2 cannnot handle https and BasicAuth via Proxy.

2013-11-10 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +orsenthil

___
Python tracker 

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



[issue7457] Adding a read_pkg_file to DistributionMetadata

2013-11-10 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
assignee: tarek -> jason.coombs

___
Python tracker 

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



[issue6286] distutils upload command doesn't work with http proxy

2013-11-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

This change didn't make it into Python 3.2 but is in 2.7. see issue19544 for 
details.

--
nosy: +jason.coombs
status: closed -> open

___
Python tracker 

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



[issue6286] distutils upload command doesn't work with http proxy

2013-11-10 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
assignee: tarek -> jason.coombs

___
Python tracker 

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



[issue6466] duplicate get_version() code between cygwinccompiler and emxccompiler

2013-11-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

This change didn't make it into Python 3.2 but is in 2.7. see issue19544 for 
details.

--
assignee: tarek -> jason.coombs
components: +Distutils
nosy: +alexis, jason.coombs
status: closed -> open

___
Python tracker 

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



[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2013-11-10 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
status: closed -> open

___
Python tracker 

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



[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2013-11-10 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
assignee: tarek -> akuchling
nosy: +akuchling

___
Python tracker 

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



[issue6516] reset owner/group to root for distutils tarballs

2013-11-10 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
status: closed -> open

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

After spending several hours spelunking, we identified what we believe are the 
tickets that were backed out in the aforementioned reversion.

issue1180
issue6516
issue7457
issue6466
issue6286

Additionally, issue6377 (renaming .compiler to .compiler_obj) was reverted, but 
it likely should not be re-applied.

Attached is an export of the etherpad 
(http://beta.etherpad.org/p/python_2.7_distutil_commits) which we used to keep 
track of the changes and show our work.

We will flag the above tickets and address each individually.

--
Added file: http://bugs.python.org/file32569/python_2.7_distutil_commits.html

___
Python tracker 

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



[issue18861] Problems with recursive automatic exception chaining

2013-11-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Yes, I suggest using ExitStack to figure out the behaviour we *want* first,
before diving into the messy practical details of how to make that a
reality in CPython. We somehow have to get the state of the exception
object and its traceback to represent an appropriate stack *tree*, rather
than the traditionally assumed linear stack.

It also occurred to me there's another potentially related issue: frame
hiding, where we want to avoid showing infrastructure code in end user
tracebacks. importlib currently has a very hacky version of that. The
Jinja2 template library uses a different approach.

The reason I bring these other problems up is because I think they
illustrate a theme around altering how a traceback is displayed that may be
amenable to a common solution (preferably one that is contextlib and
asyncio friendly).

--

___
Python tracker 

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



[issue6516] reset owner/group to root for distutils tarballs

2013-11-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

This change was rolled back before the release of 3.2, so only exists in 2.7. 
See issue19544 for details.

--
nosy: +jason.coombs

___
Python tracker 

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



[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2013-11-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Confirmed - and to be included in issue19544.

--
nosy: +jason.coombs

___
Python tracker 

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



[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2013-11-10 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Alright, I'm going to close this issue.  Please open a new bug for Python 2.7.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue19546] configparser leaks implementation detail

2013-11-10 Thread Łukasz Langa

Changes by Łukasz Langa :


--
assignee:  -> lukasz.langa

___
Python tracker 

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



[issue19461] RawConfigParser modifies empty strings unconditionally

2013-11-10 Thread Łukasz Langa

Changes by Łukasz Langa :


--
assignee:  -> lukasz.langa

___
Python tracker 

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



[issue19547] HTTPS proxy support missing without warning

2013-11-10 Thread Stefan Richter

New submission from Stefan Richter:

When using urllib2 and specifying a HTTPS proxy when setting up a ProxyHandler, 
the library does not encrypt the traffic sent to the proxy server. This results 
in unpredictable behavior.

Either the support should be implemented or an error raised

--
components: Library (Lib)
messages: 202575
nosy: 02strich
priority: normal
severity: normal
status: open
title: HTTPS proxy support missing without warning
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Issue #11104 also made some functionality work in both 2.7 and 3.2, though it's 
not clear that the problem stemmed from the distutils2 revert.

--

___
Python tracker 

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



[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-10 Thread Andreas Schwab

Andreas Schwab added the comment:

There is nothing wrong with that.

--

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread Ned Deily

Ned Deily added the comment:

I wouldn't trust the NEWS items.  I think the only reliable thing to do is diff 
each file, unfortunately.

--
nosy: +ned.deily

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread A.M. Kuchling

A.M. Kuchling added the comment:

I went through Python 2.7's Misc/NEWS file and collected the entries for 
Distutils-related issues that were applied.  Perhaps we can check the 
individual entries on this list, and see which ones are still present in Python 
3.x and which ones got reverted.

--
nosy: +akuchling
Added file: http://bugs.python.org/file32568/ticket-list.txt

___
Python tracker 

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



[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2013-11-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I suppose that 2.7 may leak GzipFile in case of some errors, but this is 
another issue.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue1198569] string.Template not flexible enough to subclass (regexes)

2013-11-10 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

This seems like a reasonable request.  Do you care to submit a patch with tests 
and doc updates?

--

___
Python tracker 

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



[issue13276] bdist_wininst-created installer does not run the postinstallation script when uninstalling

2013-11-10 Thread anatoly techtonik

anatoly techtonik added the comment:

Here is workaround, which is - patching distutils -  
https://code.google.com/p/spyderlib/wiki/PatchingDistutils

--
versions: +Python 3.4, Python 3.5

___
Python tracker 

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



[issue13173] Default values for string.Template

2013-11-10 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I'm looking at this issue again with an eye toward Python 3.4.

Raymond describes what I think is a reasonable way to use defaults:

>>> x = Template('$foo $bar')
>>> defaults = dict(foo='one', bar='two')
>>> x.substitute(defaults)
'one two'
>>> x.substitute(defaults, bar='three')
'one three'
>>> x.substitute(defaults, foo='nine', bar='three')
'nine three'

(The implementation actually uses ChainMap.)

Now, to address Bfontaine's complaint about passing around tuples, observe that 
Template instances are Just Instances, so you can always do this:

>>> x = Template('$foo $bar')
>>> x.defaults = defaults
>>> x.substitute(x.defaults, foo='nine', bar='three')
'nine three'

IOW, just stash your defaults on the instance and pass the instance around.  
Does the Template class actually need more built-in support for defaults?  I'm 
inclined to close this as Won't Fix.

--

___
Python tracker 

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



[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2013-11-10 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Should this issue still remain open?  The original report described a chained 
exception, which obviously doesn't happen in 2.7 (nor with Georg's changeset, 
in 3.2, 3.3, or 3.4).

RDM's message implies there still may still be bugs lurking here in 2.7, but 
OTOH, the original issue isn't a problem (i.e. no chained exceptions).  I'd be 
tempted to say that if there are still problems here, it would be better to 
open a 2.7 specific bug.

--

___
Python tracker 

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



[issue5815] locale.getdefaultlocale() missing corner case

2013-11-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The /usr/share/X11/locale/locale.alias file in Ubuntu 12.04 LTS contains 
ks...@devanagari.utf-8 and sd...@devanagari.utf-8 entities. While the encoding 
is expected to be before the modifier, if there are systems with 
ks...@devanagari.utf-8 or sd...@devanagari.utf-8 locales we should support 
these weird case.

--

___
Python tracker 

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



[issue18861] Problems with recursive automatic exception chaining

2013-11-10 Thread Benjamin Peterson

Benjamin Peterson added the comment:

The first thing to do is to carefully specificy what the behavior should be.

2013/11/10 Nikolaus Rath :
>
> Nikolaus Rath added the comment:
>
> Hi Nick,
>
> I am interested in working on this, but I have never worked on the C parts of 
> cpython before. Do you think this is a feasible project to start with? To me 
> it looks a bit daunting, I'd certainly need some mentoring to even know where 
> to start with this.
>
> --
>
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue19540] PEP339: Fix link to Zephyr ASDL paper

2013-11-10 Thread Benjamin Peterson

New submission from Benjamin Peterson:

c0d120cf0aac

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue18861] Problems with recursive automatic exception chaining

2013-11-10 Thread Nikolaus Rath

Nikolaus Rath added the comment:

Hi Nick,

I am interested in working on this, but I have never worked on the C parts of 
cpython before. Do you think this is a feasible project to start with? To me it 
looks a bit daunting, I'd certainly need some mentoring to even know where to 
start with this.

--

___
Python tracker 

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



[issue8311] wave module sets data subchunk size incorrectly when writing wav file

2013-11-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is simplified patch. Added versionchanged tags in the documentation.

--
Added file: http://bugs.python.org/file32567/audio_write_nonbytes_2.patch

___
Python tracker 

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



[issue16754] Incorrect shared library extension on linux

2013-11-10 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
assignee: barry -> doko

___
Python tracker 

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



[issue16685] audioop functions shouldn't accept strings

2013-11-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue16685] audioop functions shouldn't accept strings

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bab0cbf86835 by Serhiy Storchaka in branch 'default':
Issue #16685: Added support for any bytes-like objects in the audioop module.
http://hg.python.org/cpython/rev/bab0cbf86835

--
nosy: +python-dev

___
Python tracker 

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



[issue19406] PEP 453: add the ensurepip module

2013-11-10 Thread Donald Stufft

Donald Stufft added the comment:

* Updated setuptools
* Updated pip to the latest development snapshot
* Installs default to installing easy_install-X.Y, pipX, and pipX.Y
* Added --altinstall which only installs easy_install-X.Y and pipX.Y
* Added --default-install which installs easy_install, easy_install-X.Y, pip, 
pipX, and pipX.Y

--
Added file: http://bugs.python.org/file32566/ensurepip-combined-altinstall.diff

___
Python tracker 

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



[issue9419] RUNSHARED needs LDFLAGS

2013-11-10 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
assignee: barry -> 

___
Python tracker 

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



[issue10262] Add --soabi option to `configure`

2013-11-10 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I think we've had plenty of time to adjust to the abi tags.  Does anybody think 
that nearly 3 years later anything really needs to be done here?

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue11677] make test has horrendous performance on an ecryptfs

2013-11-10 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I'm going to close this issue as invalid; it hasn't affected me on ecryptfs 
$HOME on Ubuntu in a long time, so let's chalk it up to better ecryptfs 
implementations now.

If you disagree, feel free to re-open this and provide more information.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue19499] "import this" is cached in sys.modules

2013-11-10 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
nosy:  -gregory.p.smith

___
Python tracker 

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



[issue19499] "import this" is cached in sys.modules

2013-11-10 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I completely agree with Tim.  The 'this' module was a *joke* and a stealthy one 
at that.

http://www.wefearchange.org/2010/06/import-this-and-zen-of-python.html

About the only thing I'd support is adding some comments to the code to either 
explain what's going on a little better, or provide some history to what this 
module is and why it's there.  Then again, if you want to do that, please be 
sure to also add some documentation, but you better make it *funny*. :)

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue7171] Add inet_ntop and inet_pton support for Windows

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 31fe38f95c82 by Jason R. Coombs in branch 'default':
Update Misc/NEWS for Issue #7171
http://hg.python.org/cpython/rev/31fe38f95c82

--

___
Python tracker 

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



[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-10 Thread Stefan Krah

Stefan Krah added the comment:

Andreas Schwab  wrote:
> (gdb) p sizeof(PyASCIIObject)
> $1 = 22

m68k again? ;)

--

___
Python tracker 

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



[issue19261] Add support for 24-bit in the sunau module

2013-11-10 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue19261] Add support for 24-bit in the sunau module

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d2cc6254d399 by Serhiy Storchaka in branch 'default':
Issue #19261: Added support for writing 24-bit samples in the sunau module.
http://hg.python.org/cpython/rev/d2cc6254d399

--
nosy: +python-dev

___
Python tracker 

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



[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-10 Thread Andreas Schwab

Andreas Schwab added the comment:

(gdb) p sizeof(PyASCIIObject)
$1 = 22

--

___
Python tracker 

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



[issue19546] configparser leaks implementation detail

2013-11-10 Thread R. David Murray

R. David Murray added the comment:

I'd vote -1 on this one.  The extra context in this case is not confusing, and 
might be helpful to someone.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue7171] Add inet_ntop and inet_pton support for Windows

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 17b160baa20f by Atsuo Ishimoto in branch 'default':
Issue #7171: Add Windows implementation of ``inet_ntop`` and ``inet_pton`` to 
socket module.
http://hg.python.org/cpython/rev/17b160baa20f

New changeset a21f506d04c9 by Jason R. Coombs in branch 'default':
Issue #7171: Update syntax to replace MAX in favor of Py_MAX (matching 
implementation for Unix).
http://hg.python.org/cpython/rev/a21f506d04c9

--
nosy: +python-dev

___
Python tracker 

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



[issue12226] use HTTPS by default for uploading packages to pypi

2013-11-10 Thread anatoly techtonik

anatoly techtonik added the comment:

How come that this CVE is still present in just released 2.7.6?

--

___
Python tracker 

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



[issue1097797] Encoding for Code Page 273 used by EBCDIC Germany Austria

2013-11-10 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Committed this to 3.4.

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue1097797] Encoding for Code Page 273 used by EBCDIC Germany Austria

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa2581bbef44 by Andrew Kuchling in branch 'default':
Add news entry for #1097797; whitespace cleanup
http://hg.python.org/cpython/rev/fa2581bbef44

--

___
Python tracker 

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



[issue1097797] Encoding for Code Page 273 used by EBCDIC Germany Austria

2013-11-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7d9d1bcd7d18 by Andrew Kuchling in branch 'default':
#1097797: Add CP273 codec, and exercise it in the test suite
http://hg.python.org/cpython/rev/7d9d1bcd7d18

--
nosy: +python-dev

___
Python tracker 

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



[issue19499] "import this" is cached in sys.modules

2013-11-10 Thread Tim Peters

Tim Peters added the comment:

Reassigned to Barry, since he wrote this module ;-)  FWIW, I wouldn't change 
it.  It wasn't intended to be educational, but a newbie could learn quite a bit 
by figuring out how it works.

--
assignee: tim.peters -> barry
nosy: +barry

___
Python tracker 

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



[issue5815] locale.getdefaultlocale() missing corner case

2013-11-10 Thread Mike FABIAN

Mike FABIAN added the comment:

Serhiy, in your patch you seem to have special treatment for
the devanagari modifier:

+# Devanagari modifier placed before encoding.
+return code, modifier.split('.')[1]

Probably because of 

   'ks_in@devanagari': 'ks...@devanagari.utf-8',
   'sd':   'sd...@devanagari.utf-8',

in the locale_alias dictionary.

But I think these two lines are just wrong, this mistake
is inherited from the locale.alias from X.org where the
python locale_alias comes from.

glibc:

mfabian@ari:~
$ locale -a | grep ^sd
sd_IN
sd_IN.utf8
sd_IN.utf8@devanagari
sd_IN@devanagari
mfabian@ari:~
$ locale -a | grep ^ks
ks_IN
ks_IN.utf8
ks_IN.utf8@devanagari
ks_IN@devanagari
mfabian@ari:~
$ 

The encoding should always be *before* the modifier.

--
nosy: +mfabian

___
Python tracker 

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



[issue10552] Tools/unicode/gencodec.py error

2013-11-10 Thread A.M. Kuchling

A.M. Kuchling added the comment:

For the Mac issue, we could just delete the mapping files before processing 
them.  I've attached a patch that modifies the Makefile.

--
nosy: +akuchling
Added file: http://bugs.python.org/file32565/10552-remove-apple-files.txt

___
Python tracker 

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



[issue19020] Regression: Windows-tkinter-idle, unicode, and 0xxx filename

2013-11-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> I am also not clear on the relation between the UnicodeDecodeError and tuple 
> splitting. Does '_flatten((self._w, cmd)))' call split or splitlist on the 
> tuple arg? Is so, do you know why a problem with that would lead to the 
> UDError? Does your patch fix the leading '0' regression?

The traceback is misleading. Full statement is:

for x in self.tk.split(
self.tk.call(_flatten((self._w, cmd:

Where cmd is ('entryconfigure', index). The UnicodeDecodeError error was raised 
neither by _flatten() nor call(), but by split().

When run `./python -m idlelib.idle \\0.py` call() returns and split() gets a 
tuple of tuples: (('-activebackground', '', '', '', ''), ('-activeforeground', 
'', '', '', ''), ('-accelerator', '', '', '', ''), ('-background', '', '', '', 
''), ('-bitmap', '', '', '', ''), ('-columnbreak', '', '', 0, 0), ('-command', 
'', '', '', '3067328620open_recent_file'), ('-compound', 'compound', 
'Compound', , 'none'), ('-font', '', '', '', ''), 
('-foreground', '', '', '', ''), ('-hidemargin', '', '', 0, 0), ('-image', '', 
'', '', ''), ('-label', '', '', '', '1 /home/serhiy/py/cpython/\\0.py'), 
('-state', '', '', , 'normal'), ('-underline', '', '', 
-1, 0)). When set wantobjects in Lib/tkinter/__init__.py to 0, it will get a 
string r"{-activebackground {} {} {} {}} {-activeforeground {} {} {} {}} 
{-accelerator {} {} {} {}} {-background {} {} {} {}} {-bitmap {} {} {} {}} 
{-columnbreak {} {} 0 0} {-command {} {} {} 3067013228open_recent_file} 
{-compound comp
 ound Compound none none} {-font {} {} {} {}} {-foreground {} {} {} {}} 
{-hidemargin {} {} 0 0} {-image {} {} {} {}} {-label {} {} {} {1 
/home/serhiy/py/cpython/\0.py}} {-state {} {} normal normal} {-underline {} {} 
-1 0}".  Then split() try recursively split its argument. When it splits '1 
/home/serhiy/py/cpython/\\0.py' it interprets '\\0' as backslash substitution 
of octal code 0 which means a character with code 0. Tcl uses modified UTF-8 
encoding in which null code is encoded as b'\xC0\x80'. This bytes sequence is 
invalid UTF-8. That is why UnicodeDecodeError was raised (patch for issue13153 
handles b'\xC0\x80' more correctly). When you will try '\101.py', it will be 
translated by split() to 'A.py'.

--

___
Python tracker 

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



[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-10 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't understand in which concrete situation the current code could be wrong. 
The start of the unicode string should always be aligned, due to how unicode 
objects are allocated.

--

___
Python tracker 

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



[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-10 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Michael, is any chance for this to go into Python 3.4? I would love to make any 
changes necessary in order for this to happen.

--

___
Python tracker 

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



[issue19538] Changed function prototypes in the PEP 384 stable ABI

2013-11-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think this change doesn't break ABI and doesn't break applications which use 
PyObject_CallFunction() in usual way. The only problem with your application is 
compiler warning.

To silence a warning you can do:

#if PY_VERSION_HEX >= 0x0304
# define CONST34 const
#else
# define CONST34
#endif

PyObject *PyObject_CallFunction(PyObject *callable, CONST34 char *format, ...)
{
   /* implement by forwarding to functions in the dynloaded dll */
}

--

___
Python tracker 

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



[issue19546] configparser leaks implementation detail

2013-11-10 Thread Claudiu.Popa

New submission from Claudiu.Popa:

Various exceptions raised by configparser module leaks implementation detail, 
by chaining KeyErrors, as seen below:

Python 3.4.0a4+ (default:0aa2aedc6a21+, Nov  5 2013, 17:10:42)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import configparser
>>> parser = configparser.ConfigParser()
>>> parser.remove_option('Section1', 'an_int')
Traceback (most recent call last):
  File "/tank/libs/cpython/Lib/configparser.py", line 935, in remove_option
sectdict = self._sections[section]
KeyError: 'Section1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 1, in 
  File "/tank/libs/cpython/Lib/configparser.py", line 937, in remove_option
raise NoSectionError(section)
configparser.NoSectionError: No section: 'Section1'
>>>

There are multiple places where this happens: using basic and extended 
interpolation, using .options to retrieve non-existent options, using .get or 
.remove_options for non-existent options/sections. The attached patch tries to 
fixes all those issues by suppressing the initial exception.

--
components: Library (Lib)
files: configparser.patch
keywords: patch
messages: 202538
nosy: Claudiu.Popa, lukasz.langa
priority: normal
severity: normal
status: open
title: configparser leaks implementation detail
versions: Python 3.4
Added file: http://bugs.python.org/file32564/configparser.patch

___
Python tracker 

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



[issue19537] Fix misalignment in fastsearch_memchr_1char

2013-11-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Current code assumes that PyUnicode_DATA() is aligned to PyUnicode_KIND() 
bytes. If this is not true on some platform it will be easer to add a padding 
than rewrite a code. A lot of code depends on this assumption. See also 
issue14422.

I afraid that proposed patch may slow down a search.

--
nosy: +pitrou

___
Python tracker 

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



[issue19545] time.strptime exception context

2013-11-10 Thread Claudiu.Popa

New submission from Claudiu.Popa:

time.strptime leaks an IndexError, as seen in the following traceback. 

[root@clnstor /tank/libs/cpython]# ./python
Python 3.4.0a4+ (default:0aa2aedc6a21+, Nov  5 2013, 17:10:42)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strptime('19', '%Y %')
Traceback (most recent call last):
  File "/tank/libs/cpython/Lib/_strptime.py", line 320, in _strptime
format_regex = _TimeRE_cache.compile(format)
  File "/tank/libs/cpython/Lib/_strptime.py", line 268, in compile
return re_compile(self.pattern(format), IGNORECASE)
  File "/tank/libs/cpython/Lib/_strptime.py", line 262, in pattern
self[format[directive_index]])
IndexError: string index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 1, in 
  File "/tank/libs/cpython/Lib/_strptime.py", line 494, in _strptime_time
tt = _strptime(data_string, format)[0]
  File "/tank/libs/cpython/Lib/_strptime.py", line 332, in _strptime
raise ValueError("stray %% in format '%s'" % format)
ValueError: stray % in format '%Y %'
>>>

The attached patch suppresses the exception. This issue is similar (and based 
on) the issue17572.

--
components: Library (Lib)
files: time_strptime.patch
keywords: patch
messages: 202536
nosy: Claudiu.Popa, belopolsky
priority: normal
severity: normal
status: open
title: time.strptime exception context
versions: Python 3.4
Added file: http://bugs.python.org/file32563/time_strptime.patch

___
Python tracker 

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



[issue7457] Adding a read_pkg_file to DistributionMetadata

2013-11-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

As suggested, I created issue19544 to track the larger effort.

--

___
Python tracker 

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



[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread Jason R. Coombs

New submission from Jason R. Coombs:

Following from issue7457, in which a single feature was identified to have gone 
missing in 29a3eda89995, this ticket captures the need to bring the Python 3 
codebase up to match Python 2.7.

--
assignee: eric.araujo
components: Distutils
messages: 202534
nosy: eric.araujo, jason.coombs, tarek
priority: normal
severity: normal
status: open
title: Port distutils as found in Python 2.7 to Python 3.x.
versions: Python 3.4

___
Python tracker 

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



[issue11473] upload command no longer accepts repository by section name

2013-11-10 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Indeed, the issue as reported is invalid.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue17828] More informative error handling when encoding and decoding

2013-11-10 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 10.11.2013 15:39, Nick Coghlan wrote:
> 
> On 10 November 2013 23:21, Marc-Andre Lemburg  wrote:
>>
>> This doesn't look right:
>>
>> diff -r 1ee45eb6aab9 Include/pyerrors.h
>> --- a/Include/pyerrors.hSat Nov 09 23:15:52 2013 +0200
>> +++ b/Include/pyerrors.hSun Nov 10 22:54:04 2013 +1000
>> ...
>> +PyAPI_FUNC(PyObject *) _PyErr_TrySetFromCause(
>> +const char *prefix_format,   /* ASCII-encoded string  */
>> +...
>> +);

Sorry about the false warning. After looking at those lines
again, I realized that the "..." is the argument ellipsis,
not some omitted code. At first this look like a function
definition to me :-)

> After sending my previous reply, I realised you may have been
> referring to the comment. I copied that from the PyErr_Format
> signature. According to
> http://docs.python.org/dev/c-api/unicode.html#PyUnicode_FromFormat,
> the format string still has to be ASCII-encoded, and if that's no
> longer true, it's a separate bug from this one that will require a
> docs fix as well.

Also note that it's not clear whether the "ASCII"
refers to the format string or the resulting formatted string.
For the format string, ASCII would probably be fine, but
for the formatted string, UTF-8 should be allowed, since it's
not uncommon to add e.g. parameter strings that caused the
error to the error string.

That's a separate ticket, though.

>> In the error messages, I'd use "codecs.encode()" and "codecs.decode()"
>> (ie. with parens) instead of "codecs.encode" and "codecs.decode".
> 
> Forgot to reply to this part - I like it, will switch it over before 
> committing.

Thanks.

--

___
Python tracker 

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



[issue19407] PEP 453: update the "Installing Python Modules" documentation

2013-11-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Larry, just a heads up that as a docs patch that isn't directly affected by the 
feature freeze, I likely won't get to this one until after beta 1.

We'll make sure issue 19406 and the other functional changes are resolved, 
though.

--

___
Python tracker 

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



[issue19406] PEP 453: add the ensurepip module

2013-11-10 Thread Nick Coghlan

Nick Coghlan added the comment:

Donald, I know you've been busy with PyPI v2.0 the last few days, but I see the 
pull request to resolve https://github.com/pypa/pip/issues/1294 has been merged.

If we can get an updated patch that sets ENSUREPIP_OPTIONS appropriately in the 
process environment, it should be possible to commit this one and let Ned and 
Martin get started on the installers.

--

___
Python tracker 

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



[issue17828] More informative error handling when encoding and decoding

2013-11-10 Thread Nick Coghlan

Changes by Nick Coghlan :


Added file: 
http://bugs.python.org/file32562/issue17828_improved_codec_errors_v6.diff

___
Python tracker 

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



  1   2   >