[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: mike: the crash is a bug and I will try to find a solution for it. A number of Apple APIs have issues with being called in child processes created with fork without calling exec. This sucks big time. -- priority: normal -> high

[issue8603] Create a bytes version of os.environ and getenvb()

2010-07-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > Ezio Melotti added the comment: > > A quick search[0] also shows that environ.data is used by several projects. > Changing it from str to bytes will most likely break these programs, so I'm > not sure it's a good idea. > Also, if

[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: Interestingly enough I don't get the crash in a copy of 2.7, but do get the crash in a copy of 2.6. The former was build on 10.6, the later on 10.5. Both 3.1 and 3.2 crash reliably for me (after porting the script to py3k) /usr/bin/python doesn't crash, but

[issue9411] configparser doesn't support specifying encoding in read()

2010-07-29 Thread Łukasz Langa
New submission from Łukasz Langa : By default, configparser classes simply `open()` and `read()` files specified in the list passed to `.read()`. This means these calls use the default platform-specific encoding and this is prone to breakage. An existing solution is to use `readfp()` and pass

[issue9411] configparser doesn't support specifying encoding in read()

2010-07-29 Thread Łukasz Langa
Łukasz Langa added the comment: Patch included. -- components: +Library (Lib) keywords: +patch type: -> feature request versions: +Python 3.2 Added file: http://bugs.python.org/file18248/issue9411.diff ___ Python tracker

[issue9412] test_smtpd leaks references

2010-07-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : See http://mail.python.org/pipermail/python-checkins/2010-July/095648.html test_smtpd leaked [25, 25, 25] references, sum=75 -- assignee: richard components: Library (Lib) messages: 111901 nosy: giampaolo.rodola, pitrou, richard priority: high severi

[issue9172] zipfile.extractall always raises an OSError after successfully unzipping all files

2010-07-29 Thread Teemu Rytkönen
Teemu Rytkönen added the comment: Hi! I haven't tested this in linux or with python 2.7 so can't say for sure.. However I would assume that the main issue is with the zipdate it self (So does it have those empty directories, which at least winzip creates) and then about how does the os.mkdi

[issue9411] configparser doesn't support specifying encoding in read()

2010-07-29 Thread Michael Foord
Michael Foord added the comment: Seems good to me (the feature - and also the patch after a cursory read through). -- ___ Python tracker ___

[issue9410] Add Unladden Swallow's optimizations to Python 3's pickle.

2010-07-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 29 juillet 2010 à 06:26 +, Alexandre Vassalotti a écrit : > New submission from Alexandre Vassalotti : > > This is a big patch. Please review at > http://codereview.appspot.com/1694050/show > > This patch adds the most interesting optimizations fr

[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: explains the issue that Ned mentions, I'm not sure yet if this crash is related to that. -- ___ Python tracker

[issue9172] zipfile.extractall always raises an OSError after successfully unzipping all files

2010-07-29 Thread Ray.Allen
Ray.Allen added the comment: I found that this issue is duplicate with issue6050. And the bug has been fixed since 2.6.3. So this issue should be closed. -- ___ Python tracker

[issue9411] configparser doesn't support specifying encoding in read()

2010-07-29 Thread Eric Smith
Eric Smith added the comment: The feature request seems reasonable to me, too. I don't recall if sys.getdefaultencoding() can change while a program is running. If so, you might want to change: def read(self, filenames, encoding=sys.getdefaultencoding()): to: def read(self, filenames, encod

[issue9413] asyncore.close_all() should call x.handle_close() instead of x.close()

2010-07-29 Thread me myself
New submission from me myself : Title says it all. -- messages: 111908 nosy: me.myself priority: normal severity: normal status: open title: asyncore.close_all() should call x.handle_close() instead of x.close() type: behavior versions: Python 2.6, Python 3.1 ___

[issue9413] asyncore.close_all() should call x.handle_close() instead of x.close()

2010-07-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue9414] infinite loop with specific regexp

2010-07-29 Thread gnuthor
New submission from gnuthor : The follow code hangs on vanilla compile python 2.7 on Ubuntu 10.04 x86_64 and all other versions of Python that I could find (i386/x86_64, 2.6.5/2.5.2/2.2): >>> import re >>> regex = re.compile(r'^((?:\.\d+)+|(?:\.?\w+(?:\-*\w+)+)+)\.(\d*?)$') >>> match = regex.ma

[issue7198] Extraneous newlines with csv.writer on Windows

2010-07-29 Thread Skip Montanaro
Skip Montanaro added the comment: > If the documentation is not clear enough about requiring binary, it is > a doc bug. The documentation for both csv.reader and csv.writer state (this is from the Python 2.7 version): If *csvfile* is a file object, it must be opened with the 'b' flag o

[issue9415] SSL issues on "Ubuntu i386" buildbots

2010-07-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : The buildslaves "i386 Ubuntu" have been exhibiting some strange behaviour for some time now: == ERROR: test_protocol_sslv2 (test.test_ssl.ThreadedTests) Connecting to an SSLv2 server with va

[issue9412] test_smtpd leaks references

2010-07-29 Thread Richard Jones
Richard Jones added the comment: That's odd. I didn't run the refcount tests because I was only adding Python code. I'll look into compiling a debug build and running the tests locally with a view to tracking down the problem. -- ___ Python tracker

[issue6538] MatchObject is not a hyperlink in the 're' module documentation

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Should be fixed now in r83218. I've removed the "class" directives, and put generic class name substitutes "regex" and "pattern" in the method descriptions, like we do for "contextmanager.__enter__". I've also removed the compatibility info, and removed [] sty

[issue9412] test_smtpd leaks references

2010-07-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That's odd. I didn't run the refcount tests because I was only adding > Python code. That's not odd. A reference leak can indicate that some objects hang in memory permanently rather than being cleaned up after the test run. Looking at the code you added, Dum

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

2010-07-29 Thread Jesse Noller
Jesse Noller added the comment: (sorry, I thought I had replied to your comment when I hadn't!) I think we can get away with a new optional kwarg. -- ___ Python tracker ___

[issue9411] configparser doesn't support specifying encoding in read()

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Applied in r83220. The **kwds change for some methods should be done separately. -- resolution: -> accepted status: open -> closed ___ Python tracker _

[issue9405] crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: This seems to be a minimal program to reproduce the problem: import sys import os import platform platform.mac_ver() if sys.version_info[0] == 2: import urllib else: import urllib.request if os.fork() == 0: print ("about to call getproxies !")

[issue9392] 2.7 framework install doesn't create 2to3-2.7

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: Fixed in r83221 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___ ___

[issue9412] test_smtpd leaks references

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: The culprit was indeed DummyServer.messages. Fixed in r83222. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker

[issue9414] infinite loop with specific regexp

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: This is very probably a duplicate of #1662581. When testing both your regexes with the new engine from #2636, the match is not found/found instantaneously. -- nosy: +georg.brandl resolution: -> duplicate status: open -> closed superseder: -> the re mo

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Wishlist item: could you give the regex and match classes nicer names, so that they can be referenced as `regex.Pattern` (or `regex.Regex`) and `regex.Match`? -- ___ Python tracker

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Applied with some tweaks in r83223. Thanks Jeff and Terry! -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2010-07-29 Thread Mark Dickinson
New submission from Mark Dickinson : >>> format(complex(-0.0, 2.0), '.10') # expected '(-0+2j)' '(+2j)' >>> format(complex(-0.0, 2.0), '') # gives expected result '(-0+2j)' -- assignee: mark.dickinson messages: 111923 nosy: eric.smith, mark.dickinson priority: normal severity: nor

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-07-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9399] Provide a 'print' action for argparse

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Sounds like a good addition to me. -- assignee: -> bethard nosy: +georg.brandl ___ Python tracker ___ ___

[issue965065] document docs.python.org in PEP-101

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Yes, the current wording in the PEP should be sufficient. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

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

2010-07-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue3964] quiet the freeze makefile

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Isn't the usual way to use "make -s" if you don't want echoed commands? -- nosy: +georg.brandl ___ Python tracker ___

[issue5945] PyMapping_Check returns 1 for lists

2010-07-29 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> priority: high -> normal ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8077] cgi handling of POSTed files is broken

