[issue15573] Support unknown formats in memoryview comparisons

2012-08-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: haypo: thanks for stating the issue. ISTM that this classifies as an "obscure" bug: you have to use memoryviews, and you need to compare them for equality, and the comparison needs to be "non-trivial", where "trivial" is defined by "both are 1D byte arrays".

[issue15613] argparse ArgumentDefaultsHelpFormatter interacts badly with --arg and nargs=+

2012-08-09 Thread Alex Jurkiewicz
New submission from Alex Jurkiewicz: Sample code: #!/usr/bin/env python import argparse print("\n\narg=foo, nargs=+") parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('foo', nargs='+', help='foos', default=['foo1', 'foo2']) parser.pri

[issue15567] threading.py contains undefined name in self-test code

2012-08-09 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> brian.curtin nosy: +brian.curtin resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15567] threading.py contains undefined name in self-test code

2012-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 260f3ad7af4b by Brian Curtin in branch '2.7': Fix #15567. collections.deque wasn't imported http://hg.python.org/cpython/rev/260f3ad7af4b -- nosy: +python-dev ___ Python tracker

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a new patch that fixes the with_* methods to be more consistent, and the relevant tests too. The doc is now consistent as well. For some reason IPv6Interface.with_netmask also returned the prefixlen representation. The test justified it by quoting RFC

[issue15612] Rewrite StringIO to use the _PyUnicodeWriter API

2012-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- title: Rewriter StringIO to use the _PyUnicodeWriter API -> Rewrite StringIO to use the _PyUnicodeWriter API ___ Python tracker ___ __

[issue15612] Rewriter StringIO to use the _PyUnicodeWriter API

2012-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15612] Rewriter StringIO to use the _PyUnicodeWriter API

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Results of my micro benchmark. Use attached bench_stringio.py with benchmark.py: https://bitbucket.org/haypo/misc/src/tip/python/benchmark.py Command: ./python benchmark.py script bench_stringio.py Common platform: CPU model: Intel(R) Core(TM) i7-2600 CPU

[issue15612] Rewriter StringIO to use the _PyUnicodeWriter API

2012-08-09 Thread STINNER Victor
New submission from STINNER Victor: Attached patch rewrites the C implementation of StringIO to use the _PyUnicodeWriter API instead of the PyAccu API. It provides better performance when writing non-ASCII strings. The patch adds new functions: - _PyUnicodeWriter_Truncate() - _PyUnicodeWrit

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2012-08-09 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Eric Snow
Eric Snow added the comment: > Changing the macro's expansion would be good enough IMO. Sounds good to me. > PyImport_ImportModuleLevel() is part of the stable API... >From what I understand, as long as the function header has not changed, the >stable ABI is still stable. > Can't we just dro

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Last one: Python 3.2 vs patched Python 3.3. ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle ../3.2/python ../fasterpickle/python Running fastpickle... INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 --use_cpickle p

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Amazing! Though, it would probably be good idea to benchmarks non-ASCII strings as well. -- ___ Python tracker ___ __

[issue15573] Support unknown formats in memoryview comparisons

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: > What is the specific regression from 3.2 that this deals with? I don't know if it must be called a regression, but at least the behaviour is different in Python 3.2 and 3.3. For example, an Unicode array is no more equal to its memoryview: Python 3.3.0b1 (d

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: > Sounds like a rather annoying regression. PyImport_ImportModuleLevel() is part of the stable API. Is it an acceptable to not only change the default value but also fail with the previous *default* value? Can't we just drop the check "level < 0"? --

[issue15444] Incorrectly written contributor's names

2012-08-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: > While working on issue 15437, it occurred to me that storing the names in a > structured form might come in handy. In a separate discussion, Ezio pointed out a case where we are already scraping data about members from doc files: http://hg.python.org/tracke

[issue15608] Improve socketserver doc

2012-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: BaseRequestHandler.__init__(self, request) apparently attaches request to the instance as self.request. The methods are called in this order: setup, handle, finish. If they must be confusingly documented in the opposite order, it would be good for the head en

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: For your information, results of benchmark comparing Python 3.2 to 3.3: ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle ../3.2/python ../default/python Running fastpickle... INFO:root:Running ../default/python performance/bm_pickle.py -n

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sounds like a rather annoying regression. Changing the macro's expansion would be good enough IMO. -- nosy: +georg.brandl, pitrou priority: normal -> release blocker ___ Python tracker

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Here is a benchmark comparing Python 3.3 without and with my patch ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle ../default/python ../fasterpickle/python Running fastpickle... INFO:root:Running ../fasterpickle/python performance/bm_pickl

