[issue1625576] add ability to specify name to os.fdopen

2010-11-11 Thread Georg Brandl
Georg Brandl added the comment: Collin: I doubt Christian will do much about this anymore :) -- nosy: +georg.brandl ___ Python tracker ___

[issue1625576] add ability to specify name to os.fdopen

2010-11-11 Thread Collin Winter
Collin Winter added the comment: Christian: yes, that sounds fine. -- assignee: collinwinter -> ___ Python tracker ___ ___ Python-

[issue10008] Two links point to same place

2010-11-11 Thread Georg Brandl
Georg Brandl added the comment: It is indeed what Hirokazu suggested: there were two ".. class:: ZipFile" entries in the docs. I've added ":noindex:" now to one of them in r86425. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-11-11 Thread Georg Brandl
Georg Brandl added the comment: Yes, please apply. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6942] email.generator.Generator memory consumption

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-11-11 Thread Georg Brandl
Changes by Georg Brandl : Removed file: http://bugs.python.org/file19577/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6335] Add support for mingw

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6216] Raise Unicode KEEPALIVE_SIZE_LIMIT from 9 to 32?

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two weeks left for 3.2 ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-11-11 Thread Eli Bendersky
Eli Bendersky added the comment: On Fri, Nov 12, 2010 at 05:05, Terry J. Reedy wrote: Please let me know if there are problems applying it and with which versions, I will fix it up to bring it up to date. It's a tricky patch (affects many files in many places), so there might be difficulties.

[issue10392] GZipFile crash when fileobj.mode is None

2010-11-11 Thread Brad Greenlee
New submission from Brad Greenlee : If GZipFile.__init_ is passed a fileobj that has a mode attribute set to None, it will crash with a "'NoneType' object is unsubscriptable" error when it tries to read the first character of the mode. I ran across this when trying to pass GZipFile an uploaded

[issue5578] unqualified exec in class body

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue4015] Make installed scripts executable on windows

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs

[issue3720] segfault in for loop with evil iterator

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Too late for 2.6.6 ;-) -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1777134] minidom pretty xml output improvement

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1733259] ZipFile CallBack Needed...

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> rejected status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1654974] Binding annotations in tracebacks.

2010-11-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> out of date status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue1437699] allow unicode arguments for robotparser.can_fetch

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The .../orig.html link now works and was last updated in August. It has a link to .../robotstext.html. -- ___ Python tracker ___

[issue10304] error in tutorial triple-string example

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: 1. I decided to add '\' since this is what I normally do and also add one sentence explanation. 2. I changed ending from ' ' to ','. Uploaded patch committed in rev86422, rev86423 -- keywords: +patch resolution: -> fixed stage: needs patch -> commit

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- assignee: pitrou -> amaury.forgeotdarc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Amaury, thanks for your valuable feedback. 1. I forgot about the python implementation. I am not familiar with the new IO framework. Implemented now. 3. These new SEEK modes should not be used in text mode. In my new patch the modes are rejected in text mod

[issue10008] Two links point to same place

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Georg, do you have any idea what the source of the index glitch is? -- ___ Python tracker ___ ___ P

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ok with me also to commit and backport for next releases. -- ___ Python tracker ___ ___ Python-bugs-

[issue1553375] Add traceback.print_full_exception()

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Vinay, your example with communicate only works because you removed the [:-1]. If you run your version against a debug build, the tests will fail. I'm updating the patch with a version that works with both a non-debug and a debug build, and adds an addition

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me. Do you want to propose a code patch too, and/or more tests for non-simple cases? -- versions: +Python 2.7, Python 3.2 ___ Python tracker __

[issue6226] Inconsistent 'file' vs 'stream' kwarg in pprint, other stdlibs

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-11-11 Thread Ezio Melotti
Ezio Melotti added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: I hope the patch is not outdated. Terry, Georg, are you okay with it? -- versions: -Python 2.6 ___ Python tracker ___ ___

[issue8561] Install .exes generated with distutils to not do a CRC check

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8561] Install .exes generated with distutils to not do a CRC check

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. I think this is not specific to .exe installers, but an issue that may happen with any kind of download. PyPI publishes MD5 checksums of distributions, which should be checked by tools that download distributions. distutils2 does, and I

[issue6226] Inconsistent 'file' vs 'stream' kwarg in pprint, other stdlibs

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Yes, simply saying "make it consistent" is a won't fix, because of backward compatibility issues. Specific proposals for specific functions in a way that deals with the backward compatibility issues should be opened as new issues. -- nosy: +r.david.

[issue1051216] make distutils.core.run_setup re-entrant

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: To clarify my position: This does not look like a sane use case, but if the code does not behave as documented it’s a bug that should be fixed. Do you remember how you discovered the bug? On second thought, I wonder if it’s useful to fix this. Since there is a

