[issue8743] set() operators don't work with collections.Set instances

2010-08-01 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743 ___ ___

[issue1699594] shlex fails to parse strings correctly

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: How do you reproduce this? The strings seem to work fine with shlex.split(). -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1699594

[issue4600] __class__ assignment: new-style? heap? == confusing

2010-08-01 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - d...@python nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4600 ___

[issue8773] mailbox module is needlessly executable

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r83385. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8773 ___

[issue8768] The checkempty_symmetric_difference test is never called

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r83386. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8768

[issue8757] Race condition when checking for set in set

2010-08-01 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8757 ___ ___

[issue8735] optparse: parse_args(values=...) does not set up default values

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks for the report, I added a note in the docs in r83387. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8735

[issue7717] Compilation fixes for IRIX

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Stuart could you please fill out the paperwork given here http://www.python.org/psf/contrib/ . Without it this issue can't proceed. -- nosy: +BreamoreBoy ___ Python tracker

[issue7718] Build shared libpythonX.Y.so on IRIX

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Stuart has been asked to sign the paperwork on #7717. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7718 ___

[issue8747] Autoconf tests in python not portably correct

2010-08-01 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: The issue is still present. The overall problem I suppose is with consistency and presentation of features in the python language. Many features cannot be presented in a 100% portable manner, and the problem is that such features that

[issue8397] BZ2File doesn't protect against mixed iterator and read usage

2010-08-01 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - pitrou nosy: +pitrou priority: normal - high versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8397

[issue1180267] expanding platform module and making it work as it should

2010-08-01 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - lemburg nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1180267 ___ ___

[issue4891] formatwarning function signature change breaks code

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Probably too late to change something here. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4891

[issue7702] Wrong order of parameters of _get_socket in SMTP class in smtplib.py

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This appears to have been fixed since r61624. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7702

[issue7395] pstats add command raises unhandled exception

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r83388. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7395 ___

[issue8105] mmap crash on Windows with out of range file descriptor

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: What's the status here? Can it be committed? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8105 ___

[issue7952] fileobject.c can switch between fread and fwrite without an intervening flush or seek, invoking undefined behaviour

2010-08-01 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7952 ___ ___

[issue7937] windows installer package

2010-08-01 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: No bug reported here. -- nosy: +georg.brandl resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7937

[issue8249] expat.ParserCreate - SystemError bad argument to internal function

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Is this somehow reproducible without svnmerge? -- nosy: +georg.brandl status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8249

[issue8230] Lib/test/sortperf.py fails to run

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r83390. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8230

[issue6128] Consequences of using Py_TPFLAGS_HAVE_GC are incompletely explained

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can someone in the know provide a doc patch for this? -- assignee: georg.brandl - d...@python nosy: +BreamoreBoy, d...@python ___ Python tracker rep...@bugs.python.org

[issue8590] test_httpservers.CGIHTTPServerTestCase failure on 3.1-maint Mac OS X

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Still reproducible? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8590 ___

[issue8509] fix autoconf quoting in help strings and code snippets

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Patch has been applied; closing. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8509

[issue6130] There ought to be a way for extension types to associate documentation with their tp_new or tp_init methods

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can anyone provide a way forward for this issue? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6130 ___

[issue870479] Scripts need platform-dependent handling

2010-08-01 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: I don't think that they do, any more than for any .py script. (I assume you're talking about in the .py script). Generated scripts on Unix can be whatever the code wants, and on Windows I thought the idea of generated scripts had been dropped.

[issue6157] Tkinter.Text: changes for bbox, debug, and edit methods.

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The suggested changes are mostly trivial, but there should be comments on the change to the bbox signature. -- nosy: +BreamoreBoy stage: - patch review type: - behavior versions: +Python 3.2

[issue8471] Unicode returns in doctest can make subsequent tests fail

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, applied in r83392. -- nosy: +georg.brandl resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8471

[issue6159] Tkinter.PanedWindow: docstring fixes, change in paneconfigure and removed some returns

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This issue is self explanatory, can it be committed as is? -- nosy: +BreamoreBoy stage: - patch review type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue1690103] trace module borks __file__

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r83393 with explicit globals that also specify __name__. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8821] Range check on unicode repr

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied in r83395. Thanks! -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8821

[issue4810] timeit needs official '--' flag

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Usually I would say that this is common UNIX knowledge, except that timeit is also used in Windows environments. Also, the timeit help is already quite thorough, so it can't hurt to mention --. Done in r83396. -- nosy: +georg.brandl

[issue6187] Improvement in doc of Extending and Embedding the Python Interpreter, 5.3 Beyond Very High Level Embedding: An overview

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I don't see why this needs to be done, the 2nd paragraph of the doc is pretty explicit. This document assumes basic knowledge about Python. For an informal introduction to the language, see The Python Tutorial. The Python Language

