[issue27171] Fix various typos

2016-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: typos.py3.patch LGTM. I expect typos.py2.patch is just backported to 2.7. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-05-31 Thread ryan.petrello
Changes by ryan.petrello : -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27172] Add skip_bound_arg argument to inspect.Signature.from_callable()

2016-05-31 Thread ryan.petrello
Changes by ryan.petrello : -- components: Library (Lib) files: signature-from-callable-skip-bound-arg.patch keywords: patch nosy: ryan.petrello priority: normal severity: normal status: open title: Add skip_bound_arg argument to inspect.Signature.from_callable() type: enhancement version

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2016-05-31 Thread Berker Peksag
Berker Peksag added the comment: Here's some quick review comments: * xmlrpc_register_decorator_py33.patch doesn't apply cleanly anymore. * -serv.register_function(my_function) +serv.register_function(_my_function, name='my_function') We should keep ``serv.register_function

[issue27171] Fix various typos

2016-05-31 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file43077/typos.py2.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue27171] Fix various typos

2016-05-31 Thread Martin Panter
New submission from Martin Panter: This fixes various spelling mistakes in documentation, code comments, and test function names. There is also a correction to an exception message in Modules/_ctypes/callproc.c, which I propose to fix only in 3.6. -- files: typos.py3.patch keywords: p

[issue17383] Possibly ambiguous phrasing in tutorial/modules#more-on-modules

2016-05-31 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: patch review -> needs patch type: -> behavior versions: +Python 3.5, Python 3.6 ___ Python tracker ___

[issue20496] function definition tutorial encourages bad practice

2016-05-31 Thread Berker Peksag
Berker Peksag added the comment: I agree with Terry. The print example is also useful to show the implicit return value of fib(). Quoting from the same section: [...] In fact, even functions without a return statement do return a value, albeit a rather boring one. This value is called None

[issue5996] abstract class instantiable when subclassing dict

2016-05-31 Thread Luiz Poleto
Changes by Luiz Poleto : -- nosy: +luiz.poleto ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20683] Add example to tutorial namespace doc, section 9.2

2016-05-31 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Karl. Could you give more details about what's missing? The section gives some examples of namespaces: [...] the set of built-in names (containing functions such as abs(), and built-in exception names); the global names in a module; a

[issue24225] Idlelib: changing file names

2016-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I brought IDLE news entries up to date 2 days ago. This patch updates README.txt with the new names and many new entries for event handlers. A What's New entry needs to wait for more patches, and is the subject of #27163. This completes the 'still to do' li

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2016-05-31 Thread Berker Peksag
Berker Peksag added the comment: add_header.patch looks good to me. Thanks Martin. -- nosy: +berker.peksag stage: patch review -> commit review versions: -Python 3.4 ___ Python tracker

[issue24225] Idlelib: changing file names

2016-05-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20bd4c23cfe4 by Terry Jan Reedy in branch 'default': Issue # 24225: Update idlelib.README.txt with new file names and event handlers. https://hg.python.org/cpython/rev/20bd4c23cfe4 -- ___ Python tracker

[issue26739] idle: Errno 10035 a non-blocking socket operation could not be completed immediately

2016-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Michael, IDLE is not dead, and I am working steadily to modernize it inside and out for 3.6. There have even been improvements for 2.7 since 2.7.5. For his work, Kristján has had no reason to keep up to date on IDLE's progress. -- __

[issue27170] IDLE: remove Toggle Auto Coloring or add to edit menu & doc

2016-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking more, there are lots of editor bindings that are not on the menu that are more important than this. Example: Center insert, ^L, scrolls text to bring insert cursor as close to the middle of the window as possible. It does move the position of the cur

[issue22232] str.splitlines splitting on non-\r\n characters

2016-05-31 Thread Martin Panter
Martin Panter added the comment: For Python 3, the bytes.splitlines() and bytearray.splitlines() documentation has been moved to a separate section out (Issue 21777). I don’t think it is good to add much detail of bytes.splitlines() in the str.splitlines() documentation. For Python 2, perhaps

[issue26739] idle: Errno 10035 a non-blocking socket operation could not be completed immediately