[issue1051216] make distutils.core.run_setup re-entrant

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Hi Bob, thanks for the report and patch. Could you add a test for this behavior? (This is irrelevant for distutils2, where run_setup is gone.) -- assignee: -> eric.araujo nosy: +eric.araujo type: feature request -> behavior versions: +Python 2.7, Pytho

[issue10149] Data truncation in expat parser

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Also, s/receive few calls/receive more than one call/ (clearer IMO). -- ___ Python tracker ___ ___ Pyt

[issue10149] Data truncation in expat parser

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. There are a few typos (pices, recive) and markup glitches, which you can fix if you’d like to learn more about the markup, or else leave to someone else. Those glitches are: bad indentation, missing blank line to make a new paragraph, tex

[issue5616] Distutils 2to3 support doesn't have the doctest_only flag.

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue5616] Distutils 2to3 support doesn't have the doctest_only flag.

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 -2to3 (2.x to 3.0 conversion tool) stage: -> unit test needed versions: +3rd party, Python 3.2 -Python 3.0 ___ Python tracker

[issue7976] warnings should provide a public API for accessing its option parsing code

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- stage: unit test needed -> needs patch versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list m

[issue6320] Standard string encodings should include GSM0.38

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

[issue4972] context managerment support in imaplib, smtplib, ftplib

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> needs patch title: let's equip ftplib.FTP with __enter__ and __exit__ -> context managerment support in imaplib, smtplib, ftplib ___ Python tracker ___

[issue962772] when both maintainer and author provided, author discarded

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: >From PEP 345: “Note that this field is intended for use when a project is >being maintained by someone other than the original author: it should be >omitted if it is identical to Author.” It’s therefore logical that maintainer wins over author: The metadata fil

[issue9523] Improve dbm modules

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +Kain94, georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue8634] get method for dbm interface

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: The other bug report adds the get method as part of MutableMapping compliance, so I’m closing this as a obsoleted. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Improve dbm modules _

[issue9523] Improve dbm modules

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo title: Improve dbm module -> Improve dbm modules ___ Python tracker ___ ___ Python-bugs-

[issue1109602] Need some setup.py sanity

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

[issue6226] Inconsistent 'file' vs 'stream' kwarg in pprint, other stdlibs

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: I’m afraid backward compatibility binds us here. For new code however, it would be nice to use one name consistently. My preference goes to “file”, because I really like the print function, but I suspect this could turn into bikeshedding quickly :) I think th

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-11-11 Thread Łukasz Langa
Changes by Łukasz Langa : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7186] Document specialness of __doc__, and possibly other "special" attributes

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Is this obsoleted by #9451? -- nosy: +eric.araujo versions: -Python 2.6 ___ Python tracker ___ ___ Pyt

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Łukasz Langa
Changes by Łukasz Langa : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-11 Thread Łukasz Langa
Łukasz Langa added the comment: Fred, while you're at it have a look at your message here: http://bugs.python.org/issue9421#msg115558 (also documentation remarks on an otherwise closed issue). -- ___ Python tracker

[issue9520] Add Patricia Trie high performance container

2010-11-11 Thread Łukasz Langa
Changes by Łukasz Langa : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9322] Don’t fail silently if ext_modules us e absolute paths

2010-11-11 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo components: +Distutils2 stage: -> needs patch title: bdist_rpm ext_modules absolute source path fail -> Don’t fail silently if ext_modules use absolute paths versions: +3rd party, Python 3.1, Python 3.2 ___

[issue3243] Support iterable bodies in httplib

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: The patch needs to be ported to the py3k branch. -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Pyth

[issue9006] xml-rpc Server object does not propagate the encoding to Unmarshaller

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Could you reupload your fix as a diff instead of a whole file? See http://www.python.org/dev/patches/ for some help. -- nosy: +loewis type: crash -> behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 _

[issue644744] bdist_rpm fails when installing man pages

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Thomas, sorry if my message was short and unclear. The freeze policy means that distutils does not get new features, only bug fixes. The goal is to free time so that the developers (especially Tarek) can work on distutils2, the next generation. When I said th

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Committed (as a warning) in r86419. Thanks, Chris. -- stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Łukasz Langa
Łukasz Langa added the comment: This is unfortunately a backwards compatibility concern. Originally it wasn't made so that set() converts to string or accepts only strings and when the developers realized this mistake, it was too late (there were programs using this misfeature). That's one of

[issue10379] locale.format() input regression

2010-11-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 12, 2010, at 12:15 AM, R. David Murray wrote: >Now, from the perspective of a *user* of the locale module, I fail to see the >point in having both 'format' and 'format_string' exposed. If you want to >format a single % specifier, just pass it to format

