[issue4111] Add DTrace probes

2009-04-21 Thread Robert Kern
Robert Kern added the comment: Got a bit farther. Adding this stanza to the top of phelper.d gets past the issues in the headers: #ifdef __APPLE__ #define _SYS_TIME_H_ #define _SYS_SELECT_H_ #define __MATH_H__ #define _OS__OSBYTEORDER_H #define _FD_SET #define __GNUC_VA_LIST #endif /* __APPLE__

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-04-21 Thread Torsten Rottmann
Torsten Rottmann added the comment: Proposed patch to fix this: set the default of n to 1 as stated by docs: def _peek_unlocked(self, n=1): return n bytes: return self._read_buf[self._read_pos:self._read_pos+n] -- ___ Python tracker

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-04-21 Thread Torsten Rottmann
Torsten Rottmann added the comment: Note: this is also in Python 2.6 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue5811] io.BufferedReader.peek(): Documentation differs from Implementation

2009-04-21 Thread Torsten Rottmann
New submission from Torsten Rottmann : The documented behavior of io.BufferedReader.peek([n]) states: peek([n]) Return 1 (or n if specified) bytes from a buffer without advancing the position. Thereas the parameter n is the _max_ length of returned bytes. Implementation is: def _peek_unl

[issue4111] Add DTrace probes

2009-04-21 Thread Robert Kern
Robert Kern added the comment: Skip, it doesn't appear that the ustack helper is getting incorporated into the OS X build anywhere. This rule is obviously wrong (compiling the wrong input file with the wrong flags): Include/phelper.h: $(srcdir)/Include/phelper.d dtrace -o $@ $(DFLAGS) -

[issue5789] powerset recipe listed twice in itertools docs

2009-04-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Already fixed. -- nosy: +rhettinger resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue1553375] Add traceback.print_full_exception()

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1515142] sgmllib should recover from unmatched quotes

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy, patch stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue1726208] SimpleHTTPServer extensions_map

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1648102] proxy_bypass in urllib handling of macro

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1690608] email.utils.formataddr() should be rfc2047 aware

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1076515] shutil.move clobbers read-only files.

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1560032] confusing error msg from random.randint

2009-04-21 Thread Daniel Diniz
Daniel Diniz added the comment: Don't worry :) Tagging as a Bug Day candidate. -- keywords: +easy ___ Python tracker ___ ___ Pytho

[issue1681333] email.header unicode fix

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1721862] email.FeedParser.BufferedSubFile improperly handles "\r\n"

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1711605] CGIHttpServer leaves traces of previous requests in env

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5650] Obsolete RFC's should be removed from doc of urllib.urlparse

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy stage: -> needs patch type: -> behavior versions: -Python 2.5 ___ Python tracker ___ __

[issue809887] Improve pdb breakpoint feedback

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1738179] help() can't find right source file

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1745761] Bad attributes/data handling in SGMLib

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1672568] silent error in email.message.Message.get_payload

2009-04-21 Thread Daniel Diniz
Daniel Diniz added the comment: Looks good to me, adding tests and docs could be a nice Bug Day task. -- keywords: +easy ___ Python tracker ___ ___

[issue1752919] Exception in HTMLParser for special JavaScript code

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5752] xml.dom.minidom does not handle newline characters in attribute values

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy stage: -> test needed versions: -Python 2.4, Python 2.5, Python 2.7, Python 3.0 ___ Python tracker ___ _

[issue5789] powerset recipe listed twice in itertools docs

2009-04-21 Thread Daniel Diniz
Daniel Diniz added the comment: Clear Bug Day candidate, but I just can't see the duplication :) -- keywords: +easy nosy: +ajaksu2 type: -> behavior ___ Python tracker ___ _

[issue5754] Shelve module writeback parameter does not act as advertised

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue5800] make wsgiref.headers.Headers accept empty constructor

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1540112] Allow choice of copy function in shutil.copytree

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue5727] doctest pdb readline broken

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed versions: +Python 2.6, Python 3.1 -Python 2.5 ___ Python tracker ___ ___ Python-bug

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: -> critical stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5797] there is en exception om Create User page