2010-07-29 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue9172] zipfile.extractall always raises an OSError after successfully unzipping all files

2010-07-29 Thread Mark Lawrence
Mark Lawrence added the comment: Closed as duplicate of issue6050. -- nosy: +BreamoreBoy resolution: -> duplicate status: open -> closed ___ Python tracker ___ _

[issue3964] quiet the freeze makefile

2010-07-29 Thread Christian Höltje
Christian Höltje added the comment: Isn't 'make -s' a GNU make-ism? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue745002] <> in attrs in sgmllib not handled

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Setting #1504333 which has a patch as superseder. -- nosy: +georg.brandl resolution: -> duplicate status: open -> closed superseder: -> sgmllib should allow angle brackets in quoted values ___ Python tracker

[issue9337] Make float.__str__ behave identically to float.__repr__

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch. The floating-point part of the tutorial still needs work. -- keywords: +patch Added file: http://bugs.python.org/file18249/issue9337.patch ___ Python tracker _

[issue3964] quiet the freeze makefile

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Well, at least -s is mentioned in my POSIX make(1p) manpage, and I found it in an online version of the OpenBSD manpages. -- ___ Python tracker _

[issue9407] ConfigParser documentation does not mention ConfigParser.Error as base exception class for ConfigParser exceptions