[issue15611] devguide: add "core mentors" area to Experts Index

2012-08-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I think you should better define the goal of this new section. I see your point and may not have fully understood the intent. I'll defer to Nick on this since the initial suggestion was his. I'm not personally wedded to any particular resolution of the iss

[issue15573] Support unknown formats in memoryview comparisons

2012-08-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can someone please explain why this is a release blocker? What is the specific regression from 3.2 that this deals with? -- nosy: +loewis ___ Python tracker _

[issue15611] devguide: add "core mentors" area to Experts Index

2012-08-09 Thread Ezio Melotti
Ezio Melotti added the comment: I think you should better define the goal of this new section. How would people use this information? * If it's just to know what developers are on the core-mentorship list, I think it's a bit pointless, especially because not all of them might want to be listed

[issue15611] devguide: add "core mentors" area to Experts Index

2012-08-09 Thread Chris Jerdonek
New submission from Chris Jerdonek: On the core-mentorship list, Nick Coghlan suggested adding an "area" to the Experts Index for core developers who are on the core-mentorship list (or at least those who wish to be listed). This issue is to do that. This can be done by adding a row to the M

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Dave Malcolm
Dave Malcolm added the comment: On Thu, 2012-08-09 at 21:04 +, STINNER Victor wrote: > STINNER Victor added the comment: > > Oh, I didn't realize that the documentation says that the default value is -1. > http://docs.python.org/library/functions.html#__import__ > > "level specifies whether

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Oh, I didn't realize that the documentation says that the default value is -1. http://docs.python.org/library/functions.html#__import__ "level specifies whether to use absolute or relative imports. The default is -1 which indicates both absolute and relative im

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Can you please try my amazing patch? -- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file26751/amazing_patch.patch ___ Python tracker __

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15216] Support setting the encoding on a text stream after creation

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Note: it is not possible to reencode the buffer of decoded characters to compute the offset in bytes. Some codecs are not bijective. Examples: * b'\x00'.decode('utf7').encode('utf7') == b'+AAA-' * b'\xff'.decode('ascii', 'replace').encode('ascii', 'replace')

[issue15216] Support setting the encoding on a text stream after creation

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Oh, set_encoding.patch is wrong: +offset = self._decoded_chars_used - len(next_input) self._decoded_chars_used is a number of Unicode characters, len(next_input) is a number of bytes. It only works with 7 and 8 bit encodings like ascii or latin1,