2009-04-21 Thread Daniel Diniz
Daniel Diniz added the comment: Which Create User page? What is the error you get, where and how does it happen? -- nosy: +ajaksu2 type: crash -> behavior ___ Python tracker ___

[issue5796] test_posix, test_pty crash under Windows

2009-04-21 Thread R. David Murray
R. David Murray added the comment: x86 XP-4 trunk buildbot showed correct skip for these tests. Ported to py3k in r71792. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue5810] test_distutils fails - sysconfig._config_vars is None

2009-04-21 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : Sorry, but the commit r69598 (due to Issue4524) has a problem. On Windows and Linux (although not on MacOSX), test_distutils fails: test_distutils test test_distutils failed -- Traceback (most recent call last): File "C:\Python26\lib\distutils\tests\tes

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-04-21 Thread Eric Smith
Eric Smith added the comment: Documentation changes checked into trunk in r71788 and py3k in r71790. Issue closed. -- status: open -> closed ___ Python tracker ___ _

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-04-21 Thread Eric Smith
Eric Smith added the comment: Thanks, Terry. I think the only changes I'll make are: arg_name: (`identifier` | `integer`)* should be: arg_name: (`identifier` | `integer`)? And leave: conversion: "r" | "s" instead of: conversion: "r" | "s" | "a" because 'a' isn't valid in 2.7. -- ___

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-04-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: PS. I first edited http://svn.python.org/view/python/branches/py3k/Doc/library/strings.rst?revision=63803&view=markup but then noticed that this goes in 2.7. My impression is that the procedure is to commit to trunk and then forward port, so I redid it as indic

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-04-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not a committer and cannot make patches. However, I did download http://svn.python.org/view/python/trunk/Doc/library/string.rst?revision=70650&view=markup, as string27.txt, carefully edit using the existing rst format, and upload. I trust you can make the

[issue5806] MySQL crash on machine startup....

2009-04-21 Thread Dave Fliger
Dave Fliger added the comment: True enough, my friend. I really didn't know if it had been reported before. If I go over the sequence of events tat I performed here on this machine, then my only conclusion was the installation of Python because everything worked prior to that. I know that if

[issue5806] MySQL crash on machine startup....

2009-04-21 Thread Martin v. Löwis
Martin v. Löwis added the comment: As David says: Python has no business with mysql. If they interfere, it could be because of a bug in Python, or because of a bug in mysql, or because of a bug in Windows, or because of a plain misconfiguration on your side. So unless you can provide detailed i

[issue5806] MySQL crash on machine startup....

2009-04-21 Thread Martin v. Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file13731/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5806] MySQL crash on machine startup....

2009-04-21 Thread Martin v. Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file13730/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5805] Distutils (or py2exe) error with DistributionMetaData

2009-04-21 Thread Martin v. Löwis
Martin v. Löwis added the comment: The bug report was closed here because it is not a bug in Python, but in py2exe, which is independent of Python. Please report it to the py2exe maintainers. Closing this one as well. -- nosy: +loewis resolution: -> invalid status: open -> closed vers

[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-04-21 Thread Eric Smith
Eric Smith added the comment: Thanks, Terry. Your changes look reasonable to me. Can you commit them, or at least convert it to a patch against the existing docs? -- ___ Python tracker _

[issue5434] datetime.monthdelta

2009-04-21 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-04-21 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5751] Typo in documentation of print function parameters

2009-04-21 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r71787. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5757] Documentation error for Condition.notify()

2009-04-21 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r71786. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: If 2.6.3 isn't imminent, I agree this change should be left in place. -- ___ Python tracker ___ ___

[issue5807] ConfigParser.RawConfigParser it's an "old-style" class

2009-04-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Changing it would break compatibility. -- nosy: +benjamin.peterson resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___