[issue8989] email.utils.make_msgid: specify domain

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch, which looks good to me, except for the test: “eq” will raise a NameError, since this does not exist. Other test methods bind eq to self.assertEqual to save typing, which is not really needed in your case: Just use self.assertEqual :) To r

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: issue2986.fix27.5.patch applied, with version note added to doc, as rev86418 Only thing left is patch for 3.2, which Eli and I will produce. -- stage: commit review -> needs patch versions: -Python 2.7 ___ Python t

[issue9313] distutils error on MSVC older than 8

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Re-opening to remind myself about the forward-port. -- assignee: ocean-city -> eric.araujo components: -Tests status: closed -> open versions: +3rd party ___ Python tracker _

[issue10387] ConfigParser's getboolean method is broken

2010-11-11 Thread Felix Laurie von Massenbach
Felix Laurie von Massenbach added the comment: Ok, so I understand the issue, but why doesn't the set method simply convert to a string? >>> from ConfigParser import RawConfigParser >>> from StringIO import StringIO >>> parser = RawConfigParser() >>> config = """ [section] test = True """ >>>

[issue10379] locale.format() input regression

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Well, the distinction is that, before the bug fix that caused your issue, the 'format_string' method would use a regex to extract the % specifiers from the input string, and call 'format' to replace that % specifier with a properly localized result string.

[issue7219] Unhelpful error message when a distutils package install fails due to a permissions error

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: I wonder if this is IronPython-specific. Could you temporarily make the site-packages directory of a py3k CPython read-only and try to install a distribution with that CPython? I can try the same thing on unix. -- _

[issue3931] codecs.charmap_build is untested and undocumented

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: I see charmap_build used in encodings too, so it may be useful to make it officially public for the use of third-party encodings. -- ___ Python tracker __

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

2010-11-11 Thread Alex Willmer
Alex Willmer added the comment: On Thu, Nov 11, 2010 at 10:20 PM, Vlastimil Brom wrote: > Maybe I am missing something, but the result in regex seem ok to me: > \A is treated like A in a character set; I think it's me who missed something. I'd assumed that all backslash patterns (including \A

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-11-11 Thread R. David Murray
R. David Murray added the comment: In connection with another bug report I found a rather basic error in parseaddr, so I'm going to eventually dig far enough into the RFC to have a real opinion on the elided-space issue. -- ___ Python tracker

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

2010-11-11 Thread Matthew Barnett
Matthew Barnett added the comment: It looks like a similar problem to msg116252 and msg116276. -- ___ Python tracker ___ ___ Python-bu

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Having no time to read email RFCs, I’ll defer to you here. Please reject this report or save it for later as you prefer. -- versions: -Python 2.6 ___ Python tracker ___

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file19573/issue10382a.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue10382] Command line error marker misplaced on unicode entry

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: haypo> See also #2382: I wrote patches two years ago for this issue. Yes, this is the same issue. I don't want to close this as a duplicate because #2382 contains a much more ambitious set of patches. What I am trying to achieve here is similar to the

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-11-11 Thread Chris Rebert
Chris Rebert added the comment: "the above Note" mentioned in those last two lines demonstrates shlex.split() and correct tokenization. -- ___ Python tracker ___ ___

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me, except the last two lines which I would reword or just remove. I wonder how many people use shell=True merely for the convenience of passing a string instead of a list. What do you think about adding a mention of str.split and shlex.split? --

[issue10389] Document rules for use of case in section titles

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in revision 86417. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue10379] locale.format() input regression

2010-11-11 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The bug has been fixed upstream by replacing .format() with .format_string(). I'm not sure I understand why there are two different methods - .format() seems kind of pointless to me, but then I don't use the locale module enough to say what's useful. For P

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread R. David Murray
Changes by R. David Murray : -- priority: high -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Right, regardless of whether or not it is a bug in python, IMO it *is* a bug in the python test suite, since we *expect* buildbots to be long running processes and therefore they are going to get hit by this failure on OSX periodically with a pretty high lik

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

2010-11-11 Thread Vlastimil Brom
Vlastimil Brom added the comment: Maybe I am missing something, but the result in regex seem ok to me: \A is treated like A in a character set; when the test string is changed to "A b c" or in the case insensitive search the A is matched. [\A\s]\w doesn't match the starting "a", as it is not f

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread Stephen Hansen
Stephen Hansen added the comment: Well, yes: the result of posix.getgroups is not a bug in Python, but is it a bug in the test? Should it be skipped on OSX, or some other solution? Having buildbots fail because of something that's expected behavior is bad, isn't it? -- _

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is the expected behavior on OSX. Apple has a pretty odd interpretation of the standards wrt getgroups and setgroups behavior. This behavior is not a bug in python Sent from my iPhone On 11 nov. 2010, at 22:17, Stephen Hansen wrote: > > Stephen Hans

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Well, I suggest removing the leading spaces in the examples, except maybe in one place if you think it’s needed. -- ___ Python tracker ___ ___

