[issue14047] UTF-8 Email Header

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

Hello Michal.  This bug tracker is used to collect bug reports and feature 
requests, not for general support.  Please use the python-list mailing list, 
also known as the comp.lang.python newgroup, or #python on IRC (Freenode), or 
Stack Overflow, or any other discussion venue.  If you do find that the Python 
docs are erroneous, misleading or incomplete, then feel free to say so and 
we’ll reopen this report to see how we can improve the docs.  Cheers!

--
nosy: +eric.araujo
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
type: behavior -> 

___
Python tracker 

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



[issue11051] system calls per import

2012-02-19 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue14050] Tutorial, list.sort() and items comparability

2012-02-19 Thread Ezio Melotti

Ezio Melotti  added the comment:

We could just mention that a TypeError is raised if some of the elements can't 
be compared. (Note that sorting a list that contains some types that cannot be 
compared might still succeed in some corner cases, but there's no reason to 
mention this).

--
nosy: +ezio.melotti

___
Python tracker 

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



[issue14050] Tutorial, list.sort() and items comparability

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

If I had read your patched version when I was a beginner, I don’t think it 
would have helped me much.  (Sorry for not coming up with an alternative right 
now, it’s late/early here and I’m tired :)

--
nosy: +eric.araujo, terry.reedy

___
Python tracker 

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



[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Éric Araujo

Changes by Éric Araujo :


--
versions: +Python 3.3 -Python 2.6, Python 3.1

___
Python tracker 

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



[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-19 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue14047] UTF-8 Email Header

2012-02-19 Thread Michal Sladek

Michal Sladek  added the comment:

Hello Eric!

I believe that there is a bug which prevents adding UTF-8 encoded
suject to multipart message properly. But because I am not a
programmer, I admin I might be wrong. So if you are a programmer and
you don't see any obvious mistake in my example code, open that bug
report again. Because in my opinion that code should work properly and
it does not.

Best regards

Michal

Dne 19. února 2012 9:31 Éric Araujo  napsal(a):
>
> Éric Araujo  added the comment:
>
> Hello Michal.  This bug tracker is used to collect bug reports and feature 
> requests, not for general support.  Please use the python-list mailing list, 
> also known as the comp.lang.python newgroup, or #python on IRC (Freenode), or 
> Stack Overflow, or any other discussion venue.  If you do find that the 
> Python docs are erroneous, misleading or incomplete, then feel free to say so 
> and we’ll reopen this report to see how we can improve the docs.  Cheers!
>
> --
> nosy: +eric.araujo
> resolution:  -> invalid
> stage:  -> committed/rejected
> status: open -> closed
> type: behavior ->
>
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue14047] UTF-8 Email Header

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

Sorry, I cannot right now take the time to go through the doc and your code.  
Please use any of the friendly venues I listed in my previous message to get 
help on your code.

--

___
Python tracker 

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



[issue6039] cygwin compilers should not check compiler versions

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

Closing for lack of information.  Will reopen if someone explains what the 
problem is.

--
assignee: tarek -> eric.araujo
nosy: +eric.araujo
resolution:  -> invalid
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



[issue4918] Windows installer created with Python 2.5 does not work with Python 2.6.1

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

Not sure if there is much to be done here; I don’t know if it is a reasonable 
expectation that an installer created with 2.X still work with 2.X+1, and 
anyway only 2.7 could get a bugfix now.

--
nosy: +eric.araujo
title: Windows installer created with Python 2.5  does not work with Python 
2.6.1 -> Windows installer created with Python 2.5 does not work with Python 
2.6.1
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



[issue7509] AttributeError: MSVCCompiler instance has no attribute '_MSVCCompiler__root'

2012-02-19 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo
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



[issue14047] UTF-8 Email Header

2012-02-19 Thread Michal Sladek

Michal Sladek  added the comment:

I guess you don't understand me.

My script works properly. I don't need any help with it. OK? I have
found a workaround and I am happy with it for now. But I think, there
is a problem in current version of Python language.

Now, what should I do to report the bug with adding UTF-8 encoded
header? I described the problem, I submitted the example code. How can
I draw developers attention to the problem when you close the bug?

Dne 19. února 2012 9:52 Éric Araujo  napsal(a):
>
> Éric Araujo  added the comment:
>
> Sorry, I cannot right now take the time to go through the doc and your code.  
> Please use any of the friendly venues I listed in my previous message to get 
> help on your code.
>
> --
>
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue8918] distutils test_config_cmd failure on Solaris

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

We have a Solaris buildbot but it’s offline, so I don’t know if this bug is 
still current.  If it is, then it should be easy to use “cc + ' -P'” for that 
OS (IIUC the test can just be “if sys.platform == 'solaris'”).

--
assignee: tarek -> eric.araujo
components: +Distutils2
nosy: +alexis, eric.araujo
stage:  -> test needed
title: distutils test failure on solaris: IOError: [Errno 2] No such file or 
directory: '_configtest.i' -> distutils test_config_cmd failure on Solaris
versions: +3rd party, Python 3.2, Python 3.3

___
Python tracker 

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



[issue4636] bdist_wininst installer with install script raises exception

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

The crash message is the same as the one in #4918; it looks like bdist_wininst 
need better error reporting.

--
assignee: tarek -> eric.araujo
stage:  -> test needed
versions:  -Python 3.0

___
Python tracker 

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



