[issue13605] document argparse's nargs=REMAINDER

2012-02-19 Thread Sandro Tosi
Sandro Tosi added the comment: On Mon, Feb 20, 2012 at 01:52, Éric Araujo wrote: > 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). Yeah, I refrained to add them

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-19 Thread Jan Kratochvil
Changes by Jan Kratochvil : Removed file: http://bugs.python.org/file24221/hidden.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-19 Thread Jan Kratochvil
Jan Kratochvil added the comment: There was a bug for non-shared build of Python, thanks. This patch is an improvement on its but it is not yet complete. One should also replace "-Xlinker -export-dynamic" by "-Wl,--dynamic-list" so that linking application with libpython is no longer intrusive

[issue14053] Make patchcheck compatible with MQ

2012-02-19 Thread Ezio Melotti
Ezio Melotti added the comment: Actually I would change the devguide/patch.html page to focus less on mq (but this is a bit orthogonal). The easiest thing to do is to make some changes and use "hg diff > patch.diff" and the devguide should advertise this IMHO. This also works fine with `make

[issue14060] Implement a CSP-style channel

2012-02-19 Thread Guido van Rossum
Guido van Rossum added the comment: Note that Go channels have an optional buffer. That makes them more like the queue module, except the latter doesn't support zero-sized queues. How hard would it be to add that? And are there really use cases in Python for unbuffered channels? -

[issue14060] Implement a CSP-style channel

2012-02-19 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-02-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5411] shutil should support all formats supported by tarfile automatically

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +Clean up archiving code in shutil ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-02-19 Thread Brian Curtin
Brian Curtin added the comment: Attached is an in-progress patch. I still need to figure out how to hook up the GUI to condition the path manipulation. A few locations have said to do conditional environment modification via the Component table, but I haven't been able to get some placeholde

[issue5411] shutil should support all formats supported by tarfile automatically

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file24433/shutil-xz.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5411] shutil should support all formats supported by tarfile automatically

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo : -- title: add xz compression support to shutil -> shutil should support all formats supported by tarfile automatically ___ Python tracker ___ ___

[issue14061] Clean up archiving code in shutil

2012-02-19 Thread Éric Araujo
New submission from Éric Araujo : shutil.make_archive suffers from these issues: - It always supports the 'zip' and 'gztar' formats but if Python is built without zlib then they won’t work. Even if this is probably rare, the code should be robust. Likewise, the tests detect the availability

[issue14005] IDLE Crash when running/saving a file

2012-02-19 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyth

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

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > OK' I'm back to being 100% on the side of rejecting both of these > changes. ASCII is not unocode, it is bytes. You can decode it to > unicode but it is not unicode. Those transformations operate bytes to > bytes, not bytes to unicode. ASCII is just a subs

[issue14013] tarfile should expose supported formats

2012-02-19 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the quick reply. > I think it is good style to let tarfile figure out which supported > compression methods are > available instead of shutil or the user. Note that shutil will not be wholly transparent when I’m done with the refactoring, as it will b

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

2012-02-19 Thread R. David Murray
R. David Murray added the comment: OK' I'm back to being 100% on the side of rejecting both of these changes. ASCII is not unocode, it is bytes. You can decode it to unicode but it is not unicode. Those transformations operate bytes to bytes, not bytes to unicode. We made the bytes unicode

[issue14005] IDLE Crash when running/saving a file

2012-02-19 Thread Scott Bowman
Scott Bowman added the comment: Well it seems like all I needed to do was restart my machine. Everything is working fine now. Thanks for your responses. -- ___ Python tracker _

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-02-19 Thread Éric Araujo
Éric Araujo added the comment: You are! See the devguide for more setup guidelines. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-02-19 Thread Berker Peksag
Berker Peksag added the comment: I'd like to work on this issue. I found the Objects/structseq.c [1] file. Am I on the right path? Thanks! [1] http://hg.python.org/cpython/file/5b4b70bd2b6f/Objects/structseq.c#l157 -- nosy: +berker.peksag ___ Pyth

[issue13703] Hash collision security issue

2012-02-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: +1 for fixing all tests. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue14027] Add pysetup script for Windows

2012-02-19 Thread Brian Curtin
Brian Curtin added the comment: I'd rather we not add a batch file and choose one of the other options outlined above. I haven't used this new pysetup thing so I'm not familiar with which would be the best experience, but in other cases all of the ones listed are better than batch files. ---

[issue14027] Add pysetup script for Windows

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo title: distutils2 lack of pysetup.bat -> Add pysetup script for Windows ___ Python tracker ___

[issue14027] distutils2 lack of pysetup.bat

2012-02-19 Thread Éric Araujo
Éric Araujo added the comment: [Paul] > %~dp0\..\python.exe locates python relative to the batch file (one directory > up) so will work as long > as the bat file is in Scripts. The @ just suppresses echo of the command. Okay, so a pysetup.bat script installed by pythonX.Y.exe will be put in th

[issue14055] Implement __sizeof__ for etree Element

2012-02-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue13703] Hash collision security issue

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou 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? I don't know, but we'll have to fix them in 3.2 to avoid breaking the buildbots. So we might also fi

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

2012-02-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

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

[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

[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

[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

[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

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

[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

[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

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

[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

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

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

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

[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

[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

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

[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

[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

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

[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

[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

[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

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

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

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

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

[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

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

[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

[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

[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

[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
Changes by Merlijn van Deen : Added file: http://bugs.python.org/file24567/test_bytestrpickle.py ___ Python tracker ___ ___ Python-bugs-list ma

[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

[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

[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

[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

[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

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

[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

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

[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

[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

[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

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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

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

[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 Ramchandra Apte
Changes by Ramchandra Apte : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

  1   2   >