[issue15634] synchronized decorator for the threading module

2012-08-13 Thread Juan Javier
Juan Javier added the comment: Ok, you are right, serialized is the right name. Also, passing the lock to the decorator will the correct option. -- ___ Python tracker ___ __

[issue15644] after _bytesio.seek(0), _bytesio.getvalue() returned reversed data.

2012-08-13 Thread Ned Deily
Ned Deily added the comment: The program works as expected. After the first two writes, the buffer contains b'abcdef'. Then the seek(0) moves the stream pointer to the beginning of the buffer and the next write overwrites buffer positions 0 through 2, replacing b'abc' with b'xyz'. So now th

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

2012-08-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: There are reference leaks in the _pickle.c part that will need to be fixed too. 22:36:29 [~/pickle4]$ ./python -m test.regrtest -R :: test_pickle [1/1] test_pickle beginning 9 repetitions 123456789 . test_pickle leaked [14780, 14780, 14780, 14780

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

2012-08-13 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I get warnings when compiling with the patch: /home/avassalotti/pickle4/Modules/_pickle.c: In function ‘save_global_binary’: /home/avassalotti/pickle4/Modules/_pickle.c:2952: warning: pointer targets in passing argument 2 of ‘_Pickler_Write’ differ in si

[issue15644] after _bytesio.seek(0), _bytesio.getvalue() returned reversed data.

2012-08-13 Thread umedoblock
New submission from umedoblock: import io _bytesio = io.BytesIO() _bytesio.write(b'abc') _bytesio.write(b'def') _bytesio.seek(0) _bytesio.write(b'xyz') print(_bytesio.read(2)) print(_bytesio.read(2)) print(_bytesio.getvalue()) # output b'de' b'f' b'xyzdef' # where is the b'abc' ? -- c

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

2012-08-13 Thread Eli Bendersky
Eli Bendersky added the comment: I committed your patch to default (3.3) with some minor fixes. Please go over them as you will need to apply them to the 2.7 patch. I've reviewed the 2.7 patch as well - it's an initial review. Did you execute all the code samples on 2.7? -- _

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

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc66730dae4c by Eli Bendersky in branch 'default': Issue #15586: add some examples to ElementTree documentation. Patch by Daniel Ellis. http://hg.python.org/cpython/rev/fc66730dae4c -- nosy: +python-dev

[issue7231] Windows installer does not add \Scripts folder to the path

2012-08-13 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> Windows installer should add Python and Scripts directories to the PATH environment variable ___ Python tracker

[issue15543] central documentation for 'universal newlines'

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a new patch with David's suggested change (just for doc files though). -- Added file: http://bugs.python.org/file26796/issue-15543-4.patch ___ Python tracker __

[issue6033] LOOKUP_METHOD and CALL_METHOD optimization

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Benjamin confirms a regression in his patch, and the other patch was not intended for CPython. So I'm closing this issue. -- nosy: +r.david.murray stage: patch review -> committed/rejected status: open -> closed __

[issue15543] central documentation for 'universal newlines'

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Is it worth standardizing on "universal newlines mode" in the code as well (docstrings, etc)? There are about ten occurrences of "universal newline mode" that would need to be changed. -- ___ Python tracker

[issue15543] central documentation for 'universal newlines'

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Sure, you're welcome. And sounds good, I'll change it. The singular was the prevailing form, but you're right that there is no reason we can't change it. -- ___ Python tracker _

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

2012-08-13 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file26795/pickle4.diff ___ Python tracker ___ ___ Python-bugs-list mailin

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

2012-08-13 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Removed file: http://bugs.python.org/file26794/pickle4.diff ___ Python tracker ___ ___ Python-bugs-list mail

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

2012-08-13 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : Added file: http://bugs.python.org/file26794/pickle4.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9161] add_option in optparse no longer accepts unicode string

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Thanks! -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9161] add_option in optparse no longer accepts unicode string

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c86a860e3d2 by R David Murray in branch '2.7': #9161: add test for the bug fixed by r82581. http://hg.python.org/cpython/rev/4c86a860e3d2 -- nosy: +python-dev ___ Python tracker

[issue15543] central documentation for 'universal newlines'

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Thanks for working on this. I see nothing wrong with using 'universal newlines mode' as the term, which would simplify the markup. -- nosy: +r.david.murray ___ Python tracker __

