[issue1926] NNTPS support in nntplib

2010-11-02 Thread Andrew Vant
Andrew Vant added the comment: At Antoine's suggestion I've written a new patch for this for 3.2, adding support for both SSL on 563 and STARTTLS on a normal connection. A NNTP_SSL class supports the former and a NNTP.starttls() method supports the latter. As a side effect of getting starttls

[issue1926] NNTPS support in nntplib

2010-11-02 Thread Andrew Vant
Andrew Vant added the comment: Also, Julien: Thanks for mentioning the 563-discouraged thing. I added a note about it to the new documentation before submitting. -- ___ Python tracker _

[issue10293] PyMemoryView object has obsolete members

2010-11-02 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : The PyMemoryObject has a "base" member which appears to be obsolete. Furthermore, the function do_release() attempt to perform some obsolete-looking woodo with base if it happens to be a tuple. Looks dangerous. -- components: Interpreter C

[issue10288] Remove

2010-11-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Dave Malcolm wrote: > > New submission from Dave Malcolm : > > Issue 5793 rationalized all usage of C "character" handling to use > "Py_"-prefixed locale-unaware macros, at the "char" level. > > In particular, this comment was added in two places to > I

[issue10086] test_sysconfig failure with site-packages

2010-11-02 Thread Hallvard B Furuseth
Hallvard B Furuseth added the comment: ,AC�ric Araujo writes: > Attaching a patch with your two suggestions. > Added file: http://bugs.python.org/file19264/fix10086.diff Not quite, since I suggested global_path.startswith(os.path.join(base, "")) instead of global_path.startswith(base) I

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2010-11-02 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- title: Remove -> Remove deprecated C "character" handling macros ISUPPER() etc ___ Python tracker ___ _

[issue10260] Add a threading.Condition.wait_for() method

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I spent some time thinking of a name. I tried wait_predicate and > predicate_wait, but wait_for seemed natural. Any other ideas? > How about wait_until_true? wait_for is ok IMO. > My original method had this as a free function, but I moved it into > the Co

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

2010-11-02 Thread Vlastimil Brom
Vlastimil Brom added the comment: There seems to be a bug in the handling of numbered backreferences in sub() in issue2636-20101102.zip I believe, it would be a fairly new regression, as it would be noticed rather soon. (tested on Python 2.7; winXP) >>> re.sub("([xy])", &qu

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

2010-11-02 Thread Vlastimil Brom
Vlastimil Brom added the comment: Sorry for the noise, please, forgot my previous msg120215; I somehow managed to keep an older version of _regex_core.py along with the new regex.py in the Lib directory, which are obviously incompatible. After updating the files correctly, the mentioned example

[issue4510] ValueError for list.remove() not very helpful

2010-11-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: This has already been implemented. -- nosy: +benjamin.peterson resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue7266] test_lib2to3 failure under Windows

2010-11-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9796] Add summary tables for unittest API

2010-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: issue9796-3.diff improves the rendering of the HTML tables. (Note: the patch just adds the tables, short paragraphs before them and moves a few methods around to match the division and the order of the tables, without changing their content.) -- compon

[issue9340] argparse parse_known_args does not work with subparsers

2010-11-02 Thread Steven Bethard
Steven Bethard added the comment: Fixed with a variant of Catherine's patch (following R. David Murray's suggestion of inlining the two methods) in r86111 (3.X) and r86112 (2.7). Also added one more test to make sure that the order of the extra arguments is consistent (extra arguments from ma

[issue10273] Clean-up Unittest API

2010-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW in addition to assertRegexpMatches and assertNotRegexpMatches there are 2 more methods that use "Regexp": assertRaisesRegexp and the newly introduced assertWarnsRegexp. -- components: +Tests ___ Python tracker

[issue10273] Clean-up Unittest API

2010-11-02 Thread Michael Foord
Michael Foord added the comment: @Ezio Good catch. Even though several of us (including myself) prefer assertRegex over assertRegexp it is probably better to have consistent APIs otherwise people will never remember which methods have the 'p' and which don't. --

[issue7826] support caching for 2to3

2010-11-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm going to reject this for now. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ _

[issue10288] Remove deprecated C "character" handling macros ISUPPER() etc

2010-11-02 Thread Eric Smith
Eric Smith added the comment: +1 I agree on removing the lowercase versions. It's sort of handy having them around to prevent accidental uses. But the same could be said for other similar macros/functions. Plus they wouldn't work if the isXXX symbols were really functions, not macros (not th

[issue10292] tarinfo should use relative symlinks

2010-11-02 Thread Lars Gustäbel
Lars Gustäbel added the comment: Apparently you were in quite a hurry when you filed this bug report. - What is the exact problem and how does it manifest itself? - Any helpful details (tracebacks, output)? - Is there a testcase or example code you can provide? - Which other tools are you talki

[issue7292] Multiprocessing Joinable race condition?

2010-11-02 Thread Ask Solem
Changes by Ask Solem : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue5930] Transient error in multiprocessing (test_number_of_objects)

2010-11-02 Thread Ask Solem
Changes by Ask Solem : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue10267] test_ttk_guionly leaks many references

