[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum : Removed file: http://bugs.python.org/file18238/ConfigParser.StandardError.patch ___ Python tracker ___ ___ Python-bugs

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum : Added file: http://bugs.python.org/file18239/ConfigParser.StandardError.patch ___ Python tracker ___ ___ Python-bugs-l

[issue9404] IDLE won't launch on XP

2010-07-28 Thread Chris Leaf
Chris Leaf added the comment: I can clear the attributes from the properties window of the folder but if I remove them both it will automatically reset it back to Read Only every time i close the properties window. I can get it to be hidden but I can't make it permanently available.

[issue9404] IDLE won't launch on XP

2010-07-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I can clear the attributes from the properties window of the folder > but if I remove them both it will automatically reset it back to Read > Only every time i close the properties window. I can get it to be > hidden but I can't make it permanently available.

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

2010-07-28 Thread w31rd0
w31rd0 added the comment: I get crash dialog with both 2.6 and 2.7 (both installed from macports) under Mac OS X 10.6.4. -- nosy: +w31rd0 ___ Python tracker ___

[issue9404] IDLE won't launch on XP

2010-07-28 Thread Chris Leaf
Chris Leaf added the comment: The hidden field is not filled in, here's a screenshot of the attributes options -- Added file: http://bugs.python.org/file18240/Attributes.JPG ___ Python tracker _

[issue9404] IDLE won't launch on XP

2010-07-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Ok. Remove the entire .idlerc folder, then. Before doing that (if you still can) try something else. Go *into* the .idlerc folder, and remove the hidden flag from all individual files. -- ___ Python tracker

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread Éric Araujo
Éric Araujo added the comment: Thank you for your interest in contributing. In this case, since StandardError is actually deprecated (and removed in 3.x), this change has to be rejected. -- nosy: +merwok resolution: -> rejected stage: -> committed/rejected status: open -> closed ___

[issue9404] IDLE won't launch on XP

2010-07-28 Thread Chris Leaf
Chris Leaf added the comment: Upon trying to delete I'm prompted with an error: Access is denied. Make sure the disc is not full or write-protected and that the file is currently not in use. My disc isn't full and I cannot find anything accessing it (and the folder is empty so...) Is there

[issue9404] IDLE won't launch on XP

2010-07-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: The folder is not empty. Configure Explorer so that it displays hidden files. -- ___ Python tracker ___ ___

[issue9404] IDLE won't launch on XP

2010-07-28 Thread Chris Leaf
Chris Leaf added the comment: I also cannot get into the folder itself. "Access Denied" -- ___ Python tracker ___ ___ Python-bugs-lis

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-07-28 Thread Nick Coghlan
Nick Coghlan added the comment: On Wed, Jul 28, 2010 at 11:40 PM, Peter wrote: > > Peter added the comment: > > I take it the IGNORE_EXCEPTION_DETAIL should ignore the module name > fix will not be applied to Python 3.1.x? Correct (it's a new feature rather than a bug fix) > Is there a separ

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

2010-07-28 Thread Andrew Wu
New submission from Andrew Wu : * Reference bug http://bugs.python.org/issue9406 * Reference documentation at http://docs.python.org/library/configparser.html The docs list all the specific errors to look out for, but does not mention the base exception class for ConfigParser errors (ConfigPars

[issue3873] Unpickling is really slow

2010-07-28 Thread STINNER Victor
STINNER Victor added the comment: New version of my patch: - add "used" attribute to UnpicklerBuffer structure: disable the read buffer for not seekable file and for protocol 0 (at the first call to unpickle_readline) - check if PyObject_GetAttrString(file, "seek") is NULL or not - unpickle

[issue3130] In some UCS4 builds, sizeof(Py_UNICODE) could end up being more than 4.

2010-07-28 Thread STINNER Victor
STINNER Victor added the comment: This issue has no patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue9404] IDLE won't launch on XP

2010-07-28 Thread Chris Leaf
Chris Leaf added the comment: The problem is that I can do nothing to the folder at all -- ___ Python tracker ___ ___ Python-bugs-list

[issue3873] Unpickling is really slow

2010-07-28 Thread STINNER Victor
STINNER Victor added the comment: Same benchmark with Python 2.6.5+, so without the patch, but compiled with maximum compiler optimization (whereas pydebug means no optimization): Protocol 0 - dump: 517.3 ms - load: 876.6 ms <= because of the new I/O library, python3 is much slower Protocol 1

[issue3873] Unpickling is really slow

2010-07-28 Thread STINNER Victor
STINNER Victor added the comment: bench_pickle.py: script used to produce last benchmarks. -- Added file: http://bugs.python.org/file18241/bench_pickle.py ___ Python tracker ___

[issue8990] array constructor and array.fromstring should accept bytearray.

2010-07-28 Thread STINNER Victor
STINNER Victor added the comment: I prefer the second solution (add to/frombytes, deprecate to/fromstring) because I prefer the new method names and it keeps backward compatibility (until we choose to remove the old methods, which should be in Python 3.3). About the patch (tofrombytes.diff).

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

2010-07-28 Thread Ned Deily
Ned Deily added the comment: There have been similar problems reported in the past when subprocesses cause OS X CoreFoundation interfaces to be first called from the subprocess and not the main process. A quick workaround is to make a call from the main process. In this case, adding a call

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

2010-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe these patches are wrong, at least in part, and should be reverted. 1.The re module no longer has either a class RegexObject or a class MatchObject. (They are now _sre.SRE_Pattern and _sre.SRE_Match.) So the previous reference to them as anonymous "C

[issue9408] curses: Link against libncursesw instead of libncurses

2010-07-28 Thread STINNER Victor
New submission from STINNER Victor : Because of #7384, Python3 now links _curses.so to ncurses library (bytes version) instead of ncursesw library (unicode version) if readline is linked to ncurses. I'm using Linux (Debian Sid). On Linux, Python3 should maybe only link to the unicode version,

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

2010-07-28 Thread Brian Curtin
Brian Curtin added the comment: I'm guessing assigning to Christian was accidental - taking it back for myself. -- assignee: christian.heimes -> brian.curtin priority: low -> normal stage: committed/rejected -> ___ Python tracker

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

2010-07-28 Thread mike bayer
mike bayer added the comment: right...so I would propose the function calls in question emit a warning or something when called in a child process. this would save lots of people many hours of grief. -- ___ Python tracker

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

2010-07-28 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW os.environb is missing from os.__all__. -- stage: -> committed/rejected type: -> feature request ___ Python tracker ___ ___

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

2010-07-28 Thread Ned Deily
Ned Deily added the comment: There should be a way to provide a permanent fix to avoid the problem; that will take more investigation. This was just a workaround suggestion. -- ___ Python tracker _

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

2010-07-28 Thread Ezio Melotti
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 I understand correctly, on Windows os.environ.data still contains str, so

[issue9409] doctest in python2.7 can't handle non-ascii characters

2010-07-28 Thread Hugo Lopes Tavares
New submission from Hugo Lopes Tavares : When trying to run my test suite I had a problem with python2.7. My suite ran 100% in Python2.4, Python2.5, Python2.6 and Python3.2a0, so I thought it would be a kind of doctest flaw. Taking a look at the code, there is the following in doctest.py:1331:

[issue9409] doctest in python2.7 can't handle non-ascii characters

2010-07-28 Thread Hugo Lopes Tavares
Changes by Hugo Lopes Tavares : Added file: http://bugs.python.org/file18243/non-ascii.txt ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9409] doctest in python2.7 can't handle non-ascii characters

2010-07-28 Thread Hugo Lopes Tavares
Changes by Hugo Lopes Tavares : Added file: http://bugs.python.org/file18244/example.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9409] doctest in python2.7 can't handle non-ascii characters

2010-07-28 Thread Ezio Melotti
Ezio Melotti added the comment: This change has been introduced in r79307 (see #7667). The error seems to be raised because example.source is not unicode so it gets decoded implicitly before getting encoded with ascii+backslashreplace. I don't know if example.source is always supposed to be st

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

2010-07-28 Thread Brian Curtin
Brian Curtin added the comment: How does this patch look? It changes RegexObject to _sre.SRE_Pattern and MatchObject to _sre.SRE_Match. Additionally, references are used to link to those classes generically as "match objects" or "compiled regular expressions" rather than the fake classes used

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

2010-07-28 Thread Ezio Melotti
Ezio Melotti added the comment: The patch looks good to me, but I'm not sure if it's a good idea to use _sre.SRE_*. I think these are implementation details and even if they should be mentioned somewhere, they "clutter" the doc IMHO. > 2. I believe it is the policy that the 3.x docs 'start fr

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

2010-07-28 Thread Brian Curtin
Brian Curtin added the comment: I didn't actually want to use _sre.SRE_* but I'm not exactly sure how to hide it. It's more correct that way, but it takes this issue the wrong direction by exposing it. I think it should be denoted as a class but with a generic name, if that's even possible.

[issue9399] Provide a 'print' action for argparse

2010-07-28 Thread R. David Murray
Changes by R. David Murray : -- nosy: +bethard versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

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

2010-07-28 Thread R. David Murray
Changes by R. David Murray : -- nosy: +jnoller stage: -> unit test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue3173] external strftime for Python?

2010-07-28 Thread Guido van Rossum
Guido van Rossum added the comment: What about the licensing? That look like the BSD license *with* advertising clause... -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread R. David Murray
R. David Murray added the comment: It would have been invalid in any case, since ConfigParser.Error is not a built in exception. -- nosy: +r.david.murray ___ Python tracker ___

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-07-28 Thread R. David Murray
R. David Murray added the comment: 2to3 can convert doctests, it just can't convert the *output* portion of doctests. because they are arbitrary strings and not syntactically valid Python code. Since turning on this flag would require recognizing something in the output portion of the doctes

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

2010-07-28 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue231540] threads and profiler don't work together