2010-07-29 Thread Ray.Allen
Ray.Allen added the comment: "It may be useful to mention it to show the exception heirarchy as well as in the case a user may want to catch all ConfigParser errors generally." +1. I provide a patch for this. -- keywords: +patch nosy: +ysj.ray Added file: http://bugs.python.org/file18

[issue1090076] Defaults in ConfigParser.get overrides section values

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Committed doc patch similar to Raghuram's in r83226. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9407] ConfigParser documentation does not mention ConfigParser.Error as base exception class for ConfigParser exceptions

2010-07-29 Thread Ray.Allen
Changes by Ray.Allen : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9337] Make float.__str__ behave identically to float.__repr__

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: A couple of notes on the patch: - the test_unicodedata failure was a result of computing a checksum involving str(numeric_value_of_character) for fraction characters like 1/6 and 2/3. I've changed the test to use '{.12g}'.format(numeric_value) instead, and u

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
New submission from Andrea Corbellini : Creating a class (either using the 'class' statement or using type()) creates a circular reference. I've attached a script that simply demonstrates this. The problem is caused by the fact that MyClass.__dict__['__dict__'].__objclass__ is MyClass. Althou

[issue9399] Provide a 'print' action for argparse

2010-07-29 Thread Steven Bethard
Steven Bethard added the comment: Should this print to stdout or stderr? I wonder if the API should allow either, and instead look like: parser.add_argument('--license', action='write', message='...', file=sys.stdout) Where sys.stdout would be the default for the file= argument. The action wo

[issue9413] asyncore.close_all() should call x.handle_close() instead of x.close()

2010-07-29 Thread R. David Murray
R. David Murray added the comment: No it doesn't. Why do you think this change should be made? What bug does it produce in it's current form? Can you provide a unit test demonstrating the buggy behavior? -- nosy: +r.david.murray stage: -> unit test needed

[issue9407] ConfigParser documentation does not mention ConfigParser.Error as base exception class for ConfigParser exceptions

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Applied in r83229. Thanks! -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: from_iterable() was marked up wrongly in the itertools docs; this is fixed now in r83230. -- ___ Python tracker ___ _

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Chris Leaf
Chris Leaf added the comment: Sorry but I still cannot get it to work because the folder remains inaccessible to me and immutable. Is there any way around this problem? -- ___ Python tracker __

[issue9401] automatically try forward operations when reverse operations are NotImplemented

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: This might work for (normally) commutative operations like multiplication and addition, but what about those like subtraction? If the interpreter uses the non-reversed method automatically, it has to apply semantics, but the semantics depend on the type and ca

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: > The hidden field is not filled in, here's a screenshot of the attributes > options Ok. Remove the entire .idlerc folder, then. -- ___ Python tracker __

[issue9397] Remove references to the missing dbm.bsd module

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Removed in r83231, thanks. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue9388] locale documentation describes non-existing ERA_YEAR constant

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83232. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9386] Bad indentation in urllib import fixer with multiple imports

