[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-08-13 Thread Simon Sapin
Simon Sapin added the comment: I just remembered about this. I suppose it is too late for 3.3? -- ___ Python tracker ___ ___ Python-bu

[issue15634] synchronized decorator for the threading module

2012-08-13 Thread Juan Javier
New submission from Juan Javier: I think it will be useful to have a decorator like this one on the threading module: def synchronized(func): """A decorator to make a function execution synchronized. Examples: @synchronized def foo(): pass class Foo: def _

[issue15635] memory leak with generators

2012-08-13 Thread Florent Xicluna
New submission from Florent Xicluna: Hello, I noticed a large memory consumption in my application. I tracked it down to be a problem with garbage collection of generator locals. The issue was noticed in 2.6 first. Then I reproduced it in 2.7. The test case finds some leak in 3.3 too, it seems.

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-13 Thread patrick vrijlandt
patrick vrijlandt added the comment: I must admit my usage case is a hack, but the summary is: view a page on one computer, process it on another computer; like sending the page to a friend, with friend -> self and send -> upload. I found one other victim in python (https://groups.google.com/

[issue15624] clarify io.TextIOWrapper newline documentation

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: For me input means «reading from» and output — «writing to». Nevertheless I'm ok with you suggestion. -- ___ Python tracker ___ ___

[issue15624] clarify newline documentation for open and io.TextIOWrapper.

2012-08-13 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- title: clarify io.TextIOWrapper newline documentation -> clarify newline documentation for open and io.TextIOWrapper. ___ Python tracker ___ _

[issue15624] clarify newline documentation for open and io.TextIOWrapper.

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close as fixed. Thanks. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2, Python 3.3 ___ Python tracker _

[issue15624] clarify newline documentation for open and io.TextIOWrapper.

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5b629e9fde61 by Andrew Svetlov in branch '3.2': Issue #15624: clarify newline documentation for open and io.TextIOWrapper http://hg.python.org/cpython/rev/5b629e9fde61 New changeset 9e098890ea2c by Andrew Svetlov in branch 'default': Issue #15624: c

[issue8800] add threading.RWLock

2012-08-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I should add that on Windows, the new SRW that is part of Vista and Windows 7, uses locking, that is it favors neither readers or writers. It appears that nowadays the complex semantics of RWLocks have not really proven worthwile. See http://msdn.mic

[issue15629] Run doctests in Doc/*.rst as part of regrtest

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

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-13 Thread Hynek Schlawack
Hynek Schlawack added the comment: Silence means consent, so I will supply a patch as soon as 3.4 is open. Meanwhile, I reworded the docs for os.makedirs, the patch is attached. Please have a look at it so we can get it in for 3.3. -- keywords: +patch stage: needs patch -> patch review

[issue15624] clarify newline documentation for open and io.TextIOWrapper.

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks a lot, Andrew. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue15636] base64.decodebytes is only available in Python3.1+

2012-08-13 Thread Andrew Scheller
New submission from Andrew Scheller: According to the documentation ( http://docs.python.org/py3k/library/base64.html#base64.decodebytes ) both the decodebytes and the deprecated decodestring methods are available in the base64 module in Python3.x However in Python3.0 (I'm testing with version

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Do you mean to mention stdin as well as stdout/stderr? It will be nice. -- ___ Python tracker ___ __

[issue15635] memory leak with generators

2012-08-13 Thread Florent Xicluna
Florent Xicluna added the comment: I don't mean perlbrew, but homebrew (an OS X package manager to install from source). -- ___ Python tracker ___ __

[issue15635] memory leak with generators

2012-08-13 Thread Florent Xicluna
Florent Xicluna added the comment: Though, I cannot reproduce on Debian Squeeze (2.6.6 deb or 2.7 from source) or Ubuntu (2.7.2+ or 3.2). Someone on OS X might confirm the same issue. This is python 2.7.3 installed from source (using perlbrew) and GCC 4.2.1. The output of the script is: $ py

[issue15555] Default newlines of io.TextIOWrapper

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: It doesn't. _io can be fixed to directly support os.linesep, but I doubt if anybody really need it. -- nosy: +asvetlov ___ Python tracker ___ _

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Yes, that too. :) I am working on it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15555] Default newlines of io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: I think it can be useful for testing reasons (e.g. testing that os.linesep is respected by certain code). -- ___ Python tracker ___ ___

[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-13 Thread Alberto Milone
New submission from Alberto Milone: The attached test case works fine in Python 2.7 but causes Pyhton 3.2 to segfault. -- components: ctypes files: randr_test messages: 168087 nosy: albertomilone priority: normal severity: normal status: open title: Segfault reading null VMA (works fine

[issue15635] memory leak with generators

2012-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can reproduce this on an OSX 10.8 system, both using python 2.7 and python 3.3. The growth is significantly less using python 3.3. What's odd is that the growth does not occur when both test_iter calls use 1<<24 as the argument (or larger values). If I'd h

[issue15635] memory leak with generators

2012-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. I don't think this is a memory leak, the amount of memory used doesn't increase when there are more calls to test_iter(1<<23). -- ___ Python tracker

[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Better to fix producer of empty lines than filter those ones. Keep in mind: there are several places there args list generated, probably you fix not all error sources. -- nosy: +asvetlov ___ Python tracker

[issue15629] Run doctests in Doc/*.rst as part of regrtest

2012-08-13 Thread R. David Murray
R. David Murray added the comment: That's exactly what Georg's suggestion is about. Sphinx does have a way to mark doctest snippets as "run this", "don't run this". I believe that requires using 'make doctest' as the runner, but I already think that is the way to go, as I said before. -

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread Chris Jerdonek
New submission from Chris Jerdonek: The io.TextIOWrapper documentation says that the write_through argument was added in version 3.3: "Changed in version 3.3: The write_through argument has been added." http://docs.python.org/dev/library/io.html#io.TextIOWrapper However, it seems to be presen

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Silence doesn't mean consent, but it does mean you can go ahead and see if anyone complains :) I think your proposal is fine, but I'd prefer making the sentinels just "IGNORE" and "FAIL". The module namespace means the names themselves don't have to be full

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: For 3.2 to mention write_through, issue 15638 should probably be fixed first. I can create a patch for that first. -- dependencies: +incorrect version info for TextIOWrapper write_through docs ___ Python tracker

[issue15633] httplib.response is not closed after all data has been read

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Without a reproducible test case I doubt we are going to be able to solve this, but yes please provide what information you can for the record, in case someone else runs in to it in a more reproducible situation. -- nosy: +r.david.murray

[issue15639] csv.Error description is incorrectly broad

2012-08-13 Thread Xavier Morel
New submission from Xavier Morel: In both Python 2.7 and Python 3.x, csv.Error is documented as: Raised by any of the functions when an error is detected. As far as I can tell from using the module and looking at the code, this is completely incorrect. There is actually a single instance o

[issue15592] subprocess.communicate() breaks on no input with universal newlines true

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: _communicate_with_select has the same problem as _communicate_with_poll. I don't understand why input has encoded if universal_newlines and passed unchanged otherwise. >From my perspective input should be encoded (converted to bytes) if it is str >regardless

[issue12623] "universal newlines" subprocess support broken with select- and poll-based communicate()

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

[issue15634] synchronized decorator for the threading module

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Writing such a decorator is pretty trivial to do. On the other hand, I've done it often enough that I could be convinced it is useful to add. I think it would be better to have a decorator generator that takes a lock as its argument, however, since an applic

[issue15634] synchronized decorator for the threading module

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Oh, I misread your code. The code I'm working on uses the lock to serialize several different functions, and your decorator wouldn't work for that. -- ___ Python tracker ___

[issue15595] subprocess.Popen(universal_newlines=True) does not work for certain locales

2012-08-13 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15635] memory leak with generators

2012-08-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15604] PyObject_IsTrue failure checks

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

[issue15557] Tests for webbrowser module

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

[issue15634] synchronized decorator for the threading module

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure how useful that is in practice. Often you want to use the same lock accross several functions or methods. Also, I think it would be more accurate to call this "serialized" than "synchronized". -- nosy: +jyasskin, pitrou __

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread R. David Murray
R. David Murray added the comment: If I remember correctly it existed in one of the versions (python vs C) but not in both. Or, it existed but wasn't actually respected by one of the versions. -- nosy: +pitrou, r.david.murray ___ Python tracker

[issue15571] Python version of TextIOWrapper ignores "write_through" arg

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba055ccd99ef by Andrew Svetlov in branch 'default': Issue #15571: comment the fact what python impl of TextIOWrapper always works in write_throuth mode http://hg.python.org/cpython/rev/ba055ccd99ef -- nosy: +python-dev

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: The C version seems to have it in 3.2 as well: http://hg.python.org/cpython/file/5b629e9fde61/Modules/_io/textio.c#l818 Is it possible you were thinking of issue 15571 (not "used" in Python version but still respected)? -- ___

[issue15571] Python version of TextIOWrapper ignores "write_through" arg

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Patch applied -- nosy: +asvetlov resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: See 9144014028f3. It was part of a bugfix in the 3.2 branch, therefore it wasn't exposed as a public API. -- ___ Python tracker ___ ___

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> rejected stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: > As I can see in subprocess.py TextIOWrapper is applied to stdin also in > non-buffered (write_through=True) mode. In 3.2, I will not mention the write_through argument based on Antoine's response to issue 15638. -- _

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Ah, thank you. I see. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue10224] Build 3.x documentation using python3.x

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

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

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 814462492fbd by Andrew Svetlov in branch 'default': Issue #15151: PEP 362 — document signature and related classes for inspect.py http://hg.python.org/cpython/rev/814462492fbd -- nosy: +python-dev ___ Pyt

[issue15635] memory leak with generators

2012-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've added calls to vmmap to the script (using os.system) to check my guesss. The relevant bit after the call to test_iter(1<<24): REGION TYPE VIRTUAL === === MALLOC405.9M

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

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closing the issue. Feel free to reopen if you have some corrections. -- ___ Python tracker ___ ___ P

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

2012-08-13 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker ___ ___

[issue15623] Init time relative imports no longer work from __init__.so modules

2012-08-13 Thread Meador Inge
Meador Inge added the comment: I debugged this a bit by comparing the behavior of 3.3 against 3.2. For both cases I used the following code and debugged it in Python via pdb*: import importlib importlib.__import__('my_test_package') ISTM that the difference in behavior is a result of wh

[issue15592] subprocess.communicate() breaks on no input with universal newlines true

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: > From my perspective input should be encoded (converted to bytes) if it is str > regardless of universal_newlines value. I don't know the reason, but the limitation is documented: "The optional input argument should be data to be sent to the child process, or

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

2012-08-13 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Andrew. One thing: can you please change: > Print all keyword-only arguments without default values: to > Example: print all keyword-only arguments without default values: ? -- ___ Python tracker

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-13 Thread Hynek Schlawack
Hynek Schlawack added the comment: > Silence doesn't mean consent, but it does mean you can go ahead and see if > anyone complains :) Well that's what I meant. :) > I think your proposal is fine, but I'd prefer making the sentinels just > "IGNORE" and "FAIL". The module namespace means the n

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-13 Thread R. David Murray
R. David Murray added the comment: English-wise I would drop the "Also". You say "differs from the one supplied", but given the rest of the text I would expect that it is really "differs from the supplied mode masked with the current umask, on systems where the mode is respected", which is a m

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-08-13 Thread Éric Araujo
Éric Araujo added the comment: Yes, 3.3 is already in beta. -- keywords: +needs review stage: -> patch review versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ __

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

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done in 843e0da7e91f -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue15623] Init time relative imports no longer work from __init__.so modules

2012-08-13 Thread Eric Snow
Eric Snow added the comment: That's helpful, Meador. With regards to the following, there's more to the story: > With 3.3 a _frozen_importlib.ExtensionFileLoader loader gets created > against 'my_test_package/__init__.so'. This doesn't work because > ExtensionFileLoader does *not* fixup sys.m

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Andrew, here is the new patch for 3.2. 3.3 will come shortly after. -- Added file: http://bugs.python.org/file26783/issue-15561-3-branch-32.patch ___ Python tracker __

[issue15635] memory leak with generators

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The test case finds some leak in 3.3 too, it seems. 3.3 should be much better since it uses mmap() and munmap() to manage the object allocator's arenas (unless this is disabled under OS X for some reason, that is). Here under Linux: $ python3.3 testiterbug

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is the patch for the default/3.3 branch, which for convenience is a diff for the branch *after the 3.2 patch has been forward-ported to 3.3*. I did not think it was necessary to mention write_through specifically since it seems more like an implementation

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

2012-08-13 Thread Daniel Ellis
Daniel Ellis added the comment: I've updated 2.7 with the examples and made changes where backward compatibility was an issue. -- Added file: http://bugs.python.org/file26785/2.7_branch_etree_doc.patch ___ Python tracker

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

2012-08-13 Thread Daniel Ellis
Daniel Ellis added the comment: Fixed typo I made in examples in default branch. -- Added file: http://bugs.python.org/file26786/default_branch_etree_doc_3.patch ___ Python tracker _

[issue15635] memory leak with generators

2012-08-13 Thread Florent Xicluna
Florent Xicluna added the comment: > All of this clearly points towards malloc not releasing allocated memory to > the system. > This is perfectly fine and not a bug in either Python or the system. So it means there's no reliable way to measure the memory consumption of the program. Sorry for

[issue15635] memory leak with generators

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > All of this clearly points towards malloc not releasing allocated memory to > > the system. > > This is perfectly fine and not a bug in either Python or the system. > > So it means there's no reliable way to measure the memory consumption of the > program.

[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can reproduce, but it's not obvious to me what the test does or why it should succeed rather than fail. For the record, here is the gdb traceback: #0 0x753c6dc8 in XQueryExtension () from /usr/lib64/libX11.so.6 #1 0x753ba4d4 in XInitExtensi

[issue15592] subprocess.communicate() breaks on no input with universal newlines true

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: This issue may be the bug referenced here: # BUG: can't give a non-empty stdin because it breaks both the # select- and poll-based communicate() implementations. (stdout, stderr) = p.communicate() http://hg.python.org/cpython/file/843e0da7e91f/Lib/test/test_sub

[issue12436] Missing items in installation/setup instructions

2012-08-13 Thread Mike Hoy
Mike Hoy added the comment: >Thanks, I will take all contributions and suggestions and propose one patch. I am able to start working on this issue again, Eric. If you want to give me the status of your patch I can either help you finish it up or I can make one this week. -- _

[issue15623] Init time relative imports no longer work from __init__.so modules

2012-08-13 Thread Brett Cannon
Brett Cannon added the comment: So imp.load_dynamic() does add a module to sys.modules (I'm using Python 3.2 here because that's what I have access to, but I verified this yesterday at home):: Python 3.2.3 (default, May 3 2012, 15:51:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "cred

[issue15623] Init time relative imports no longer work from __init__.so modules

2012-08-13 Thread Meador Inge
Meador Inge added the comment: On Mon, Aug 13, 2012 at 12:18 PM, Brett Cannon wrote: > So deleting __init__.py and only having __init__.so in Python 3.2 should work. It doesn't work: quicksilver:bugs meadori$ python.exe --version Python 3.2.3+ quicksilver:bugs meadori$ PYTHON=python.exe ./tes

[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-13 Thread Alberto Milone
Alberto Milone added the comment: it should just be possible to retrieve major and minor which we pass by reference to XRRQueryVersion. Without this pretty much any other call fails. Also, it works without problems with python 2.7. -- versions: -Python 3.3 ___

[issue15623] Init time relative imports no longer work from __init__.so modules

2012-08-13 Thread Stefan Behnel
Stefan Behnel added the comment: Interesting. I didn't know that. The .py file is always installed automatically next to the .so file by distutils. Here's what strace gives me: Python 2.7: stat("my_test_package", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 stat("my_test_package/__init__.py

[issue15623] Init time relative imports no longer work from __init__.so modules

2012-08-13 Thread Brett Cannon
Brett Cannon added the comment: My guess is import.c is noticing the __init__.py, creating the module for the package, and then somehow it cascades into importing __init__.so which essentially does a reload on the module object that is already in sys.modules and thus doesn't cause the parent m

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 381aaf79c254 by Andrew Svetlov in branch '3.2': Issue #15561: Update subprocess docs to reference io.TextIOWrapper. http://hg.python.org/cpython/rev/381aaf79c254 New changeset 0cd9423770fa by Andrew Svetlov in branch 'default': Issue #15561: Update

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. BTW I prefer to use «stream» as alias to file object it subprocess context. «file» can clash with «the real file in filesystem» for documentation reader. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Fixed. BTW I prefer to use «stream» as alias to file object Thanks a lot, Andrew. Yes, I agree and actually contemplated doing that myself. -- ___ Python tracker __

[issue15497] correct characters in TextWrapper.replace_whitespace docs

2012-08-13 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +asvetlov versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue15437] Merge Doc/ACKS.txt names into Misc/ACKS

2012-08-13 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14167] document return statement in finally blocks

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

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-08-13 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15031] Split .pyc parsing from module loading

2012-08-13 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15628] Add import ABC hierarchy to docs for importlib

2012-08-13 Thread Brett Cannon
Brett Cannon added the comment: http://hg.python.org/cpython/rev/1c8a6df94602 seems to be commit this. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue15640] Document deprecate importlib.abc.Finder

2012-08-13 Thread Brett Cannon
New submission from Brett Cannon: importlib.abc.Finder is no longer the proper level of abstraction for either meta path finders or path entry finders, so direct inheritance should be discouraged by documenting deprecation for the class (actual deprecation will need to be avoided as the constr

[issue15640] Document importlib.abc.Finder as deprecated

2012-08-13 Thread Brett Cannon
Changes by Brett Cannon : -- title: Document deprecate importlib.abc.Finder -> Document importlib.abc.Finder as deprecated ___ Python tracker ___ ___

[issue15592] subprocess.communicate() breaks on no input with universal newlines true

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: I like to accept both str and bytes if universal_newlines is False and raise explicit exception for bytes if universal_newlines is True. Looks like universal_newlines for bytes doesn't make sense, also we prefer to use str everywhere. Bytes should be used if i

[issue15641] Clean up importlib for Python 3.4

2012-08-13 Thread Brett Cannon
New submission from Brett Cannon: importlib.abc.PyLoader and importlib.abc.PyPycLoader were both deprecated in 3.2 and slated for removal in Python 3.4. There is also some os2 stuff in importlib._bootstrap which can go as PEP 11 has os2 support slated for removal in Python 3.4. -- ass

[issue15592] subprocess.communicate() breaks on no input with universal newlines true

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching a failing test case. Also, to confirm, this issue does not seem to affect 3.2. -- keywords: +patch Added file: http://bugs.python.org/file26787/failing-test-case-1.patch ___ Python tracker

[issue15592] subprocess.communicate() breaks on no input with universal newlines true

2012-08-13 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- stage: test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15497] correct characters in TextWrapper.replace_whitespace docs

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 90a8a462d2f7 by Andrew Svetlov in branch '3.2': Issue #15497: Correct characters in TextWrapper.replace_whitespace docs. http://hg.python.org/cpython/rev/90a8a462d2f7 New changeset edcbf3edf701 by Andrew Svetlov in branch 'default': Issue #15497: Co

[issue15497] correct characters in TextWrapper.replace_whitespace docs

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done. Thanks, Chris. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-08-13 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-13 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti: Stefan Mihaila has been working on the implementation of PEP 3154, plus some other enhancements. His work is pretty complete and ready to be reviewed. I will do my best to finish a thorough review of his changes by the end of next week. -- ass

[issue15631] Python 3.3 beta 1 installation issue lib/lib64 folders

2012-08-13 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue15592] subprocess.communicate() breaks on no input with universal newlines true

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching patch. -- stage: needs patch -> patch review Added file: http://bugs.python.org/file26788/issue-15592-1.patch ___ Python tracker ___ _

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2012-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: In msg132312 Nick asked "where do we stand in regards to backwards compatibility of the AST?" The current ast module chapter, second sentence, says ""The abstract syntax itself might change with each Python release;" this module helps to find out programmatic

[issue15633] httplib.response is not closed after all data has been read

2012-08-13 Thread Nikolaus Rath
Nikolaus Rath added the comment: The problem seems to occur regularly, just with large intervals in between. Is there any specific information that might help here? I am not quite sure what to save when the problem happens the next time. Can the response object be pickled? -- ___

[issue8800] add threading.RWLock

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Perhaps this proposed patch is overly complex. I don't know. Do you think relaxing the semantics would make the implementation significantly faster? (interesting link, btw) -- ___ Python tracker

[issue15496] harden directory removal for tests on Windows

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Brian, Tim, do you think this should be committed? -- versions: -Python 3.4 ___ Python tracker ___

[issue15496] harden directory removal for tests on Windows

2012-08-13 Thread Brian Curtin
Brian Curtin added the comment: The latest patch to test.support looks reasonable. Go for it. -- ___ Python tracker ___ ___ Python-bug

  1   2   >