[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries

2017-08-02 Thread Louie Lu
Louie Lu added the comment: I don't like the name "gentab". There is a "genobject.c" in source code but stand for "generator object". In the code, both docstring and the name didn't mention "General", it only mention at `note.add(self.genpage, 'General')`. That is why I got ambiguous when I

[issue31112] cannot run module with double quotes

2017-08-02 Thread Eryk Sun
Eryk Sun added the comment: Python uses the C runtime wmain entry point, which parses the commandline string into an argument array using documented rules [1]. The quoted string "-m locust.main -V" is passed as a single argument instead of the expected three arguments: ["-m", "locust.main",

[issue31112] cannot run module with double quotes

2017-08-02 Thread ericshenjs
New submission from ericshenjs: (vPy3X64) test01@NJNU f:\Src\localCode\python\py3_eric > python "-m locust.main -V" f:\SDKs\Python\vPy3X64\Scripts\python.exe: Error while finding module specification for ' locust.main -V' (ModuleNotFoundError: No module named ' locust') (vPy3X64) test01@NJNU

[issue31085] Add option for namedtuple to name its result type automatically

2017-08-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Also it's far from clear that the pre-renaming field names are > what is wanted in the auto-generated typename. I concur. > Anyway I think I'm probably out at this point. Okay, marking this as closed. Thank you for the suggestion. Sorry this didn't

[issue31085] Add option for namedtuple to name its result type automatically

2017-08-02 Thread Isaac Morland
Isaac Morland added the comment: Not if one of the attributes is something that cannot be part of a typename: >>> fields = ['def', '-'] >>> namedtuple ('test', fields, rename=True).__doc__ 'test(_0, _1)' >>> namedtuple ('__'.join (fields), fields, rename=True).__doc__ Traceback (most recent

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-02 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'm making good progress on this. I should be able to open the PR tomorrow. It's definitely non-trivial, but using your font and general tests as a guide has been invaluable. -- ___ Python tracker

[issue31080] Allow `logging.config.fileConfig` to accept kwargs

2017-08-02 Thread Preston Landers
Preston Landers added the comment: A colleague pointed out that I used single quotes in the defaults where the line uses double quotes for another argument. I'm not sure if this is considered a problem but I could submit an update if it is. -- ___

[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-02 Thread Eryk Sun
Eryk Sun added the comment: The docs [1] are clear that this property must be of the form major.minor.build. It can include at least one additional field, which the installer ignores. The major and minor version numbers can be up to 255, and the build number can be up to 65535. Python's

[issue31085] Add option for namedtuple to name its result type automatically

2017-08-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Your code will not work if rename=True is needed. It works just fine: >>> NT = auto_namedtuple('name', 'name', 'def', rename=True) >>> print(NT.__doc__) name_name_def(name, _1, _2) -- ___ Python

[issue31080] Allow `logging.config.fileConfig` to accept kwargs

2017-08-02 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31085] Add option for namedtuple to name its result type automatically

2017-08-02 Thread Isaac Morland
Isaac Morland added the comment: OK, so it's pretty clear this is heading towards a rejection, but I can't help but respond to your points: On 2 August 2017 at 01:12, Raymond Hettinger wrote: * This would be a potentially confusing addition to the API. > I'm giving a

[issue31085] Add option for namedtuple to name its result type automatically

2017-08-02 Thread R. David Murray
R. David Murray added the comment: Yeah, different developers have different opinions. We discuss (I'd say argue, which is accurate, but has acquired negative connotations) until we reach a consensus. And if we don't reach a consensus we leave it alone ("status quo wins a stalemate").

[issue31085] Add option for namedtuple to name its result type automatically

2017-08-02 Thread Isaac Morland
Isaac Morland added the comment: On 1 August 2017 at 14:32, R. David Murray wrote: > > R. David Murray added the comment: > > I wrote a "parameterized tests" extension for unittest, and it has the > option of autogenerating the test name from the parameter names and >

[issue31080] Allow `logging.config.fileConfig` to accept kwargs

2017-08-02 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 6ea56d2ebcae69257f8dd7af28c357b25bf394c3 by Vinay Sajip (Preston Landers) in branch 'master': bpo-31080: Allowed logging.config.fileConfig() to accept both args and kwargs. (GH-2979)

[issue31111] Python 3.6 has an inaccessible attribute on FileNotFoundError

2017-08-02 Thread R. David Murray
R. David Murray added the comment: It is intended. See issue 30554. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Inaccessible attribute characters_written on OSError instances ___

[issue31111] Python 3.6 has an inaccessible attribute on FileNotFoundError

2017-08-02 Thread Charles Ferguson
New submission from Charles Ferguson: Whilst debugging a problem in some of my code (which turned out to be a misspelt filename), I found that I could not access one of the properties of the FileNotFoundError object. Essentially, if you get a 'FileNotFoundError' for opening a file that does

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review versions: +Python 3.7 -Python 3.3, Python 3.4, Python 3.5 ___ Python tracker

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-02 Thread Shane Harvey
Changes by Shane Harvey : -- versions: -Python 3.7 ___ Python tracker ___ ___

[issue31109] zipimport argument clinic conversion

2017-08-02 Thread Yaron de Leeuw
Changes by Yaron de Leeuw : -- pull_requests: +3028 ___ Python tracker ___ ___

[issue31110] Small typo in plistlib docs

2017-08-02 Thread cwee
New submission from cwee: Starting with 3.4, the docs for plistlib have had a typo: https://docs.python.org/3.4/library/plistlib.html#plistlib.readPlist https://docs.python.org/3.5/library/plistlib.html#plistlib.readPlist https://docs.python.org/3.6/library/plistlib.html#plistlib.readPlist

[issue31109] zipimport argument clinic conversion

2017-08-02 Thread Yaron de Leeuw
New submission from Yaron de Leeuw: Convert zipimport to use the argument clinic. I will submit the PR shortly. -- components: Argument Clinic, Library (Lib) messages: 299667 nosy: jarondl, larry, twouters priority: normal severity: normal status: open title: zipimport argument clinic

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-02 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3027 ___ Python tracker ___

[issue31108] add __contains__ for list_iterator (and others) for better performance

2017-08-02 Thread Sergey Fedoseev
New submission from Sergey Fedoseev: > python -mtimeit -s "l = list(range(10))" "l[-1] in l" 1000 loops, best of 3: 1.34 msec per loop > python -mtimeit -s "l = list(range(10))" "l[-1] in iter(l)" > 1000 loops, best of 3: 1.59 msec per loop --

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-02 Thread Shane Harvey
New submission from Shane Harvey: This line in copyreg._slotnames does not properly calculate mangled attribute names: https://github.com/python/cpython/blob/v3.6.2/Lib/copyreg.py#L131 The problem is that it does not strip leading underscores from the class name: >>> class

[issue31108] add __contains__ for list_iterator (and others) for better performance

2017-08-02 Thread Sergey Fedoseev
Changes by Sergey Fedoseev : -- pull_requests: +3025 ___ Python tracker ___ ___

[issue30576] http.server should support HTTP compression (gzip)

2017-08-02 Thread Pierre Quentel
Pierre Quentel added the comment: In the latest version of the PR, following Martin's comments : - apply Chunk Transfer for HTTP/1.1 only, change implementation of compression for previous protocols (send gzipped data without Content-Length) - use http.cookiejar to parse the Accept-Encoding

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-08-02 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Alexander. Bugs like this are notoriously hard to fix, you saved us from hours, if not days, of debugging. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-08-02 Thread Alexander Mohr
Alexander Mohr added the comment: I've verified that this along with the changes in 31095 resolve the crashes I've been seeing in our production environment -- ___ Python tracker

[issue30717] str.center() is not unicode aware

2017-08-02 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Hi, Are you guys still interested? I haven't heard from you in a while -- ___ Python tracker ___

[issue31106] os.posix_fallocate() generate exception with errno 0

2017-08-02 Thread Марк Коренберг
New submission from Марк Коренберг: === os.posix_fallocate(os.open('qwe.qwe', os.O_RDONLY|os.O_CREAT), 0, 1024*1024) === generates OSError with errno 0. Suppose this happen due to O_RDONLY flag. strace : open("qwe.qwe", O_RDONLY|O_CREAT|O_CLOEXEC, 0777) = 3 fallocate(3, 0, 0, 1048576)

[issue28427] WeakValueDictionary next bug (with multithreading)

2017-08-02 Thread dubiousjim
dubiousjim added the comment: In response to Issue #7105, self._pending_removals was added to WeakValueDictionaries (and also WeakKeyDictionaries, but they're not relevant to what I'm about to discuss). This was in changesets 58194 to tip and 58195 to 3.1, back in Jan 2010. In those

[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-02 Thread Steve Dower
Steve Dower added the comment: Can you link to those guidelines please? Microsoft release plenty of software with version numbers over 256. Also, since people already rely on the current scheme, we'd need a very compelling reason to break them. I don't believe you've made that case yet.

[issue29456] bugs in unicodedata.normalize: u1176, u11a7 and u11c3

2017-08-02 Thread Wonsup Yoon
Wonsup Yoon added the comment: I added some test cases for this issue. Please, someone check this. -- ___ Python tracker ___

[issue31105] Cyclic GC threshold may need tweaks

2017-08-02 Thread Armin Rigo
New submission from Armin Rigo: The cyclic GC uses a simple and somewhat naive policy to know when it must run. It is based on counting "+1" for every call to _PyObject_GC_Alloc(). Explicit calls to PyObject_GC_Del() are counted as "-1". The cyclic GC will only be executed after the count

[issue31102] deheader: double #incude of the same file

2017-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "sre_lib.h" and "stringlib/*.h" are included multiple times for purpose. They are template files and different inclusions instantiate implementations for specific kind of Unicode strings. "testcapi_long.h" also is a template file. Modules/expat/xmltok.c is

[issue31104] posixpath.normpath truncating forward slashes from URL

2017-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is the string 'https://google.com' an URL or a path? If it is a path, posixpath.normpath() correctly collapses duplicated slashes. If it is an URL, using posixpath.normpath() is not correct. -- nosy: +serhiy.storchaka resolution: -> not a bug

[issue31104] posixpath.normpath truncating forward slashes from URL

2017-08-02 Thread Govind S Menokee
Changes by Govind S Menokee : -- pull_requests: +3024 ___ Python tracker ___ ___

[issue31104] posixpath.normpath truncating forward slashes from URL

2017-08-02 Thread Govind S Menokee
New submission from Govind S Menokee: Handle unwanted truncation of forward slash in case of URL input for normpath function. For Example - path = 'https://google.com' The current output of normpath function would be - 'https:/google.com' After changes the output would be - 'https://google.com'

[issue31104] posixpath.normpath truncating forward slashes from URL

2017-08-02 Thread Govind S Menokee
Changes by Govind S Menokee : -- components: Library (Lib) nosy: govindsmenokee priority: normal severity: normal status: open title: posixpath.normpath truncating forward slashes from URL type: behavior versions: Python 2.7

[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-02 Thread Markus Kramer
Markus Kramer added the comment: Screenshot of Product Version 3.6.2150.0 -- Added file: http://bugs.python.org/file47056/3.6.2.png ___ Python tracker

[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-02 Thread Markus Kramer
New submission from Markus Kramer: Each Windows installation has a “product version”. The Windows installer python-3.6.2.exe has product version "3.6.2150.0" (accessible with context menu / Properties / Details). This causes at least 2 problems: - Automated software inventory relies on

[issue31102] deheader: double #incude of the same file

2017-08-02 Thread Дилян Палаузов
New submission from Дилян Палаузов: For cpython 3.6 deheader (http://www.catb.org/esr/deheader/) reports: Mac/Tools/pythonw.c has more than one inclusion of Modules/_sre.c has more than one inclusion of "sre_lib.h" Modules/_testcapimodule.c has more than one inclusion of "testcapi_long.h"

[issue29902] copy breaks staticmethod

2017-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Benjamin. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29902] copy breaks staticmethod

2017-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3dd1ccbb0950b2b83713a495958c35d60b453fa9 by Serhiy Storchaka in branch '2.7': bpo-29902: Emit a Py3k deprecation warning when pickling or copying (#2823) https://github.com/python/cpython/commit/3dd1ccbb0950b2b83713a495958c35d60b453fa9

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-08-02 Thread INADA Naoki
INADA Naoki added the comment: New changeset f142e85d22ba135d5205280240f3a2fe1df2649f by INADA Naoki in branch '3.6': bpo-31061: fix crash in asyncio speedup module (GH-2984) https://github.com/python/cpython/commit/f142e85d22ba135d5205280240f3a2fe1df2649f --

[issue31101] os.remove() auto add \ in Windows2012R2

2017-08-02 Thread Paul Moore
Paul Moore added the comment: There are two problems with your code and bug report: 1. By using a single quoted string, some of the backslashes in the path are being interpreted as starting a special character (specifically \t is interpreted as a tab character). You should either double the

[issue31101] os.remove() auto add \ in Windows2012R2

2017-08-02 Thread Re-ax
New submission from Re-ax: I need to remove a file in python at Windows2012R2, but, os.remove()auto add \ in each seq. code: #coding=utf-8 import os dir_path='d:\c\d\e\t\c\t.xf' os.remove(dir_path) result: Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-08-02 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +3023 ___ Python tracker ___ ___

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-08-02 Thread INADA Naoki
INADA Naoki added the comment: New changeset de34cbe9cdaaf7b85fed86f99c2fd071e1a7b1d2 by INADA Naoki (Alexander Mohr) in branch 'master': bpo-31061: fix crash in asyncio speedup module (GH-2966) https://github.com/python/cpython/commit/de34cbe9cdaaf7b85fed86f99c2fd071e1a7b1d2 --