[issue1731717] race condition in subprocess module

2009-02-24 Thread Gabriel
Gabriel m...@evotex.ch added the comment: I had this happen to me today, I used Popen and os.waitpid(p.pid, 0) and I got an OSError: [Errno 10] No child processes. I haven't tried adding a sleep, since it's unreliable. I'm using python 2.5.2, Windows XP. I haven't tried this on linux yet as the

[issue5358] Unicode control characters are not allowed as identifiers

2009-02-24 Thread Baiju M
New submission from Baiju M baiju.m.m...@gmail.com: I tried to use Zero-width joiner (U+200D) as part of an identifier. It produce an exception like this: SyntaxError: invalid character in identifier I have attached the Python file which produce this error. Zero-width joiner (U+200D) is a

[issue5359] _dbm extension only built using gdbm on linux

2009-02-24 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: in 3.x the _dbm extension can only be built with gdbm as the backend library. gdbm is licensed under the GPL, so some people/projects like Debian may have objections to build _dbm with the gdbm backend. It gets difficult to determine, which

[issue5358] Unicode control characters are not allowed as identifiers

2009-02-24 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why do you think this is a bug? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5358 ___

[issue5335] mmap can crash with tagname (on windows)

2009-02-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: This is duplicated issue of issue1733986. So I'll closing... -- resolution: - duplicate status: open - closed superseder: - mmap.mmap can overrun buffer ___ Python tracker

[issue1733986] mmap.mmap can overrun buffer

2009-02-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I came from issue5335. I think attached patch will fix this issue. -- keywords: +patch nosy: +ocean-city priority: normal - high type: - crash versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file:

[issue5358] Unicode control characters are not allowed as identifiers

2009-02-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5358 ___ ___ Python-bugs-list

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Okay, let's abandon 30-bit digits on 32-bit machines: it's still unclear whether there's any real performance gain, and it's trivial to re-enable 30-bit digits by default later. I'm also going to abandon the optimizations for now; it'll

[issue5360] RO (shorthand for READONLY) gone, not in documentation