2016-05-31 Thread Zachary Ware
Zachary Ware added the comment: If you're still using 2.7.5, we can't help you. If you can reproduce the issue with 2.7.11 or 3.5.1, please reopen. -- resolution: -> out of date stage: -> resolved status: open -> closed type: resource usage -> behavior __

[issue26739] idle: Errno 10035 a non-blocking socket operation could not be completed immediately

2016-05-31 Thread MICHAEL JACOBSON
MICHAEL JACOBSON added the comment: I also do not want to change something in the /lib folder because that is like going into the Windows Registry and 'fixing' a bunch of stuff. I've made other games with PyGame and they generate errno 10035, too. I've also installed the same version of Python,

[issue26739] idle: Errno 10035 a non-blocking socket operation could not be completed immediately

2016-05-31 Thread MICHAEL JACOBSON
MICHAEL JACOBSON added the comment: Kristján, when you say 'dead or dying code', it worries me a lot. Can you tell me what you mean because I do NOT want to reinstall IDLE. -- ___ Python tracker _

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-05-31 Thread Michael Felt
Michael Felt added the comment: without aixutil.py - hopefully better for Mercurial import -- Added file: http://bugs.python.org/file43074/Python2.Lib.ctypes.160531.patch ___ Python tracker

[issue22232] str.splitlines splitting on non-\r\n characters

2016-05-31 Thread Alexander Schrijver
Alexander Schrijver added the comment: Oops, wrong diff. Sorry, this is the correct one for 2.7. -- Added file: http://bugs.python.org/file43075/cpython2.7_splitlines.diff ___ Python tracker ___

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-05-31 Thread Michael Felt
Michael Felt added the comment: As a separate file in the hope it re-fits into Mercurial better -- Added file: http://bugs.python.org/file43073/aixutil.py ___ Python tracker ___

[issue22232] str.splitlines splitting on non-\r\n characters

2016-05-31 Thread Alexander Schrijver
Alexander Schrijver added the comment: This diff synchronizes the cpython 2.7 with that from 3.5 and also describes the difference between bytes objects and unicode objects (from the other diff) -- Added file: http://bugs.python.org/file43072/cpython3.5_splitlines.diff

[issue22232] str.splitlines splitting on non-\r\n characters

2016-05-31 Thread Alexander Schrijver
Alexander Schrijver added the comment: This diff updates the cpython (tip) documentation to document the different behaviour when using splitlines on bytes objects or string objects. -- keywords: +patch nosy: +Alexander Schrijver Added file: http://bugs.python.org/file43071/cpython3.5_s

[issue27169] __debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks

2016-05-31 Thread Josh Rosenberg
Josh Rosenberg added the comment: That would also work. The argument I'd give in favor of performing a pass that replaces it with a literal True or False is that you don't have update as many places, don't have to worry about missing a place, and you don't have to decide if __debug__ is a refe

[issue26176] EmailMessage example doesn't work

2016-05-31 Thread R. David Murray
Changes by R. David Murray : -- stage: needs patch -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue26176] EmailMessage example doesn't work

2016-05-31 Thread R. David Murray
R. David Murray added the comment: Thank you for the patch. I blame the mistake on too great a familiarity with the old API :) -- nosy: +r.david.murray ___ Python tracker ___ _

[issue27099] IDLE: turn builting extensions into regular modules

2016-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The version conflict problem is why I reverted changing 'extension names' to match the new file names, before rebase collapsing my patches. I was really glad most were in a separate patch. Each time a feature ceases to be an extension, the (old) extension nam

[issue27161] Confusing exception in Path().with_name

2016-05-31 Thread R. David Murray
R. David Murray added the comment: To clarify that performance statement: if someone is optimizing a tight loop, the first thing they'll likely do is drop down to the lower level calls to avoid all of the pathlib overhead. -- ___ Python tracker

[issue27161] Confusing exception in Path().with_name

2016-05-31 Thread R. David Murray
R. David Murray added the comment: Just because it isn't public doesn't mean no one calls it :). But seriously, that's why I said "the risk". Is the small benefit of the codechange worth the small risk of breaking something? I'm not answering that question, I'm posing it. Call me -0 on the

[issue26546] Provide translated french translation on docs.python.org