2010-11-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: It seems this issue can be fixed by attached patch. -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file19465/py3k_fix_test_ttk_guionly_refleak.patch ___ Python tracker

[issue9733] Can't iterate over multiprocessing.managers.DictProxy

2010-11-02 Thread Ask Solem
Changes by Ask Solem : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue3876] multiprocessing does not compile on systems which do not define sem_timedwait

2010-11-02 Thread Ask Solem
Ask Solem added the comment: What is the status of this issue? There are several platform listed here, which I unfortunately don't have access to. -- nosy: +asksol ___ Python tracker _

[issue9955] multiprocessing.Pipe segmentation fault when recv of unpicklable object

2010-11-02 Thread Ask Solem
Ask Solem added the comment: Can't reproduce on Python 2.7, but can indeed reproduce on 2.6. Issue fixed? -- ___ Python tracker ___ _

[issue10133] multiprocessing: conn_recv_string() broken error handling

2010-11-02 Thread Ask Solem
Changes by Ask Solem : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue10292] tarinfo should use relative symlinks

2010-11-02 Thread Jasper St. Pierre
Jasper St. Pierre added the comment: Oh man, attaching the wrong diff and getting the diff wrong. The issue I found with Python 2.7: when creating a simple link in tar: $ mkdir tar_test $ cd tar_test $ touch one $ ln -s one two $ cd .. $ tar czf tar_test.tgz tar_test It seems obvious that th

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2010-11-02 Thread Ask Solem
Ask Solem added the comment: It seems that Process.terminate is not meant to be used by the child, but only the parent. >From the documentation: "Note that the start(), join(), is_alive() and exit_code methods should only be called by the process that created the process object." Either

[issue10292] tarinfo should use relative symlinks

2010-11-02 Thread Jasper St. Pierre
Jasper St. Pierre added the comment: Uh, I just noticed the "python2.6" in the traceback. Looks like I *was* using 2.6 because Cygwin decided to downgrade for some reason. Uh, sorry about that. -- ___ Python tracker

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Nik Tautenhahn
Nik Tautenhahn added the comment: There is even more inconsistency here. As already mentioned, we have this: >>> import json >>> json.loads(json.dumps("abc")) 'abc' If, however, I am evil and hide _json.so (which is the C-part of the json module for speedup), the JSON code falls back to it

[issue5573] multiprocessing Pipe poll() and recv() semantics.

2010-11-02 Thread Ask Solem
Changes by Ask Solem : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-11-02 Thread Ask Solem
Ask Solem added the comment: Pickling on put makes sense to me. I can't think of cases where this could break existing code either. I think this may also resolve issue 8323 -- stage: -> unit test needed ___ Python tracker

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Alternately, the Python implementation may be thought of as definitive and the optimizations are broken. -- ___ Python tracker ___

[issue9919] gdbinit lineno result is one line in excess

2010-11-02 Thread qpatata
qpatata added the comment: I'm sorry, I've not explained correctly. I'm wondering if the addition of the \n is ok or not, taken into account that it breaks the format of the "pyframe" macro output. It could be better to keep the older version (without the \n"). Kind regards. -- ___

[issue9796] Add summary tables for unittest API

2010-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: Updated patch after the changes made in r86118. -- Added file: http://bugs.python.org/file19467/issue9796-4.diff ___ Python tracker ___ __

[issue10294] Lib/test/test_unicode_file.py contains dead code

2010-11-02 Thread Stefan Behnel
New submission from Stefan Behnel : Lib/test/test_unicode_file.py contains dead code: def _test_equivalent(self, filename1, filename2): remove_if_exists(filename1) self.assertTrue(not os.path.exists(filename2)) f = file(filename1, "w") f.close() try:

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Walter Dörwald
Walter Dörwald added the comment: The following patch (against the release27-maint branch) seems to fix the problem. -- keywords: +patch nosy: +doerwalter Added file: http://bugs.python.org/file19468/json.diff ___ Python tracker

