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

[issue23978] ttk.Style.element_create using incorrect tk.call syntax

2015-04-16 Thread jmorgensen
New submission from jmorgensen: Style.element_create passes all spec elements as a single string into tk.call rather than breaking up arguments into words. However, it passes the options properly as a list. This causes python to crash with a stacktrace like the one below. def

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue23981 ___ ___ Python-bugs-list mailing list

[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 rep...@bugs.python.org http://bugs.python.org/issue9517

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

[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 n...@acm.org: -- components: +Windows nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23982 ___

[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

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

2015-04-16 Thread Luis
New submission from Luis: Hi, I've seen an odd behavior for multiprocessing Pool in Linux/MacOS: - import multiprocessing as mp from sys import getsizeof import numpy as np def f_test(x): print('process has received argument %s' % x ) r = x[:100] # return

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-04-16 Thread Chris Angelico
Chris Angelico added the comment: Simple test case for the future directive. Needs expansion. -- Added file: http://bugs.python.org/file39079/test_pep479.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906

[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

[issue23977] Enhancing IDLE's test_delegator.py unit test

2015-04-16 Thread Al Sweigart
New submission from Al Sweigart: As part of trying to understand the IDLE codebase, I'm taking a look at IDLE's unit tests. -Added more specific messages when test_delegator.py's assertions fail. -Added detail to the comments. -Added an explicit test of the resetcache() method (which before

[issue23975] numbers.Rational implements __float__ incorrectly

2015-04-16 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23975 ___ ___

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

2015-04-16 Thread Donald Stufft
Donald Stufft added the comment: Whatever you do, you're still going to force all your main users to download things they don't need, so I don't see the argument of optimizing downloads or caches. pip caches downloads by default, many systems are starting to utilize that cache in order to

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

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue13866

[issue23978] ttk.Style.element_create using incorrect tk.call syntax

2015-04-16 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +gpolo, serhiy.storchaka type: crash - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23978 ___ ___

[issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

2015-04-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e532937914fc by R David Murray in branch 'default': #16914: fix test errors under -W error::BytesWarning. https://hg.python.org/cpython/rev/e532937914fc -- ___ Python tracker rep...@bugs.python.org

[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

[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

[issue17445] Handle bytes comparisons in difflib.Differ

2015-04-16 Thread Greg Ward
Changes by Greg Ward g...@gerg.ca: Added file: http://bugs.python.org/file39083/fa4c6160c518.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17445 ___

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

[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

[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 rep...@bugs.python.org

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

[issue23983] Update example in the pty documentation

2015-04-16 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +twouters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23983 ___ ___ Python-bugs-list mailing list

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

2015-04-16 Thread Donald Stufft
Donald Stufft added the comment: Well, it's even more wasteful if you have to download 100MB wheels with all the different platforms when the dedicated wheel would just need 1.5MB. I think it's going to vary greatly based on how many platforms you're attempting to support and how big your

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

2015-04-16 Thread Ned Deily
Ned Deily added the comment: No, PEP 3149 is about the Python ABI, following PEP 3147, which implements this for PYC files. The intent is to be able to have mutliple *Python* ABI/API versions installed side-by-side, not multiple platform ABI versions :-) Well, for all practical purposes,

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-04-16 Thread Guido van Rossum
Guido van Rossum added the comment: Did anyone look at this yet? The ultimate deadline would be May 24 (beta 1). But making alpha 4 (April 19) would be better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906

[issue23973] PEP 484 implementation

2015-04-16 Thread Guido van Rossum
New submission from Guido van Rossum: I'm creating a release blocker placeholder issue for PEP 484. I think we're going to miss alpha 4 but I am expecting to make beta 1 (and Mark Shannon, the BDFL-Delegate has promised to work within this schedule). Of course it's possible that Mark ends up

[issue23887] HTTPError doesn't have a good repr representation

2015-04-16 Thread Facundo Batista
Facundo Batista added the comment: Hi Berker, I like your patch, will apply it after doing a test for it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23887 ___

<    1   2