[issue9314] inconsistent result when concatenating list with iterators

2010-07-21 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Alexander: When a is mutable, a += b updates it in-place, so there is no ambiguity: the type of a cannot change. When you do a + b, there is no reason to treat a as more deserving than b when selecting the type of the result Does this means

[issue9319] segfault when searching modules with help()

2010-07-21 Thread Ron Adam
New submission from Ron Adam ron_a...@users.sourceforge.net: help('modules spam') causes segfault. When pydoc tries goes though the files it does the following in the ModuleScanner class. (minimal example) for importer, modname, ispkg in pkgutil.walk_packages(): ... if modname ==

[issue5817] Right-click behavior from Windows Explorer

2010-07-21 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: That makes sense. I think this issue can be closed. For future reference, the original feature request has a benefit beyond not having a shell window open for every editor window. Opening different files in the same instance of IDLE allows

[issue5817] Right-click behavior from Windows Explorer

2010-07-21 Thread Michael Kopinsky
Changes by Michael Kopinsky mkopin...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5817 ___ ___

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception.

2010-07-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: On windows, I can only import nt, not posix, ce, os2. import posix Traceback (most recent call last): File pyshell#0, line 1, in module import posix ImportError: No module named posix import nt dir(nt) ['F_OK', 'O_APPEND', 'O_BINARY',

[issue9272] CGIHTTPServer poisons os.environ

2010-07-21 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: The test is hard to write. The server is launched in a separate thread. Any ideas how to check os.environ there? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9272

