[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2014-04-12 Thread koobs
koobs added the comment: test_synopsis_sourceless is also failing on koobs-freebsd9 (3.4) and has been for a while. Failing test inlined here, for full buildlog, see msg215997 in #20123 == ERROR: test_synopsis_sourceless (test

[issue20123] pydoc.synopsis fails to load binary modules

2014-04-12 Thread koobs
koobs added the comment: koobs-freebsd9 (3.4) buildbot has also been failing for a while on what seems to be this changeset: == ERROR: test_synopsis_sourceless (test.test_pydoc.PydocDocTest)

[issue21208] Change default behavior of arguments with type bool when options are specified

2014-04-12 Thread R. David Murray
R. David Murray added the comment: Yeah, this is a bit non-obvious, but it is a specific instance of the general way that argparse handles types. So as far as I can see there really isn't anything to do here. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/reject

[issue21205] Unable to make decorated generator object to inherit generator function's __name__

2014-04-12 Thread R. David Murray
R. David Murray added the comment: I think this is a specific case of a more general need to improve 'wraps' that was discussed on python-dev not too long ago. -- nosy: +r.david.murray versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue21204] published examples don't work

2014-04-12 Thread R. David Murray
R. David Murray added the comment: Testing the documentation examples is a long term goal, which people occasionally contribute to. I think there is an open issue about using the Sphinx doctest support, that for a long time was blocked by the documentation tool chain not using python3. Some

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-12 Thread Richard Kiss
Richard Kiss added the comment: For a reason that I don't understand, this patch to asyncio fixes the problem: --- a/asyncio/tasks.py Mon Mar 31 11:31:16 2014 -0700 +++ b/asyncio/tasks.py Sat Apr 12 20:37:02 2014 -0700 @@ -49,7 +49,8 @@ def __next__(self): return next(self.gen)

[issue21208] Change default behavior of arguments with type bool when options are specified

2014-04-12 Thread Josh Rosenberg
Josh Rosenberg added the comment: If your goal is to get a boolean on/off switch, that's what action='store_true' is for. You don't need to specify nargs or type at all; using bool as the type means it wants an argument, and will pass the string form of the argument to the bool constructor; si

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-12 Thread Richard Kiss
New submission from Richard Kiss: import asyncio import os def t1(q): yield from asyncio.sleep(0.5) q.put_nowait((0, 1, 2, 3, 4, 5)) def t2(q): v = yield from q.get() print(v) q = asyncio.Queue() asyncio.get_event_loop().run_until_complete(asyncio.wait([t1(q), t2(q)])) When

[issue1191964] asynchronous Subprocess

2014-04-12 Thread Josiah Carlson
Josiah Carlson added the comment: No, the problem is that that ov.cancel() will attempt to cancel the IO, but a subsequent ov.getresult(True) doesn't always return what was *actually* written to the pipe unless you explicitly wait for the result to be available. But even if you explicitly wait

[issue20578] BufferedIOBase.readinto1 is missing

2014-04-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: Put up a new review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue20578] BufferedIOBase.readinto1 is missing

2014-04-12 Thread Nikolaus Rath
Nikolaus Rath added the comment: Thanks for the review! Attached is a new patch. I was actually pretty careful to avoid any code duplication.. are you refering to the readinto1() implementations for BytesIO and BufferedReader in Lib/_pyio.py? -- Added file: http://bugs.python.org/file3

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-04-12 Thread Nikolaus Rath
Nikolaus Rath added the comment: My usecase is that I have a binary stream class that internally uses memoryviews. I would like to read text data from this stream and thus encapsulate it in a TextIOWrapper. Currently, TextIOWrapper (correctly) expects read() to return bytes and fails if it rec

[issue21208] Change default behavior of arguments with type bool when options are specified

2014-04-12 Thread Karl Richter
Karl Richter added the comment: I've been mistaken about the behavior if no argument is specified (then the argument value is None), so this is a bug! -- ___ Python tracker ___

[issue21057] TextIOWrapper does not support reading bytearrays or memoryviews