[issue2001] Pydoc interactive browsing enhancement

2010-11-02 Thread Ron Adam
Ron Adam added the comment: Nick, I can update the patch and move the server back into pydoc.py if that will help you get this into 3.2 beta. I can also changed the docstrings of the new parts to # comments. -- ___ Python tracker

[issue1926] NNTPS support in nntplib

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Andrew, thank you for posting a patch. I have a couple of comments: * the command-line option for the SSLContext won't work, since a context is a custom object, not a string; I would rework this part anyway, since I don't think separate options for the "SSL h

[issue10267] test_ttk_guionly leaks many references

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hirokazu's patch works for me. -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue10294] Lib/test/test_unicode_file.py contains dead code

2010-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9635] Add Py_BREAKPOINT and sys._breakpoint hooks

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would rename Py_BREAKPOINT to _Py_BREAKPOINT since we don't really want to support this. Also, why do you allow any arguments to sys._breakpoint()? -- nosy: +pitrou ___ Python tracker

[issue1926] NNTPS support in nntplib

2010-11-02 Thread Julien ÉLIE
Julien ÉLIE added the comment: Thanks a lot for having implemented STARTTLS, Andrew! That's great news! +Since the order in which certain operations need to be done varies +between normal, SSL, and STARTTLS connections varies, some +initialization must be done in the s

[issue10240] dict.update.__doc__ is misleading

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___ ___ Python-bugs-l

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

2010-11-02 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101102a.zip is a new version of the regex module. msg120204 relates to issue #1519638 "Unmatched group in replacement". In 'regex' an unmatched group is treated as an empty string in a replacement template. This behaviour is more in keeping with

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The fact that the C and Python versions are not fully tested (afaict) is not good. I'm not sure that's worth fixing for 2.7 and it's probably worth a separate bug report for Python 3.2 on that. In the meantime, I'll test Walter's patch and add a unit test f

[issue1500504] Alternate RFC 3986 compliant URI parsing module

2010-11-02 Thread Éric Araujo
Éric Araujo added the comment: Is this still relevant? Can’t the improvements make it into urllib.parse? -- nosy: +eric.araujo ___ Python tracker ___

[issue10171] Ugly buttons in some Tkinter objects in Windows

2010-11-02 Thread Rafe Kettler
Rafe Kettler added the comment: I've tested how these dialogs display in regular Tcl/Tk, and it appears the problem resides in the Tcl implementation, not the Python binding. You can see for yourself by running this Tcl script: package require Tk tk_messageBox tk_chooseColor Since this is no

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: The incomplete testing and C/Python implementation mismatch are covered by issue 5723 and issue 9233. -- ___ Python tracker ___ __

[issue10294] Lib/test/test_unicode_file.py contains dead code

2010-11-02 Thread Brett Cannon
Brett Cannon added the comment: Committed in r86125 -- assignee: -> brett.cannon nosy: +brett.cannon resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue10252] Fix resource warnings in distutils

2010-11-02 Thread Brian Brazil
Brian Brazil added the comment: I don't see your patch on the other bug, so I've updated mine not to use with. -- Added file: http://bugs.python.org/file19470/distutils_fd_leak_v2.patch ___ Python tracker

[issue5843] Normalization error in urlunparse

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Library (Lib) title: Possible normalization error in urlparse.urlunparse -> Normalization error in urlunparse versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-11-02 Thread Éric Araujo
Éric Araujo added the comment: Does 3.2 install into a Python3.framework? In other words, is the conception that 2.x and 3.x are two different languages ported over to Mac? -- nosy: +eric.araujo ___ Python tracker

[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-11-02 Thread Éric Araujo
Éric Araujo added the comment: Without typos: Does 3.1 install into a Python3.framework directory? -- ___ Python tracker ___ ___ Pyth

[issue10206] python program starting with unmatched quote spews spaces to stdout

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8994] pydoc does not support non-ascii docstrings

2010-11-02 Thread Torsten Landschoff
Torsten Landschoff added the comment: You are right, this is a duplicate of #6625. And in fact I should have known since I commented on that bug... -- status: open -> closed ___ Python tracker