[issue6310] Windows App Paths key is not checked when installed for current user

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can a windows guru comment on this please. -- nosy: +BreamoreBoy, brian.curtin, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6310

[issue8826] Invalid expires date in cookiejar

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r83398. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8826

[issue7738] IDLE hang when tooltip comes up in Linux

2010-08-01 Thread Rakesh
Rakesh rakeshdhanire...@gmail.com added the comment: I too have the same bug with python 2.6.4 and 3.1. The issue seems to be with Tk8.5. Earlier idle packages worked fine Tk8.4. -- nosy: +rakesh_d ___ Python tracker rep...@bugs.python.org

[issue6187] Improvement in doc of Extending and Embedding the Python Interpreter, 5.3 Beyond Very High Level Embedding: An overview

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Agreed with Mark. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6187 ___

[issue7330] PyUnicode_FromFormat segfault

2010-08-01 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Here is the patch, it add support to use width and precision formatters in PyUnicode_FromFormat() for type %s, %S, %R, %V, %U, %A, besides fixed two bugs, which at least I believe: 1. According to PyUnicode_FromFormat() doc:

[issue6338] Error message displayed on stderr when no C compiler is present with ctypes

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The patch simply sends the error message to os.devnull. I can't test it as posix, but can it be committed as is? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue6226] Inconsistent 'file' vs 'stream' kwarg in pprint, other stdlibs

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Philip can you provide a patch so we can take this forward? -- nosy: +BreamoreBoy stage: - needs patch versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I can't see any sense in supplying a patch for what is a one word change to demo.c. Can a C guru please comment on the OP's 2nd paragraph. -- nosy: +BreamoreBoy ___ Python tracker

[issue6445] Add check parameter to subprocess.Popen.communicate

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @OG7 this is unlikely to move unless you provide a patch that changes the code and the unit test. -- nosy: +BreamoreBoy stage: - unit test needed type: - feature request versions: +Python 3.2

[issue6532] thread.get_ident() should return unsigned value

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can a C guru comment on this please. -- components: +Extension Modules -Library (Lib) nosy: +BreamoreBoy stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5, Python 2.6

[issue8249] expat.ParserCreate - SystemError bad argument to internal function

2010-08-01 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Unable to reproduce. -- nosy: +haypo resolution: - works for me status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8249

[issue6602] BaseHTTPServer log_message should log to sys.stdout

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The OP's comments strike me as sensible, do others agree or disagree? -- components: +Library (Lib) -None nosy: +BreamoreBoy stage: - unit test needed type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5

[issue3718] environment variable MACHDEP and python build system

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can someone from the build team please review the patch, thanks. -- nosy: +BreamoreBoy stage: - patch review type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___

[issue9446] urllib2 tests fail when offline

2010-08-01 Thread Guandalino
New submission from Guandalino guandal...@gmail.com: urllib2 tests fail when internet connection is not available. $ cd ~/sandbox/2.7/lib/python2.7/test $ python test_urllib2.py other output, [cut] == ERROR: test_file

[issue9446] urllib2 tests fail when offline

2010-08-01 Thread Guandalino
Changes by Guandalino guandal...@gmail.com: Added file: http://bugs.python.org/file18307/online.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9446 ___

[issue6664] readlines should understand Line Separator and Paragraph Separator characters

2010-08-01 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +benjamin.peterson, pitrou stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6664

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Yes, this looks fine, assuming a test is also added. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9444 ___

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-08-01 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in r83400, r83401, r83402. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9416

[issue9399] Provide a 'print' action for argparse

2010-08-01 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: The patch looks basically right. A few minor issues: * message=None, should probably be message,, that is, message should not be allowed to default to None - I can't see any use case for this action without a message. I believe this

[issue6664] readlines should understand Line Separator and Paragraph Separator characters

2010-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo, lemburg versions: -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6664 ___

[issue6691] Support for nested classes and function for pyclbr

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Patch tested ok against 2.7 on windows vista. Patch seems clean to me, can we get this committed please. -- nosy: +BreamoreBoy stage: - patch review versions: +Python 3.1 ___ Python tracker

[issue870479] Scripts need platform-dependent handling

2010-08-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sorry, I was unclear. What I meant is: Do you (Tarek and platform experts) agree that scripts (in setup(scripts=...), not generated) need to have platform-specific EOLs? -- ___ Python tracker