2014-04-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: Nikolaus, can you please restate from scratch what the issue is? If the issue is still the one you posed in msg214776, I think the issue should be closed as "invalid" - it's *not* the case that there is no good reason for TextIOWrapper not accepting any bytes

[issue20578] BufferedIOBase.readinto1 is missing

2014-04-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: I put some review into rietveld. In addition, please avoid code duplication of more than three subsequent lines of code. -- nosy: +loewis ___ Python tracker _

[issue21208] Change default behavior of arguments with type bool when options are specified

2014-04-12 Thread Karl Richter
New submission from Karl Richter: As arguments with type bool are the only ones whose values can be manipulated without passing an option to the argument on CLI, the default behavior for those should be changed from ignoring options to failing when options are specified. Consider the following

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-12 Thread Steven Hiscocks
Steven Hiscocks added the comment: I agree in part, but it's quite common to close fd's in some cases like in a child process after using "os.fork()". There is no way, as far as I'm aware, to identify which fd is associated with /dev/urandom to keep it open; or anyway to reopen it such that ot

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-12 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, if a third-party library decides to close fds it doesn't own, that library should have a bug reported to it. -- ___ Python tracker ___ __

[issue19414] iter(ordered_dict) yields keys not in dict in some circumstances

2014-04-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19414] iter(ordered_dict) yields keys not in dict in some circumstances

2014-04-12 Thread Chris Angelico
Chris Angelico added the comment: I agree that current behaviour is a bit confusing; also, the implication is that deleting from the dictionary while you have an iterator may leave some hanging references around the place, which raises a red flag in my mind (maybe something else might find the

[issue20578] BufferedIOBase.readinto1 is missing

2014-04-12 Thread Nikolaus Rath
Nikolaus Rath added the comment: Seems as if no one has an opinion on this at all: https://mail.python.org/pipermail/python-dev/2014-April/133739.html What next? -- ___ Python tracker

[issue15955] gzip, bz2, lzma: add option to limit output size

2014-04-12 Thread Nikolaus Rath
Changes by Nikolaus Rath : Added file: http://bugs.python.org/file34792/issue15955_r3.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20010] time.strftime('%z') didn't make +HHMM return in windows xp

2014-04-12 Thread Aaron Meurer
Aaron Meurer added the comment: I also just noticed that the %z entry in the table wasn't added until the Python 3.3 docs, although it apparently works at least in OS X in Python 2.7 (I can't test Windows right now). Was it supposed to be one of the "additional directives supported on certain

[issue20010] time.strftime('%z') didn't make +HHMM return in windows xp

2014-04-12 Thread Aaron Meurer
Aaron Meurer added the comment: Nowhere at https://docs.python.org/3.5/library/time.html#time.strftime is it indicated that %z behaves differently on different platforms. What it *does* say is %z Time zone offset indicating a positive or negative time difference from UTC/GMT of the form

[issue20010] time.strftime('%z') didn't make +HHMM return in windows xp

2014-04-12 Thread R. David Murray
R. David Murray added the comment: Can you suggest how to improve the docs? -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5845] rlcompleter should be enabled automatically

2014-04-12 Thread R. David Murray
R. David Murray added the comment: This issue should have gone back to being a release blocker after the alpha release to fix the tab-as-indent issue, but obviously that didn't happen (I forgot about it myself). Please open a new issue requesting a fix for this bug (that tab doesn't work as i

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21206] Provide legit HTTPS certificate for http://bugs.python.org/, redirect HTTP to HTTPS

2014-04-12 Thread Ned Deily
Ned Deily added the comment: Please report issues with bugs.python.org to its issue tracker (Help -> Report Tracker Problem): http://psf.upfronthosting.co.za/roundup/meta/ -- nosy: +ned.deily resolution: -> invalid stage: -> committed/rejected status: open -> closed _

