[issue7330] PyUnicode_FromFormat segfault

2010-07-29 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: You can write %20s as a argument for PyUnicode_FromFormat(), but it has no effect. The width and precision modifiers are not intended to apply to string formating(%s, %S, %R, %A), only apply to integer(%d, %u, %i, %x). Though you can write %20s,

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

2010-07-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com 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

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

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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)

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

2010-07-29 Thread Łukasz Langa
New submission from Łukasz Langa luk...@langa.pl: 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

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

2010-07-29 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl 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 pit...@free.fr: 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

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

2010-07-29 Thread Teemu Rytkönen
Teemu Rytkönen teemu.rytko...@gmail.com 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

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

2010-07-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Seems good to me (the feature - and also the patch after a cursory read through). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9411

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

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

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

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html#SECDAEMONVSFRAMEWORKS explains the issue that Ned mentions, I'm not sure yet if this crash is related to that. -- ___

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

2010-07-29 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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 rep...@bugs.python.org

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

2010-07-29 Thread Eric Smith
Eric Smith e...@trueblade.com 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

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

2010-07-29 Thread me myself
New submission from me myself me.mys...@mailinator.com: 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 pit...@free.fr: -- nosy: +giampaolo.rodola versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9413 ___

[issue9414] infinite loop with specific regexp

2010-07-29 Thread gnuthor
New submission from gnuthor ja...@internet24.de: 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

[issue7198] Extraneous newlines with csv.writer on Windows

2010-07-29 Thread Skip Montanaro
Skip Montanaro s...@pobox.com 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

[issue9415] SSL issues on Ubuntu i386 buildbots

2010-07-29 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: 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

[issue9412] test_smtpd leaks references

2010-07-29 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au 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. --

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

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue9412] test_smtpd leaks references

2010-07-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-07-29 Thread Jesse Noller
Jesse Noller jnol...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue9205

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

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

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

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

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

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Fixed in r83221 -- resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9392

[issue9412] test_smtpd leaks references

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

[issue9414] infinite loop with specific regexp

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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 ge...@python.org added the comment: Applied with some tweaks in r83223. Thanks Jeff and Terry! -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3874

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

2010-07-29 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: 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

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-07-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3874 ___ ___

[issue9399] Provide a 'print' action for argparse

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Sounds like a good addition to me. -- assignee: - bethard nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9399 ___

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

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, the current wording in the PEP should be sufficient. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue965065

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

2010-07-29 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- components: +Interpreter Core ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9416 ___ ___

[issue3964] quiet the freeze makefile

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Isn't the usual way to use make -s if you don't want echoed commands? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3964

[issue5945] PyMapping_Check returns 1 for lists

2010-07-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - priority: high - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5945 ___

[issue8077] cgi handling of POSTed files is broken

2010-07-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8077 ___ ___ Python-bugs-list

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

2010-07-29 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closed as duplicate of issue6050. -- nosy: +BreamoreBoy resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9172

[issue3964] quiet the freeze makefile

2010-07-29 Thread Christian Höltje
Christian Höltje docw...@gerf.org added the comment: Isn't 'make -s' a GNU make-ism? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3964 ___ ___

[issue745002] in attrs in sgmllib not handled

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2010-07-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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 rep...@bugs.python.org

[issue3964] quiet the freeze makefile

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue3964

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

2010-07-29 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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:

[issue1090076] Defaults in ConfigParser.get overrides section values

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed doc patch similar to Raghuram's in r83226. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1090076

[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 ysj@gmail.com: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9407 ___ ___ Python-bugs-list

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

2010-07-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
New submission from Andrea Corbellini corbellini.and...@gmail.com: 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

[issue9399] Provide a 'print' action for argparse

2010-07-29 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

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

2010-07-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 ge...@python.org added the comment: Applied in r83229. Thanks! -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9407

[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: from_iterable() was marked up wrongly in the itertools docs; this is fixed now in r83230. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7447

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Chris Leaf
Chris Leaf xcyborgni...@gmail.com 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 rep...@bugs.python.org

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

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org

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

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Removed in r83231, thanks. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9397 ___

[issue9388] locale documentation describes non-existing ERA_YEAR constant

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

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

2010-07-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9386 ___ ___

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

2010-07-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here are some tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9416 ___ ___

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

2010-07-29 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file18252/issue9416_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9416 ___

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is there a reason why you want to disable the cyclic garbage collector? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9417

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9417 ___

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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

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

2010-07-29 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Gentle poke in ribs can this be committed por favor? -- nosy: +BreamoreBoy versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7855

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

2010-07-29 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: 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.

[issue9399] Provide a 'print' action for argparse

2010-07-29 Thread Dennis Malcorps
Dennis Malcorps dennis.malco...@googlemail.com 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:

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini corbellini.and...@gmail.com 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

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I couldn't imagine why a metaclass would want to have a __del__ method... -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9417

[issue1581182] Definition of a character is wrong

2010-07-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1581182 ___ ___

[issue9319] segfault when searching modules with help()

2010-07-29 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net 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

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

2010-07-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue3173] external strftime for Python?

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Wed, Jul 28, 2010 at 11:22 PM, Guido van Rossum rep...@bugs.python.org wrote: .. What about the licensing? That look like the BSD license *with* advertising clause... I am not a lawyer and I am not intimately

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini corbellini.and...@gmail.com 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

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

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Done in r83234. Thanks for the suggestion! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6522

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org

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

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +krisvale ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9417 ___ ___ Python-bugs-list mailing

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

2010-07-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2010-07-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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,

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini corbellini.and...@gmail.com 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

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

2010-07-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: #9172 has been closed as duplicate of this. -- nosy: +ezio.melotti stage: - committed/rejected type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6050

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue3873] Unpickling is really slow

2010-07-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue3873] Unpickling is really slow

2010-07-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___ ___

[issue812369] module shutdown procedure based on GC

2010-07-29 Thread Andrea Corbellini
Changes by Andrea Corbellini corbellini.and...@gmail.com: -- nosy: +candrea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue812369 ___ ___

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

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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 ge...@python.org 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

[issue1195571] simple callback system for Py_FatalError

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Amaury, any interest in getting this committed for 3.2? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1195571 ___

[issue6480] code.runsource() parsing bug

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Cannot reproduce with current 3.2 trunk, closing. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6504

[issue9419] RUNSHARED needs LDFLAGS

2010-07-29 Thread Peter Häring
New submission from Peter Häring p.haer...@gmx.net: 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

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

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'm quite sure nobody will want to do anything about it... -- nosy: +georg.brandl status: open - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6612

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

2010-07-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Chris Leaf
Chris Leaf xcyborgni...@gmail.com 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

[issue6630] string.Template custom pattern not working

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Added in r83236. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6630 ___

[issue6535] optparse required field for Options

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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 victor.stin...@haypocalc.com 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 rep...@bugs.python.org

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org http://bugs.python.org/issue9404

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

2010-07-29 Thread Peter Häring
New submission from Peter Häring p.haer...@gmx.net: 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

[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@python.org 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 ge...@python.org 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 ge...@python.org added the comment: Thanks for the patch, fixed in r83238. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4108

  1   2   >