[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-11-02 Thread Éric Araujo
Éric Araujo added the comment: That revision is actually an edit to re.rst. Is the patch irrelevant for other branches? -- nosy: +eric.araujo ___ Python tracker ___ ___

[issue8488] Docstrings of non-data descriptors "ignored"

2010-11-02 Thread Torsten Landschoff
Torsten Landschoff added the comment: FYI, this still applies to r86094 of py3k. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: To mitigate possible negative impacts from changing the return type, consider adding a parse_string hook that lets users control the return type: json.loads(f, parse_int=decimal.Decimal, parse_string=repr) -- nosy: +rhettinger _

[issue6625] UnicodeEncodeError on pydoc's CLI

2010-11-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Adding that argument to Python 2.7 seems like new feature territory. -- ___ Python tracker ___ ___

[issue8488] Docstrings of non-data descriptors "ignored"

2010-11-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @doerwalter: patch looks good. I've added a test and will commit momentarily. -- ___ Python tracker ___ _

[issue10038] json.loads() on str should return unicode, not str

2010-11-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: r86126 -- assignee: bob.ippolito -> barry resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9999] test_shutil cross-file-system tests are fragile (may not test what they purport to test)

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo title: test_shutil cross-file-system tests are fragile (may not test what they pruport to test) -> test_shutil cross-file-system tests are fragile (may not test what they purport to test) ___ Python tra

[issue8488] Docstrings of non-data descriptors "ignored"

2010-11-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: pydoc should probably be adapted to look at a type for descrs. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue9849] Argparse needs better error handling for nargs

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9846] ZipExtFile provides no mechanism for closing the underlying file object

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9736] doctest.DocTestSuite doesn't handle test globs correctly

2010-11-02 Thread Éric Araujo
Éric Araujo added the comment: Would you like to work on a patch? (Setting the versions field to versions that are open for bug fixes.) -- nosy: +eric.araujo stage: -> needs patch type: -> behavior versions: +Python 3.2 -Python 2.5, Python 2.6 ___

[issue10263] "python -m site" does not print path details

2010-11-02 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, because the internal import system isn't fully exposed, runpy and a couple of other tools in the standard library rely on the emulation in pkgutil instead. I know there are some differences between the emulation and the builtin mechanism on Windows in ter

[issue9625] argparse: Problem with defaults for variable nargs

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue2001] Pydoc interactive browsing enhancement

2010-11-02 Thread Nick Coghlan
Nick Coghlan added the comment: On Wed, Nov 3, 2010 at 2:17 AM, Ron Adam wrote: > > Ron Adam added the comment: > > Nick, I can update the patch and move the server back into pydoc.py if that > will help you get this into 3.2 beta. Yep, probably the best option 3.2 - then make a new issue ab

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-02 Thread Julien ÉLIE
Julien ÉLIE added the comment: David, the headers are not at all supposed to be "utf-8" encoded. For instance, have a look at the cn.bbs.comp.lang.python newsgroup: http://groups.google.fr/group/cn.bbs.comp.lang.python If you look at the source of the articles, you will for instance see that t

[issue9587] unittest.assertRaises() return the raised exception

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1500504] Alternate RFC 3986 compliant URI parsing module