[issue9161] add_option in optparse no longer accepts unicode string

2012-08-13 Thread Michael Johnson
Michael Johnson added the comment: Huh, let me try that again! I'm not sure how the attachment got dropped. -- keywords: +patch Added file: http://bugs.python.org/file26793/issue9161_test.diff ___ Python tracker ___

[issue9161] add_option in optparse no longer accepts unicode string

2012-08-13 Thread R. David Murray
R. David Murray added the comment: @Michael: Thanks for working on this. I don't see a patch attached to the issue, though. -- ___ Python tracker ___ ___

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

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

[issue15543] central documentation for 'universal newlines'

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Updating patch to latest again. -- nosy: +asvetlov Added file: http://bugs.python.org/file26792/issue-15543-3.patch ___ Python tracker ___ _

[issue15322] sysconfig.get_config_var('srcdir') returns unexpected value

2012-08-13 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15322] sysconfig.get_config_var('srcdir') returns unexpected value

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: It seems to be fixed now. Thanks. -- status: pending -> open ___ Python tracker ___ ___ Python-bugs

[issue15322] sysconfig.get_config_var('srcdir') returns unexpected value

2012-08-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: I think #15364 is a duplicate of this. It should be fixed now. Can you check again. -- nosy: +sbt resolution: -> duplicate stage: -> committed/rejected status: open -> pending superseder: -> sysconfig confused by relative paths type: -> behavior

[issue15364] sysconfig confused by relative paths

2012-08-13 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15269] Document dircmp.left and dircmp.right

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

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

2012-08-13 Thread ita1024
ita1024 added the comment: Here is the generated Lib/_sysconfigdata.py file -- Added file: http://bugs.python.org/file26791/_sysconfigdata.py ___ Python tracker ___ _

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

2012-08-13 Thread ita1024
ita1024 added the comment: I have not modified anything related to python on my opensuse install, i have only grabbed the latest tarball, compiled and installed. Here is the result with python 3.3.0 beta 2 ./configure make (sudo make install) > log I am observing the same outputs: $ /usr/local

[issue15496] harden directory removal for tests on Windows

2012-08-13 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> brian.curtin components: +Windows resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15496] harden directory removal for tests on Windows

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset c863dadc65eb by Brian Curtin in branch '2.7': Fix #15496. Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth http://hg.python.org/cpython/rev/c863dadc65eb -- ___ Pyt

[issue15643] Support OpenCSW in setup.py

2012-08-13 Thread Floris Bruynooghe
New submission from Floris Bruynooghe: This patch proposes to add out of the box support for building against OpenCSW libraries on Solaris. It makes building all the extension modules a lot simpler since the CSW repositories provide almost all required libaries. The order of preference is /us

[issue15496] harden directory removal for tests on Windows

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset fcad4566910b by Brian Curtin in branch '3.2': Fix #15496. Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth http://hg.python.org/cpython/rev/fcad4566910b -- nosy: +python-dev _

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

2012-08-13 Thread Matthias Klose
Matthias Klose added the comment: > File "/etc/pythonstart", line 5, in and this seems to be a patched/distro installation. Do you see this with an unpatched one as well? -- ___ Python tracker __

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

2012-08-13 Thread Matthias Klose
Matthias Klose added the comment: please could you attach the configure options, generated _sysconfigdata.py and a log of the install step? -- ___ Python tracker ___ ___

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

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you call read() or read()? Please inspect at least the "fp", "length", "chunked" and "chunk_left" attributes. -- nosy: +pitrou ___ Python tracker _

[issue15496] harden directory removal for tests on Windows

2012-08-13 Thread Tim Golden
Tim Golden added the comment: Fine with me -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2012-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[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

[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 ___

[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

[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? -- ___

[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

[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 ___ _

[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

[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

[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

[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 ___ __

[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

[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:

[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

[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 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

[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 ___ ___

[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

[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 __

[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://

[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://

[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

[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

[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

[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 __

[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 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

[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

[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

[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 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

[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

[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. -- _

[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

[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

[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.

[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

[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 _

[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

[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

[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: 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 __

[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

[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:

[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 ___ __

[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

[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

[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

[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

[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

[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 ___ ___

[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

[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 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

[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

[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

[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 Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> rejected 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 ___ ___

[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 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 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 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

  1   2   >