[issue5761] add file name to py3k IO objects repr()

2009-04-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/4/21 Antoine Pitrou : > > Antoine Pitrou added the comment: > > Benjamin, do you think it can still be added after beta1? > (I ask that in case noone does it before) Yes, I think that would be ok. -- ___ Py

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Essentially, the only argument for reverting this is breaking compatibility with 2.6.0 and 2.6.1. But, in the process, reverting it means breaking compatibility with 2.6.2. Since the cat is already out of the bag for 2.6.2, I think the bugfix ought to be le

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-21 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5806] MySQL crash on machine startup....

2009-04-21 Thread Dave Fliger
Dave Fliger added the comment: Thank you, sir. I'll try that later in the day. I just don't want to "break" what I have. I'm eager to look under the hood of Python.   Dave Fliger Webmaster Rogers Sporting Goods 1760 N. Church Road Liberty, MO 64068 (816) 781 9026   _

[issue5806] MySQL crash on machine startup....

2009-04-21 Thread R. David Murray
R. David Murray added the comment: Well, you mentioned that you also added something to your startup...so it wasn't _only_ uninstalling python. That's why I suggested resinstalling it and seeing if things broke again...and then if it did getting help to track down why, because as I said python

[issue5806] MySQL crash on machine startup....

2009-04-21 Thread Dave Fliger
Dave Fliger added the comment: Thanks for the response. I wasn't sure what the deal was, and sort of intuitively knew it wasn't the problem. I wouldn't have mentioned it with the exception that uninstalling solved the problem. That's a bit odd, don't you think?   Dave Fliger Webmaster Roger

[issue5806] MySQL crash on machine startup....

2009-04-21 Thread R. David Murray
R. David Murray added the comment: Python doesn't care about mysql. You can use a third party library to talk to mysql from python, but only if you install that third party library. Otherwise, python isn't even aware of whether or not mysql is installed. So whatever the problem is, it is very u

[issue5809] "No such file or directory" with framework build under MacOS 10.4.11

2009-04-21 Thread Michael J. Fromberger
Michael J. Fromberger added the comment: Sorry, I managed to not copy the error message. It is: i686-apple-darwin8-gcc-4.0.1: Python.framework/Versions/2.6/Python: No such file or directory make: *** [python.exe] Error 1 -- ___ Python tracker

[issue5809] "No such file or directory" with framework build under MacOS 10.4.11

2009-04-21 Thread Michael J. Fromberger
New submission from Michael J. Fromberger : Checkout: Configure: env CFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" sh ./configure --enable-framework --enable-shared --enable-readline Build: make The configuration step completes succ

[issue5804] Add a "tail" argument to zlib.decompress

2009-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It is not necessary to test the return value, it is done by > Py_BuildValue(). Sorry, it's ok then. -- ___ Python tracker ___ __

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-04-21 Thread Lawrence Allan Jones
Lawrence Allan Jones added the comment: Oops: user error. The manual states that subprocess.getstatusoutput() is only open under Unix. Somehow :) I missed this note. Sorry for wasting bandwidth. -- status: open -> closed ___ Python tracker

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-04-21 Thread Lawrence Allan Jones
New submission from Lawrence Allan Jones : When attempting to use the subprocess.getstatusoutput() function on Windows, I noticed an unusual error message: "'{' is not recognized as an internal or external command, operable program or batch file." When the output contained this message, the sta

[issue5804] Add a "tail" argument to zlib.decompress

2009-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: As usual the patch should come with some unit tests. Also, it seems you don't test the return value of PyString_FromStringAndSize before building your tuple. -- nosy: +pitrou priority: -> normal stage: -> patch review versions: +Python 3.1 __

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2009-04-21 Thread Dave Baggett
Dave Baggett added the comment: Yes, sorry, I meant "built-in list type" not "array". Your point about using lists this way is valid, and is why I used array.array('c'). I will do as you suggest and try all three methods. I did time the array.array approach vs. the one currently in the code and

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2009-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch must be against the SVN trunk, in standard unified diff ("svn diff" does the trick). What do you call standard arrays? Do you mean the builtin list type? Storing one separate character per list element is a poor choice because it will waste a lot of m

