[issue22980] C extension naming doesn't take bitness into account

2015-04-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.04.2015 00:51, Donald Stufft wrote: > >> Since you need special support for such ZIP files (either using dlopen >> hacks or temporarily extracting them), you might as well deal with >> the platform dependencies in that handler. No need to force the >>

[issue23980] Documentation for format units starting with 'e' is inconsistent

2015-04-16 Thread Larry Hastings
New submission from Larry Hastings: Documentation is here: https://docs.python.org/3/c-api/arg.html#arg-parsing The first line of documentation for each format unit follows this convention: formatunit (pythontype) [arguments, to, pyarg_parsetuple] These represent the format unit itsel

[issue23981] Update test_unicodedata.py to use script_helpers

2015-04-16 Thread Christie
New submission from Christie: As described in Issue9517, many test modules do not make use of the helpers in script_helpers.py to invoke the python interpreter in a subprocess. Issue9517 will be broken down into several smaller issues so we can address smaller change sets. This issue is to up

[issue23981] Update test_unicodedata.py to use script_helpers

2015-04-16 Thread Christie
Christie added the comment: I am working on this now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-16 Thread Christie
Christie added the comment: @r.david.murray I've created issue23981, I don't think I have permissions to add it as a dependency to this issue. -- ___ Python tracker ___ _

[issue23979] Multiprocessing Pool.map pickles arguments passed to workers

2015-04-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: The nature of a Pool precludes assumptions about the availability of specific objects in a forked worker process (particularly now that there are alternate methods of forking processes). Since the workers are spun up when the pool is created, objects created o

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-04-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: You shouldn't presize when the input is a potentially non-unique iterable. It makes sense to presize for inputs of type dict or set, but for a list, the assumption is that many duplicates will be present, since deduping is a common use case for dicts (less so

[issue23980] Documentation for format units starting with 'e' is inconsistent

2015-04-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.04.2015 01:38, Larry Hastings wrote: > > Documentation is here: > > https://docs.python.org/3/c-api/arg.html#arg-parsing > > > The first line of documentation for each format unit follows this convention: > formatunit (pythontype) [arguments

[issue23981] Update test_unicodedata.py to use script_helpers

2015-04-16 Thread Christie
Christie added the comment: @r.david.murray, just bugging you b/c you were commenting on Issue9517, this is ready for a review. It assumes the patch from Issue9517 has been applied. I'm thinking for the next issue I'll tackle a few test modules at once, since this is such a tiny tiny change se

[issue23982] Tkinter in Python 3.4 for Windows incorrectly renders certain colors using non-TclTk RGB values

2015-04-16 Thread Martin Falatic
New submission from Martin Falatic: In Python 2.7.9 for Windows, colors displayed match their RGB values as defined in TclTk: http://www.tcl.tk/man/tcl8.5/TkCmd/colors.htm (8.6 is identical) In Python 3.4.3 for Windows, the following colors differ noticeably from their TclTk counterparts: grey

[issue23983] Update example in the pty documentation

2015-04-16 Thread Berker Peksag
New submission from Berker Peksag: I was reading pty docs after watching a PyCon talk and the example in https://docs.python.org/3/library/pty.html#example looked a bit outdated to me. Here is a patch to update it. Changes: * Fixed a ResourceWarning warning * Used argparse instead of getopt

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-16 Thread Greg Ward
Changes by Greg Ward : Added file: http://bugs.python.org/file39083/fa4c6160c518.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-16 Thread Greg Ward
Greg Ward added the comment: Just uploaded https://bugs.python.org/file39083/fa4c6160c518.diff. Pretty sure I've addressed all of @berker.peksag's review comments: thanks for that! I also fixed a number of subtle bugs in the tests. Pro tip: when asserting that something raises TypeError, insp

[issue22829] Add --prompt option to venv

2015-04-16 Thread Berker Peksag
Berker Peksag added the comment: Thanks! The patch looks good to me. Some review comments: http://bugs.python.org/review/22829/ -- components: +Library (Lib) nosy: +berker.peksag stage: -> patch review type: -> enhancement ___ Python tracker

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-16 Thread Berker Peksag
Berker Peksag added the comment: Thanks, looks great. Two trivial comments about the documentation: * Needs ``.. versionadded:: 3.5`` * *dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)* -> ``dfunc(a, b, fromfile, tofile, fromfiledate, tofiledate, n, lineterm)`` --

