[issue13238] Add shell command helpers to shutil module

2011-10-21 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: I've been doing a few systems administration tasks with Python recently, and shell command invocation directly via the subprocess module is annoyingly clunky (even with the new convenience APIs). Since subprocess needs to avoid the shell by

[issue13238] Add shell command helpers to shutil module

2011-10-21 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: These feel like a shell injection waiting to happen to me. -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238 ___

[issue13237] subprocess docs should emphasise convenience functions

2011-10-21 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- title: subprocess docs should use emphasise convenience functions - subprocess docs should emphasise convenience functions ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13237

[issue13235] logging.warn() is not documented

2011-10-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 37479f0f68bc by Vinay Sajip in branch 'default': Closes #13235: Added deprecation for warn() methods and function in logging. http://hg.python.org/cpython/rev/37479f0f68bc -- nosy: +python-dev resolution: -

[issue13232] Logging: Unicode Error

2011-10-21 Thread Thomas Guettler
Changes by Thomas Guettler guet...@thomas-guettler.de: Added file: http://bugs.python.org/file23486/unicodedecodeerror-in-logging.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13232 ___

[issue13238] Add shell command helpers to shutil module

2011-10-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: And that's exactly the problem - a web developer's or security auditor's shell injection is a system administrator's this language sucks. These wrappers are the kind of thing you want for shell invocations when using Python as a replacement

[issue13232] Logging: Unicode Error

2011-10-21 Thread Thomas Guettler
Thomas Guettler guet...@thomas-guettler.de added the comment: I attached a testcase (unicodedecodeerror-in-logging.py). If the filesystemencoding is UTF-8 and the source code is encoded in latin1, then the logging fails. It happens because there is a German umlaut in the comment behind 1/0.

[issue13238] Add shell command helpers to shutil module

2011-10-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Perhaps a better idea would be to use different names, so it's clearer at the point of invocation that the shell is being invoked (and hence shell injection attacks are a potential concern). For example: shell_call check_shell_call

[issue13226] Expose RTLD_* constants in the posix module

2011-10-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Note that I'm really +10 on this issue: such constants belong to individual modules rather than to the unmanageable Lib/plat-XXX/. -- nosy: +neologix ___ Python tracker

[issue13237] subprocess docs should emphasise convenience functions

2011-10-21 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: +1 -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13237 ___

[issue13238] Add shell command helpers to shutil module

2011-10-21 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Is format() really the best choice here, considering that {}s already have a meaning in the shell? -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238

[issue13237] subprocess docs should emphasise convenience functions

2011-10-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13237 ___ ___

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: Operator was removed in Python 3, but still appears in Grammar/Grammar (and hence in Doc/reference/grammar.rst) Reported by Alexander Ivanyuta on the docs mailing list -- assignee: docs@python components: Documentation, Interpreter

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: The relevant code in Parser/parsetok.c is: #ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD if (type == NOTEQUAL) { if (!(ps-p_flags CO_FUTURE_BARRY_AS_BDFL) strcmp(str, !=)) {

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +barry, brett.cannon, fdrake, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13239 ___

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This is PEP 401. [Because] the != inequality operator ... was a horrible, finger pain inducing mistake, the FLUFL reinstates the diamond operator as the sole spelling. This change is important enough to be implemented for, and

[issue13221] No edit with IDLE in right click context menu

2011-10-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If the installation process adds the Open with IDLE entry, it should do it again when you reinstall Rather than going through reinstallation, go to Add and Remove Programs, find Python 3.2, and select Repair installation. Closing the

[issue13221] No edit with IDLE in right click context menu

2011-10-21 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13221 ___

[issue13226] Expose RTLD_* constants in the posix module

2011-10-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch looks fine to me. However, I don't think it meets Charles-François' requirement of moving the constants into an individual module. Rather than living in the unmanageable plat-XXX, they now live in the unmanageable

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12753 ___ ___ Python-bugs-list mailing

[issue5289] ctypes.util.find_library does not work under Solaris

2011-10-21 Thread Falk Nisius
Falk Nisius falknis...@gmx.de added the comment: Under Ubuntu 11.04 is the _findLib_gcc used and not a ldconfig method. Why should I install a gcc only to find a dynamic library ? It seems not a well design. The usage of ldconfig, what is more natural at a server in the net than a c compiler.

