Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread SherjilOzair
Well, if not modify python itself, I was thinking of making another shell, which borrows a lot from python, something like merging bash and python. such that I can do `cd ~/Desktop/dev` and `for i in open('file.txt'): print i` at the some shell. This I think would be VERY useful. IPyhton is

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread SherjilOzair
Well, if not modify python itself, I was thinking of making another shell, which borrows a lot from python, something like merging bash and python. such that I can do `cd ~/Desktop/dev` and `for i in open('file.txt'): print i` at the some shell. This I think would be VERY useful. IPyhton is

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread Steven D'Aprano
On Sun, 19 Feb 2012 00:16:43 -0800, SherjilOzair wrote: Well, if not modify python itself, I was thinking of making another shell, which borrows a lot from python, something like merging bash and python. such that I can do `cd ~/Desktop/dev` and `for i in open('file.txt'): print i` at the

Re: entering unicode (was Python usage numbers)

2012-02-19 Thread rusi
On Feb 19, 8:44 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sun, 12 Feb 2012 19:09:32 -0800, rusi wrote: I have some bunch of sanskrit (devanagari) to type.  It would be easiest for me if I could have the English (roman) as well as the sanskrit (devanagari). For

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread Terry Reedy
On 2/19/2012 3:18 AM, SherjilOzair wrote: Well, if not modify python itself, I was thinking of making another shell, which borrows a lot from python, something like merging bash and python. such that I can do `cd ~/Desktop/dev` and `for i in 'cd xxx' cannot work because that is not python

logging with logging.config.fileConfig

2012-02-19 Thread Herman
I tried to use file to config my logger and I got a weird situation that each message is outputted twice... Here is my scenario: python: 2.6 file abc_logging.conf: [loggers] keys=root,abc [handlers] keys=consoleHandler [formatters] keys=detailFormatter [logger_root] level=DEBUG

Re: logging with logging.config.fileConfig

2012-02-19 Thread MRAB
On 19/02/2012 20:23, Herman wrote: I tried to use file to config my logger and I got a weird situation that each message is outputted twice... Here is my scenario: python: 2.6 file abc_logging.conf: [snip] [logger_abc] level=DEBUG handlers=consoleHandler qualname=abc Add this line to stop

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread Michael Torrie
On 02/18/2012 11:58 AM, SherjilOzair wrote: Has it been considered to add shell features to python, such that it can be used as a default shell, as a replacement for bash, etc. I'm sure everyone would agree that doing this would make the terminal very powerful. What are your views on

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-19 Thread 88888 Dihedral
在 2012年2月20日星期一UTC+8上午8时23分33秒,Michael Torrie写道: On 02/18/2012 11:58 AM, SherjilOzair wrote: Has it been considered to add shell features to python, such that it can be used as a default shell, as a replacement for bash, etc. I'm sure everyone would agree that doing this would make the

[issue14047] UTF-8 Email Header

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue11051] system calls per import

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11051 ___ ___ Python-bugs-list

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

2012-02-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 mer...@netwok.org: -- versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

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

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14052 ___ ___ Python-bugs-list mailing

[issue14047] UTF-8 Email Header

2012-02-19 Thread Michal Sladek
Michal Sladek mic...@sladkovi.eu 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

[issue14047] UTF-8 Email Header

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 mer...@netwok.org 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 mer...@netwok.org 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

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

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7509 ___ ___

[issue14047] UTF-8 Email Header

2012-02-19 Thread Michal Sladek
Michal Sladek mic...@sladkovi.eu 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

[issue8918] distutils test_config_cmd failure on Solaris

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue4636] bdist_wininst installer with install script raises exception

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl
Georg Brandl ge...@python.org 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 ___

[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: Removed file: http://bugs.python.org/file24561/hash-patch-3.1-gb.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org

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

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

2012-02-19 Thread Ronny Pfannschmidt
Ronny Pfannschmidt ronny.pfannschm...@gmail.com 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 rep...@bugs.python.org

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

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1173134 ___ ___ Python-bugs-list

[issue7719] distutils: ignore .nfsXXXX files

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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:

[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: Removed file: http://bugs.python.org/file24562/hash-patch-3.1-gb.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[issue13703] Hash collision security issue

2012-02-19 Thread Georg Brandl
Georg Brandl ge...@python.org 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:

[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 mar...@v.loewis.de 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. --

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

2012-02-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As a feature request, it's fine - but I have no intention to work on this feature. -- assignee: loewis - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8526

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

2012-02-19 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8526 ___ ___

[issue11051] Improve Python 3.3 startup time

2012-02-19 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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

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

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: -eric.araujo type: behavior - enhancement versions: -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8526 ___

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

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue13703] Hash collision security issue

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[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 neolo...@free.fr added the comment: Committed, thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14001

[issue11051] Improve Python 3.3 startup time

2012-02-19 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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

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

2012-02-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

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

2012-02-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

[issue12393] Packaging should provide support for extensible categories

2012-02-19 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[issue13090] test_multiprocessing: memory leaks

2012-02-19 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

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

2012-02-19 Thread Vladimir Rutsky
Changes by Vladimir Rutsky altsy...@gmail.com: -- nosy: +rutsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___ ___ Python-bugs-list

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

2012-02-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[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é franci...@email.de: 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

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

2012-02-19 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13248 ___ ___

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

2012-02-19 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Well, it's done: http://bugs.python.org/issue14053 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13579 ___

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

2012-02-19 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com 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

[issue14051] Cannot set attributes on staticmethod

2012-02-19 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Wouldn't it make more sense to somehow share the dict with the underlying function? -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14051

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

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 pit...@free.fr 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 pit...@free.fr: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13842 ___ ___ Python-bugs-list mailing

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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():

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

2012-02-19 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14053 ___ ___

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

2012-02-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +eric.araujo versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14053 ___

[issue14051] Cannot set attributes on staticmethod

2012-02-19 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You can wrap anything with staticmethod, so it might not have a __dict__. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14051 ___

[issue14054] test_importlib failures under Windows

2012-02-19 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: == FAIL: test_case_sensitive (importlib.test.extension.test_case_sensitivity.ExtensionModuleCaseSensitivityTest)

[issue14040] Deprecate some of the module file formats

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch simply removing the suffixes. -- Added file: http://bugs.python.org/file24564/removesuffixes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14040

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

2012-02-19 Thread Catalin Iacob
Catalin Iacob iacobcata...@gmail.com 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

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

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 -- ___

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

2012-02-19 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de 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

[issue13605] document argparse's nargs=REMAINDER

2012-02-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue14047] UTF-8 Email Header

2012-02-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2012-02-19 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: Added file: http://bugs.python.org/file24567/test_bytestrpickle.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___

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

2012-02-19 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com 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

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

2012-02-19 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com 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

[issue13090] test_multiprocessing: memory leaks

2012-02-19 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Charles-Fran??ois Natali rep...@bugs.python.org 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,

[issue13090] test_multiprocessing: memory leaks

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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. --

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

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 vinay_sa...@yahoo.co.uk added the comment: Almost there. The file now compiles, but a failure occurs in a later

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

2012-02-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

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

2012-02-19 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Attached. -- Added file: http://bugs.python.org/file24569/ssl-ecdh.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13627 ___

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

2012-02-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Attached. Thanks. Should be fixed in 1a06f0a8120f. Can you check? :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13627 ___

[issue14055] Implement __sizeof__ for etree Element

2012-02-19 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: 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

[issue14055] Implement __sizeof__ for etree Element

2012-02-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) nosy: +flox stage: - patch review type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14055

[issue14040] Deprecate some of the module file formats

2012-02-19 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm in favour of the removesuffixes.patch. However, it will need to be accompanied with a whatsnew change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14040

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

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9691 ___

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

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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.) --

[issue14053] Make patchcheck compatible with MQ

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +brett.cannon title: Make Tools/scripts/patchcheck.py compatible with mercurial mqueues. - Make patchcheck compatible with MQ ___ Python tracker rep...@bugs.python.org

[issue14040] Deprecate some of the module file formats

2012-02-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14040 ___ ___ Python-bugs-list

[issue14034] first example in argparse doc is too complicated

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-19 Thread Berker Peksag
Berker Peksag berker.pek...@gmail.com 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 rep...@bugs.python.org

[issue12393] Packaging should provide support for extensible categories

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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.

[issue14056] Misc doc changes for tarfile

2012-02-19 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: 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

[issue14012] Misc tarfile fixes

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue14057] Speedup sysconfig startup

2012-02-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: 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

[issue11051] Improve Python 3.3 startup time

2012-02-19 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I opened the issue #14057 for the sysconfig parser. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11051 ___

[issue14057] Speedup sysconfig startup

2012-02-19 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com 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

[issue14057] Speedup sysconfig startup

2012-02-19 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14057 ___ ___ Python-bugs-list

[issue14057] Speedup sysconfig startup

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue14057] Speedup sysconfig startup

2012-02-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14057 ___

[issue14054] test_importlib failures under Windows

2012-02-19 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 ___

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

2012-02-19 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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 rep...@bugs.python.org

[issue14054] test_importlib failures under Windows

2012-02-19 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14054 ___

[issue14054] test_importlib failures under Windows

2012-02-19 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14054 ___ ___

  1   2   >