[issue5761] add file name to py3k IO objects repr()

2009-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Benjamin, do you think it can still be added after beta1? (I ask that in case noone does it before) -- ___ Python tracker ___ __

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2009-04-21 Thread Dave Baggett
Dave Baggett added the comment: I can certainly generate a patch for you. What form would you like it in, and against what source tree? Also, do you have a preference between the use of array.array vs. standard arrays? (I don't know whether it's good or bad to depend on "import array" in quoprim

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2009-04-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: -> normal stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2009-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you have a patch? Also, detailed timing examples are welcome (you can e.g. use the "timeit" module from the command line). -- nosy: +pitrou versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker

[issue1590864] import deadlocks when using PyObjC threads

2009-04-21 Thread ayal baron
ayal baron added the comment: Hi, We have the same problem while running two threads where one is running a subprocess command and the other is importing modules. This will cause a deadlock and this IS a bug!!! This happens quite often on a slow machine (once every 2-3 runs). -- nosy:

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2009-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Are these environment variables Python-specific? -- nosy: +pitrou ___ Python tracker ___ ___ Python-

[issue5807] ConfigParser.RawConfigParser it's an "old-style" class

2009-04-21 Thread Vito De Tullio
New submission from Vito De Tullio : RawConfigParser does not inherit from object, so using (to make an example) super() it's impossible. Python 2.6 (r26:66714, Feb 3 2009, 20:52:03) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type "help", "copyright", "credits" or "license" for more

[issue5806] MySQL crash on machine startup....

2009-04-21 Thread Dave Fliger
New submission from Dave Fliger : I recently (in the last 5 days) downloaded and installed Python 2.6.x. Upon startup of this machine I noticed a Windows warning that "mysqld.exe could not start...". I really didn't pay attention to it until today since I had no plans to use MySQL or any other

[issue5805] Distutils (or py2exe) error with DistributionMetaData

2009-04-21 Thread Vah Rashim
New submission from Vah Rashim : I'find issue http://bugs.python.org/issue708320. It's closed, but in python 2.6 this problem are yet exists. I'm fix it, but don't know, is this good solution. quote this my message from above issue without changes^ """ I'm running py2exe on python 2.6 and have

[issue5796] test_posix, test_pty crash under Windows

2009-04-21 Thread R. David Murray
R. David Murray added the comment: Applied in r71785. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5775] marshal.c needs to be checked for out of memory errors

2009-04-21 Thread Eric Smith
Eric Smith added the comment: Fixed in r71783. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue5170] logging to file + encoding

2009-04-21 Thread Vinay Sajip
Vinay Sajip added the comment: Trunk and release26-maint were recently changed (r71657, r71658) to use the following logic, which differs from the code snippet you posted. if (isinstance(msg, unicode) and getattr(stream, 'encoding', None)):

[issue672115] Assignment to __bases__ of direct object subclasses

2009-04-21 Thread Lars
Lars added the comment: in my project i need to be able to let the user dynamically make and remove inheritance relationships between classes and in my testing i think i have run into this issue assigning to __bases__. the class object(object): pass trick seems to work, but i can't really

[issue5170] logging to file + encoding

2009-04-21 Thread shamilbi
shamilbi added the comment: > > Can you retry with setting the "encoding" attribute of the file to > "cp1251"? That should work and that should be the appropriate method to > avoid the problem. > > test_logging.py in the Python distribution has a test which exercises > Unicode functionality usin

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-04-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: Couldn't we just rename them in the repository? IIRC the name with a '3' suffix would be the official name for these tools in Python 3.x, which would make it more natural to change the name in the repository as well. I don't know enough of svnmerge to know