[issue13238] Add shell command helpers to shutil module

2011-10-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Of the 3 available options (mod style, string.Template and str.format), yes, str.format is the best choice. If people want the shell meaning of the braces, they can escape them by doubling them up in the command string. --

[issue12296] Minor clarification in devguide

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This is the wording I committed: (This obviously does not apply to new classes or functions; new arguments should be optional and have default values which maintain the existing behavior.) Should I push or should I delete the changeset?

[issue13181] pysetup install creates .pyc files but pysetup remove doesn't delete them

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: \o/ -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - distutils doesn't byte-compile .py files to __pycache__ during installation ___ Python tracker

[issue13224] Change str(class) to return only the class name

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I would argue that the previous behavior of str(class) was undefined, or an implementation detail; as a new feature, my patch can break some code that relied on the previous behavior, but we may judge think it’s worth the cost. BTW, doctest is

[issue13228] Add Quick Start section to the devguide index

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: + ``hg clone http://hg.python.org/cpython``; I use http://hg.python.org/cpython#default to avoid cloning the 2.x branches, that’s an optimization that can save some time and space. +2. run ``./configure --with-pydebug make -j2`` Is make -j2

[issue3902] Packages containing only extension modules have to contain __init__.py

2011-10-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f84040b11211 by Éric Araujo in branch 'default': Document that packaging doesn’t create __init__.py files (#3902). http://hg.python.org/cpython/rev/f84040b11211 -- nosy: +python-dev

[issue13205] NameErrors in generated setup.py (codecs, split_multiline)

2011-10-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 21c33aa2178b by Éric Araujo in branch 'default': Fix missing imports in setup scripts generated by packaging (#13205). http://hg.python.org/cpython/rev/21c33aa2178b -- nosy: +python-dev

[issue12659] Add tests for packaging.tests.support

2011-10-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0aad55c8ff26 by Éric Araujo in branch 'default': Add tests for packaging.tests.support (#12659). http://hg.python.org/cpython/rev/0aad55c8ff26 -- nosy: +python-dev ___

[issue13238] Add shell command helpers to shutil module

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Why not keeping these helpers in subprocess? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238 ___

[issue13229] Add shutil.filter_walk

2011-10-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13229 ___ ___ Python-bugs-list

[issue13205] NameErrors in generated setup.py (codecs, split_multiline)

2011-10-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5949563b9f1c by Éric Araujo in branch 'default': Fix missing imports in generated setup scripts (#13205). http://hg.python.org/distutils2/rev/5949563b9f1c New changeset eb845a9a00b7 by Éric Araujo in branch

[issue13205] NameErrors in generated setup.py (codecs, split_multiline)

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: As you can see in my commit, I made more changes to the code and simplified the tests. subprocess is definitely the way to test script functionality, it’s much cleaner than monkey-patching sys.argv; we even have higher-level helpers to do that

[issue3902] Packages containing only extension modules have to contain __init__.py

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I thought about the wording again and committed a different version. I also decided not to backport to distutils; see the commit message for a rationale. Thanks for the help! -- components: -Distutils, Distutils2 resolution: - fixed

[issue12659] Add tests for packaging.tests.support

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This first patch is committed! If you have any question about the changes I made to your patch, feel free to ask them. The most important change I did was running setUp and tearDown before and after each test method, as real unittest would

[issue13240] computed gotos not enabled?

2011-10-21 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: According to issue 9203 the computed gotos should be enabled by default since 3.2. However, it is not visible from the interpreter. Python 3.2.2 (default, Sep 7 2011, 10:55:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on

[issue12913] Add a debugging howto

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [Terry] Binary search with print is done manually. If error not obvious from quick read, in a 20 line function, add print around line 10. If ok there, look down and add print later in function. [...] Okay, so it’s what I thought only I

[issue4733] Add a decode to declared encoding version of urlopen to urllib

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not sure real HTML (i.e. sent as text/html) should have an XML prolog honored. For XML, there’s http://tools.ietf.org/html/rfc3023 -- ___ Python tracker rep...@bugs.python.org

[issue12913] Add a debugging howto

2011-10-21 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: - running Python in gdb This is somewhat orthogonal, but the devguide/gdb page doesn't say how to start running Python in gdb (it might be obvious to people used to use gdb, but it should still be mentioned). If the devguide is

[issue13125] test_all_project_files() expected failure

2011-10-21 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Note that I think it's best to fix the underlying failures rather than silence them. ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13125

[issue13237] subprocess docs should emphasise convenience functions

2011-10-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: From a quick look it seems to me that only - output = Popen([mycmd, myarg], stdout=PIPE).communicate()[0] + output = check_output([mycmd, myarg]) can be changed. Most of the other example access attributes of the Popen objects, such as

[issue13228] Add Quick Start section to the devguide index

2011-10-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: + ``hg clone http://hg.python.org/cpython``; I use http://hg.python.org/cpython#default to avoid cloning the 2.x branches, that’s an optimization that can save some time and space. I think in the default case it's easier to get'em

[issue13240] computed gotos not enabled?

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: According to issue 9203 the computed gotos should be enabled by default since 3.2. However, it is not visible from the interpreter. Python 3.2.2 (default, Sep 7 2011, 10:55:43) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin from

[issue12618] py_compile cannot create files in current directory

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sjoerd, can you paste the code that produces the bug? It would help create a test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12618

[issue13240] computed gotos not enabled?

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Just compiled 3.2 on Debian: sysconfig.get_config_var('USE_COMPUTED_GOTOS') 0 -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13240

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This looks like the system Python compiled by Apple. What about a hand-compiled Python? Forget this. I get the same results here. However, if you add a #error at the right place in ceval.c, you'll see that computed gotos are enabled. It seems

[issue13228] Add Quick Start section to the devguide index

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You could replace python -m test with make test, although it only does the right thing in 3.3. Otherwise, python -m test -j3 would be friendlier to the reader I think :) +1 on the principle, by the way! -- nosy: +pitrou

[issue13228] Add Quick Start section to the devguide index

2011-10-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: New patch that adds a few more instructions for Windows/Mac OS. `make test` is UNIX-specific, so I left `./python -m test`. I also moved the section before the quick links, since it seems to me more interesting that those links (you don't

[issue13228] Add Quick Start section to the devguide index

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch that adds a few more instructions for Windows/Mac OS. `make test` is UNIX-specific, so I left `./python -m test`. I also moved the section before the quick links, since it seems to me more interesting that those links (you don't

[issue13198] Remove duplicate definition of write_record_file

2011-10-21 Thread Mike Hoy
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13198 ___ ___ Python-bugs-list mailing list

[issue13228] Add Quick Start section to the devguide index

2011-10-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks for the feedback, here's an updated patch. -- nosy: +brian.curtin Added file: http://bugs.python.org/file23488/issue13228-2.diff ___ Python tracker rep...@bugs.python.org

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Extract of configure.in: - # Check for --with-computed-gotos AC_MSG_CHECKING(for --with-computed-gotos) AC_ARG_WITH(computed-gotos, AS_HELP_STRING([--with(out)-computed-gotos],

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Extract of my pyconfig.h - /* Define if you want to use computed gotos in ceval.c. */ /* #undef USE_COMPUTED_GOTOS */ - Ok, now read ceval.c: #ifdef HAVE_COMPUTED_GOTOS

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: With the #error, I can confirm that computed gotos are enabled on OS X. About sysconfig, we may change the code to set None if the value is undef. I don't know the impact. Actually, I think sysconfig does the right thing when it comes to

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: With the #error, I can confirm that computed gotos are enabled on OS X. About sysconfig, we may change the code to set None if the value is undef. I don't know the impact. --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -404,7

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Computed goto are disabled (in my Python 3.3 on Linux with GCC), I checked by adding #error to ceval.c. Hum, I don't understand how, but I missed the #error failure. Computed goto *are enabled* by default. --

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Probably need a comment in the Grammar file so people know why an unused operator is in there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13239

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Or perhaps we don't need joke backward compatibility? (That's nearly 3 years old.) -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13239

[issue12930] reindent.py inserts spaces in multiline literals

2011-10-21 Thread Caio Romão
Caio Romão caioro...@gmail.com added the comment: It's been a while since this got any activity. Was the provided testfile not enough or any issue found? Just let me know and I'll make adjustments asap. -- ___ Python tracker rep...@bugs.python.org

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Fri, Oct 21, 2011 at 11:35, Benjamin Peterson rep...@bugs.python.org wrote: Benjamin Peterson benja...@python.org added the comment: Or perhaps we don't need joke backward compatibility? (That's nearly 3 years old.) Then you tell the

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a985d733b3a3 by Ezio Melotti in branch 'default': #12753: Add support for Unicode name aliases and named sequences. http://hg.python.org/cpython/rev/a985d733b3a3 -- nosy: +python-dev

[issue5788] datetime.timedelta is inconvenient to use...

2011-10-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: What about def total_minutes(td): return td / datetime.timedelta(minutes=1) ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5788

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Oct 21, 2011, at 06:35 PM, Benjamin Peterson wrote: Benjamin Peterson benja...@python.org added the comment: Or perhaps we don't need joke backward compatibility? (That's nearly 3 years old.) OTOH, __future__ imports (even jokes) should

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: OTOH, __future__ imports (even jokes) should never be removed. But their meaning can be altered? (as part of another joke if you want :) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Oct 21, 2011, at 07:33 PM, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: OTOH, __future__ imports (even jokes) should never be removed. But their meaning can be altered? (as part of another joke if you want :)

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-10-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's an updated patch. I'll open a separate issue for the thread-safety. -- keywords: +needs review nosy: +pitrou stage: - patch review Added file: http://bugs.python.org/file23489/pool_lifetime_close-1.diff

[issue10332] Multiprocessing maxtasksperchild results in hang

2011-10-21 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file21644/pool_lifetime_close.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10332 ___

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread Oleg Plakhotnyuk
New submission from Oleg Plakhotnyuk oleg...@gmail.com: Trying to build latest development revision: localhost:repo family$ hg summary parent: 73044:a985d733b3a3 tip #12753: Add support for Unicode name aliases and named sequences. branch: default commit: (clean) update: (current) Constantly

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread Oleg Plakhotnyuk
Oleg Plakhotnyuk oleg...@gmail.com added the comment: Oh yes. I am building with this command line: ./configure --with-pydebug make -j2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It is a compiler bug in GCC 4.2.1 with -O3. Try to compile attached unicode.c program with gcc -O3. The correct result is: $ gcc -O3 unicode.c -o unicode ./unicode is ascii? 0 is compact? 1 is compact ascii? 0

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: +Build versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The bug has been fixed in GCC, try a more recent version using ./configure CC=gccX.Y. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: It should also work without --with-pydebug, or with a different compiler. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241

[issue13228] Add Quick Start section to the devguide index

2011-10-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: ./python.exe is not a given on Mac OS X; that's only true if the file system you are building in is case-insensitive, otherwise it is ./python. Suggest rewording to: (you may need to use :file:`./python.exe` on Mac OS X ... -- nosy:

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Still happens on latest 2.7: from cStringIO import StringIO sio = StringIO(uabc) sio.getvalue() 'a\x00b\x00c\x00' -- nosy: +pitrou resolution: fixed - stage: - needs patch status: closed - open versions: +Python 2.7 -Python 2.5

[issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

2011-10-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Start a new thread to process the request. t = threading.Thread(target = self.process_request_thread, args = (request, client_address)) if self.daemon_threads: t.daemon =

[issue3244] multipart/form-data encoding

2011-10-21 Thread Ugra Dániel
Changes by Ugra Dániel daniel.u...@gmail.com: -- nosy: +daniel.ugra ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: And unsurprisingly so, since the fix was reverted in r56830 by Georg. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1548891 ___

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I committed the patch and the buildbots seem happy. Thanks for the report and the feedback! Tom, about the problems you mentioned in msg144836, can you report it in a new issue or, if there are already issues about them, add a message

[issue1730114] cStringIO no longer accepts array.array objects

2011-10-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c91661e0d714 by Antoine Pitrou in branch '2.7': Add test for fix of issue #1730114. http://hg.python.org/cpython/rev/c91661e0d714 -- nosy: +python-dev ___ Python tracker

[issue5788] datetime.timedelta is inconvenient to use...

2011-10-21 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: You'll probably get more traction if you file a new bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5788 ___

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Georg, is this patch ok to you? -- assignee: georg.brandl - keywords: +patch Added file: http://bugs.python.org/file23492/cio.patch ___ Python tracker rep...@bugs.python.org

[issue13242] Crash in test_pydoc

2011-10-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: On 2.7, I get the following crashes in test_pydoc: == FAIL: test_apropos_with_bad_package (test.test_pydoc.PydocImportTest)

[issue13242] Crash in test_pydoc

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, it seems it's due to a 3rd party C extension: $ ./python -c import sqlalchemy.cprocessors python: Objects/object.c:65: _Py_AddToAllObjects: Assertion `(op-_ob_prev == ((void *)0)) == (op-_ob_next == ((void *)0))' failed. Closing as not a

[issue13242] Crash in test_pydoc

2011-10-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13242 ___

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 329b96fe4472 by Ezio Melotti in branch 'default': #12753: fix compilation on Windows. http://hg.python.org/cpython/rev/329b96fe4472 -- ___ Python tracker

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I believe this was a bug specific to the llvm-gcc compiler shipped with Xcode 4.1 and possibly Xcode 4.0. I do not have Xcode 4 on OS X 10.6 but haypo's test does fail with the llvm-gcc 4.2.1 that comes with Xcode 4.1 on 10.7. Can you confirm

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See also http://mail.python.org/pipermail/python-dev/2011-September/113731.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241

[issue12296] Minor clarification in devguide

2011-10-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Ezio's comment got me to reread the entire paragraph. I do not like it. 'Having you think' is wrong; 'Basically just' is unneeded; 'guaranteed' is hyperbole; and the paragraph is otherwise repetitive, vague, and pretty useless. For most

[issue13239] Remove operator from Grammar/Grammar

2011-10-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13239 ___ ___ Python-bugs-list

[issue415492] Compiler generates relative filenames

2011-10-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue415492 ___ ___ Python-bugs-list

[issue13184] Multi-layered symlinks to python cause runtime error. sys.path is malformed.

2011-10-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: For the tracker, 'crash' == seqfault or equivalent, with no traceback. Unwanted traceback is bad behavior. Please test with 3.2 also if you can. -- nosy: +brett.cannon, ncoghlan, terry.reedy type: crash - behavior

[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-21 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- type: - feature request versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13197 ___

[issue12296] Minor clarification in devguide

2011-10-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: That's a bit heavy in my opinion. I don't think it's necessary to define in detail what backward-compatibile means, it's probably enough to say that whatever code might be running before the patch should keep running fine even after.

[issue13220] print function unable while multiprocessing.Process is being run

2011-10-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Try running without IDLE (double click, right-click run, Command Prompt window, or paste into interpreter window). IDLE runs code in a subprocess with stdout directed back to the IDLE process, so it occasionally affects otherwise legal and

[issue13212] json library is decoding/encoding when it should not

2011-10-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: HTMLParser got a strict argument and it's causing more problems than it solves. Funny, I used the strict mode to solve a parsing bug in a personal project. -- nosy: +eric.araujo ___ Python tracker

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-10-21 Thread Justin Love
Justin Love pyt...@justinlove.name added the comment: Still can't reproduce (though I got one failure and three other errors) $ patch -p 1 distutils2-manifest.diff $ ../devinabox/cpython/python.exe runtests.py ... test_glob_to_re (distutils2.tests.test_manifest.ManifestTestCase) ... ok ...

[issue13203] Doc: say id() is only useful for existing objects

2011-10-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13203 ___ ___ Python-bugs-list

[issue13212] json library is decoding/encoding when it should not

2011-10-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: HTMLParser got a strict argument and it's causing more problems than it solves. Funny, I used the strict mode to solve a parsing bug in a personal project. See http://bugs.python.org/issue7311#msg133075 and following messages.r

[issue13234] os.listdir breaks with literal paths

2011-10-21 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13234 ___ ___ Python-bugs-list mailing

  1   2   >