[issue1114345] Add SSL certificate validation

2007-08-30 Thread vila-sf
vila-sf added the comment: Bill == Bill Janssen [EMAIL PROTECTED] writes: Bill Bill Janssen added the comment: Bill Fixed in 2.6. Bill -- Bill resolution: - fixed Bill status: open - closed

[issue1044] tarfile insecure pathname extraction

2007-08-30 Thread Lars Gustäbel
Lars Gustäbel added the comment: After careful consideration and a private discussion with Martin I do no longer think that we have a security issue here. tarfile.py does nothing wrong, its behaviour conforms to the pax definition and pathname resolution guidelines in POSIX. There is no known or

[issue1059] *args and **kwargs in function definitions

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: Lars Gustäbel schrieb: For example in tarfile.rst and logging.rst there are function definitions using *args and/or **kwargs like: .. function:: debug(msg[, *args[, **kwargs]]) The * and ** should be escaped IMO, so that they are not mistaken as

[issue1059] *args and **kwargs in function definitions

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: Lars Gustäbel schrieb: Lars Gustäbel added the comment: Oh, I thought Emacs was an operating system, I didn't know you could edit text files with it. You live and learn ;-) I suspected that this was intentional. If you make backslash escaping optional,

[issue1170311] zipfile UnicodeDecodeError

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: The docs say (at least the development docs) that Unicode filenames must be encoded to str before passing them to ZipFile.write(). (This issue will have to be solved differently for Py3k, I'll look into it.) -- nosy: +georg.brandl resolution: - wont fix

[issue1193061] Python and Turkish Locale

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: Dupe of #1528802. -- nosy: +georg.brandl resolution: - duplicate status: open - closed superseder: - Turkish Character _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1193061

[issue1528802] Turkish Character

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: If I'm not mistaken, i.upper() will never be LATIN CAPITAL LETTER I WITH DOT ABOVE, regardless of the locale? _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1528802 _

[issue883466] quopri encoding Unicode

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: This is the same issue you can see with cStringIO.StringIO(uabc).getvalue(). This behavior will not be changed, as per #1730114. Marc-Andre: would it be okay to add an explicit str() call in the StringIO calls in quopri_codec and uu_codec, so that non-ASCII

[issue1709599] run test_1565150(test_os.py) only on NTFS

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: Affects 2.5 only. -- nosy: +georg.brandl versions: +Python 2.5 -Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1709599 _

[issue1680959] Add tests for pipes module (test_pipes)

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: Committed as rev. 57716. -- assignee: facundobatista - georg.brandl nosy: +georg.brandl resolution: - accepted status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1680959

[issue1528802] Turkish Character

2007-08-30 Thread Ismail Donmez
Ismail Donmez added the comment: @George, i.upper() WILL be I-with-a-dot-above in Turkish.i _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1528802 _ ___ Python-bugs-list

[issue883466] quopri encoding Unicode

2007-08-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Georg: Yes, sure. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue883466 ___ Python-bugs-list mailing list Unsubscribe:

[issue1528802] Turkish Character

2007-08-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Unassigning this. Unless someone provides a patch to add context sensitivity to the Unicode upper/lower conversions, I don't think anything will change. The mapping you see in Python (for Unicode) is taken straight from the Unicode database and there's

[issue1528802] Turkish Character

2007-08-30 Thread Ismail Donmez
Ismail Donmez added the comment: There is no need to unassign this, the bug is invalid. _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1528802 _ ___ Python-bugs-list

[issue1061] ABC caches should use weak refs

2007-08-30 Thread Guido van Rossum
New submission from Guido van Rossum: The various caches in abc.py should be turned into weak sets so that the caches don't keep the subclass objects alive forever. -- messages: 55480 nosy: gvanrossum severity: normal status: open title: ABC caches should use weak refs versions: Python

[issue1040] Unicode problem with TZ

2007-08-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: This is now fixed in r57720. Using wide APIs would be possible through GetTimeZoneInformation, however, then TZ won't be supported anymore (unless the CRT code to parse TZ is duplicated). -- nosy: +loewis resolution: - fixed status: open - closed

[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2007-08-30 Thread Kevin Ar18
Kevin Ar18 added the comment: Here's another bug report that talks about a 2GB file limit: http://bugs.python.org/issue1189216 The diff offered there does not solve the problem; actually it's possible that the diff may not have anything to do with fixing the problem (though I'm not certain), but

[issue1686386] Python SEGFAULT on invalid superclass access

2007-08-30 Thread toxik
toxik added the comment: Minor note: The patch mixes tabs and spaces. AFAIK, PEP 7 says to use four spaces when making new code, and follow suite in legacy, or convert it. _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1686386

[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2007-08-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: I now see the problem. What you want to do cannot possibly work. You are trying to create a string object that is larger than 2GB; this is not possible on a 32-bit system (which I assume you are using). No matter how you modify the read() function, it would

[issue1039] Asssertion in Windows debug build

2007-08-30 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- resolution: - accepted __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1039 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2007-08-30 Thread Kevin Ar18
Kevin Ar18 added the comment: Just some thoughts In posting about this problem elsewhere, it has been argued that you shouldn't be copying that much stuff into memory anyways (though there are possible cases for a need for that). However, the question is what should the zipfile module do.

[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2007-08-30 Thread Kevin Ar18
Kevin Ar18 added the comment: So, just add an error to the module (so it won't crash)? BTW, is Python 2.6 ready for use? I could use that feature now. :) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1060 __

[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2007-08-30 Thread Kevin Ar18
Kevin Ar18 added the comment: Maybe a message that says that strings on 32-bit CPUs cannot handle more than 2GB of data; use the stream instead? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1060 __

[issue1044] tarfile insecure pathname extraction

2007-08-30 Thread jan matejek
jan matejek added the comment: if that can be considered official stance, it's fine by me. feel free to close the bug. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1044 __ ___

[issue1675334] Draft implementation for PEP 364

2007-08-30 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- versions: +Python 3.0 -Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1675334 _ ___ Python-bugs-list mailing list

[issue1001] 2to3 crashes on input files with no trailing newlines

2007-08-30 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- versions: +Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1001 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1061] ABC caches should use weak refs

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: On 8/30/07, Thomas Wouters [EMAIL PROTECTED] wrote: Thomas Wouters added the comment: Here's a working version of that idea, with a WeakSet implementation I had lying around (but never really used.) It seems to work, and fixes the refcount issues, but

[issue1463370] Add .format() method to str and unicode

2007-08-30 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- versions: +Python 3.0 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1463370 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1753395] struni: assertion in Windows debug build

2007-08-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: The patch looks fine to me, please apply. -- assignee: loewis - georg.brandl resolution: - accepted _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1753395 _

[issue1467929] %-formatting and dicts

2007-08-30 Thread Guido van Rossum
Changes by Guido van Rossum: -- priority: immediate - normal _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1467929 _ ___ Python-bugs-list mailing list

[issue1039] Asssertion in Windows debug build

2007-08-30 Thread Thomas Heller
Thomas Heller added the comment: Applied in rev. 57731. -- resolution: accepted - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1039 __ ___

[issue1114345] Add SSL certificate validation

2007-08-30 Thread Bill Janssen
Bill Janssen added the comment: The new SSL code does work with self-signed certs, either by skipping validation with CERT_NONE, or by adding the cert to the ca_certs file. I don't believe there are any other options that make sense, but if you can suggest one, let's hear it.

[issue1062] issue message copy

2007-08-30 Thread Bill Janssen
New submission from Bill Janssen: It would be useful to have a way to determine whether a socket is or is not already bound to a local port (i.e., has had bind or connect called on it). It's tempting to call socket.socket.getsockname(), but the behavior of this method is essentially

[issue1002] Patch to rename HTMLParser module to lower_case

2007-08-30 Thread Collin Winter
Collin Winter added the comment: orsenthil: that this will break external modules is completely acceptable. Those modules won't work out-of-the-box with Python 3 anyway, and hopefully Paul's patch to 2to3 will alleviate some of the burden. -- nosy: +collinwinter

[issue1062] nice to have a way to tell if a socket is bound

2007-08-30 Thread Bill Janssen
Bill Janssen added the comment: What happened to my issue metadata? -- assignee: - janssen priority: - low title: None - nice to have a way to tell if a socket is bound type: - rfe versions: +Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED]

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-30 Thread Thomas Heller
Thomas Heller added the comment: Set to accepted. As pointed out in private email, please apply it to the trunk. Your thoughts about the 'length' of pointers make sense, and are very similar to what I had in mind when I implemented pointer indexing. For indexing pointers, negative indices (in

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-30 Thread Thomas Heller
Changes by Thomas Heller: -- assignee: theller - twouters _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617699 _ ___ Python-bugs-list mailing list

[issue1753395] struni: assertion in Windows debug build

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: Martin v. Löwis schrieb: Martin v. Löwis added the comment: The patch looks fine to me, please apply. Done in rev. 57752. -- status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1753395

[issue1746880] AMD64 installer does not place python25.dll in system dir

2007-08-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: I have now fixed it in 57750, 57751, 57754. I leave the bug open until I can actually test it. -- resolution: - fixed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1746880

[issue1062] nice to have a way to tell if a socket is bound

2007-08-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: Given that the underlying platform has no support for that, it will be difficult to implement correctly across all systems. -- nosy: +loewis __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1062

[issue1528802] Turkish Character

2007-08-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: I agree with cartman: Python behaves as designed in all cases discussed here. Closing this report as invalid. -- nosy: +loewis _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1528802

[issue1061] ABC caches should use weak refs

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: Guido van Rossum schrieb: Guido van Rossum added the comment: On 8/30/07, Thomas Wouters [EMAIL PROTECTED] wrote: Thomas Wouters added the comment: Here's a working version of that idea, with a WeakSet implementation I had lying around (but never really

[issue1528802] Turkish Character

2007-08-30 Thread Georg Brandl
Changes by Georg Brandl: -- resolution: - invalid status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1528802 _ ___ Python-bugs-list mailing

[issue1709599] run test_1565150(test_os.py) only on NTFS

2007-08-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks for the patch. Committed as r57759 and r57760. I added it to the trunk as well, as it might be possible that the test is run on FAT even if the operating system is Windows XP. -- nosy: +loewis resolution: - accepted status: open - closed

[issue1061] ABC caches should use weak refs

2007-08-30 Thread Martin v. Löwis
Martin v. Löwis added the comment: The fatal error is raised if the stack overflows in the process of handling RuntimeError. In certain cases, the C algorithms won't bail out if a RuntimeError is raised, and just catch it. If that then causes another stack overflow, Python gives up. One such

[issue1063] Small typo in properties example

2007-08-30 Thread Carsten Grohmann
New submission from Carsten Grohmann: The example for property() contains a typo / small bug: class C(object): def __init__(self): self.__x = None [...] should be: class C(object): def __init__(self): self._x = None [...] Source: http://docs.python.org/lib/built-in-funcs.html

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-30 Thread Thomas Wouters
Thomas Wouters added the comment: Well, that's not quite how I implemented the slicing, and it's also not how the existing simple-slicing was implemented: A negative start index is taken to mean 0, and a stop index below the start index is taken to mean 'the start index' (leading to an empty

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-30 Thread Thomas Heller
Thomas Heller added the comment: Yes. But looking at your examples I think it would be better to forbid missing indices completely instead of allowing them only where they clearly mean 0. Writing (and reading!) a 0 is faster than thinking about if a missing index is allowed or what it means.

[issue1064] Test issue

2007-08-30 Thread Martin v. Löwis
New submission from Martin v. Löwis: Let's see who gets this -- assignee: georg.brandl messages: 55508 nosy: georg.brandl, loewis severity: normal status: open title: Test issue __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1064

[issue1064] Test issue

2007-08-30 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- resolution: - invalid status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1064 __ ___ Python-bugs-list mailing list

[issue1044] tarfile insecure pathname extraction

2007-08-30 Thread Lars Gustäbel
Lars Gustäbel added the comment: I updated the documentation, r57764 (trunk) and r57765 (2.5). -- resolution: - works for me status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1044 __

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-30 Thread Thomas Wouters
Thomas Wouters added the comment: Hmmm Well, that's fine by me, but it changes current behaviour, and in a way that ctypes own testsuite was testing, even ;) (it does, e.g., 'p[:4]' in a couple of places.) Requiring the start always would possibly break a lot of code. We could make only the

[issue1061] ABC caches should use weak refs

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: Georg, would you have time to submit an improved patch? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1061 __ ___ Python-bugs-list mailing

[issue1064] Test issue

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: Martin v. Löwis schrieb: New submission from Martin v. Löwis: Let's see who gets this I did. :) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1064 __

[issue1063] Small typo in properties example

2007-08-30 Thread Georg Brandl
Georg Brandl added the comment: Thanks, this is already fixed in the development docs (http://docs.python.org/dev). -- nosy: +georg.brandl resolution: - out of date status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1063

[issue1062] nice to have a way to tell if a socket is bound

2007-08-30 Thread Bill Janssen
Bill Janssen added the comment: Indeed. Calls for some design chops. Again, it's a question of what the socket.socket class really is. Bill On 8/30/07, Martin v. Löwis [EMAIL PROTECTED] wrote: Martin v. Löwis added the comment: Given that the underlying platform has no support for that,

[issue1065] ssl.py shouldn't change class names from 2.6 to 3.x

2007-08-30 Thread Bill Janssen
New submission from Bill Janssen: It seems like a bad idea to have ssl.sslsocket(socket) suddenly become ssl.SSLSocket(fileno) in 2.3. Since no user code is currently using the ssl module, it would be a good idea to change it upfront (if possible) so that code written against 2.6's version

[issue1462525] URI parsing library

2007-08-30 Thread Skip Montanaro
Changes by Skip Montanaro: -- nosy: +skip.montanaro _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1462525 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2007-08-30 Thread Skip Montanaro
Changes by Skip Montanaro: -- nosy: +skip.montanaro _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1675455 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1066] Implement PEPs 3109, 3134

2007-08-30 Thread Collin Winter
New submission from Collin Winter: This does not implement __context__; it turned out to be much more difficult than expected and will require some more thought. The new raise syntax and the __traceback__ and __cause__ attributes are implemented, however. This does not yet include a docs patch,

[issue1066] Implement PEPs 3109, 3134

2007-08-30 Thread Collin Winter
Changes by Collin Winter: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1066 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1066] Implement PEPs 3109, 3134

2007-08-30 Thread Collin Winter
Changes by Collin Winter: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1066 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-30 Thread Thomas Wouters
Thomas Wouters added the comment: Checked in a slightly newer version. -- resolution: accepted - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1617699 _

[issue1066] Implement PEPs 3109, 3134

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: Please check it in yourself. -- assignee: gvanrossum - collinwinter resolution: - accepted __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1066 __

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-30 Thread Thomas Wouters
New submission from Thomas Wouters: test_smtplib fails because asyncore uses bytes(data) where data may be bytes or str or some undefined type. The attached patch fixes it to the extend that test_smtplib works again (plus a small fix in test_smtplib itself.) I'm not sure if this is the right

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-30 Thread Guido van Rossum
Changes by Guido van Rossum: -- versions: +Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1067 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: Great, please check it in. This is close to what I had sitting somewhere, but I hadn't finished it. -- assignee: gvanrossum - twouters resolution: - accepted __ Tracker [EMAIL PROTECTED]

[issue1067] test_smtplib failures (caused by asyncore)

2007-08-30 Thread Thomas Wouters
Thomas Wouters added the comment: Checked in. -- resolution: accepted - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1067 __ ___

[issue1066] Implement PEPs 3109, 3134

2007-08-30 Thread Collin Winter
Changes by Collin Winter: -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1066 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1066] Implement PEPs 3109, 3134

2007-08-30 Thread Collin Winter
Collin Winter added the comment: Committed as r57783. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1066 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue980098] Module to dynamically generate structseq objects

2007-08-30 Thread Skip Montanaro
Changes by Skip Montanaro: -- nosy: +skip.montanaro Tracker [EMAIL PROTECTED] http://bugs.python.org/issue980098 ___ Python-bugs-list mailing list Unsubscribe:

[issue504152] rfc822 long header continuation broken

2007-08-30 Thread Guido van Rossum
Guido van Rossum added the comment: Barry, what do you think of this patch? How does the email package handle this case? Tracker [EMAIL PROTECTED] http://bugs.python.org/issue504152