2010-07-29 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: Here are some tests. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2010-07-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- keywords: +patch Added file: http://bugs.python.org/file18252/issue9416_tests.patch ___ Python tracker ___ _

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is there a reason why you want to disable the cyclic garbage collector? -- nosy: +pitrou ___ Python tracker ___

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.3 ___ Python tracker ___ ___ Python

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Ray.Allen
Ray.Allen added the comment: This should not be a problem, I think. We cannot avoid such a circular reference. I believe the main reason of the circular reference is in MyClass.__mro__, this is a list and contains a reference to MyClass. You can add "__slots__ = []" to MyClass's class body

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-07-29 Thread Mark Lawrence
Mark Lawrence added the comment: Gentle poke in ribs can this be committed por favor? -- nosy: +BreamoreBoy versions: +Python 3.1 ___ Python tracker ___ _

[issue9418] Move _formatter_* methods from string type into _string module

2010-07-29 Thread Georg Brandl
New submission from Georg Brandl : Currently, the string type has two single-underscore methods, _formatter_parser and _formatter_field_name_split, that expose details of the new string formatting implementation to Python, so that it can be used by the string.Formatter class. This patch remov

[issue9399] Provide a 'print' action for argparse

2010-07-29 Thread Dennis Malcorps
Dennis Malcorps added the comment: > parser.add_argument('--license', action='write', message='...', > file=sys.stdout) The ability to redirect the output would be a nice addition. > parser.add_argument('--license', action='call', callable=lambda: > sys.stdout.write(message)) optparse alread

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini added the comment: Disabling the GC can increase performances (although not significantly). But this bug is the cause of other problems too: what if the metaclass contains a __del__() method? An another issue that I've found is that debugging is harder. I always try to avoi

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: I couldn't imagine why a metaclass would want to have a __del__ method... -- nosy: +georg.brandl ___ Python tracker ___ __

[issue1581182] Definition of a "character" is wrong

2010-07-29 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue9319] segfault when searching modules with help()

2010-07-29 Thread Ron Adam
Ron Adam added the comment: The error happens when Null is passed to strlen in (unicodeobject.c, line 860) Passing NULL to a string format function is probably in the category of don't do that. Stefans solution of checking for NULL before calling PyErr_Format looks to me to be correct. As h

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

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: And here's a fix (includes the earlier tests, along with some fixes to the tests themselves). -- stage: unit test needed -> patch review Added file: http://bugs.python.org/file18254/issue9416.patch ___ Python tracke

[issue3173] external strftime for Python?

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Jul 28, 2010 at 11:22 PM, Guido van Rossum wrote: .. > What about the licensing? That look like the BSD license *with* > advertising clause... > I am not a lawyer and I am not intimately familiar with PSF policies, but this license does not look

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini added the comment: Having a __del__ inside a metaclass is strange, I know... but probably there are situations where you need to do so. Why shouldn't a developer be able to add a __del__ to a metaclass without creating uncollectable objects? I don't think this behavior is by

[issue6522] docs for unittest.expectedFailure do not syntactically show it's a decorator

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Done in r83234. Thanks for the suggestion! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Whether this is a bug is not clear. Sometimes it's just impossible not to create cycles, and classes may just be one instance of that. -- ___ Python tracker ___

[issue9410] Add Unladden Swallow's optimizations to Python 3's pickle.

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: For those not familiar with Unladen Swallow, can you describe what the "most interesting optimizations" are? Maybe there is an Unladen Swallow document you can point to. Would any of these optimizations apply to python implementation? -- __

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +krisvale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9397] Remove references to the missing dbm.bsd module

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: > Removed in r83231, thanks. I commited also r83235 to remove references in the source code. The last reference is the following comment, but I don't know how to fix it: # some dbm emulations based on Berkeley DB generate a .db file # some do not, but they sh

[issue9410] Add Unladden Swallow's optimizations to Python 3's pickle.

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: I'm working on #3873 to add a read buffer (fixed size, 4096 bytes) to the unpickler. It's 6 to 8 times faster with the read buffer: but this patch is mainly to avoid the overhead introduced by the new I/O library (in Python2, unpickler was faster because it d

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini added the comment: This is an unwanted an unexpected behavior, so this is a bug by definition. If it's not easy to fix, it's a different matter. However here's a proposed solution: * for the __mro__: instead of using a tuple, use a new object that inherits from it. This new

[issue6050] zipfile: Extracting a directory that already exists generates an OSError

2010-07-29 Thread Ezio Melotti
Ezio Melotti added the comment: #9172 has been closed as duplicate of this. -- nosy: +ezio.melotti stage: -> committed/rejected type: -> behavior ___ Python tracker ___ ___

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This was discussed in issue1545463 which was deemed not to be worth fixing. The particular bug described in issue1545463 would also be fixed by the still open issue812369. So yes, there are cases where these cycles are a problem even with gc. ---

[issue3873] Unpickling is really slow

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: > Victor, have you tried using peek() instead of seek()? > I mentioned this previously in msg85780. In a file encoded in protocol 0, backward seek are needed to each call to unpickler_readline... and this function is called to read a number, a boolean, etc.

[issue3873] Unpickling is really slow

2010-07-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue812369] module shutdown procedure based on GC

