[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik
New submission from anatoly techtonik : 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: normal severity: normal

[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 added the comment: On Wed, Jul 21, 2010 at 3:32 AM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > Discussion has continued on pydev thread "mkdir -p in python". Some suggested > a new function. Others questioned the details of the new behavior. Guido > pref

[issue5673] Add timeout option to subprocess.Popen

2010-07-21 Thread Reid Kleckner
Reid Kleckner 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 have to do the

[issue9272] CGIHTTPServer poisons os.environ

2010-07-21 Thread anatoly techtonik
anatoly techtonik 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 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 tracker

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

2010-07-21 Thread Ray.Allen
Ray.Allen 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 "os2" #else #

[issue9272] CGIHTTPServer poisons os.environ

2010-07-21 Thread Senthil Kumaran
Senthil Kumaran 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 ___

[issue9321] CGIHTTPServer cleanup htbin

2010-07-21 Thread anatoly techtonik
New submission from anatoly techtonik : 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: normal severity: nor

[issue9320] os.environ is global for threads

2010-07-21 Thread Eric Smith
Eric Smith 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

[issue9320] os.environ is global for threads

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

[issue9007] CGIHTTPServer supports only Python CGI scripts

2010-07-21 Thread anatoly techtonik
anatoly techtonik 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 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 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 might re

[issue1253] IDLE - Percolator overhaul

2010-07-21 Thread Tal Einat
Tal Einat added the comment: Note that at one point discussion of this issue was continued on the tracker page for issue1252. -- ___ Python tracker ___ _

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky
Eli Bendersky 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 already accepts a cod

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

2010-07-21 Thread Ask Solem
Ask Solem 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. --

[issue1252] IDLE - patch Delegator to support callables

2010-07-21 Thread Tal Einat
Tal Einat added the comment: I'm sorry I let this die out. This should stay closed. For the time being I have given up on developing the ShellLogger extension (for the time being) so this change is not needed as far as I am concerned. -- ___ Python

[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-07-21 Thread Brett Cannon
Brett Cannon added the comment: r83012 for 3.1 r83013 for 2.7 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list ma

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

2010-07-21 Thread Tal Einat
Tal Einat 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 open just editor

[issue9319] segfault when searching modules with help()

2010-07-21 Thread Stefan Krah
Stefan Krah 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) @@ -818,6 +818,7 @@ tok-

[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik
anatoly techtonik added the comment: On Wed, Jul 21, 2010 at 11:43 AM, Eric Smith 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 threads is described? -- ___

[issue8258] Multiple Python Interpreter Memory Leak

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 ___ Python trac

[issue9320] os.environ is global for threads

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 """...multiple thr

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

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 behaviour which is not n

[issue9320] os.environ is global for threads

2010-07-21 Thread Georg Brandl
Georg Brandl added the comment: Closing in agreement with Eric/Amaury. -- nosy: +georg.brandl resolution: -> works for me status: open -> closed ___ Python tracker ___ _

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

2010-07-21 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> needs patch versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs

[issue5411] add xz compression support to distutils

2010-07-21 Thread Éric Araujo
Éric Araujo 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: +Python 2.5, Python

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

2010-07-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- status: open -> languishing versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list

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

2010-07-21 Thread Mark Lawrence
Mark Lawrence added the comment: Heiko, are you still interested given msg50314? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___

[issue6331] Add unicode script info to the unicode database

2010-07-21 Thread Mark Lawrence
Mark Lawrence 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 tracker

[issue1677872] Efficient reverse line iterator

2010-07-21 Thread Mark Russell
Mark Russell added the comment: I'll do a C version of the patch (hopefully in the next week or so). -- ___ Python tracker ___ ___

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

2010-07-21 Thread Doug Hellmann
Doug Hellmann 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 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 it. I don’t have t

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky 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 problem? -- nosy: +Alex

[issue9318] Py3k compilation on old MSVC

2010-07-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +brian.curtin, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9319] segfault when searching modules with help()

2010-07-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue828450] sdist generates bad MANIFEST on Windows

2010-07-21 Thread Éric Araujo
Éric Araujo 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 ___ Python tracker

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

2010-07-21 Thread Éric Araujo
Éric Araujo 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: filelist.findall s

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

2010-07-21 Thread Éric Araujo
Éric Araujo 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 message. -- nosy

[issue9321] CGIHTTPServer cleanup htbin

2010-07-21 Thread R. David Murray
R. David Murray 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 2.7, Python 3.1, Pyth

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

2010-07-21 Thread Éric Araujo
Éric Araujo 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 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 please cl

[issue9319] segfault when searching modules with help()

2010-07-21 Thread Stefan Krah
Stefan Krah 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 name): Index: Parser/toke

[issue6231] ElementInclude may drop text

2010-07-21 Thread Neil Muller
Neil Muller 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 added the comment: On Jul 21, 2010, at 9:22 AM, Eli Bendersky wrote: > > Eli Bendersky 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

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky
Eli Bendersky 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 coverage. >

[issue9057] Distutils2 needs a home page

2010-07-21 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> merwok resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5135] Expose simplegeneric function in functools module

2010-07-21 Thread Mark Lawrence
Mark Lawrence 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 _

[issue1343] XMLGenerator: nice elements

2010-07-21 Thread Neil Muller
Neil Muller 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 Muller Added file: http://b

[issue9322] bdist_rpm ext_modules absolute source path fail

2010-07-21 Thread Dan OD
New submission from Dan OD : 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', ['src/foo.c'])], works just f

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Jul 21, 2010 at 9:45 AM, Eli Bendersky 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. Python uses > runpy.run_module to load it, and

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky 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. -- dependencies: +The trace modul

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky 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 issues. -- ___

[issue9322] bdist_rpm ext_modules absolute source path fail

2010-07-21 Thread Éric Araujo
Éric Araujo 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 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 the default enco

[issue9315] The trace module lacks unit tests

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky 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 likely that there are many diffe

[issue9322] bdist_rpm ext_modules absolute source path fail

2010-07-21 Thread Dan OD
Dan OD 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 : [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% module (path) 1

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

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

[issue6751] Default return value in ConfigParser

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 ___ Py

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-21 Thread Eli Bendersky
Eli Bendersky 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 added the comment: On Wed, Jul 21, 2010 at 2:09 AM, Ray.Allen 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 different. This is explained in __iadd__ documentation:

[issue1343] XMLGenerator: nice elements

2010-07-21 Thread Mark Lawrence
Mark Lawrence 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 added the comment: Is this still a problem on OS X? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list ma

[issue5673] Add timeout option to subprocess.Popen

2010-07-21 Thread Brian Curtin
Brian Curtin added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-07-21 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2010-07-21 Thread Ned Deily
Ned Deily 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 IDLE.app is the

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

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: [Copying msg111059 from issue9317] On Wed, Jul 21, 2010 at 9:45 AM, Eli Bendersky 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. Python uses

[issue6216] Raise Unicode KEEPALIVE_SIZE_LIMIT from 9 to 32?

2010-07-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I'm interested in getting this into 3.2. Thanks for bringing the issue back on my radar. -- ___ Python tracker ___ _

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

2010-07-21 Thread Tim Lesher
Tim Lesher 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 _

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Reid Kleckner
Reid Kleckner 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

[issue9012] Separate compilation of time and datetime modules

2010-07-21 Thread Tim Lesher
Tim Lesher 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 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 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 _

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

2010-07-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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 release. > at best it need

[issue6975] symlinks incorrectly resolved on Linux

2010-07-21 Thread Mark Lawrence
Mark Lawrence 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 : -- stage: -> patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___

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

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 sockets do not ret

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

2010-07-21 Thread Mark Lawrence
Mark Lawrence 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 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 #endif I don't currently have time to dig deeper

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

2010-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Will polish the patch and commit. -- assignee: -> pitrou resolution: -> accepted stage: patch review -> commit review ___ Python tracker ___ _

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

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 _

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

2010-07-21 Thread Antoine Pitrou
Antoine Pitrou 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: +Python 2.6 -Pyt

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

2010-07-21 Thread Márcio Faustino
Márcio Faustino 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. -- ___ Python tracker

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

2010-07-21 Thread Antoine Pitrou
Antoine Pitrou 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 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 _

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

2010-07-21 Thread Stefan Krah
Stefan Krah 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) gcc (GCC) 4.1.3 200806

[issue8035] urllib.request.urlretrieve hangs

2010-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This URL does not seem to return a 302 code. Is there another example? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

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

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky 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. -- resolution: -> fixed

[issue7980] time.strptime not thread safe

2010-07-21 Thread David Fraser
Changes by David Fraser : -- nosy: +davidfraser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2010-07-21 Thread David Fraser
Changes by David Fraser : -- nosy: +davidfraser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9314] inconsistent result when concatenating list with iterators

2010-07-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky 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 tv_sec; /* seconds since Jan. 1, 19

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Reid Kleckner
Reid Kleckner added the comment: I think you used 'struct timeval *' in the function definition instead of '_PyTimeVal *'. -- ___ Python tracker ___

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

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky 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

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Brian Curtin
Brian Curtin 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 struct/union 'tim

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I think Reid nailed the issue. Fix is coming. -- ___ Python tracker ___ ___ Python-bugs-list

[issue9320] os.environ is global for threads

2010-07-21 Thread anatoly techtonik
anatoly techtonik added the comment: > in http://docs.python.org/library/thread.html > """...multiple threads of control sharing their global data space...""" > > That's how threads are understood in all programming languages. Do you mean this one? """This module provides low-level primitives

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

2010-07-21 Thread Tal Einat
Tal Einat added the comment: My question is, when IDLE is run without arguments (as is the case for IDLE.app), what is the benefit opening an empty editor window as opposed to a shell window? In both cases if you just want to edit a file you must open it via the menus (e.g. File->Open or Fil

[issue9079] Make gettimeofday available in time module

2010-07-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: issue9079b.diff should fix the Windows issue. -- Added file: http://bugs.python.org/file18108/issue9079b.diff ___ Python tracker ___ _

  1   2   >