[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-12 Thread Steven Hiscocks
New submission from Steven Hiscocks: I've seen an issue with using urandom on Python 3.4. I've traced down to fd being closed (not by core CPython, but by third party library code). After this, access to urandom fails. I assume this is related to persistent fd for urandom in http://bugs.pytho

[issue20123] pydoc.synopsis fails to load binary modules

2014-04-12 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2014-04-12 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2014-04-12 Thread Eric V. Smith
Changes by Eric V. Smith : -- assignee: eric.smith -> docs@python nosy: +docs@python ___ Python tracker ___ ___ Python-bugs-list mailin

[issue21204] published examples don't work

2014-04-12 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue21009] Potential deadlock in concurrent futures when garbage collection occurs during Queue.get

2014-04-12 Thread Mark Dickinson
Mark Dickinson added the comment: Adding Brian Quinlan to the nosy list. I don't see an easy way around this other than documenting it and recommending that people do explicit executor shutdown where necessary. Weakref callbacks are dangerous things. Weakref callbacks that acquire a lock at

[issue16991] Add OrderedDict written in C

2014-04-12 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue16991] Add OrderedDict written in C

2014-04-12 Thread Eric Snow
Eric Snow added the comment: After pulling up to tip and sticking in the basic **kwargs change, the results on the benchmark suite imply a refleak somewhere. As soon as I sort that out I'll push up the updated patch. -- ___ Python tracker

[issue21204] published examples don't work

2014-04-12 Thread Wolfgang Maier
Changes by Wolfgang Maier : -- nosy: +wolma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20624] Clarify recommendation to inherit from Exception

2014-04-12 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: docs@python -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue21206] Provide legit HTTPS certificate for http://bugs.python.org/, redirect HTTP to HTTPS

2014-04-12 Thread Ram Rachum
New submission from Ram Rachum: Otherwise people could MITM our passwords. -- components: Demos and Tools messages: 215970 nosy: cool-RR priority: normal severity: normal status: open title: Provide legit HTTPS certificate for http://bugs.python.org/, redirect HTTP to HTTPS ___

[issue1191964] asynchronous Subprocess

2014-04-12 Thread Richard Oudkerk
Richard Oudkerk added the comment: I added some comments. Your problem with lost data may be caused by the fact you call ov.cancel() and expect ov.pending to tell you whether the write has/will succeed. Instead you should use ov.getresult() and expect either success or an "aborted" error. --

[issue21205] Unable to make decorated generator object to inherit generator function's __name__

2014-04-12 Thread Szieberth Ádám
New submission from Szieberth Ádám: I faced this particular issue by writing decorators for asyncio coroutines. I even posted a question to SO: http://stackoverflow.com/questions/23015626/how-to-decorate-an-asyncio-coroutine-to-retain-its-name However, since that I realized the problem is mor

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2014-04-12 Thread mk
Changes by mk : -- nosy: +migel.k ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailm

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-04-12 Thread Jurko Gospodnetić
Jurko Gospodnetić added the comment: Thanks for looking into this Xavier. Could someone reopen this issue so it can gets looked at again? -- ___ Python tracker ___ _

[issue21202] Naming a file` io.py` causes cryptic error message

2014-04-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: The runcode() method of InteractiveInterpreter in code.py uses the 'self.locals' dictionary as the 'globals' parameter of the invoked exec() function. And the do_interact() method of Pdb instantiates InteractiveInterpreter with 'locals' as a merge of the curre

[issue21178] doctest cause warnings in tests using generators

2014-04-12 Thread Ontje Lünsdorf
Ontje Lünsdorf added the comment: I think there may be a bug in doctest which is getting exposed by Python 3.4 new handling of reference cycles. I've attached a simpler example with a global variable. There's no error if you run the code directly, the global variable still exists during the g

[issue21197] venv does not create lib64 directory and appropriate symlinks

2014-04-12 Thread Matthias Dahl
Matthias Dahl added the comment: @vinay.sajip: No problem. Jedi is a auto-completion library. It does not add any links anywhere. It naturally has to know about which venvs you use so it can find all modules and their sources to process them. Thus, you (or the implementation using Jedi) pass i

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: FWIW this generator expression can be evaluated with the 'interact' command: --Return-- > /test/comprehension.py(5)foo()->None -> pdb.set_trace() (Pdb) interact *interactive* >>> all(x < limit for x in items) True >>> (Pdb) -- nosy: +xdegaye _