[issue10389] Document rules for use of case in section titles

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: Looks good. I wouldn’t say reST is WYSIWYG, since it’s transformed, contrary to word processors where you make text bold to get it bold. (If you’re looking for other things to fix in that file, look at the entry for Unicode ;) -- _

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread Stephen Hansen
Changes by Stephen Hansen : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: IMO a better patch would be to use the %R format specification: PyErr_Format( PyExc_TypeError, "expected some sort of mod, but got %R", obj); And no need to use PyObject_Repr and the temporary variable! -- nosy: +amaury.forgeotdarc __

[issue7900] posix.getgroups() failure on Mac OS X

2010-11-11 Thread Stephen Hansen
Stephen Hansen added the comment: This test is failing again, and IIUC, largely due to the same sort of issues: http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%203.1/builds/65 I was able to track down what exactly caused it to fail in this case on my box, though. Whatever "pos

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

2010-11-11 Thread Alex Willmer
Alex Willmer added the comment: The re module throws an exception for re.compile(r'[\A\w]'). latest regex doesn't, but I don't think the pattern is matching correctly. Shouldn't findall(r'[\A]\w', 'a b c') return ['a'] and findall(r'[\A\s]\w', 'a b c') return ['a', ' b', ' c'] ? Python 2.6.6 (r

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan ___ Python tracker ___ ___ Python-bugs-lis

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Dave Malcolm
Dave Malcolm added the comment: The attached patch: - extends the ast error-handling selftest with code that triggers this crash (on unpatched code) - fixes Parser/asdl_c.py to generate code using _PyUnicode_AS_STRING instead - contains the generated changes to Python/Python-ast.c FWIW,

[issue10391] obj2ast's error handling can lead to python crashing with a C-level assertion failure

2010-11-11 Thread Dave Malcolm
New submission from Dave Malcolm : In various places within the generated Python/Python-ast.c, error handling generates a repr() and raises exceptions accordingly. Currently in py3k the generated code uses PyBytes_AS_STRING() on the repr. My understanding is that repr() should be a PyUnicodeO

[issue1466065] base64 module ignores non-alphabet characters

2010-11-11 Thread R. David Murray
R. David Murray added the comment: Committed in r86414. -- nosy: -BreamoreBoy resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10389] Document rules for use of case in section titles

2010-11-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The new patch, issue10389.diff, addresses Éric's comments and adds an entry for "reST". -- Added file: http://bugs.python.org/file19571/issue10389.diff ___ Python tracker _

[issue10390] json.load should handle bytes input

2010-11-11 Thread R. David Murray
Changes by R. David Murray : -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: - The patch modifies the _io module but not _pyio, why? (try f=_pyio.open("XX","w+b") at the beginning of the script above) - One test was *removed*, but nothing was added to test this new feature. This is the most likely way to lose it in future vers

[issue9520] Add Patricia Trie high performance container

2010-11-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10383] test_os leaks under Windows

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This looks suspect (in function posix_write):: if (!PyArg_ParseTuple(args, "iy*:write", &fd, &pbuf)) return NULL; if (!_PyVerify_fd(fd)) return posix_error(); I'd prefer a "PyBuffer_Release(&pbuf);" before returning... Many other

[issue10383] test_os leaks under Windows

2010-11-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This leaks one reference every time: os.write(123456, b"b") -- ___ Python tracker ___ ___

[issue10390] json.load should handle bytes input

2010-11-11 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Nevermind. -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10390] json.load should handle bytes input

2010-11-11 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : The following code produces an error: # APIKEY defined above r = urllib.request.urlopen('http://api.billboard.com/apisvc/chart/v1/' 'list/spec?api_key={}&format=JSON' .format(APIKEY)) j = json.load(r)

[issue8804] http.client should support SSL contexts

2010-11-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed as part of #9003. -- resolution: -> duplicate status: open -> closed superseder: -> urllib.request and http.client should allow certificate checking ___ Python tracker

[issue10389] Document rules for use of case in section titles

2010-11-11 Thread Éric Araujo
Éric Araujo added the comment: +1 about the patch, if you add an example: “sentence case” may not be obvious for everyone. If it’s “modulename — Module description”, I agree. Also, s/white space/whitespace/. -- nosy: +d...@python, eric.araujo ___

  1   2   >