[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris
Chris added the comment: Ugh, a server reboot seems to have cleared this all up (FML). It's been running well past the point of previous failure. I suppose I'll never know why it was failing. I'm going to close this out. Thanks for your time in helping me think this through. -- re

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Dave Malcolm
Dave Malcolm added the comment: (FWIW, this was observed when compiling pygobject-3.3.4 against Python-3.3.0b1) -- ___ Python tracker ___

[issue15610] PyImport_ImportModuleEx always fails in 3.3 with "ValueError: level must be >= 0"

2012-08-09 Thread Dave Malcolm
New submission from Dave Malcolm: I've been testing various 3rd-party python code against 3.3b1, and see ValueError: level must be >= 0 exceptions where C code is using PyImport_ImportModuleEx. PyImport_ImportModuleEx reads as 63 #define PyImport_ImportModuleEx(n, g, l, f) \ 64 PyI

[issue15609] Format string: add more fast-path

2012-08-09 Thread STINNER Victor
New submission from STINNER Victor: Attached patch adds tests to check that str%args and str.format(args) take all optimization opportunities for simple format strings. It takes also the fast-path when Unicode string argument when width and/or precision is set. For example, "%.3s" % "abc" now

[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my perspective sphinx doesn't allow notations like >:c:func:`PyMem_Malloc(1)` Do you want to publish bugfix for sphinx? Sounds like good idea, but that fix is out my current competence. I just fixed weird stuff which you pointed out. If you want to do mor

[issue15608] Improve socketserver doc

2012-08-09 Thread Terry J. Reedy
New submission from Terry J. Reedy: On Windows, 3.3 socketserver defines 12 classes in 3 categories: servers, server mixins, and handlers. (At least, these are the one listed with dir(socketserver). Only BaseServer is indexed. I think all should be. There are also a couple of text issues. Bas

[issue15527] Double parens in functions references

2012-08-09 Thread Georg Brandl
Georg Brandl added the comment: The markup you mentioned will not be changed: these are two different usecases. Either you link to the function itself (:func:`blah`), or you show a piece of code (``blah(n)``). -- ___ Python tracker

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: I have uploaded updated patches for both 3.2 and the default branch. Thanks, Andrew. -- Added file: http://bugs.python.org/file26748/issue-15561-2-branch-default.patch ___ Python tracker

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Chris Jerdonek
Changes by Chris Jerdonek : Added file: http://bugs.python.org/file26747/issue-15561-2-branch-32.patch ___ Python tracker ___ ___ Python-bugs-

[issue15527] Double parens in functions references

2012-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Hmm, I'm hoping that will be fixed by fixing of some markup words (:c:func:, :func:, :meth:, etc) processing, and not that they will simply be removed. :c:func: works only for function name without parameters or for function name with empty list of parameter

[issue15555] Default newlines of io.TextIOWrapper

2012-08-09 Thread R. David Murray
R. David Murray added the comment: I don't think the C version does, though. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-l

[issue15555] Default newlines of io.TextIOWrapper

2012-08-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: What is the change to the documentation being suggested here? The code does reference os.linesep, so it seems like the documentation is correct, or am I missing something? self._writetranslate = newline != '' self._writenl = newline or os.line

[issue5819] Add PYTHONPREFIXES environment variable

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close issue as superseded by venv package. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank you for reviewing every minor update. It's a big deal and heavy work! -- ___ Python tracker ___ __

[issue15527] Double parens in functions references

2012-08-09 Thread Georg Brandl
Georg Brandl added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15605] Explain sphinx documentation building in devguide

2012-08-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: +If you are building the developer's guide, or for some other reason can not use +the `tools/sphinx-build.py` file, you can also run the following command from +the directory containing `conf.py` :: + + sphinx-build -b . build/ Note that the build instructions

[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, Georg. A'm apologizing. Actual commit numbers are: 6dab233a115e a979b005a814 4787b9b2f860 -- ___ Python tracker ___ _

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-08-09 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > Could you try to run the tests manually after having upped said timeouts? > (look for "sleep" in the test file) No luck there: The tests pass unmodified (100 times with the -F option). -- ___ P

[issue15607] New print's argument "flush" is not mentioned in docstring

2012-08-09 Thread Daniel Ellis
Daniel Ellis added the comment: I've updated the docstring. This is my first time editing a C module, so please let me know if I've done something egregiously wrong. -- keywords: +patch nosy: +Daniel.Ellis Added file: http://bugs.python.org/file26746/print_doc_add_flush.patch

[issue15601] tkinter test_variables fails with OS X Aqua Tk 8.4

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Martin. Fixed. Thanks. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker __

[issue15601] tkinter test_variables fails with OS X Aqua Tk 8.4

2012-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20a46c73855f by Andrew Svetlov in branch 'default': Issue #15601: fix tkinter test_variables failure with OS X Aqua Tk 8.4 http://hg.python.org/cpython/rev/20a46c73855f -- nosy: +python-dev ___ Python tra

[issue15527] Double parens in functions references

2012-08-09 Thread Georg Brandl
Georg Brandl added the comment: These commit hashes don't seem to match this issue. -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue15607] New print's argument "flush" is not mentioned in docstring

2012-08-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: New print's argument "flush" is not mentioned in docstring. -- assignee: docs@python components: Documentation keywords: easy messages: 167809 nosy: docs@python, storchaka priority: normal severity: normal stage: needs patch status: open title: New p

[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Sorry, I forgot to mention issue number in commit messages. So it's 9c99f31a9c2a 96cc3ab243e5 and 1e8f6d8e5c0e commits. Thanks for report. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue15605] Explain sphinx documentation building in devguide

2012-08-09 Thread Daniel Ellis
Daniel Ellis added the comment: That makes sense. I've added a brief explanation noting that the user should be in the "Docs" directory to run the command. When trying to update the dev guide, I noticed that this same "tools" directory does not exist in the repo, so I also added instructions

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread pmoody
pmoody added the comment: sorry, yes, I meant the interface classes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue15589] Bus error on Debian sparc

2012-08-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd like to urge everybody to focus at one issue at a time. This issue is about Python crashing on a SparcLinux qemu image, so I think it should have priority "low" - there is absolutely no requirement that this needs to work. As for the test failures on Sola

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: pmoody - you mean IPv?Interface, right? The network classes consistently return strings in with_* methods -- ___ Python tracker ___

[issue15606] re.VERBOSE doesn't ignore certain whitespace

2012-08-09 Thread Steven Collins
New submission from Steven Collins: Given the way the documentation is written for re.VERBOSE - "Whitespace within the pattern is ignored, except when in a character class or preceded by an unescaped backslash" - I would expect all three of the findall() commands below to return successfully w

[issue15605] Explain sphinx documentation building in devguide

2012-08-09 Thread R. David Murray
R. David Murray added the comment: It refers to the 'tools' subdirectory in the Doc directory, but that doesn't exist unless you've built the docs with 'make' before, or done a 'make checkout'. Presumably you have sphinx installed on your system separately, and that's why you were able to run

[issue15578] Crash when modifying sys.modules during import

2012-08-09 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris
Chris added the comment: Also, when I said "...that tracebacks will now flow up to the main process from the worker processes (which makes perfect sense, actually)", I meant to say "...that tracebacks will NOT flow up to the main process from the worker processes (which makes perfect sense, ac

[issue15605] Explain sphinx documentation building in devguide

2012-08-09 Thread Daniel Ellis
New submission from Daniel Ellis: At the bottom of this page: http://docs.python.org/devguide/documenting.html There is a command explaining how to build the documentation without using make: python tools/sphinx-build.py -b . build/ It is unclear as to which directory the "tools" is referr

[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris
Chris added the comment: Using top/'ps aux' is not the issue. I have code running now with the try/except. Will report back ASAP. I suspect that you're correct about something in the R pipeline failing. Hopefully, I'll get a good traceback. -- _

[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Chris added the comment: > > That they don't appear in top. I was using that as a proxy for existence. Well, I don't know in which way you use "top", but by default it will only show you the N most CPU-consuming processes. If the R bindings, for example (he

[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris
Chris added the comment: That they don't appear in top. I was using that as a proxy for existence. I wrote a test case without R and realized (accidentally) that tracebacks will now flow up to the main process from the worker processes (which makes perfect sense, actually). I added explicit

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks interesting. Can you post benchmark numbers? (you can use the pickle tests from http://hg.python.org/benchmarks ) -- ___ Python tracker __

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The buildbot is running inside kvm on a heavily loaded machine. Perhaps > some timeout is too low. Could you try to run the tests manually after having upped said timeouts? (look for "sleep" in the test file) -- nosy: +pitrou ___

[issue15604] PyObject_IsTrue failure checks

2012-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it possible to add test cases for (at least some of) these issues? -- nosy: +pitrou ___ Python tracker ___ __

[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your report is rather ambiguous. Do you claim that said pids don't exist, or that they don't appear in "top"? Also, do you manage to reproduce without R, or do you need to use R to reproduce? I would suspect an issue (or a misunderstanding on your part) with

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread pmoody
pmoody added the comment: There's no reason why IPv?Network().with_prefixlen can't return str(self). -- ___ Python tracker ___ ___ Pyt

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please do. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: In the process of working on issue 15595, I noticed that the documentation change will need to be slightly different for Python 3.2 than for 3.3. In 3.2, it is locale.getpreferredencoding() (which defaults to do_setlocale=True) instead of locale.getpreferrede

[issue11643] Use |version| instead of X.Y in the doc

2012-08-09 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +cjerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue15604] PyObject_IsTrue failure checks

2012-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file26743/istrue_check-3.2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue15604] PyObject_IsTrue failure checks

2012-08-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file26744/istrue_check-2.7.patch ___ Python tracker ___ ___ Python-bugs-list

[issue15604] PyObject_IsTrue failure checks

2012-08-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PyObject_IsTrue can fail, but not everywhere in a code a returned value checked. Here is a patches which add such checks. Note, patches for all three Python versions are rather different. -- components: Interpreter Core, Library (Lib) files: istrue

[issue15603] Multiprocessing creates incorrect pids

2012-08-09 Thread Chris
New submission from Chris: http://stackoverflow.com/questions/11884864/python-multiprocessing-creates-incorrect-pids Jesse Noller suggested that I submit this stack overflow as a bug so it can be examined. As the problem is kind of domain specific, it's not easy to come up with a test case th

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Daniel Ellis
Daniel Ellis added the comment: At the moment, the documentation for 2.7 is behind the documentation for 3.3. I will be working on backporting this next, but it will be a little more difficult than simply copying the existing documentation, since some key things in etree changed in the transi

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread R. David Murray
R. David Murray added the comment: My understanding is that we try to keep the documentation of all active branches (2.7, 3.2, and 3.3 currently) in sync except where there are new features/new deprecations in the development version. So if the 2.7 docs are update, I think the 3.2 docs should

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Daniel Ellis
Daniel Ellis added the comment: Changes to documentation per Ezio and Eli's suggestions. -- Added file: http://bugs.python.org/file26741/default_branch_etree_doc_2.patch ___ Python tracker _

[issue11643] Use |version| instead of X.Y in the doc

2012-08-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: -> enhancement versions: +Python 3.4 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list maili

[issue10702] bytes and bytearray methods are not documented

2012-08-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, ncoghlan stage: -> needs patch type: -> enhancement versions: +Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4966] Improving Lib Doc Sequence Types Section

2012-08-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue15557] Tests for webbrowser module

2012-08-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- dependencies: +A file is not properly closed by webbrowser._invoke, webbrowser.open sometimes passes zero-length argument to the browser. versions: +Python 3.4 -Python 3.3 ___ Python tracker

[issue15527] Double parens in functions references

2012-08-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thank you, Anton. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed superseder: -> Fully document subprocess.CalledProcessError ___ Python tracker

[issue14966] Fully document subprocess.CalledProcessError

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Documented in #15501. I like to close this issue as duplicate. If anybody don't agree with closing feel free to reopen this one. -- nosy: +asvetlov resolution: -> duplicate stage: -> committed/rejected status: open -> closed __

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset b863e231ad9f by Andrew Svetlov in branch 'default': Issue #15501: Document exception classes in subprocess module. http://hg.python.org/cpython/rev/b863e231ad9f New changeset 1e8f6d8e5c0e by Andrew Svetlov in branch '3.2': Issue #15501: Document exc

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-08-09 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks a lot for the patch update, Andrew! Please let me glance over it once again today/tomorrow before you commit it. -- ___ Python tracker

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky
Anton Barkovsky added the comment: Updated. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26740/subprocess_doc_3.3_v2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26739/subprocess_doc_3.2_v2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26738/subprocess_doc_2.7_v2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue15216] Support setting the encoding on a text stream after creation

2012-08-09 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, you're right - peeking into the underlying buffer would be enough to handle encoding detection. -- ___ Python tracker ___

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-08-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Update patch -- Added file: http://bugs.python.org/file26737/inspect.pep362.4.patch ___ Python tracker ___ _

[issue15589] Bus error on Debian sparc

2012-08-09 Thread Stefan Krah
Stefan Krah added the comment: > If disabling faulthandler avoids new issues, you can add 'if > [not] sys.thread_info.version.startswith("linuxthreads")' That suppresses some bus errors. However, they still occur without being raised (some print statements and a WIFSIGNALED test inserted in posi

[issue15600] expose the finder details used by the FileFinder path hook

2012-08-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: It seems like a test and documentation for this would be beneficial (for the usual reasons, etc). -- nosy: +cjerdonek ___ Python tracker ___ __

[issue15602] zipfile: wrong encoding charset of member filename

2012-08-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: You are mistaken: there *is* a character set specification for file names in zip files, see http://www.pkware.com/documents/casestudies/APPNOTE.TXT Appendix D says "The ZIP format has historically supported only the original IBM PC character encoding set, c

  1   2   >