[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Universal newline mode helps when reading from stdin, but what I had in mind was actually Enter in cmd.exe putting CRLF. Re-reading the original report, I see this is not a concern, since the bug is about cmd used with a file only, not

[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If “l” sorts after “a”, you’ve misplaced Catherine in ACKS. Funny how often this happens :) (Cheers for the Teach Me session by the way Catherine!) -- ___ Python tracker rep...@bugs.python.org

[issue6696] Profile objects should be documented

2010-08-01 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: georg.brandl - d...@python nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6696 ___

[issue6706] asyncore's accept() is broken

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Giampaolo it looks as if you meant to attach a patch but didn't! :) If you do attach one could you also supply a modified unit test file with it, thanks. -- nosy: +BreamoreBoy stage: - needs patch type: - behavior versions:

[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +taleinat, tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6858 ___ ___

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: I haven't read the existing tests, but I am not seeing the behavior described by Ted in msg112258. If I specify the prefix_chars as '+/' and define a long option '//myopt' then using ++myopt on the command line gives an error that the

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: Oh, I should point out that last comment is describing what I see when using the unpatched 2.7 version of the module. -- ___ Python tracker rep...@bugs.python.org

[issue6980] fix ctypes build failure on armel-linux-gnueabi with -mfloat-abi=softfp

2010-08-01 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Matthias did you actually check the referenced patch in, sorry I don't know where to look? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6980

[issue9447] Python 3.1.2 test suite segfaults on the alpha architecture

2010-08-01 Thread Tobias Klausmann
New submission from Tobias Klausmann klaus...@gentoo.org: During testing for inclusion in the Gentoo distribution, we ran into a test failure (actually a SEGV) when running the test suite on the alpha architecture. Log of test failure and backtrace in gdb is here:

[issue7952] fileobject.c can switch between fread and fwrite without an intervening flush or seek, invoking undefined behaviour

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The 2.x file object mostly mirrors abilities of the standard C buffered IO functions (including, for example, special behaviour of text files under Windows). Therefore, Python code should call flush() manually if needed. It should be noted that

[issue9447] Python 3.1.2 test suite segfaults on the alpha architecture

2010-08-01 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - theller components: +ctypes nosy: +theller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9447 ___

[issue870479] Scripts need platform-dependent handling

2010-08-01 Thread Paul Moore
Paul Moore p.f.mo...@gmail.com added the comment: Thanks for clarifying. No, I don't agree. Barring fancy if os.platform games in setup.py, scripts will be platform-independent Python code. From Distributing Python Modules section 2.5, Scripts are files containing Python source code, and as

[issue9332] Document requirements for os.symlink usage on Windows

2010-08-01 Thread Ned Batchelder
Ned Batchelder ned...@users.sourceforge.net added the comment: This breaks virtualenv3 on Python 3.2, which simply test for the existence of os.symlink, which then fails for lack of privileges. Perhaps an os.can_symlink() method, returning a boolean? It can request privileges if you like,

[issue9332] Document requirements for os.symlink usage on Windows

2010-08-01 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Ned, you bring up a good point. Please see #9333 for a discussion on the new os.symlink and privileges. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9332

[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Interesting idea. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6858 ___ ___

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Theodore Turocy
Theodore Turocy drarbi...@gmail.com added the comment: I was less than clear in what I wrote last night, Doug. What I mean is that the idiom ::foo for a long argument, instead of the more standard-looking --foo, appears in the test suite. This suggests to me that the intended behavior for

[issue8397] BZ2File doesn't protect against mixed iterator and read usage

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well I'm not the bz2 maintainer but I could take a look. The BZ2File implementation is generally a straight ripoff of the 2.x file object, with (de)compression calls added where necessary. I guess the ripoff was a one-shot effort and subsequent

[issue9447] Python 3.1.2 test suite segfaults on the alpha architecture

2010-08-01 Thread Tobias Klausmann
Tobias Klausmann klaus...@gentoo.org added the comment: Nevermind, we messed this up ourselves. Sorry for the noise. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9447

[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2010-08-01 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: This is because when an subprocess.CalledProcessError is raised, the CalledProcessError instance is picked through a socket and then read by parent process, but in fact CalledProcessError instances cannot be picked correctly. Because

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: I was actually surprised that prefix_chars didn't allow *any* of those characters to indicate an option. For example, a program on Unix might use options that start with '-', but also support '/' as a prefix under Windows. If that's

[issue8312] Add post/pre hooks for distutils commands

2010-08-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Should hooks be allowed for any command or just build and install? -- keywords: +gsoc resolution: - accepted stage: - needs patch type: - feature request versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2

[issue6439] Demo/embed/demo.c use of PySys_SetArgv() is invalid

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r83404. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6439

[issue6520] urllib.urlopen does not have timeout parameter where as urllib2.urlopen has

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Not an issue anymore for Python 3. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6520

[issue4943] trace.CoverageResults.write_results can't write results file for modules loaded by __path__ manipulation

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Should be fixed in r83405. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4943

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-01 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm attaching this patch for discussion: Here's what I had in mind for addressing the NotImplementedError when calling os.symlink on Windows XP. During the posixmodule initialization, if the system does not have the CreateSymbolicLink API

[issue8046] mmap.mmap as a context manager

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, adapted to current trunk and applied in r83406. -- nosy: +georg.brandl resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8046

[issue8602] documentation of bz2 module mildly erroneous

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Now present in all maintained branches. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8602

[issue6858] This is a python file, apply syntax highlighting

2010-08-01 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: I'm +1 on adding such an option to the menu, if only to be able to highlight files including only Python code which don't happen to have the .py extension. If support for files including not only Python code is important to anyone, some examples

[issue2155] optparse.OptionGroup with_statement context handling

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I agree with Sebastian that this is not a good use for a context manager. -- nosy: +georg.brandl resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue3757] threading.local doesn't support cyclic garbage collecting

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Do you want to fix that? -- assignee: - pitrou nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3757 ___

[issue5319] I/O error during one-liner fails to return OS error status

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Python 2.6, from #5320: $ python2.6 -c 'print 1, 2, 3' /dev/full || echo error status close failed in file object destructor: Error in sys.excepthook: Original exception was: $ Python 3.1 doesn't output anything and also doesn't set an error

[issue5320] I/O error during one-liner gives bad diagnostic (and fails to return OS error status)

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I think this can be merged with #5319. -- nosy: +georg.brandl resolution: - duplicate status: open - closed superseder: - I/O error during one-liner fails to return OS error status ___ Python tracker

[issue3757] threading.local doesn't support cyclic garbage collecting

2010-08-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: pitrou - keywords: +easy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3757

[issue5258] addpackage in site.py fails hard on badly formed .pth files

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Adding a patch that catches exceptions in a single addpackage() call and prints them. I'd like to have more input though if this is a Good Thing(tm). -- assignee: - r.david.murray keywords: +patch nosy: +georg.brandl, r.david.murray

[issue5551] os.path.ismount takes a cross-device symlink for a mountpoint

2010-08-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, should be fixed in r83408. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5551

[issue9441] increase logging handlers test coverage

2010-08-01 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I noticed that you use timedelta.total_seconds in secs which returns a float while no test covers fractional number of seconds. While not a problem with your choice of tests, equality comparison of floating point values

[issue8078] add more baud constants to termios

2010-08-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8078 ___ ___

[issue8105] mmap crash on Windows with out of range file descriptor

2010-08-01 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Fixed in r83407 (py3k), r83409 (release31-maint), and r83410 (release27-maint). -- assignee: - brian.curtin components: +Extension Modules -Library (Lib) resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue8994] pydoc does not support non-ascii docstrings

2010-08-01 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8994 ___

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: regrest -L detects a memory leak in test_io, on OS X 10.6.4. newton:py3k dickinsm$ ./python.exe Lib/test/regrtest.py -L test_io test_io Testing large file ops skipped on darwin. It requires 2147483648 bytes and a long time. Use

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: test_constructor (test.test_io.CBufferedReaderTest) appears to be one of the offending tests. This is probably not an OS X specific problem. Removing 'Mac' from components. -- assignee: ronaldoussoren - components: -Macintosh

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Minimal example to reproduce: the script below exhausts my system memory in a minute or two. import io rawio = io.BytesIO(babc) bufio = io.BufferedReader(rawio) while True: bufio.__init__(rawio) --

[issue9448] test_io leaks memory

2010-08-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you try the following patch: diff -r 962e1a7a40fd Modules/_io/bufferedio.c --- a/Modules/_io/bufferedio.c Sun Aug 01 17:30:56 2010 +0200 +++ b/Modules/_io/bufferedio.c Sun Aug 01 18:39:39 2010 +0200 @@ -636,6 +636,8 @@

[issue9449] glibc detected *** /usr/bin/python: corrupted double-linked list

2010-08-01 Thread Nikolaus Rath
New submission from Nikolaus Rath nikol...@rath.org: $ python --version Python 2.6.5 $ pylint --version pylint 0.21.1, astng 0.20.1, common 0.50.3 Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] $ pylint pylint_crasher.py * Module pylint_crasher R0903: 62:Config:

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-01 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: It is intentional that you have to specify both /foo and +foo if you want them to be aliases for the same argument. A common use case for prefix_chars is to define +x and -x options, which usually mean different things. As far as the

[issue9448] test_io leaks memory

2010-08-01 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks! That fixes all the test_io leaks I was seeing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9448 ___

  1   2   >