2010-07-28 Thread Ray.Allen
Ray.Allen added the comment: I don't think this problem still exists now. In the current implementation, there is no "sys_tracefunc" and "sys_profilefunc" in PyThreadState, but "c_profilefunc", "c_profileobj", "c_tracefunc", "c_traceobj" instead. When creating a new thread, the "c_profilefunc

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

2010-07-28 Thread R. David Murray
R. David Murray added the comment: Please note that my original suggestion was to make them *section* links (:ref:s). As Terry says, they are not real classes and should not be marked up as such. Nor should the internal class names be exposed. Terry: [] notation is 2.x, they should all be g

[issue5412] extend configparser to support mapping access(__*item__)

2010-07-28 Thread Ray.Allen
Ray.Allen added the comment: > Note that the two versions are not exclusive: We can look for an item if a > tuple is given and look for a section if it’s a string. Maybe confusing. +1. I think this is a good idea. Getting a section and Getting a key-value are both very common operations when

[issue3873] Unpickling is really slow

2010-07-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Victor, have you tried using peek() instead of seek()? I mentioned this previously in msg85780. -- ___ Python tracker ___ ___

[issue5077] 2to3 fixer for the removal of operator functions

2010-07-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The patch look great. Can you update your patch to make it work against the version of 2to3 in the sandbox (http://svn.python.org/sandbox/trunk/2to3)? -- ___ Python tracker

[issue7330] PyUnicode_FromFormat segfault

2010-07-28 Thread Ray.Allen
Ray.Allen 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", but you canno

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

2010-07-28 Thread Alexandre Vassalotti
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 from Unladen Swallow to Python 3's pickle. The core of the patch already been reviewed by Antoine and me (http://coder

<    1   2