2009-02-24 Thread Rémi Koenig
New submission from Rémi Koenig remi.k2...@gmail.com: The Defining New Types document for python3 (http://docs.python.org/3.0/extending/newtypes.html) cites the RO macro (which existed in versions 3). However, it has been removed in py3k (cf http://wiki.python.org/moin/Py3kExtensionModules or

[issue4565] Rewrite the IO stack in C

2009-02-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: We also have to figure out how to make the C IOBase a ABC, so people can implement it. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4565 ___

[issue5360] RO (shorthand for READONLY) gone, not in documentation

2009-02-24 Thread Rémi Koenig
Rémi Koenig remi.k2...@gmail.com added the comment: Sorry to bother, but I just noticed that in this same document (http://docs.python.org/3.0/extending/newtypes.html), PyObject_HEAD_INIT(NULL) has not been replaced by PyVarObject_HEAD_INIT(NULL, 0). ___

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

2009-02-24 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-features-3.diff is based on the 2.x trunk. Added comments. Restricted line lengths to no more than 80 characters Added common POSIX character classes like [[:alpha:]]. Added further checks to reduce unnecessary

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-02-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Updated Victor's patch: - applies cleanly against newly whitespace-normalized unicodeobject.c - renamed USE_WCHAR_SURROGATE to CONVERT_WCHAR_TO_SURROGATES - add defined(SIZEOF_WCHAR_T) check I find the patched version of

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-02-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-02-24 20:39, Mark Dickinson wrote: Mark Dickinson dicki...@gmail.com added the comment: Updated Victor's patch: - applies cleanly against newly whitespace-normalized unicodeobject.c - renamed USE_WCHAR_SURROGATE to

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-02-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It would be better to have a single #ifdef #else #endif Yes, of course it would. :) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4474 ___

[issue4565] Rewrite the IO stack in C

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: We also have to figure out how to make the C IOBase a ABC, so people can implement it. Mmmh, I know absolutely nothing about the ABC implementation. ___ Python tracker rep...@bugs.python.org

[issue1578269] Add os.link() and os.symlink() support for Windows

2009-02-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-02-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: New patch, with two separate versions of PyUnicode_FromWideChar. Added file: http://bugs.python.org/file13167/unicode_fromwidechar_surrogate-6.patch ___ Python tracker rep...@bugs.python.org

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-02-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-02-24 21:50, Mark Dickinson wrote: Mark Dickinson dicki...@gmail.com added the comment: New patch, with two separate versions of PyUnicode_FromWideChar. Thanks, much better :-) ___ Python

[issue5361] Obsolete mispelled in string formatting docs

2009-02-24 Thread Steven D'Aprano
New submission from Steven D'Aprano st...@pearwood.info: The table of string formatting conversions has a mispelling: http://docs.python.org/library/stdtypes.html#string-formatting 'u' Obselete type – it is identical to 'd'. Should be Obsolete. -- assignee: georg.brandl components:

[issue1006238] cross compile patch

2009-02-24 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: I can definitely chime in on this issue. A (proper) testcase would be to do something like the following: # Example item -- this isn't what you'll be using... CROSS_COMPILE_PREFIX=binos_c3.4.3-p1.mips64-octeon-linux- AS=${CROSS_COMPILE}as \

[issue1006238] cross compile patch

2009-02-24 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: Am I correct in this understanding, or is Pgen unneeded after the grammar file is generated? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1006238

[issue5362] Add configure option to disable Py3k warnings

2009-02-24 Thread Collin Winter
New submission from Collin Winter coll...@gmail.com: The attached patch adds a --with-py3k-warnings option to configure. Passing --without-py3k-warnings disables all Py3k compatibility warnings (the default is to keep the warnings). For production deployments where performance is more important

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-24 Thread pmoody
pmoody pyt...@hda3.com added the comment: Are there any committers who'd be able to help get this integrated? Martin is booked solid until April and that would apparently jeopardize the inclusion of ipaddr in python 3.1. Cheers, /peter On Wed, Feb 4, 2009 at 11:27 AM, Martin v. Löwis

[issue5362] Add configure option to disable Py3k warnings

2009-02-24 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I would like to understand the problem better first. I find it hard to believe that mere access to a global (even if frequent) costs so much. I think we should strive to make the warnings check faster if it indeed produces significant runtime

[issue5084] unpickling does not intern attribute names

2009-02-24 Thread Jake McGuire
Jake McGuire j...@youtube.com added the comment: The fromstring/asstring dance was due to my incomplete understanding of refcounting. PyDict_Next returns a borrowed reference but PyString_InternInPlace expects an owned reference. Thanks to Kirk McDonald, I have a new patch that does the

[issue4715] optimize bytecode for conditional branches

2009-02-24 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: I've updated Antoine's patch to incorporate my comments. This interacts with issue 2459, but I haven't yet looked at its patch to figure out how. As a first cut, I'll propose committing this patch, backporting it to trunk, syncing it into the

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You should post a message on python-dev and put your patch on Rietveld, this will give you more chances to find an interested developer. ___ Python tracker rep...@bugs.python.org

[issue5084] unpickling does not intern attribute names

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In your patch, I'm not sure where the `name` variable is coming from. Have you checked it works? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5084

[issue5084] unpickling does not intern attribute names

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: To give an example of what the test could check: class C(object): ... def __init__(self): ...self.some_long_attribute_name = 5 ... c = C() c.__dict__ {'some_long_attribute_name': 5} sorted(map(id, c.__dict__)) [140371243499696] import

[issue5362] Add configure option to disable Py3k warnings

2009-02-24 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: s/Leaving/Turning/ in configure.in. It looks like the convention for other --with flags that default to enabled is to document them as --with(out)-xxx. (except tsc...) I guess it's probably even better just to say what the default is in the

[issue4715] optimize bytecode for conditional branches

2009-02-24 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: Committed as r69961. I'll post the backport to trunk here at least a day before I commit it. -- type: resource usage - performance versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue1676] Fork/exec issues with Tk 8.5/Python 2.5.1 on OS X

2009-02-24 Thread Lars Yencken
Changes by Lars Yencken l...@csse.unimelb.edu.au: -- nosy: +lars512 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1676 ___ ___ Python-bugs-list

[issue4609] Allow use of 256 FD's on solaris in 32 bit mode

2009-02-24 Thread Ross Hayden
Changes by Ross Hayden r...@nsnull.com: -- nosy: +ross ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4609 ___ ___ Python-bugs-list mailing list

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-24 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I'll take care of this. My goal is to do it before PyCon. -- assignee: - gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3959

[issue5363] Documentation of filecmp.compfiles missing word possible explanation

2009-02-24 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: contains the list of files match in both directories, should have that before match In addition I couldn't figure out from the documentation what common was supposed to be doing -- it sounded more like something that should be part of the

[issue5363] Documentation of filecmp.compfiles missing word possible explanation

2009-02-24 Thread Mitchell Model
Changes by Mitchell Model m...@acm.org: -- components: +Documentation -Distutils ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5363 ___ ___

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-02-24 Thread Jeff Oyama
Jeff Oyama j...@oyama.org added the comment: Actually I have encountered a possible bug. the close() method doesn't seem to actually close the connection... On Mon, Feb 23, 2009 at 11:56 PM, Jeff Oyama rep...@bugs.python.org wrote: Jeff Oyama j...@oyama.org added the comment: Thank you