2016-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: By 'same status', I meant that 3.4 is on 'security maintenance', just like 3.3 and 3.2. But do whatever a reviewer wants. Some people are busy at PyCon this week. Anyway, I think Zack pointed you in the right direction. -- _

[issue10109] itertools.product with infinite iterator cause MemoryError.

2016-05-31 Thread Lucas Wiman
Lucas Wiman added the comment: I realize this is an old (and closed!) thread, but here are a few notes from running into this issue recently, working on a search problem with infinite iterators. First, note that yegle's recursive solution is not correct, since it exhausts the iterators: >>> d

[issue27170] IDLE: remove Toggle Auto Coloring or add to edit menu & doc

2016-05-31 Thread Terry J. Reedy
New submission from Terry J. Reedy: On Stackoverflow, person asked why syntax coloring sometimes stopped working, seemingly at random. https://stackoverflow.com/questions/37511276/how-to-make-python-idle-editor-to-change-line-colors-according-to-the-color-map The OP finally traced the problem

[issue24882] ThreadPoolExecutor doesn't reuse threads until #threads == max_workers

2016-05-31 Thread Josh Rosenberg
Josh Rosenberg added the comment: Is there a good reason to worry about overeager worker spawning? ProcessPoolExecutor spawns all workers when the first work item is submitted ( https://hg.python.org/cpython/file/3.4/Lib/concurrent/futures/process.py#l361 ), only ThreadPoolExecutor even makes

[issue27169] __debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks

2016-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that the complete solution of this problem is making __debug__ a named constant like None, True, False. This needs changing the grammar of Python. -- nosy: +serhiy.storchaka ___ Python tracker

[issue22091] __debug__ in compile(optimize=1)

2016-05-31 Thread Josh Rosenberg
Josh Rosenberg added the comment: I just opened #27169: "__debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks" as a more general case of this bug. This bug covers inconsistent behavior, but ultimately, it's caused by incomplete optimization: `__debug__` doe

[issue27169] __debug__ is not optimized out at compile time for anything but `if:` and `while:` blocks

2016-05-31 Thread Josh Rosenberg
New submission from Josh Rosenberg: Issue #22091 points out a quirk in the compile function and use of the __debug__ "constant" causing inconsistent behavior when the optimize level of the compile call differs from that of the main interpreter; __debug__ in an `if` or `while` statement is comp

[issue26176] EmailMessage example doesn't work

2016-05-31 Thread Nathan Harold
Nathan Harold added the comment: emailexample.patch fixes the specific issue mentioned in #26426: the Address constructor is now used as documented. It changes the final output of the two combined examples (as presented in the documentation) accordingly. In general it seems as though these ex

[issue27161] Confusing exception in Path().with_name

2016-05-31 Thread Antony Lee
Antony Lee added the comment: First, I doubt that this optimization actually changes anything measurable, but if you want you can always replace that line by "if part.startswith(sep)" (also solving the original issue). Additionally, note that `parse_parts` (the only function to call `splitroot

[issue27161] Confusing exception in Path().with_name

2016-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The "part and part[0] == sep" check is here for speed. pathlib-splitroot.patch removes this optimization. -- nosy: +pitrou, serhiy.storchaka ___ Python tracker _

[issue27161] Confusing exception in Path().with_name

2016-05-31 Thread Antony Lee
Antony Lee added the comment: Would it? Note that splitroot is not public, and some quick tests did not show any other behavior difference from the public API side. -- ___ Python tracker _

[issue26546] Provide translated french translation on docs.python.org

2016-05-31 Thread Julien
Julien added the comment: @zach.ware done: https://github.com/python/docsbuild-scripts/pull/1 -- ___ Python tracker ___ ___ Python-bug

[issue27168] Yury isn't sure comprehensions and await interact correctly

2016-05-31 Thread Nathaniel Smith
New submission from Nathaniel Smith: So he asked me to file a bug reminding him to write more unit tests. Interesting cases: async def f(): return (x for x in await g()) async def f(): return (await x for x in g()) (and ditto for [], {} comprehensions) -- components: Interpre

[issue26700] Make digest_size a class variable

2016-05-31 Thread Christian Heimes
Christian Heimes added the comment: Not all hash functions have a fixed digest size, e.g. blake2 is a variable length hash algorithm. https://pythonhosted.org/pyblake2/examples.html#using-different-digest-sizes How about a new class attribute default_digest_size? -- _

[issue26700] Make digest_size a class variable

2016-05-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: +cc Christian Heimes: do the upcoming standard hash functions amenable to a constant class attribute digest_size? Are any of the expected future hashes variable length from a single class / constructor function? -- nosy: +christian.heimes _

[issue27167] subprocess reports signal as negative exit status, not documented

2016-05-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'll take this as a documentation update for 3.5 and a feature request for better message text in 3.6. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith versions: +Python 3.6 ___ Python tracker

[issue26546] Provide translated french translation on docs.python.org

2016-05-31 Thread Julien
Julien added the comment: > From what I know of regional and country variations in spanish, [...] we > (pydev) should not worry until there is an actual conflict from competing > translations. Totally agree. > The patch has this table: > + # version, target, isdev > +

[issue27167] subprocess reports signal as negative exit status, not documented

2016-05-31 Thread David MacKenzie
New submission from David MacKenzie: If a command run by subprocess.check_call() exits because of a signal, e.g. SIGPIPE, Popen._handle_exitstatus() encodes the signal number as a negative return code. check_call() then raises that as a CalledProcessError, which describes it as "returned non-z

[issue26546] Provide translated french translation on docs.python.org

2016-05-31 Thread Zachary Ware
Zachary Ware added the comment: I think you should submit this as a PR against docsbuild-scripts, it will be easier to review there. -- nosy: +zach.ware ___ Python tracker ___ _

[issue26632] @public - an __all__ decorator

2016-05-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm going to go ahead and close this issue. There wasn't much positive reception to @public in the Pycon 2016 language summit (where I presented it as a lightning talk). https://gitlab.com/warsaw/public Some of the other ideas for changes to Python may stil

[issue26546] Provide translated french translation on docs.python.org

2016-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From what I know of regional and country variations in spanish, the main >grammatical differences are in usages, such as the informal plural 2nd person, >that need not appear in a techical manual. I don't know about recently >acquired technical terms. From

[issue27161] Confusing exception in Path().with_name

2016-05-31 Thread R. David Murray
R. David Murray added the comment: It's a resaonable approach, but I question if the gain is worth the chance of introducing bugs (behavior changes...for example, a None argument would be handled differently by the patch). -- ___ Python tracker

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-05-31 Thread A. Skrobov
Changes by A. Skrobov : -- keywords: +patch Added file: http://bugs.python.org/file43069/issue26526_16704_63395.diff ___ Python tracker ___ __

[issue23459] Linux: expose the new execveat() syscall

2016-05-31 Thread R. David Murray
R. David Murray added the comment: Yes, last paragraph of that section. It doesn't mention fexecve explicitly because it doesn't need to, the functionality is what matters. -- ___ Python tracker _

[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2016-05-31 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file43068/readline_locale.v2.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2016-05-31 Thread Martin Panter
Changes by Martin Panter : Removed file: http://bugs.python.org/file43067/readline_locale.v2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2016-05-31 Thread Martin Panter
Martin Panter added the comment: Attached patch adds a possible test, and fixes the truncation problem I mentioned above. I tried testing set_completer_delims() with a UTF-8 locale, but I suspect Gnu Readline does not support it. I called set_completer_delims("\xF6"), which encodes as C3 B6,

[issue27166] Spam

2016-05-31 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: -Rogi title: interesting info -> Spam ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue27145] long_add and long_sub might return a new int where &small_ints[x] could be returned

2016-05-31 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue27166] interesting info

2016-05-31 Thread Emanuel Barry
Changes by Emanuel Barry : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue27166] interesting info

2016-05-31 Thread Emanuel Barry
Changes by Emanuel Barry : -- Removed message: http://bugs.python.org/msg266751 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue26556] Update expat to 2.2.1

2016-05-31 Thread Mirko Dziadzka
Changes by Mirko Dziadzka : -- nosy: +mirko.dziadzka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27166] interesting info

2016-05-31 Thread Rogi
New submission from Rogi: Hi, I found some info and I thought it might be interesting for you, please read more at r...@linuxmail.org -- messages: 266751 nosy: Rogi priority: normal severity: normal status: open title: interesting info ___

[issue24291] Many servers (wsgiref, http.server, etc) can truncate large output blobs

2016-05-31 Thread Martin Panter
Martin Panter added the comment: Here is a patch for just the wsgiref module, which I plan to commit in time for 3.5.2. I also updated the test case to avoid hanging due to a (theoretical) race with how signal handling works. -- Added file: http://bugs.python.org/file43066/wsgiref-only

[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-05-31 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue27165] Skip callables when displaying exception fields in cgitb

2016-05-31 Thread Adam Bielański
New submission from Adam Bielański: Issue: cgitb text formatter outputs all members of exception object, using standard dir() to get their names. My patch changes its behaviour to skip fields which are callable, since printing them only clutters the output but is rarely helpful. HTML formatt

[issue26546] Provide translated french translation on docs.python.org

2016-05-31 Thread Julien
Julien added the comment: > About the URL, we are only talking about 4 languages Yes, and other are clearly not ready to be merged, I still don't know if they want it to happen soon. > For docs.python.org.ar, I don't know if it's "spanish" or "spanish of > Argentina"? Same conclusion: I don'

[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-05-31 Thread Vladimir Mihailenco
New submission from Vladimir Mihailenco: Consider following code: ``` import zlib hello = b'hello' # Compress data using deflate and shared/predefined dict. co = zlib.compressobj(wbits=-zlib.MAX_WBITS, zdict=hello) data = co.compress(hello) + co.flush() # Decompress deflate by providing same

[issue26632] __all__ decorator

2016-05-31 Thread Franklin? Lee
Franklin? Lee added the comment: BIKESHEDDING Here is another concern with decorators and `.__module__` (or `inspect.getmodule`). (Or is it the original concern?) If an earlier decorator creates a wrapper and doesn't set .__module__, you'll make the function public in the wrong module. @

[issue25548] Show the address in the repr for class objects

2016-05-31 Thread Nofar Schnider
Changes by Nofar Schnider : -- nosy: +Nofar Schnider ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27145] long_add and long_sub might return a new int where &small_ints[x] could be returned

2016-05-31 Thread SilentGhost
Changes by SilentGhost : -- nosy: +haypo, rhettinger stage: -> patch review versions: +Python 3.6 ___ Python tracker ___ ___ Python-b

[issue26546] Provide translated french translation on docs.python.org

2016-05-31 Thread STINNER Victor
STINNER Victor added the comment: About the URL, we are only talking about 4 languages: * english * french * japanese * spanish For docs.python.org.ar, I don't know if it's "spanish" or "spanish of Argentina"? For a technical documentation, I don't expect to have a flavor of the docuemntatio

[issue26546] Provide translated french translation on docs.python.org

2016-05-31 Thread Julien
Julien added the comment: Hi, The thread on python-ideas did not raised a long conversation, I don't think many english speaking people are interested in this subject, and non-english people are not in this list. BWT, we translated a lot since march: translated 23% of the strings (versus 14%

[issue24759] Idle: require tk 8.5 and ttk widgets, and drop unneeded code.

2016-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: In msg265349, Ned stated that running IDLE with 8.4 should no longer be a requirement in 3.6. Hence the revised title and restriction to 3.6. Serhiy, I read the code in your #24750 patch. Should it not be enough to first check tkinter.Tkversion >= 8.5 before

[issue27148] Make VENV_DIR relative to Script directory

2016-05-31 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks for the suggestion, but I don't propose to change the way things work in this area, for the following reasons: 1. pyvenv tries to use the same directory layout/location of scripts as virtualenv does. This allows users who are used to virtualenv to have les

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-05-31 Thread A. Skrobov
A. Skrobov added the comment: Thank you Fred for your review! I don't have commit access myself; can anybody please commit it for me? -- ___ Python tracker ___ _

[issue27163] IDLE entry for What's New in Python 3.6

2016-05-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Documentation, IDLE -ctypes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue27163] IDLE entry for What's New in Python 3.6

2016-05-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +Add idlelib.interface module, Idle: add ttk widgets as an option priority: low -> critical ___ Python tracker ___ __