[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Seems like os.environ is shared between multiple threads. This should be documented at least in threading chapters. -- assignee: d...@python components: Documentation messages: 111013 nosy: d...@python, techtonik priority:

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception.

2010-07-21 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: On Wed, Jul 21, 2010 at 3:32 AM, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy tjre...@udel.edu added the comment: Discussion has continued on pydev thread mkdir -p in python. Some suggested a new function. Others

[issue5673] Add timeout option to subprocess.Popen

2010-07-21 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: When I ported the patch I tested on trunk + Windows to py3k, I messed that stuff up. I also had to fix a bunch of str vs. bytes issues this time around. On Windows, it uses TextIOWrapper to do the encoding, and on POSIX it uses os.write, so I

[issue9272] CGIHTTPServer poisons os.environ

2010-07-21 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Ok. os.environ seems to be shared between threads. Here is updated patch. -- Added file: http://bugs.python.org/file18102/9272.CGIHTTPServer-poisons-os.environ.patch ___ Python tracker

[issue5804] Add an 'offset' argument to zlib.decompress

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The function returns different kind of data depending on the value of the last parameter. I don't like it at all. Why is decompressobj not enough? -- nosy: +amaury.forgeotdarc ___ Python

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress File exists exception.

2010-07-21 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: I found in Modules/posixmodule.c that: #if (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__)) !defined(__QNX__) #define INITFUNC PyInit_nt #define MODNAME nt #elif defined(PYOS_OS2) #define INITFUNC PyInit_os2 #define MODNAME

[issue9272] CGIHTTPServer poisons os.environ

2010-07-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: The patch and the tests look good. I could verify it too. I shall commit it. -- assignee: - orsenthil resolution: - accepted ___ Python tracker rep...@bugs.python.org

[issue9321] CGIHTTPServer cleanup htbin

2010-07-21 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: CGIHTTPServer looks for CGI files in '/htbin' directory. This never was a standard (in comparison to `cgi-bin`) and can be safely removed at least in Py3k -- components: Library (Lib) messages: 111020 nosy: techtonik priority:

[issue9320] os.environ is global for threads

2010-07-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I'm not sure where you'd put this. The defining characteristic of threads is that _all_ objects are shared among them. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org

[issue9320] os.environ is global for threads

2010-07-21 Thread Konstantin Zemlyak
Konstantin Zemlyak z...@zartsoft.ru added the comment: Environment variables have always been process-wide. It doesn't deserve any special mention in threads documentation. -- nosy: +zart ___ Python tracker rep...@bugs.python.org

[issue9007] CGIHTTPServer supports only Python CGI scripts

2010-07-21 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: It was actual only for old Mac versions without popen2/popen3 calls. popenX calls were replaced with subprocess which should be available on MacOS. -- status: open - closed ___ Python tracker

[issue1635741] Interpreter seems to leak references after finalization

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Yes, some objects are not cleaned in finalization. This is not a problem in usual cases though, when the interpreter is started only once. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-21 Thread Ask Solem
Ask Solem a...@opera.com added the comment: At first glance, looks like there are a number of sites where you don't change the blocking calls to non-blocking calls (e.g. get()). Almost all of the get()s have the potential to be called when there is no possibility for them to terminate. I

[issue1253] IDLE - Percolator overhaul

2010-07-21 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: Note that at one point discussion of this issue was continued on the tracker page for issue1252. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1253

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Alexander, I propose an alternative patch (attached issue9317.2.diff). It uses: with open(progname) as fp: code = compile(fp.read(), progname, 'exec') t.run(code) Since the `run` method of Trace

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-21 Thread Ask Solem
Ask Solem a...@opera.com added the comment: Btw, the current problem with termination3.patch seems to be that the MainProcess somehow appears in self._pool. I have no idea how it gets there. Maybe some unrelated issue that appears when forking that late in the tests. --

[issue6698] IDLE no longer opens only an edit window when configured to do so

2010-07-21 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: After looking through the code and experimenting a bit, I propose the following: The editor-on-startup config option should be removed. Running IDLE without arguments should open a shell. If IDLE is asked to open any files for editing, it should

[issue9319] segfault when searching modules with help()

2010-07-21 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Looks like tok-filename isn't set in PyTokenizer_FromFile: Index: Parser/tokenizer.c === --- Parser/tokenizer.c (revision 82984) +++ Parser/tokenizer.c (working copy) @@

[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: On Wed, Jul 21, 2010 at 11:43 AM, Eric Smith rep...@bugs.python.org wrote: I'm not sure where you'd put this. The defining characteristic of threads is that _all_ objects are shared among them. Where is this defining characteristic of

[issue8258] Multiple Python Interpreter Memory Leak

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It's actually the same issue as issue1635741 -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - Interpreter seems to leak references after finalization

[issue9320] os.environ is global for threads

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm not sure where you'd put this. The defining characteristic of threads is that _all_ objects are shared among them. Where is this defining characteristic of threads is described? in http://docs.python.org/library/thread.html

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The patch actually does 2 things: - it prevents the usage of '=' in putenv, which is is good because the putenv() system call handles this badly. - it will raise an error when unsetting a nonexistent variable. This is a change in

[issue9320] os.environ is global for threads

2010-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Closing in agreement with Eric/Amaury. -- nosy: +georg.brandl resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9320

[issue5689] please support lzma compression as an extension and in the tarfile module

2010-07-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - needs patch versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5689 ___

[issue5411] add xz compression support to distutils

2010-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: distutils2 uses tarfile now instead of external programs. Adding dependency on another bug. -- dependencies: +please support lzma compression as an extension and in the tarfile module stage: unit test needed - needs patch versions:

[issue4714] print opcode stats at the end of pybench runs

2010-07-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- status: open - languishing versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4714 ___

[issue1492240] Socket-object convenience function: getpeercred().

2010-07-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Heiko, are you still interested given msg50314? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1492240

[issue6331] Add unicode script info to the unicode database

2010-07-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could someone with unicode knowledge take this review on, given that comments have already been made and responded to? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 ___ Python

[issue1677872] Efficient reverse line iterator

2010-07-21 Thread Mark Russell
Mark Russell mark_t_russ...@users.sourceforge.net added the comment: I'll do a C version of the patch (hopefully in the next week or so). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677872

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-21 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: Committed to py3k as r83016, release31-maint as r83017, and release27-maint as r83018. Thanks for your help, everyone. -- resolution: - fixed status: open - closed ___ Python tracker

[issue809163] Can't add files with spaces

2010-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report Antonio. I’m sorry noone replied before; bugs are triaged by volunteers and distutils had no dedicated maintainer in the previous years. This needs a test to make sure the bug still exists, and if confirmed a patch to fix

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Eli, Your new patch makes perfect sense, but can you check of regular python invocation uses runpy these days. If it does, it may make sense to include it in trace at least optionally. Also, does this fix the original

[issue9318] Py3k compilation on old MSVC

2010-07-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +brian.curtin, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9318 ___ ___

[issue9319] segfault when searching modules with help()

2010-07-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9319 ___ ___

[issue828450] sdist generates bad MANIFEST on Windows

2010-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report, and sorry noone replied earlier. Could you perhaps make a diff against test_sdist.py to confirm this bug? -- components: +Distutils2 nosy: +merwok stage: - unit test needed ___

[issue1052827] filelist.findall should not fail on dangling symlinks

2010-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. The steps you described need to be turned into a unit test. Can someone provide a patch against py3k’s test_sdist.py? -- assignee: - tarek components: +Distutils2 nosy: +merwok stage: - unit test needed title:

[issue8286] distutils: path '[...]' cannot end with '/'

2010-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Could you describe the steps leading to this message, preferably in the form of a unit test? It looks like a bug in your MANIFEST.in to me, but we need a test to be sure. At worst it’s a bug in distutils, at best it needs a better error

[issue9321] CGIHTTPServer cleanup htbin

2010-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: If it were to be removed it would have to go through the deprecation process. Does it cause any problems? If not I'd say we should just leave it. -- nosy: +r.david.murray type: - feature request versions: -Python 2.6, Python

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

2010-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sorry for the lag. There are a lot of bugs and Tarek is very busy. The steps you describe need to be turned in a new test in py3k’s test_sdist. -- nosy: +merwok ___ Python tracker

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Your new patch makes perfect sense, but can you check of regular python invocation uses runpy these days. If it does, it may make sense to include it in trace at least optionally. I'm not sure I understand what you mean by this. Could you

[issue9319] segfault when searching modules with help()

2010-07-21 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: To be a little clearer: Since tok-filename is used as a flag in other places, I'm not sure where to set it without breaking other things. This is the location of the segfault and the following would fix it (using a placeholder for the

[issue6231] ElementInclude may drop text

2010-07-21 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: The bug is still present in py3k trunk, the py3k patch still applies, and, as the bug has celebrated it's first birthday, all evidence suggests no-one else cares. -- status: open - languishing versions: +Python 3.2

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Jul 21, 2010, at 9:22 AM, Eli Bendersky rep...@bugs.python.org wrote: Eli Bendersky eli...@gmail.com added the comment: Your new patch makes perfect sense, but can you check of regular python invocation uses

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Sorry, typing on the phone.  s/of/if/ in my message above. What I mean is that as far as I know, when you run a script from command line, python loads it using functions in runpy.  Arguably this means that these functions should show up in

[issue9057] Distutils2 needs a home page

2010-07-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: tarek - merwok resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9057 ___

[issue5135] Expose simplegeneric function in functools module

2010-07-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Changes as Guido has stated that he wants a PEP. -- nosy: +BreamoreBoy stage: patch review - versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue1343] XMLGenerator: nice empty/ elements

2010-07-21 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Updated version of the patch against current py3k svn (r83022) attached. This is a combined patch, including the previous xml.sax.saxutil changes (including the 'short_empty_elements' keyword) and the new tests. -- nosy: +Neil

[issue9322] bdist_rpm ext_modules absolute source path fail

2010-07-21 Thread Dan OD
New submission from Dan OD dj...@cam.ac.uk: Setting absolute paths for C source code files in setup.py breaks bdist_rpm ext_modules=[Extension('foo', [os.path.abspath('src/foo.c')])], results in bdist_rpm not including src/foo.c in the RPM, however ext_modules=[Extension('foo',

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Wed, Jul 21, 2010 at 9:45 AM, Eli Bendersky rep...@bugs.python.org wrote: .. As far as I understand, when you run:    py3d -m trace -C pickle-trace.d -c -m test_pickle.py The first -m flag applies to the trace module.

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Eli, At this point, I think it will be best to focus on unittests. I am adding #9315 as a dependency here and will add a comment there. I think once we have good unittest coverage the bug will become obvious.

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Also, when you get a chance, please separate the __main__ coverage bug into a separate issue and bring it up on python-dev. We should get profile guys involved and I don't want them to be distracted by trace specific

[issue9322] bdist_rpm ext_modules absolute source path fail

2010-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Examples in the documentation only use relative paths, so in my opinion the bug here is the silent failure. Do absolute paths work for sdist or other bdists? -- nosy: +merwok ___ Python tracker

[issue5758] fileinput.hook_compressed returning bytes from gz file

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: gzip.open() only implements the rb mode, and returns bytes. fileinput could certainly wrap it with a io.TextIOWrapper. Then the encoding issue arises. fileinput.FileInput should grow an encoding parameter instead of always relying on

[issue9315] The trace module lacks unit tests

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am adding 2.7. It is ok to add tests to the stable series release AFAIK. Moreover, I believe the unittests should be written for 2.7 first. Since 3.x port of trace was done without the benefit of a test suite, it is

[issue9322] bdist_rpm ext_modules absolute source path fail

2010-07-21 Thread Dan OD
Dan OD dj...@cam.ac.uk added the comment: I'm still ironing out the crinkles, but this has been working for sdist build (/install) bdist_dumb unfortunately I don't have access to a Windows machine to test the other two. A non-silent warning/error would keep me happy. --

[issue9323] trace.py bug with the main file being traced

2010-07-21 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: [This bug was discovered by Alexander Belopolsky, during the work on Issue 9317] Bug report ** The attached traceme.py file demonstrates the following problem: With python 2.7: $ python2 -m trace -c -s traceme.py lines cov%

[issue9323] trace.py bug with the main file being traced

2010-07-21 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- components: +Library (Lib) keywords: +patch Added file: http://bugs.python.org/file18106/issue9323.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9323

[issue6751] Default return value in ConfigParser

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The idea is fine (dict.get also has a 'default' parameter) but this patch is very incomplete: - the enhancement should be applied to the three Parsers - it needs unit tests. -- nosy: +amaury.forgeotdarc

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: 1. I've created Issue 9323 to address the bug with __main__, with the proposed patch. 2. Agreed about the unit tests (Issue 9315). I'll try to get the basic testing framework for trace.py created over the weekend. --

[issue9314] inconsistent result when concatenating list with iterators

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Wed, Jul 21, 2010 at 2:09 AM, Ray.Allen rep...@bugs.python.org wrote: .. Does this means a += b is not the same as a = a + b? For immutable a, the two are practically the same, for mutable, they are necessarily

[issue1343] XMLGenerator: nice empty/ elements

2010-07-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The patch looks clean to me, applied small edits to change it from git to svn. Changed test_sax got 7 errors on run. Changed saxutils 53 tests all passed. Can this please be committed. -- stage: patch review - commit review

[issue5120] Disabling test_ttk_guionly on mac

2010-07-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this still a problem on OS X? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5120 ___

[issue5673] Add timeout option to subprocess.Popen

2010-07-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5673 ___ ___ Python-bugs-list

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-07-21 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8912 ___ ___ Python-bugs-list

[issue6698] IDLE no longer opens only an edit window when configured to do so

2010-07-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Keep in mind that, on OS X, there are two ways to invoke IDLE: one, by command line in a terminal window, and, two, by launching IDLE.app (explicitly, say by double-clicking on the app icon, or implictily, say by double-clicking on a .py file where

[issue9323] trace.py bug with the main file being traced

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: [Copying msg111059 from issue9317] On Wed, Jul 21, 2010 at 9:45 AM, Eli Bendersky rep...@bugs.python.org wrote: .. As far as I understand, when you run: py3d -m trace -C pickle-trace.d -c -m test_pickle.py The

[issue6216] Raise Unicode KEEPALIVE_SIZE_LIMIT from 9 to 32?

2010-07-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: I'm interested in getting this into 3.2. Thanks for bringing the issue back on my radar. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6216

[issue4510] ValueError for list.remove() not very helpful

2010-07-21 Thread Tim Lesher
Tim Lesher tles...@gmail.com added the comment: It looks as if this has been addressed for list.index (aka issue #7252), in r76058. The same fix could be applied for list.remove. -- ___ Python tracker rep...@bugs.python.org

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: pytime.h looks like it got pasted into the file twice. Other than that, it looks good to me and the tests pass on OS X here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9079

[issue9012] Separate compilation of time and datetime modules

2010-07-21 Thread Tim Lesher
Tim Lesher tles...@gmail.com added the comment: Added patch that replicates the change in r82035 for Visual Studio 2005 (VC8) builds. -- nosy: +tlesher Added file: http://bugs.python.org/file18107/add_time_to_vc8_build.diff ___ Python tracker

[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The patch looks correct, it's now a matter of unit tests. for example, I'd test the case where the length is around 1000.. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: With the latest patch on Windows Vista against 2.7 I got 12 EOFError errors instead of IOError. -- nosy: +BreamoreBoy versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue8286] distutils: path '[...]' cannot end with '/' -- need better error message

2010-07-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Repro steps on a Windows machine: 1. pip install --no-install django-navbar==0.2 Yes, it seems like a bug in the MANIFEST file of the django-navbar project (which is not mine) that seems to have been fixed in the subsequent 0.3

[issue6975] symlinks incorrectly resolved on Linux

2010-07-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: swarecki or markon, are either of you interested in following up this issue? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2010-07-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6689 ___

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: issue8524 fixed a similar issue (the timeout of the initial socket was not passed to the ssl socket). Can someone test again with a recent py3k build? -- nosy: +amaury.forgeotdarc resolution: - out of date superseder: - SSL

[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Sorry for the noise, forgot to rebuild the code. The tests run fine 543 tests ok, except I note that all the output is repeated 6 times, I don't understand this at all. -- ___ Python tracker

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: issue9079a.diff doesn't compile on Windows - timeval isn't defined. You'd have to include Winsock2.h [0]. Adding something like the following within the HAVE_FTIME block would work... #ifdef MS_WINDOWS #include Winsock2.h #endif I don't currently

[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Will polish the patch and commit. -- assignee: - pitrou resolution: - accepted stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5395

[issue1441530] socket read() can cause MemoryError in Windows

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I fail to see *why* the patch fixes the issue. You still have to allocate the big string when joining the parts. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed the new test in py3k (r83030) and 3.1 (r83033), and the full patch in 2.7 (r83031) and 2.6 (r83032). Thank you! -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed versions:

[issue1441530] socket read() can cause MemoryError in Windows

2010-07-21 Thread Márcio Faustino
Márcio Faustino marciombfaust...@gmail.com added the comment: Speaking for myself, I'm not using the attached patch, I'm using the simple fix I included in my previous reply which works perfectly to avoid getting a MemoryError exception thrown. --

[issue5395] array.fromfile not checking I/O errors

2010-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Regarding: The tests run fine 543 tests ok, except I note that all the output is repeated 6 times, I don't understand this at all. This is normal, all array tests are run once per array type, and 6 different array types are being tested.

[issue8343] improve re parse error messages for named groups

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: A small but useful addition, patch looks OK to me -- nosy: +amaury.forgeotdarc resolution: - accepted versions: +Python 3.2 -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2010-07-21 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This is a request for changing the current behavior on Unix, and I doubt this is going to happen, since it could break existing code. On a side note, there are already two ways get the desired output: Popen(gcc --version, shell=True)

[issue8035] urllib.request.urlretrieve hangs

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This URL does not seem to return a 302 code. Is there another example? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8035

[issue9323] trace.py bug with the main file being traced

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed with a minor change. (There is no need to keep the source file open during the trace run.) See r83035 (r83037 in release31-maint.) I will open a separate issue to discuss a possible RFE related to msg111074.

[issue7980] time.strptime not thread safe

2010-07-21 Thread David Fraser
Changes by David Fraser dav...@sjsoft.com: -- nosy: +davidfraser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7980 ___ ___ Python-bugs-list

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-21 Thread David Fraser
Changes by David Fraser dav...@sjsoft.com: -- nosy: +davidfraser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7989 ___ ___ Python-bugs-list

[issue9314] inconsistent result when concatenating list with iterators

2010-07-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9314 ___

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Interesting. As far as I can tell, struct timeval should not be used unless HAVE_GETTIMEOFDAY is defined: +#ifdef HAVE_GETTIMEOFDAY +typedef struct timeval _PyTime_timeval; +#else +typedef struct { +time_t

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: I think you used 'struct timeval *' in the function definition instead of '_PyTimeVal *'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9079

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Is anyone interested in giving this a final review? I would like to check this in unless someone objects or needs time to review. -- ___ Python tracker rep...@bugs.python.org

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Here are the errors I get: Error 104 error C2037: left of 'tv_sec' specifies undefined struct/union 'timeval'c:\python-dev\py3k\Python\pytime.c 46 pythoncore Error 105 error C2037: left of 'tv_usec' specifies undefined

  1   2   >