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

2009-02-24 Thread Jeff Oyama
Jeff Oyama 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 wrote: > > Jeff Oyama added the comment: > > Thank you Giampaolo, it works just as I was hoping, =] I tes

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

2009-02-24 Thread Mitchell Model
Changes by Mitchell Model : -- components: +Documentation -Distutils ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2009-02-24 Thread Mitchell Model
New submission from Mitchell Model : "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 result no

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

2009-02-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'll take care of this. My goal is to do it before PyCon. -- assignee: -> gregory.p.smith ___ Python tracker ___ ___

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

2009-02-24 Thread Ross Hayden
Changes by Ross Hayden : -- nosy: +ross ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[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 : -- nosy: +lars512 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4715] optimize bytecode for conditional branches

2009-02-24 Thread Jeffrey Yasskin
Jeffrey Yasskin 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 __

[issue5362] Add configure option to disable Py3k warnings

2009-02-24 Thread Jeffrey Yasskin
Jeffrey Yasskin 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 documentation. "Tr

[issue5084] unpickling does not intern attribute names

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou 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

[issue5084] unpickling does not intern attribute names

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: In your patch, I'm not sure where the `name` variable is coming from. Have you checked it works? ___ Python tracker ___ _

[issue5084] unpickling does not intern attribute names

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: The test should check that the unpickled strings have been interned. ___ Python tracker ___ ___ Python-bugs-l

[issue4715] optimize bytecode for conditional branches

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 25 février 2009 à 00:51 +, Jeffrey Yasskin a écrit : > 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 t

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

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou 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 _

[issue4715] optimize bytecode for conditional branches

2009-02-24 Thread Jeffrey Yasskin
Jeffrey Yasskin 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 issue 2459 patch,

[issue5084] unpickling does not intern attribute names

2009-02-24 Thread Jake McGuire
Jake McGuire 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 refcounting correctl

[issue5362] Add configure option to disable Py3k warnings

2009-02-24 Thread Martin v. Löwis
Martin v. Löwis 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 costs, rather than

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

2009-02-24 Thread pmoody
pmoody 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 wrote: > > Martin v. Löw

[issue5362] Add configure option to disable Py3k warnings

2009-02-24 Thread Collin Winter
New submission from Collin Winter : 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 than warnings no-o

[issue1006238] cross compile patch

2009-02-24 Thread Garrett Cooper
Garrett Cooper added the comment: Am I correct in this understanding, or is Pgen unneeded after the grammar file is generated? ___ Python tracker ___ __

[issue1006238] cross compile patch

2009-02-24 Thread Garrett Cooper
Garrett Cooper 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" \ CC="${CROSS_COMP

[issue5361] Obsolete mispelled in string formatting docs

2009-02-24 Thread Steven D'Aprano
New submission from Steven D'Aprano : 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: Documentation mess

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

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

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

2009-02-24 Thread Mark Dickinson
Mark Dickinson 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 ___

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

2009-02-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue4565] Rewrite the IO stack in C

2009-02-24 Thread Antoine Pitrou
Antoine Pitrou 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

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

2009-02-24 Thread Mark Dickinson
Mark Dickinson added the comment: > It would be better to have a single #ifdef #else #endif Yes, of course it would. :) ___ Python tracker ___ ___

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

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

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

2009-02-24 Thread Mark Dickinson
Mark Dickinson 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 PyUnicode_FromWideChar quite hard

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

2009-02-24 Thread Matthew Barnett
Matthew Barnett 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 backtracking. I've decided to remove \

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

2009-02-24 Thread Rémi Koenig
Rémi Koenig 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). ___ Python tracker

[issue4565] Rewrite the IO stack in C

2009-02-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: We also have to figure out how to make the C IOBase a ABC, so people can implement it. ___ Python tracker ___

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

2009-02-24 Thread Rémi Koenig
New submission from Rémi Koenig : 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 python3.0/structmembe

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

2009-02-24 Thread Mark Dickinson
Mark Dickinson 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 be much easier to w

[issue5358] Unicode control characters are not allowed as identifiers

2009-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue1733986] mmap.mmap can overrun buffer

2009-02-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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: http://bugs.python.org/file13163/f

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

2009-02-24 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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

[issue5358] Unicode control characters are not allowed as identifiers

2009-02-24 Thread Martin v. Löwis
Martin v. Löwis added the comment: Why do you think this is a bug? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5359] _dbm extension only built using gdbm on linux

2009-02-24 Thread Matthias Klose
New submission from Matthias Klose : 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 code then uses _dbm

[issue5358] Unicode control characters are not allowed as identifiers

2009-02-24 Thread Baiju M
New submission from Baiju M : 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 Unicode control character:

[issue1731717] race condition in subprocess module

2009-02-24 Thread Gabriel
Gabriel 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 problem arose