2010-07-29 Thread Andrea Corbellini
Changes by Andrea Corbellini : -- nosy: +candrea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I wonder if complex addition/subtraction should preserve -0.0 when it is added to a purely imaginary number. I.e., >>> -0.0+1j (-0+1j) -- nosy: +belopolsky ___ Python tracker

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: This is not so easy: the __mro__ tuple, as its name says, is used internally for method resolution, or finding attributes on the type's bases. __objclass__ is used whenever the descriptor is accessed. These operations are involved in every method call. If you

[issue1195571] simple callback system for Py_FatalError

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Amaury, any interest in getting this committed for 3.2? -- nosy: +georg.brandl ___ Python tracker ___ _

[issue6480] code.runsource() parsing bug

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: code.runsource() uses the "single" start symbol by default, which will parse only a single statement. Only your second snippet is a single statement, while the others are two statements. -- nosy: +georg.brandl resolution: -> invalid status: open -> cl

[issue6504] infinite recursion from calling builtins.open()

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Cannot reproduce with current 3.2 trunk, closing. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue9419] RUNSHARED needs LDFLAGS

2010-07-29 Thread Peter Häring
New submission from Peter Häring : test_distutils fails with 2.7 on a shared build (at least if building outside the source tree), 2.6 versions work. The reason for this is, that the test tries to link and doesn't find libpython-2.7.so.1. A solution (or workaround) is to add LDFLAGS=-L`pwd` to

[issue6612] 'import site' fails when called from an unlinked directory

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: I'm quite sure nobody will want to do anything about it... -- nosy: +georg.brandl status: open -> languishing ___ Python tracker ___ _

[issue8603] Create a bytes version of os.environ and getenvb()

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 29 juillet 2010 03:08:27, Ezio Melotti a écrit : > A quick search[0] also shows that environ.data is used by several projects. _Environ is a wrapper on data: call putenv() when a value is changed and unputenv() when a value is removed. Since os.enviro

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Chris Leaf
Chris Leaf added the comment: I solved the problem myself by editing the EditorWindow.py file where it sets self.recent_files_path by setting it to a different file location (I created a file in my Python31 directory named recent-files.lst and then set the recent_files_path to the absolute pa

[issue6630] string.Template custom pattern not working

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Added in r83236. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue6535] optparse required field for Options

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: I don't think optparse will get this update -- new features should go into argparse instead. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker

[issue8603] Create a bytes version of os.environ and getenvb()

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 29 juillet 2010 03:00:03, Ezio Melotti a écrit : > FWIW os.environb is missing from os.__all__. Fixed by r83237 -- ___ Python tracker

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Sorry, I'm busy with other stuff and won't be able to look into this for another week or so. -- ___ Python tracker ___ ___

[issue9420] gdbm with /usr/include/ndbm.h

2010-07-29 Thread Peter Häring
New submission from Peter Häring : There are systems out there, wich don't have ndbm, but gdbm and ndbm.h directly in the include-path (usually /usr/include), not in the subdirectory i.e. gdbm. setup.py at the moment assumes, that there is ndbm on the system, if there is ndbm.h in the include

[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Alan, I've updated the patch for current 3.2 trunk, see attached, but the new test now fails. Can you find out why? -- nosy: +georg.brandl versions: +Python 3.2 -Python 2.7 Added file: http://bugs.python.org/file18257/zipfile_empty.diff ___

[issue6156] Error compiling valid regex

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Closing in favor of #2636, which allows this regex to be compiled. -- resolution: -> out of date status: open -> closed superseder: -> Regexp 2.7 (modifications to current re 2.2.2) ___ Python tracker

[issue4108] robotparser.py fail when more than one User-Agent: * is present

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patch, fixed in r83238. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

  1   2   >