[issue22583] C stack overflow in the Python 2.7 compiler

2015-04-16 Thread Aleksandr Yeganov
Aleksandr Yeganov added the comment: This is a backport of https://bugs.python.org/issue5765. I've pretty much taken the patch directly and applied it. I did have to modify the test code to use a different method. -- keywords: +patch nosy: +ayeganov Added file: http://bugs.python.org/f

[issue23883] __all__ lists are incomplete

2015-04-16 Thread Joel Taddei
Joel Taddei added the comment: Woops just noticed above in the issue someone else picked up the Calendar __all__. I am genuinely sorry I didn't intend to duplicate the effort. -- ___ Python tracker __

[issue23982] Tkinter in Python 3.4 for Windows incorrectly renders certain colors using non-TclTk RGB values

2015-04-16 Thread Ned Deily
Changes by Ned Deily : -- components: +Windows nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-bugs-list m

[issue23980] Documentation for format units starting with 'e' is inconsistent

2015-04-16 Thread Larry Hastings
Larry Hastings added the comment: > The "e" variants (typically) allocate a buffer for you, since it's pretty > much unknown how long the encoded data will be. All four will do it if you pass in a NULL pointer. "es#" and "et#" can reuse an existing buffer, because you can also pass in its size.

[issue23983] Update example in the pty documentation

2015-04-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue14598] _cursesmodule.c fails with ncurses-5.9 on Linux

2015-04-16 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: I rewrote the patch for Python 3.4. The configure and pyconfig.h.in were generated by autoreconf. If evaluate to the curses WINDOW doesn't have the _flags member, The configure script defines related macros and checks the member again. And removed the quick-f

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-04-16 Thread Martin Panter
Martin Panter added the comment: Yep I think this is ready. I’ll keep your advice in mind for other patches as well :) -- stage: patch review -> commit review ___ Python tracker ___

[issue22848] Subparser help does not respect SUPPRESS argument

2015-04-16 Thread paul j3
paul j3 added the comment: Giving the `subparsers` Action a `metavar` might achieve everything the proposed patch does - without any code changes. In the 1st test case: subparsers = parser.add_subparsers(title='subcommands', description='subcomman

[issue23964] Update README documentation for IDLE tests.

2015-04-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Although the text is aimed at people writing tests, I agree with starting with a new short section "0. Running all Idle tests". The sentence already there is specific to automated unittests. There is also a separate human-mediated test system run with "pytho

[issue23984] Documentation error: Descriptors

2015-04-16 Thread bjonnh
New submission from bjonnh: in https://docs.python.org/3.5/howto/descriptor.html#static-methods-and-class-methods (same problem in all python 3.x documentations) There is this example where the return of f function is printed and there is already a print in the function: """ >>> class E(object

[issue23980] Documentation for format units starting with 'e' is inconsistent

2015-04-16 Thread Larry Hastings
Larry Hastings added the comment: One more idea. We annotate with an & when you pass in a pointer to a variable. So format unit 'i' would get [& int], 's' would get [& char *], and 'es#' would get [char *, & char *, & int]. -- ___ Python tracker

[issue23984] Documentation error: Descriptors

2015-04-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +rhettinger versions: +Python 2.7 -Python 3.2, Python 3.3, Python 3.6 ___ Python tracker ___ ___ Pytho

[issue18262] ZipInfo.external_attr are not documented

2015-04-16 Thread Alex Lord
Alex Lord added the comment: Any follow up on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue18262] ZipInfo.external_attr are not documented

2015-04-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +alanmcintyre, serhiy.storchaka, twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue18262] ZipInfo.external_attr are not documented

2015-04-16 Thread Ned Deily
Changes by Ned Deily : -- stage: needs patch -> patch review versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-

[issue22269] Resolve distutils option conflicts with priorities

2015-04-16 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue23974] random.randrange() biased output

2015-04-16 Thread Mark Dickinson
Mark Dickinson added the comment: See also #9025, which contains a fix for this exact problem in Python 3. -- ___ Python tracker ___ _

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-16 Thread Johan Dahlberg
New submission from Johan Dahlberg: Python 3.4.3 crashes after some time when running the attached program under Windows 7. The program appends a fixed bytes "string" to two independent bytearray buffers. If slices are removed from the beginnging of the two buffers and the two buffers are prin

<    1   2