[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl

Georg Brandl  added the comment:

Attaching reviewed version for 3.1 with unified env var PYTHONHASHSEED and 
encompassing Antoine's and Greg's review comments.

--
Added file: http://bugs.python.org/file24561/hash-patch-3.1-gb.diff

___
Python tracker 

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



[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file24561/hash-patch-3.1-gb.diff

___
Python tracker 

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



[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl

Georg Brandl  added the comment:

New version, with the hope that it gets a "review" link.

--
Added file: http://bugs.python.org/file24562/hash-patch-3.1-gb.patch

___
Python tracker 

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



[issue8526] msilib doesn't support multiple CAB instances in same installer

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

Martin, are you rejecting this bug report as worksforme or is it a valid 
feature request?

--
components:  -Distutils
nosy: +eric.araujo

___
Python tracker 

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



[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Ronny Pfannschmidt

Ronny Pfannschmidt  added the comment:

im unlikely to find the time to try and fix pickle/cpickle myself in the next 
few months

--
nosy: +Ronny.Pfannschmidt

___
Python tracker 

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



[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

It’s strange that glob_to_re needs fixing too; at this point I’m not sure if 
we’re still fixing my commit or if the original code never worked properly on 
Windows.  Could you run the same tests with a Python < 2.7?

BTW I wonder if #9691 is yet another manifestation of this bug.

--

___
Python tracker 

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



[issue1173134] improvement of the script adaptation for the win32 platform

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

For distutils2, we’re going to generate .exe wrappers on Windows, like 
setuptools does (see #12394).

distutils is feature-frozen.

--
assignee: tarek -> eric.araujo
components: +Distutils2 -Distutils, Windows
nosy: +alexis, eric.araujo
resolution:  -> rejected
stage:  -> committed/rejected
superseder:  -> packaging: generate scripts from callable (dotted paths)
versions: +3rd party, Python 3.3 -Python 3.2

___
Python tracker 

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



[issue1173134] improvement of the script adaptation for the win32 platform

2012-02-19 Thread Éric Araujo

Changes by Éric Araujo :


--
status: open -> closed

___
Python tracker 

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



[issue7719] distutils: ignore .nfsXXXX files

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks to Sandro’s explanation and a passage in the Unix Haters Handbook, I now 
think that ignoring .nfs* files is a safe change.  If should not be hard to add 
a test for this in test_sdist.

--
assignee: tarek -> eric.araujo
keywords: +easy
versions: +3rd party

___
Python tracker 

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



[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl

Changes by Georg Brandl :


Removed file: http://bugs.python.org/file24562/hash-patch-3.1-gb.patch

___
Python tracker 

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



[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl

Georg Brandl  added the comment:

New patch fixes failures due to sys.flags backwards compatibility.

With PYTHONHASHSEED=random, at least those tests still fail:
test_descr test_json test_set test_ttk_textonly test_urllib

Do we want to fix them in 3.1?

--
Added file: http://bugs.python.org/file24563/hash-patch-3.1-gb-03.patch

___
Python tracker 

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



[issue4918] Windows installer created with Python 2.5 does not work with Python 2.6.1

2012-02-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Installers "ought to" work for subsequent versions if they contain pure-Python 
packages (i.e. no extension modules). I agree that the issue is obsolete for 
2.x, but it may still exist for 3.x.

--

___
Python tracker 

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



[issue8526] msilib doesn't support multiple CAB instances in same installer

2012-02-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

As a feature request, it's fine - but I have no intention to work on this 
feature.

--
assignee: loewis -> 

___
Python tracker 

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



[issue8526] msilib doesn't support multiple CAB instances in same installer

2012-02-19 Thread Ramchandra Apte

Changes by Ramchandra Apte :


--
type:  -> behavior

___
Python tracker 

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



[issue11051] Improve Python 3.3 startup time

2012-02-19 Thread STINNER Victor

STINNER Victor  added the comment:

I changed the title of the issue because what matters is the total startup 
time, not how it is improved :-)

--
title: system calls per import -> Improve Python 3.3 startup time

___
Python tracker 

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



[issue8526] msilib doesn't support multiple CAB instances in same installer

2012-02-19 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy:  -eric.araujo
type: behavior -> enhancement
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



[issue4918] Windows installer created with Python X.Y does not work with Python X.Y+1

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks, keeping it open.  If I manage to get a VM set up I will see if this is 
reproducible.

--
components: +Distutils2
nosy: +alexis
title: Windows installer created with Python 2.5 does not work with Python 
2.6.1 -> Windows installer created with Python X.Y does not work with Python 
X.Y+1
versions: +3rd party, Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue13703] Hash collision security issue

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

> With PYTHONHASHSEED=random, at least those tests still fail:
> test_descr test_json test_set test_ttk_textonly test_urllib
>
> Do we want to fix them in 3.1?

It the failures are caused by the test depending on dict order (i.e. not real 
bugs, not changed behavior), then I think we can live with them.

--

___
Python tracker 

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



[issue14001] CVE-2012-0845 Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-19 Thread Charles-François Natali

Charles-François Natali  added the comment:

Committed, thanks!

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



[issue11051] Improve Python 3.3 startup time

2012-02-19 Thread STINNER Victor

STINNER Victor  added the comment:

Using the following patch, "./python -s -c pass" is 2x faster than without the 
patch!

diff --git a/Lib/site.py b/Lib/site.py
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -518,7 +518,8 @@ def main():
 known_paths = removeduppaths()
 if ENABLE_USER_SITE is None:
 ENABLE_USER_SITE = check_enableusersite()
-known_paths = addusersitepackages(known_paths)
+if ENABLE_USER_SITE:
+known_paths = addusersitepackages(known_paths)
 known_paths = addsitepackages(known_paths)
 if sys.platform == 'os2emx':
 setBEGINLIBPATH()

-s with the patch doesn't import the sysconfig module. So if we want to speed 
up Python, the first step is to optimize it, at least the function getting the 
user site packages directory.

--

___
Python tracker 

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



[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-19 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

> It’s strange that glob_to_re needs fixing too; at this point I’m not sure if 
> we’re still fixing my commit or if the original code never worked properly on 
> Windows.  Could you run the same tests with a Python < 2.7?

The original code never worked properly on Windows - that's what the XXX
comment in glob_to_re() is about. I've been able to reproduce the problem
(erroneously including ".hg\last-message.txt") on v2.7.2 (8527427914a2).

> BTW I wonder if #9691 is yet another manifestation of this bug.

It looks like it.

--

___
Python tracker 

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



[issue9691] sdist includes files that are not in MANIFEST.in

2012-02-19 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

This happens because the glob-to-regexp translator assumes that the
directory separator is "/", regardless of platform. Consequently, the
regexp for "include *.py" ends up matching "sandbox\dummy.py" erroneously
on Windows.

The problem is currently being discussed in issue 6884; I'm marking this
issue as a duplicate.

--
nosy: +nadeem.vawda
resolution:  -> duplicate
superseder:  -> Impossible to include file in sdist that starts with 'build' on 
Win32

___
Python tracker 

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



[issue12393] Packaging should provide support for extensible categories

2012-02-19 Thread Vinay Sajip

Vinay Sajip  added the comment:

> So I’ll certainly reuse your tests, but will have to redo the implementation.

That's fine, but please bear in mind what I said about a 100% declarative 
approach being insufficient - see the Windows example I gave, where Windows 
APIs have to be called at installation time to determine how the categories are 
set up. My tests don't cater for that, but in my view it's an important 
requirement that shouldn't be lost. That's why I put the code into a hook, 
install_data being the one which required minimal changes to the code.

I'm not wedded to the specific implementation, simple though it is - I was 
aiming for a solution that worked and would be easy to review. I agree that 
install_data may not be the best section for this, and the global section seems 
more reasonable. But the key thing, apart from the parsing logic etc., is to 
allow changes / additions to the categories to be made at installation time by 
user-defined code (=> hook).

--

___
Python tracker 

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



[issue13090] test_multiprocessing: memory leaks

2012-02-19 Thread Charles-François Natali

Charles-François Natali  added the comment:

> Two others seem to be the internal "bootstate" structure used to
> run thread objects (daemon threads?).

Even for daemon threads, since the boostate structure is freed when
the thread's run() method returns, this shouldn't show up as a
"definitely lost" leak. It wouldn't be freed on exit, but it should
still be reachable.

However, I have a stupid question: are those logs for the main
process, or for child processes ?
Because if fork() is called while other threads are running, since
only the main thread exists in the child process, all the blocks only
reachable from the other threads stacks at the time of the fork -
among which the bootstate structure, and probably the buffer allocated
in posix_read() while a thread is blocked on the read() syscall - are
effectively leaked in the child process since they're not referenced
anymore.

--

___
Python tracker 

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



[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-02-19 Thread Vladimir Rutsky

Changes by Vladimir Rutsky :


--
nosy: +rutsky

___
Python tracker 

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



[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-19 Thread Nick Coghlan

Nick Coghlan  added the comment:

Purging __file__ of relative references isn't a problem - they're *supposed* to 
always be absolute. The import.c version just stuffs it up sometimes (mainly 
due to the way it handles the empty string in the path).

IOW, while the importlib behaviour *is* different from the old behaviour, it's 
really a long overdue fix rather than a defect.
(You can still induce weirdness by adding paths involving '.' or '..' to 
sys.path, but that's more a case of "don't do that". We add the empty string 
ourselves, so we should handle it more cleanly than we do in import.c)

--

___
Python tracker 

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



[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-19 Thread Francisco Martín Brugué

New submission from Francisco Martín Brugué :

The devguide (http://docs.python.org/devguide/patch.html) recommends the use of 
the mercurial “mq” feature to work with patches and that works IMHO very well. 
It also states that before sending the patch a sanity check should be done 
('devguide: Preparation and Generation'). At this stage, if one has the patch 
as tip (hg qapplied), the advice to run “pathcheck” doesn't help as no changes 
are noticed.

The message is:
---
Modules/Setup.dist is newer than Modules/Setup;
check to make sure you have all the updates you
need in your Modules/Setup file.
Usually, copying Modules/Setup.dist to Modules/Setup will work.
---
./python ./Tools/scripts/patchcheck.py
Getting the list of files that have been added/changed ... 0 files
Fixing whitespace ... 0 files
Fixing C file whitespace ... 0 files
Fixing docs whitespace ... 0 files
Docs modified ... NO
Misc/ACKS updated ... NO
Misc/NEWS updated ... NO
The tool should check if some mq patches are applied (from “normal” tip to 
“mqtip” and make it's checks there.

Thanks in advance !

Francis

--
components: Demos and Tools, Devguide
messages: 153703
nosy: ezio.melotti, francismb
priority: normal
severity: normal
status: open
title: Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

___
Python tracker 

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



[issue13248] deprecated in 3.2, should be removed in 3.3

2012-02-19 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe :


--
nosy: +tshepang

___
Python tracker 

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



[issue13579] string.Formatter doesn't understand the !a conversion specifier

2012-02-19 Thread Francisco Martín Brugué

Francisco Martín Brugué  added the comment:

Well, it's done:

http://bugs.python.org/issue14053

--

___
Python tracker 

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



[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Merlijn van Deen

Merlijn van Deen  added the comment:

Last night, I hacked together a wrapper to do what loewis suggested [1]. It 
pickles bytes to str (for protocol <= 2), and unpickles str to bytes.

If I (ever) get the build system and tests of python itself to work, I'll try 
and see if I can implement a nicer solution - at least for pickle.py.

[1] https://github.com/valhallasw/py2/blob/master/bytestrpickle.py

--

___
Python tracker 

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



[issue14051] Cannot set attributes on staticmethod

2012-02-19 Thread Guido van Rossum

Guido van Rossum  added the comment:

Wouldn't it make more sense to somehow share the dict with the underlying 
function?

--
nosy: +gvanrossum

___
Python tracker 

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



[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> If I (ever) get the build system and tests of python itself to work,

If you have any problems with that, don't hesitate to ask on python-dev
(or see http://mail.python.org/mailman/listinfo/core-mentorship )

--

___
Python tracker 

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



[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-02-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I haven't taken a look at the patch in detail, but it lacks some tests.
Pickling tests are generally in Lib/test/pickletester.py, they are invoked by 
test_pickle and test_pickletools.

--
stage: needs patch -> patch review

___
Python tracker 

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



[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-02-19 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +hynek

___
Python tracker 

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



[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-02-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> I'm completely new to the C API so not sure if the way I am building
> python strings (to pass to save_global) is correct

It's correct but it's probably less efficient than calling a more specialized 
function, such as PyUnicode_FromString():
http://docs.python.org/dev/c-api/unicode.html#PyUnicode_FromString

You also have to check the return value (for non-NULL, NULL meaning an error 
occurred) before calling save_global with it.

--

___
Python tracker 

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



[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-19 Thread Nadeem Vawda

Changes by Nadeem Vawda :


--
nosy: +nadeem.vawda

___
Python tracker 

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



[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-19 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +eric.araujo
versions: +Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue14051] Cannot set attributes on staticmethod

2012-02-19 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

You can wrap anything with staticmethod, so it might not have a __dict__.

--

___
Python tracker 

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



[issue14054] test_importlib failures under Windows

2012-02-19 Thread Antoine Pitrou

New submission from Antoine Pitrou :

==
FAIL: test_case_sensitive 
(importlib.test.extension.test_case_sensitivity.ExtensionModuleCaseSensitivityTest)
--
Traceback (most recent call last):
  File 
"D:\Buildslave\3.x.moore-windows\build\lib\importlib\test\extension\test_case_sensitivity.py",
 line 27, in test_case_sensitive
self.assertIsNone(loader)
AssertionError:  is not None

==
FAIL: test_sensitive 
(importlib.test.source.test_case_sensitivity.CaseSensitivityTest)
--
Traceback (most recent call last):
  File 
"D:\Buildslave\3.x.moore-windows\build\lib\importlib\test\source\test_case_sensitivity.py",
 line 46, in test_sensitive
self.assertIsNone(insensitive)
AssertionError:  
is not None

--
assignee: brett.cannon
components: Library (Lib), Tests
messages: 153711
nosy: brett.cannon, pitrou
priority: high
severity: normal
stage: needs patch
status: open
title: test_importlib failures under Windows
type: behavior
versions: Python 3.3

___
Python tracker 

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



[issue14040] Deprecate some of the module file formats

2012-02-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Here is a patch simply removing the suffixes.

--
Added file: http://bugs.python.org/file24564/removesuffixes.patch

___
Python tracker 

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



[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-19 Thread Catalin Iacob

Catalin Iacob  added the comment:

Attached v2 of patch where mixing str and binary data for altchars or map01 
raises TypeError.

I also added a note for each of the changed functions that it also accepts 
strings (but didn't also update the docstrings).

When writing the docs, the new functionality seemed hard to describe; maybe 
that means this issue only complicates things and is not worth it, or maybe it 
just means I don't have experience at writing docs.

But, regardless of having worked at a patch, I have to admit that I'm also not 
100% sure this issue is a good idea. I *do* think that either both this issue 
and #13637 should be accepted or both rejected.

--
Added file: http://bugs.python.org/file24565/issue13641-alternative-v2.patch

___
Python tracker 

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



[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I think trying to prevent mixed argument types is completely overkill. There's 
no ambiguity since they all have to be ASCII anyway.
So I would prefer to commit issue13641-alternative-v1.patch

--

___
Python tracker 

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



[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-19 Thread Francisco Martín Brugué

Francisco Martín Brugué  added the comment:

Here is a patch that works for me. Please check and review it.

Thanks in advance!

Francis

--
keywords: +patch
Added file: http://bugs.python.org/file24566/issue14053_336a614f35a3.patch

___
Python tracker 

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



[issue13605] document argparse's nargs=REMAINDER

2012-02-19 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 996efb0425c5 by Sandro Tosi in branch '3.2':
Issue #13605: use print() in argparse nargs example
http://hg.python.org/cpython/rev/996efb0425c5

New changeset c3daa6a834c6 by Sandro Tosi in branch 'default':
Issue #13605: merge with 3.2
http://hg.python.org/cpython/rev/c3daa6a834c6

--

___
Python tracker 

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



[issue14047] UTF-8 Email Header

2012-02-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Michal, it's your wording of your report, and also some of the contents that 
caused Eric's reaction. When you conclude with "Am I doing something wrong?", 
then your message is *not* a bug report, but a question for help (namely, you 
are asking somebody to find out whether you did something wrong).

Please structure bug reports as follows:
1. this is what I did
2. this is what happened
3. this is what I expected to happen instead

Your report gives hints at 1, but neither discusses 2 or 3. I.e. you say what 
code you write, but you did not say (AFAICT) what parameters you passed to the 
function. And you did not say what happened when you passed the parameters.

This is important information, as the first step of us is to reproduce the bug 
report, i.e. try out all your steps and see whether the same happens also when 
we do it (which often enough is not the case).

Since this bug report is already filled with unrelated meta-discussion, please 
submit a new bug report in the style I explain above.

--
nosy: +loewis

___
Python tracker 

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



[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Merlijn van Deen

Changes by Merlijn van Deen :


Added file: http://bugs.python.org/file24567/test_bytestrpickle.py

___
Python tracker 

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



[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Merlijn van Deen

Merlijn van Deen  added the comment:

OK, this is the pickle.py patch. A new parameter 'bytestr' has been added to 
both _Pickler and _Unpickler to toggle the pickle.string<=>bytes behaviour:

_Pickler:
IF protocol <= 2 AND bytestr=True
THEN bytes are stored as STRING/SHORT_BINSTRING/BINSTRING
ELSE (the old behaviour; obj for protocol <=2, else BINARY)

_Unpickler:
IF bytestr=True
THEN STRING/SHORT_BINSTRING/BINSTRING are read as bytes
ELSE they are read as str (old behaviour)

I also extracted the decoding stuff from the three string reading functions to 
a single one.

--
keywords: +patch
Added file: http://bugs.python.org/file24568/pickle.py.patch

___
Python tracker 

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



[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-19 Thread Merlijn van Deen

Merlijn van Deen  added the comment:

P.S. (sorry for forgetting this in the original post ;-))

Both 
  ./python -m test -G -v test_pickle
and
  ./python test_bytestrpickle.py
pass, but I have not run the entire test suite, as that takes ~90 minutes on my 
laptop

The test script should of course be merged with test_pickle.py at some time

--

___
Python tracker 

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



[issue13090] test_multiprocessing: memory leaks

2012-02-19 Thread Stefan Krah

Stefan Krah  added the comment:

Charles-Fran??ois Natali  wrote:
> However, I have a stupid question: are those logs for the main
> process, or for child processes ?

Valgrind was run with --trace-children=no. However, the option is a bit
tricky, since it only affects tracing of sub-processes initiated via the
exec system call.

Even with --trace-children=no Valgrind *does* trace into the child of a fork:

http://valgrind.org/docs/manual/manual-core.html#manual-core.basicopts

> Because if fork() is called while other threads are running, since
> only the main thread exists in the child process, all the blocks only
> reachable from the other threads stacks at the time of the fork -
> among which the bootstate structure, and probably the buffer allocated
> in posix_read() while a thread is blocked on the read() syscall - are
> effectively leaked in the child process since they're not referenced
> anymore.

All lines of the log I posted are prefixed with ==3047==, which should
be the process number of the main thread.

I don't know if Valgrind reports leaks in a forked-without-exec-child
as part of the parent process log. But it could be the case here.

Regarding the posix_read leak: Running with --num-callers=50 shows
that it's also thread related:

==8736== 37 bytes in 1 blocks are definitely lost in loss record 383 of 10,841
==8736==at 0x4C2154B: malloc (vg_replace_malloc.c:236)
==8736==by 0x5476A5: PyBytes_FromStringAndSize (bytesobject.c:98)
==8736==by 0x4EC94B: posix_read (posixmodule.c:7010)
==8736==by 0x58417C: PyCFunction_Call (methodobject.c:81)
==8736==by 0x496AE0: call_function (ceval.c:4051)
==8736==by 0x491D87: PyEval_EvalFrameEx (ceval.c:2674)
==8736==by 0x494D5D: PyEval_EvalCodeEx (ceval.c:3426)
==8736==by 0x496FD2: fast_function (ceval.c:4149)
==8736==by 0x496C13: call_function (ceval.c:4072)
==8736==by 0x491D87: PyEval_EvalFrameEx (ceval.c:2674)
==8736==by 0x494D5D: PyEval_EvalCodeEx (ceval.c:3426)
==8736==by 0x496FD2: fast_function (ceval.c:4149)
==8736==by 0x496C13: call_function (ceval.c:4072)
==8736==by 0x491D87: PyEval_EvalFrameEx (ceval.c:2674)
==8736==by 0x494D5D: PyEval_EvalCodeEx (ceval.c:3426)
==8736==by 0x496FD2: fast_function (ceval.c:4149)
==8736==by 0x496C13: call_function (ceval.c:4072)
==8736==by 0x491D87: PyEval_EvalFrameEx (ceval.c:2674)
==8736==by 0x494D5D: PyEval_EvalCodeEx (ceval.c:3426)
==8736==by 0x56A637: function_call (funcobject.c:669)
==8736==by 0x53A203: PyObject_Call (abstract.c:2150)
==8736==by 0x497B32: ext_do_call (ceval.c:4366)
==8736==by 0x49213B: PyEval_EvalFrameEx (ceval.c:2715)
==8736==by 0x496EC7: fast_function (ceval.c:4139)
==8736==by 0x496C13: call_function (ceval.c:4072)
==8736==by 0x491D87: PyEval_EvalFrameEx (ceval.c:2674)
==8736==by 0x496EC7: fast_function (ceval.c:4139)
==8736==by 0x496C13: call_function (ceval.c:4072)
==8736==by 0x491D87: PyEval_EvalFrameEx (ceval.c:2674)
==8736==by 0x494D5D: PyEval_EvalCodeEx (ceval.c:3426)
==8736==by 0x56A637: function_call (funcobject.c:669)
==8736==by 0x53A203: PyObject_Call (abstract.c:2150)
==8736==by 0x551FE1: method_call (classobject.c:320)
==8736==by 0x53A203: PyObject_Call (abstract.c:2150)
==8736==by 0x49638A: PyEval_CallObjectWithKeywords (ceval.c:3931)
==8736==by 0x4E347F: t_bootstrap (_threadmodule.c:997)
==8736==by 0x4E2DFC6: start_thread (in /lib/libpthread-2.7.so)
==8736==by 0x579C64C: clone (in /lib/libc-2.7.so)
==8736==

--

___
Python tracker 

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



[issue13090] test_multiprocessing: memory leaks

2012-02-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Regarding the posix_read leak: Running with --num-callers=50 shows
> that it's also thread related:

Would be nice to know if it's a daemon thread. Daemon threads are simply
killed by the OS at shutdown.

--

___
Python tracker 

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



[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2012-02-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Could you provide a patch with those proposed changes?

Le samedi 18 février 2012 à 00:45 +, Vinay Sajip a écrit :
> Vinay Sajip  added the comment:

> 
> Almost there. The file now compiles, but a failure occurs in a later step due 
> to compression functionality being unavailable:
> 
> building '_ssl' extension
> gcc -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -IInclude -I. -I./Include -I/Users/vinay/projects/pythonv 
> -c /Users/vinay/projects/pythonv/Modules/_ssl.c -o 
> build/temp.macosx-10.5-i386-3.3/Users/vinay/projects/pythonv/Modules/_ssl.o
> /Users/vinay/projects/pythonv/Modules/_ssl.c: In function 
> ‘_get_peer_alt_names’:
> /Users/vinay/projects/pythonv/Modules/_ssl.c:645: warning: passing argument 2 
> of ‘ASN1_item_d2i’ from incompatible pointer type
> /Users/vinay/projects/pythonv/Modules/_ssl.c:650: warning: passing argument 2 
> of ‘method->d2i’ from incompatible pointer type
> /Users/vinay/projects/pythonv/Modules/_ssl.c: In function ‘PySSL_compression’:
> /Users/vinay/projects/pythonv/Modules/_ssl.c:1022: warning: implicit 
> declaration of function ‘SSL_get_current_compression’
> /Users/vinay/projects/pythonv/Modules/_ssl.c:1022: warning: assignment makes 
> pointer from integer without a cast
> gcc -bundle -undefined dynamic_lookup 
> build/temp.macosx-10.5-i386-3.3/Users/vinay/projects/pythonv/Modules/_ssl.o 
> -L/usr/local/lib -lssl -lcrypto -o build/lib.macosx-10.5-i386-3.3/_ssl.so
> *** WARNING: renaming "_ssl" since importing it failed: 
> dlopen(build/lib.macosx-10.5-i386-3.3/_ssl.so, 2): Symbol not found: 
> _SSL_get_current_compression
>   Referenced from: 
> /Users/vinay/projects/pythonv/build/lib.macosx-10.5-i386-3.3/_ssl.so
>   Expected in: dynamic lookup
> 
> Failed to build these modules:
> _ssl  
> 
> It looks as if OPENSSL_NO_COMP needs to be defined in _ssl.c if the OpenSSL 
> version is too old and not already defined. With this change:
> 
> #if OPENSSL_VERSION_NUMBER < 0x0090800fL && !defined(OPENSSL_NO_COMP)
> # define OPENSSL_NO_COMP
> #endif
> 
> the ssl library builds without errors. However, test_ssl fails because it 
> still expects OP_SINGLE_ECDH_USE to be defined. With this change in 
> test_constants:
> 
> if ssl.HAS_ECDH:
> ssl.OP_SINGLE_ECDH_USE
> 
> all tests pass.
> 
> I notice that the test there for OP_NO_COMPRESSION is version-based rather 
> than capability-based, and it might be a good idea to change this too.
> 
> --
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-19 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

Thanks for taking this up; it's something that's been bothering me for a
while now.

A couple of comments:

- The mq_changed_files() function will break if the user has specified
  git-format diffs in their ~/.hgrc file. In this case, the diff command
  in the output will begin with "diff --git" instead of "diff -r".

- What happens if a file has been deleted by the patch? The regular
  "hg status" command is set up to only return the added/modified files.
  You might want to check whether the file currently exists before adding
  it to the list of filenames to check.

- Have you considered the possibility of there being multiple patches?
  In this case, I think it makes sense to check the files in every patch,
  not just the topmost.


  An alternative approach that solves all three of these problems is to
  check whether we have any patches applied (using "hg qapplied"), and if
  this is the case, then add "--rev qbase" to the "hg status" command
  line. This will list all files added/modified by patches as well as by
  uncommitted changes.


- Using an mq command (e.g. qdiff or qapplied) will fail if the user does
  not have the mq extension enabled. In this case, mq_changed_files()
  should not allow Mercurial's error message to be printed. Ideally, it
  should distinguish between this and other errors by checking the
  subprocess's stderr, so that if a different error occurs, we can still
  print out the error message.

- In changed_files(), I don't think it makes sense to create an empty
  list ("files = []") and then append to it immediately. It would be
  better to just initialize "files" directly from the list comprehension.

--

___
Python tracker 

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



[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2012-02-19 Thread Vinay Sajip

Vinay Sajip  added the comment:

Attached.

--
Added file: http://bugs.python.org/file24569/ssl-ecdh.diff

___
Python tracker 

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



[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2012-02-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Attached.

Thanks. Should be fixed in 1a06f0a8120f. Can you check? :)

--

___
Python tracker 

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



[issue14055] Implement __sizeof__ for etree Element

2012-02-19 Thread Martin v . Löwis

New submission from Martin v. Löwis :

The cElementTree Element currently returns an incorrect response to 
sys.getsizeof, as it doesn't account for the extra structure, and for the child 
pointers array. This patch corrects the computation.

--
files: sizeof.diff
keywords: patch
messages: 153726
nosy: loewis
priority: normal
severity: normal
status: open
title: Implement __sizeof__ for etree Element
Added file: http://bugs.python.org/file24570/sizeof.diff

___
Python tracker 

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



[issue14055] Implement __sizeof__ for etree Element

2012-02-19 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
components: +Library (Lib)
nosy: +flox
stage:  -> patch review
type:  -> enhancement
versions: +Python 3.3

___
Python tracker 

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



[issue14040] Deprecate some of the module file formats

2012-02-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

I'm in favour of the removesuffixes.patch. However, it will need to be 
accompanied with a whatsnew change.

--

___
Python tracker 

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



[issue9691] sdist includes files that are not in MANIFEST.in

2012-02-19 Thread Éric Araujo

Changes by Éric Araujo :


--
stage: test needed -> 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



[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

> The original code never worked properly on Windows - that's what the XXX 
> comment in glob_to_re() is
> about. I've been able to reproduce the problem (erroneously including 
> ".hg\last-message.txt") on
> v2.7.2 (8527427914a2).
Can you reproduce the “include buildout.cfg” bug too?  (2.7.2 doesn’t include 
neither Antoine’s changeset nor mine, right?)

(Want another one?  #1702551  Blergh)

--

___
Python tracker 

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



[issue14019] Unify tests for str.format and string.Formatter

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

(ISTM that such test improvements would be beneficial to all branches, and we 
would also eschew merge issues if we change all branches.  Other core devs 
sometimes object to test improvements or additions in stable branches though.)

--
keywords: +easy
nosy: +eric.araujo
versions: +Python 2.6, Python 3.2

___
Python tracker 

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



[issue14053] Make patchcheck compatible with MQ

2012-02-19 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +brett.cannon
title: Make Tools/scripts/patchcheck.py compatible with mercurial mqueues. -> 
Make patchcheck compatible with MQ

___
Python tracker 

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



[issue14040] Deprecate some of the module file formats

2012-02-19 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue14034] first example in argparse doc is too complicated

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

I think I was rude too when I called you off, apologies.  I’ll gladly review or 
help with a patch.

--
title: the example in argparse doc is too complex -> first example in argparse 
doc is too complicated

___
Python tracker 

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



[issue12702] shutil.copytree() should use os.lutimes() to copy the metadata of symlinks

2012-02-19 Thread Berker Peksag

Berker Peksag  added the comment:

I think this issue fixed in changeset 74194:cf57ef65bcd0.

See: http://hg.python.org/cpython/rev/cf57ef65bcd0#l2.75

--
nosy: +berkerpeksag

___
Python tracker 

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



[issue12393] Packaging should provide support for extensible categories

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

> That's fine, but please bear in mind what I said about a 100% declarative 
> approach being insufficient
Well, the config file approach supports simple cases, and for people needing 
Windows API calls, they will be able to use a pre-command hook.  In that case 
though, there will be no validation; this is a general problem with how 
commands and hooks work.

--

___
Python tracker 

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



[issue14056] Misc doc changes for tarfile

2012-02-19 Thread Éric Araujo

New submission from Éric Araujo :

A few things to improve in tarfile’s doc:

a) I found the heading “The following variables are available on module level” 
strange; does “variable” mean that users are able to edit tarfile.ENCODING to 
control the default encoding used?  The answer is no, as ENCODING is bound to a 
function default argument value and a class attribute at import time.  I 
suggest changing this heading for something like “Module-level constants”, and 
move it before the doc for the *_FORMATS constants (the attached diff makes it 
look like I moved these constants, but I actually moved ENCODING—same result).

b) The doc does not say that the availability of compression formats depends on 
the optional compilation of some modules.  Someone following the link to the 
module docs for gzip, bz2 or lzma can find the info, but I think a bit more 
explicitness wouldn’t hurt.  The attached patch for 3.2 tries to inline the 
info, but is a bit clumsy; alternatively, a table like this could be added near 
the top:

   Support depends on the availability of certain optional modules:

   = === =
   FormatDescription Requires
   = === =
   ``xz``xz'ed tar file (:file:`.tar.xz`):mod:`lzma`
   ``bz2``   bzip2'ed tar file (:file:`.tar.bz2`):mod:`bz2`
   ``gz``gzip'ed tar file (:file:`.tar.gz`)  :mod:`gzip`
   = === =

c) The seealso section links to zipfile, just like the into text, but not to 
shutil.

Please let me know what suggestions you approve or reject and I’ll commit them.

--
assignee: eric.araujo
components: Documentation
files: misc-tarfile-doc-changes-3.2.diff
keywords: patch
messages: 153733
nosy: eric.araujo, lars.gustaebel
priority: normal
severity: normal
stage: commit review
status: open
title: Misc doc changes for tarfile
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file24571/misc-tarfile-doc-changes-3.2.diff

___
Python tracker 

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



[issue14012] Misc tarfile fixes

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

Another one: now that shutil provides archiving operations, there is a circular 
dependency between tarfile and shutil.  It does not cause problems*, as both 
modules use qualified names, but it may be a good thing to avoid import 
cascades for performance reasons.  The single shutil function used by tarfile 
could be inlined, as I did in distutils2, or you may reject this idea.

* Except in distutils2’s backport, see 
http://hg.python.org/distutils2/rev/c1b1b537196d

--

___
Python tracker 

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



[issue14057] Speedup sysconfig startup

2012-02-19 Thread STINNER Victor

New submission from STINNER Victor :

On my laptop, start Python compiled in debug mode takes 600 ms. Half of this 
time is spend in the site module. And most of this time is spend in load the 
sysconfig module, which parse sysconfig.cfg, just to get the user site packages 
directory.

Attached patch adds a copy of configparser.RawConfigParser, specialized to 
parse sysconfig.cfg. Using this patch, Python startup is 25% faster (I didn't 
check in release mode).

--
files: sysconfig_parser.patch
keywords: patch
messages: 153735
nosy: haypo, neologix, pitrou
priority: normal
severity: normal
status: open
title: Speedup sysconfig startup
type: performance
versions: Python 3.3
Added file: http://bugs.python.org/file24572/sysconfig_parser.patch

___
Python tracker 

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



[issue11051] Improve Python 3.3 startup time

2012-02-19 Thread STINNER Victor

STINNER Victor  added the comment:

I opened the issue #14057 for the sysconfig parser.

--

___
Python tracker 

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



[issue14057] Speedup sysconfig startup

2012-02-19 Thread STINNER Victor

STINNER Victor  added the comment:

To speed up python -s, the following patch avoids loading the sysconfig module:

diff --git a/Lib/site.py b/Lib/site.py
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -518,7 +518,8 @@ def main():
 known_paths = removeduppaths()
 if ENABLE_USER_SITE is None:
 ENABLE_USER_SITE = check_enableusersite()
-known_paths = addusersitepackages(known_paths)
+if ENABLE_USER_SITE:
+known_paths = addusersitepackages(known_paths)
 known_paths = addsitepackages(known_paths)
 if sys.platform == 'os2emx':
 setBEGINLIBPATH()

I don't know if this patch is correct.

--
nosy: +eric.araujo, tarek

___
Python tracker 

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



[issue14057] Speedup sysconfig startup

2012-02-19 Thread Eric V. Smith

Changes by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue14057] Speedup sysconfig startup

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

The site.getusersitepackages, site.addusersitepackages and co. functions all 
call one function which makes sure site.USER_SITE is set according to envvars 
and command-line options; under python -s, addusersitepackages will not add the 
user site dir to sys.path, but it will cause site.USER_SITE to be set (to 
False), so that’s why I can’t be sure that your patch does not change behavior. 
 test_site has good coverage for IIRC (just not sure if it covers starting 
python -s/-S and then importing site, and python -s/-S then import site then 
call site.main).

I regret that all these site functions are public, now we can’t simplify them 
to have the setting of site.USER_SITE in only one place.

--

___
Python tracker 

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



[issue14057] Speedup sysconfig startup

2012-02-19 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue14054] test_importlib failures under Windows

2012-02-19 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 5b4b70bd2b6f by Brett Cannon in branch 'default':
Fix a failing importlib test under Windows.
http://hg.python.org/cpython/rev/5b4b70bd2b6f

--
nosy: +python-dev

___
Python tracker 

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



[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2012-02-19 Thread Vinay Sajip

Vinay Sajip  added the comment:

Good news: the _ssl module builds OK, the ssl module can be imported, and 
test_ssl now has no failures on Mac OS X 10.5.8 / OpenSSL 0.9.7 :-)

--

___
Python tracker 

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



[issue14054] test_importlib failures under Windows

2012-02-19 Thread Brett Cannon

Changes by Brett Cannon :


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



[issue14054] test_importlib failures under Windows

2012-02-19 Thread Brett Cannon

Changes by Brett Cannon :


--
stage: needs patch -> committed/rejected

___
Python tracker 

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



[issue14058] test_sys has started failing

2012-02-19 Thread Vinay Sajip

New submission from Vinay Sajip :

vinay@eta-natty:~/tools/cpython$ ./python Lib/test/regrtest.py test_sys
[1/1] test_sys
test test_sys failed -- Traceback (most recent call last):
  File "/home/vinay/tools/cpython/Lib/test/test_sys.py", line 737, in 
test_objecttypes
class c():
  File "/home/vinay/tools/cpython/Lib/test/test_sys.py", line 745, in c
check(foo, size(h + 'P'))
  File "/home/vinay/tools/cpython/Lib/test/test_sys.py", line 616, in 
check_sizeof
self.assertEqual(result, size, msg)
AssertionError: 28 != 24 : wrong size for : got 28, 
expected 24

1 test failed:
test_sys

Failure on Ubuntu Natty (32-bit) and also occurs on Mac OS X 10.5.8.

--
components: Library (Lib)
messages: 153741
nosy: vinay.sajip
priority: normal
severity: normal
status: open
title: test_sys has started failing
type: behavior
versions: Python 3.3

___
Python tracker 

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



[issue14058] test_sys has started failing

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

I think Benjamin just fixed that.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue14058] test_sys has started failing

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

http://hg.python.org/cpython/rev/ecaf7ace5169

--

___
Python tracker 

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



[issue14059] Implement multiprocessing.Barrier

2012-02-19 Thread Matt Joiner

New submission from Matt Joiner :

There is no Barrier in multiprocessing corresponding to threading.Barrier.

--
components: Library (Lib)
messages: 153744
nosy: anacrolix
priority: normal
severity: normal
status: open
title: Implement multiprocessing.Barrier
type: enhancement
versions: Python 3.3

___
Python tracker 

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



[issue13605] document argparse's nargs=REMAINDER

2012-02-19 Thread Éric Araujo

Éric Araujo  added the comment:

I have added the missing “::” before code blocks (one was added by the patch 
you committed, others were already here).

I’m not entirely sure they are needed (Python code blocks seem to be 
autodetected and show up colorized too), but I did it for consistency (and to 
make my editor detect them).

--

___
Python tracker 

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



[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2012-02-19 Thread Brett Cannon

Brett Cannon  added the comment:

Since we never solved this I'm still getting compiler warnings. Can we decide 
on a solution for this so I can go back to be warning-free (sans 
`-Wno-unused-value -Wno-empty-body -Qunused-arguments`)?


/Users/bcannon/Developer/repo/cpython/bootstrap_importlib/Modules/socketmodule.c:1439:22:
 warning: comparison of unsigned expression < 0 is always false
  [-Wtautological-compare]
if (flowinfo < 0 || flowinfo > 0xf) {
 ^ ~
/Users/bcannon/Developer/repo/cpython/bootstrap_importlib/Modules/socketmodule.c:1948:74:
 warning: comparison of unsigned expression < 0 is always false
  [-Wtautological-compare]
if (cmsgh == NULL || msg->msg_control == NULL || msg->msg_controllen < 0)
 ~~~ ^ ~
/Users/bcannon/Developer/repo/cpython/bootstrap_importlib/Modules/socketmodule.c:5062:18:
 warning: comparison of unsigned expression < 0 is always false
  [-Wtautological-compare]
if (flowinfo < 0 || flowinfo > 0xf) {
 ^ ~
3 warnings generated.

--

___
Python tracker 

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



[issue14043] Speed-up importlib's _FileFinder

2012-02-19 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset bbaab666e6c7 by Antoine Pitrou in branch 'default':
Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new 
importlib.invalidate_caches() function.
http://hg.python.org/cpython/rev/bbaab666e6c7

--
nosy: +python-dev

___
Python tracker 

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



[issue14060] Implement a CSP-style channel

2012-02-19 Thread Matt Joiner

New submission from Matt Joiner :

>From the mailing list, there is some interest in a CSP-style channel. 
>http://mail.python.org/pipermail/python-ideas/2012-February/014073.html

--
components: Library (Lib)
messages: 153748
nosy: anacrolix
priority: normal
severity: normal
status: open
title: Implement a CSP-style channel
type: enhancement
versions: Python 3.3

___
Python tracker 

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



[issue14043] Speed-up importlib's _FileFinder

2012-02-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Committed now (with invalidate_caches() as well).

--
resolution:  -> fixed
stage: commit 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



  1   2   >