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

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

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

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

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

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

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

[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

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

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

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

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

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

[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

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

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

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

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

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

[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: -> rej

[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://mai

[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: +3r

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

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

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

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

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

[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

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

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

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

[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 ___ __

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

[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

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

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

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

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

[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* differe

[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: Pr

[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://mai

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

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

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

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

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

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

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

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

[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

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

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

[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 ___ _

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

[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

[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

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

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

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

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

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

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

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

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

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

[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 ___ ___ Pyt

[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 ___ _

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

[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 ___ _

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

[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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

[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

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

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

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

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

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

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

[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: P

[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

[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/Mo

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

[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

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

  1   2   >