2010-11-02 Thread Nick Coghlan
Nick Coghlan added the comment: I still like the higher level API concept, although I might not do it exactly as presented here any more. Independently of introducing a new parsing API, it would be worthwhile extracting the parsing tests from the attached module to make sure the *existing* p

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2010-11-02 Thread Éric Araujo
Éric Araujo added the comment: Would it be reasonable to add knowledge to html.parser to make it recognize script elements as CDATA and handle it correctly (that is let “<” pass)? -- nosy: +eric.araujo ___ Python tracker

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > And my text string is "\xC9ric", that's all. You mean b"\xC9ric", right? > If you look at the source of the articles, you will for instance see > that the Subject: header field is not MIME-encoded. It is directly > written in gb2312. How is an NNTP client

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, there are probably many holes like this. I've done what I could to make the simple cases (builtin types) to work, but the spec is rotten from the start. Blame the numpy people, sorry. -- nosy: +ncoghlan ___ Py

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Nick Coghlan
Nick Coghlan added the comment: As far as I know, PEP 3118 serves its purpose of allowing extension modules like numpy and PIL to share data without needing to copy it around all the time. It's just that memoryview wasn't really part of that purpose (since all the affected third party librari

[issue2927] expose html.parser.unescape

2010-11-02 Thread Tom Pinckney
Tom Pinckney added the comment: I don't think Django includes an HTML unescape. I'm not familiar with other frameworks. So I'd still find this useful to include in the stdlib. -- ___ Python tracker ___

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As far as I know, PEP 3118 serves its purpose of allowing extension > modules like numpy and PIL to share data without needing to copy it > around all the time. It's just that memoryview wasn't really part of > that purpose (since all the affected third party

[issue10280] nntp_version set to the most recent advertised version

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've fixed it according to your suggestion (take the max of the advertised version) in r86129. Thank you! -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I am wondering how to return the corresponding information. Should the field be totally absent from the returned dictionary, should it map to the empty string, or should it map to None? I'm leaning towards the latter (map to None), but perhaps the empty string

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-02 Thread Julien ÉLIE
Julien ÉLIE added the comment: Antoine, a news client could guess it because of the Content-Type: header field (in this example, it mentions charset="gb2312"). Yet, articles without a Content-Type: header field exist in the wild... There is no way to always make the right guess, unfortunately.

[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-11-02 Thread Bruce Sherwood
Bruce Sherwood added the comment: Yes. After installation, you'll see that Python 3.1 is in /Library/Frameworks/Python.framework/Versions/3.1 Bruce Sherwood On Tue, Nov 2, 2010 at 1:45 PM, Éric Araujo wrote: > > Éric Araujo added the comment: > > Without typos: Does 3.1 install into a Python

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Julien ÉLIE
Julien ÉLIE added the comment: The empty string would mean the header exists, and is empty (though not RFC-compliant). For instance: "User-Agent: \r\n" I believe None is better. -- ___ Python tracker __

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, a news client could guess it because of the Content-Type: > header field (in this example, it mentions charset="gb2312"). > Yet, articles without a Content-Type: header field exist in the > wild... Unless I'm mistaken, Content-Type should only apply

[issue9736] doctest.DocTestSuite doesn't handle test globs correctly

2010-11-02 Thread Jim Fulton
Jim Fulton added the comment: On Tue, Nov 2, 2010 at 5:55 PM, Éric Araujo wrote: > > Éric Araujo added the comment: > > Would you like to work on a patch? Sure. Jim -- ___ Python tracker ___

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch for returning None on absent fields. (works with trigofacile.com) -- keywords: +patch Added file: http://bugs.python.org/file19471/nntpover.patch ___ Python tracker

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-02 Thread Julien ÉLIE
Julien ÉLIE added the comment: > Unless I'm mistaken, Content-Type should only apply to the body, not the > headers. Either the headers use UTF-8 (RFC 3977), or they should be > MIME-encoded. Everything else is undecodable. Yes, of course. Such articles are not RFC-compliant. You're not mis

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Nick Coghlan
Nick Coghlan added the comment: Read the "Releasing the buffer" section in PEP 3118 again. Unless I'm misunderstanding you completely, the rules you're asking for are already in place: those fields are entirely the responsibility of the exporting object, and it needs to ensure they remain val

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Read the "Releasing the buffer" section in PEP 3118 again. Unless I'm > misunderstanding you completely, the rules you're asking for are > already in place: those fields are entirely the responsibility of the > exporting object, and it needs to ensure they rem

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Julien ÉLIE
Julien ÉLIE added the comment: OK, thanks. By the way, why is the token stripped? token = token[len(h):].lstrip(" ") "X-Header: test \r\n" in an header is kept in the overview as-is. I do not see why " test " should not be the value returned. Also, with: token = token or None "X-Head

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > OK, thanks. > By the way, why is the token stripped? > token = token[len(h):].lstrip(" ") > > "X-Header: test \r\n" in an header is kept in the overview as-is. > I do not see why " test " should not be the value returned. It's a simple way of handling

[issue8037] multiprocessing.Queue's put() not atomic thread wise

2010-11-02 Thread Vilnis Termanis
Vilnis Termanis added the comment: Please find attached an updated patch (including unit test) for the release27-maint branch. I've run the test_multiprocessing suite against svn revision 86129 of said branch. -- Added file: http://bugs.python.org/file19472/patch_27maint.diff ___

[issue1926] NNTPS support in nntplib

2010-11-02 Thread Andrew Vant
Andrew Vant added the comment: On 2 Nov 2010 at 17:05, Antoine Pitrou wrote: > * the command-line option for the SSLContext won't work, since a > context is a custom object, not a string; I would rework this part > anyway, since I don't think separate options for the "SSL host" are > useful (I'

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch trying to better handle whitespace. Would it be ok for you? -- Added file: http://bugs.python.org/file19473/nntpover2.patch ___ Python tracker

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file19473/nntpover2.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, sorry. -- Added file: http://bugs.python.org/file19474/nntpover2.patch ___ Python tracker ___ ___

[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-11-02 Thread Éric Araujo
Éric Araujo added the comment: So your answer is actually *no*, it does not install into Python3.framework :) If there had been separate Python.framework and Python3.framework, the answer to this bug would be obvious. But since 2.x and 3.x Pythons are installed as versions of the same framew

  1   2   >