[issue31095] Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC

2017-07-31 Thread Alexander Mohr
Alexander Mohr added the comment: should the base method which calls tp_dealloc do this? Maybe can kill all birds with one stone. -- nosy: +thehesiod ___ Python tracker

[issue31095] Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC

2017-07-31 Thread INADA Naoki
New submission from INADA Naoki: like GH-2966, most types with Py_TPFLAGS_HAVE_GC should call PyObject_GC_UnTrack() at top of the tp_dealloc. For example, I found lru_cache doesn't call it and I can produce segmentation fault. I'll check other types too. -- components: Extension

[issue31083] IDLE: document new TabPage(Frame) design for configdialog

2017-07-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue31083] IDLE: document new TabPage(Frame) design for configdialog

2017-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The next blockers are the tests for the other 3 tabs: #31001, #31002, #31093. Steps for converting block of ConfigDialog methods for tab X into a class. Steps are updated from #31050. * In create_widgets, change

[issue31094] asyncio: get list of connected clients

2017-07-31 Thread Dmitry Vinokurov
New submission from Dmitry Vinokurov: Hi! I'm using python-opcua and wonder if it is possible to get list of clients connected to running server? I've asked such question in python-opcua repo https://github.com/FreeOpcUa/python-opcua/issues/480 and developers redirected me here. Thanks in

[issue31083] IDLE: document new TabPage(Frame) design for configdialog

2017-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 48fcc72c83e1b47b200dd39f9dcc9f62fa0d4d17 by Terry Jan Reedy in branch '3.6': [3.6] bpo-31083: IDLE: Describe the Page classes in configdialog (GH-2965) (#2973) https://github.com/python/cpython/commit/48fcc72c83e1b47b200dd39f9dcc9f62fa0d4d17

[issue31001] IDLE: Add tests for configdialog highlight tab

2017-07-31 Thread Terry J. Reedy
New submission from Terry J. Reedy: Pr2908 originally just sorted highlight methods together, but was extended to sort all methods together and relabeled for #31060. (This actually simplified the diff.) Pr2925, the 3.6 backport, appears on the replacement issue. --

[issue31093] IDLE: Add tests for configdialog extensions tab

2017-07-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: terry.reedy components: IDLE nosy: terry.reedy priority: normal severity: normal stage: needs patch status: open title: IDLE: Add tests for configdialog extensions tab type: enhancement versions: Python 3.6, Python 3.7

[issue31083] IDLE: document new TabPage(Frame) design for configdialog

2017-07-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3018 ___ Python tracker ___ ___

[issue31083] IDLE: document new TabPage(Frame) design for configdialog

2017-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6f446bee4f6ac0c61bb2c3386a0149fd36855793 by Terry Jan Reedy (csabella) in branch 'master': bpo-31083: IDLE: Describe the Page classes in configdialog (#2965) https://github.com/python/cpython/commit/6f446bee4f6ac0c61bb2c3386a0149fd36855793

[issue25910] Fixing links in documentation

2017-07-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 330cdac5174e3dc6c1deb876bc12a39d7af9af84 by Mariatta in branch '3.6': bpo-25910: Update LICENSE (GH-2873) (GH-2967) https://github.com/python/cpython/commit/330cdac5174e3dc6c1deb876bc12a39d7af9af84 --

[issue25910] Fixing links in documentation

2017-07-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset b3c7d37c5ac8dbba4f1ebcf279bfceb570fb6c19 by Mariatta in branch '2.7': bpo-25910: Update LICENSE (GH-2873) (GH-2969) https://github.com/python/cpython/commit/b3c7d37c5ac8dbba4f1ebcf279bfceb570fb6c19 --

[issue25910] Fixing links in documentation

2017-07-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset f6306e737203ac1bf1717bbf62bc58dac24b68db by Mariatta in branch '3.5': bpo-25910: Update LICENSE (GH-2873) (GH-2968) https://github.com/python/cpython/commit/f6306e737203ac1bf1717bbf62bc58dac24b68db --

[issue25910] Fixing links in documentation

2017-07-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +3016 ___ Python tracker ___ ___

[issue25910] Fixing links in documentation

2017-07-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +3017 ___ Python tracker ___ ___

[issue25910] Fixing links in documentation

2017-07-31 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +3015 ___ Python tracker ___ ___

Re: @lru_cache on functions with no arguments

2017-07-31 Thread Terry Reedy
On 7/31/2017 7:31 PM, t...@tomforb.es wrote: As part of the Python 3 cleanup in Django there are a fair few uses of @functools.lru_cache on functions that take no arguments. This makes no sense to me. If the function is being called for side-effects, then it should not be cached. If the

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

2017-07-31 Thread Alexander Mohr
Alexander Mohr added the comment: ok, created: https://github.com/python/cpython/pull/2966 there are some other deallocs in there, mind verifying the rest? -- pull_requests: +3014 ___ Python tracker

[issue30842] pyenv activate for bash and tcsh

2017-07-31 Thread Vinay Sajip
Changes by Vinay Sajip : -- stage: -> needs patch ___ Python tracker ___ ___

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

2017-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: Alexander, I think this is it, you found it! Can you open a PR against master with a fix? I'll review & merge it. -- ___ Python tracker

[issue31083] IDLE: document new TabPage(Frame) design for configdialog

2017-07-31 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +3012, 3013 ___ Python tracker ___ ___

Re: @lru_cache on functions with no arguments

2017-07-31 Thread codewizard
On Monday, July 31, 2017 at 7:31:52 PM UTC-4, t...@tomforb.es wrote: > As part of the Python 3 cleanup in Django there are a fair few uses of > @functools.lru_cache on functions that take no arguments. A lru_cache isn't > strictly needed here, but it's convenient to just cache the result. Some

[issue31083] IDLE: document new TabPage(Frame) design for configdialog

2017-07-31 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +3013 ___ Python tracker ___ ___

@lru_cache on functions with no arguments

2017-07-31 Thread tom
As part of the Python 3 cleanup in Django there are a fair few uses of @functools.lru_cache on functions that take no arguments. A lru_cache isn't strictly needed here, but it's convenient to just cache the result. Some examples are here: https://github.com/django/django/pull/8825/files I did

[issue31076] http.server should correctly handle HTTP 1.1 responses without a content-length

2017-07-31 Thread Tom Forbes
Tom Forbes added the comment: Django recently switched to HTTP 1.1 on their development server, and it works fine as long as the middleware is included that generates the content length. Using a 'bare' Django project with no middleware the server will just hang. It sounds like the easiest fix

[issue29654] SimpleHTTPRequestHandler should support browser cache

2017-07-31 Thread STINNER Victor
STINNER Victor added the comment: I suppose temp.flush() is a remnant of other (unsuccessful) attempt to fix a race condition. I didn't try only with .flush(). I prefer to explicitly .flush(), just in case :-) Using correctly a file system is complex because of all layers of caching.

[issue31088] regrtest.py: "${test_file_name} skipped" message printed twice for each ${test_file_name}

2017-07-31 Thread STINNER Victor
STINNER Victor added the comment: The output is correct. First, regrtest says that the test is running. Then the test is skipped and a message is logged. Finally, the test result is logged: the test was skipped. Using -j0, the output is less surprising ;-) --

Re: Question

2017-07-31 Thread oliver
On Mon, Jul 31, 2017, 17:33 Sonja Williams via Python-list, < python-list@python.org> wrote: > > > > > Good Day, > > I have decided to learn more about programming so I picked up the book > Beginning Programming by Matt Telles. After following the directions > verbatim and going to the Python

[issue30640] NULL + 1 in _PyFunction_FastCallDict(), PyEval_EvalCodeEx()

2017-07-31 Thread Zackery Spytz
Changes by Zackery Spytz : -- pull_requests: +3011 ___ Python tracker ___ ___

Re: Question

2017-07-31 Thread Chris Angelico
On Tue, Aug 1, 2017 at 7:11 AM, Sonja Williams via Python-list wrote: > > > > > Good Day, > > I have decided to learn more about programming so I picked up the book > Beginning Programming by Matt Telles. After following the directions > verbatim and going to the Python

Question

2017-07-31 Thread Sonja Williams via Python-list
Good Day, I have decided to learn more about programming so I picked up the book Beginning Programming by Matt Telles. After following the directions verbatim and going to the Python site to download the latest version 3, which is what the book recommended, I keep getting the following

Re: Issues with Python

2017-07-31 Thread Daniele Forghieri
Il 30/07/2017 23:31, Ode Idoko via Python-list ha scritto: Hi, I am new to Python and though I have been able to download the 3.6 version on my laptop , I still have issues with the syntax. While writing a program to execute, it will display syntax error with different shades of color usually

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

2017-07-31 Thread Preston Landers
Preston Landers added the comment: This is the current state of my patch: https://github.com/python/cpython/compare/master...Preston-Landers:bpo-31080-fileconfig It makes both `args` and `kwargs` optional in the config file. (Obviously, the actual handler may require args.) --

[issue31091] remove dead code in PyErr_GivenExceptionMatches()

2017-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is just a cleaning up. There is no bug in the old code. Usually such kind of changes are not backported. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31091] remove dead code in PyErr_GivenExceptionMatches()

2017-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e4c06bcca358c6dcb6393a75a1589ff6a2d45cde by Serhiy Storchaka (scoder) in branch 'master': bpo-31091: Remove dead code in PyErr_GivenExceptionMatches(). (#2963) https://github.com/python/cpython/commit/e4c06bcca358c6dcb6393a75a1589ff6a2d45cde

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

2017-07-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list

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

2017-07-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: resolved -> ___ Python tracker ___ ___

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

2017-07-31 Thread Alexander Mohr
Alexander Mohr added the comment: I'm hoping this is the fix: --- Modules/_asynciomodule.c.orig 2017-07-31 12:16:16.0 -0700 +++ Modules/_asynciomodule.c2017-07-31 13:08:52.0 -0700 @@ -953,15 +953,18 @@ FutureObj_dealloc(PyObject *self) { FutureObj *fut =

[issue31092] Potential multiprocessing.Manager() race condition

2017-07-31 Thread Prof Plum
New submission from Prof Plum: So I was writing code that had multiple write thread and read thread "groups" in a single pool (in a group a few write threads write to a queue that a read thread reads), and I ran into what I think is a race condition with the multiprocessing.Manager() class.

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

2017-07-31 Thread Alexander Mohr
Alexander Mohr added the comment: another core had a different gc object: $1 = {ob_base = {ob_base = {_ob_next = 0x7f801eac3158, _ob_prev = 0x7f801eab95a0, ob_refcnt = 41, ob_type = 0x7f80238e76e0 }, ob_size = 0}, tp_name = 0x7f801e8967af "_asyncio.Task", tp_basicsize = 128, tp_itemsize = 0,

[issue31091] remove dead code in PyErr_GivenExceptionMatches()

2017-07-31 Thread Stefan Behnel
Stefan Behnel added the comment: Looks like the switch from PyObject_IsSubclass() to PyType_IsSubtype() was made during the original Py3 development cycle. It should thus be safe to assume that the semantics are "as designed". :) What about applying the patch also to 3.6 and older?

[issue31091] remove dead code in PyErr_GivenExceptionMatches()

2017-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou, serhiy.storchaka stage: -> patch review ___ Python tracker ___

[issue31091] remove dead code in PyErr_GivenExceptionMatches()

2017-07-31 Thread Stefan Behnel
New submission from Stefan Behnel: PyObject *exception, *value, *tb; PyErr_Fetch(, , ); /* PyObject_IsSubclass() can recurse and therefore is not safe (see test_bad_getattr in test.pickletester). */ res = PyType_IsSubtype((PyTypeObject *)err, (PyTypeObject

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2017-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2bf1586e60a6639b532cd8e3442ae33064523eb1 by Serhiy Storchaka (csabella) in branch '3.6': [3.6] bpo-25684: ttk.OptionMenu radiobuttons weren't unique (GH-2276) (#2959)

[issue26440] tarfile._FileInFile.seekable is broken in stream mode

2017-07-31 Thread Yaron de Leeuw
Yaron de Leeuw added the comment: _Stream provides seek, but only positive seeking is allowed. Is that considered seekable? Also, maybe _Stream should inherit from io.BaseIO. WDYT? -- nosy: +jarondl ___ Python tracker

[issue26617] Assertion failed in gc with __del__ and weakref

2017-07-31 Thread Alexander Mohr
Alexander Mohr added the comment: so I just discovered that the object that has the zero refcount has the same tp_dealloc: (gdb) print *FROM_GC(gc)->ob_type $8 = {ob_base = {ob_base = {_ob_next = 0x7f80c8aafc88, _ob_prev = 0x7f80c8aafd00, ob_refcnt = 7, ob_type = 0x7f80cd8c86e0 }, ob_size =

[issue25910] Fixing links in documentation

2017-07-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 8474d87165593bac2bc231287f42c4cff3fd6aaf by Mariatta in branch 'master': bpo-25910: Update LICENSE (GH-2873) https://github.com/python/cpython/commit/8474d87165593bac2bc231287f42c4cff3fd6aaf -- nosy: +Mariatta

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

2017-07-31 Thread Alexander Mohr
Alexander Mohr added the comment: oh, so this is looking like an asyncio issue, the "gc" that is causing the crash is: (gdb) print *FROM_GC(gc)->ob_type $8 = {ob_base = {ob_base = {_ob_next = 0x7f80c8aafc88, _ob_prev = 0x7f80c8aafd00, ob_refcnt = 7, ob_type = 0x7f80cd8c86e0 }, ob_size = 0},

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: No problem - glad it's all clear now. -- ___ Python tracker ___ ___

[issue29519] weakref spewing exceptions during finalization when combined with multiprocessing

2017-07-31 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3e37f4a11547a226c3c2f8bd612510465db397b9 by Łukasz Langa (INADA Naoki) in branch '2.7': bpo-29519: weakref spewing exceptions during interp finalization (#2958) https://github.com/python/cpython/commit/3e37f4a11547a226c3c2f8bd612510465db397b9

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: Ok I have downloaded an installed via the Windows installer and the test I run works as expected. I also tried the embedded package without the ._pth and it also works according to the embedded documentation. Sorry for the confusion as I did not specify the

[issue26253] tarfile in stream mode always set zlib compression level to 9

2017-07-31 Thread Yaron de Leeuw
Changes by Yaron de Leeuw : -- pull_requests: +3009 ___ Python tracker ___ ___

Re: YAML in std lib?

2017-07-31 Thread Skip Montanaro
In addition to the reasons given by Steve, Paul, and others, the barrier to entry to the standard library has grown as the domains to which Python is applied have increased. To justify the maintenance effort, when considering a module or package for inclusion in the standard library, you want it

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2017-07-31 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +3008 ___ Python tracker ___ ___

[issue31090] import error for numpy

2017-07-31 Thread Sriram
Sriram added the comment: Yes, i just found that after creating the issue, Sorry. Anyhow thanks for quick response, i have addressed this to numpy team. https://github.com/numpy/numpy/issues/9501 -- ___ Python tracker

Re: YAML in std lib?

2017-07-31 Thread Lele Gaifax
Paul Moore writes: > As I understand it, YAML as a markup language is not as popular as it once > was. Given all the hype around Docker these days, I'm not convinced that's true :) > In addition, the main YAML library on PyPI is PyYAML There is fork,

[issue31089] email.utils.parseaddr fails on odd double quotes in multiline header

2017-07-31 Thread R. David Murray
R. David Murray added the comment: Ah, I take it back. With \n it retains the \n in the decoded name field. There is a bug of some sort here (\r\n should be treated the same as \n, I think, whatever way it is treated). I don't think this is worth addressing, given that the new policies

[issue31089] email.utils.parseaddr fails on odd double quotes in multiline header

2017-07-31 Thread R. David Murray
R. David Murray added the comment: parseaddr does what you expect if the message has been read using universal newline mode (ie: the linesep is \n): >>> parseaddr('"=?UTF-8?Q?Anita_=W4=86ieckli=C5=84ska_|_PATO_Nieruch?=\n >>> =?UTF-8?Q?omo=C5=9Bci?=" "')

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: I'm not Steve, but thanks for the compliment :-) You're still running an embedded Python. There's a _python36.pth file next to the executable, that's causing the behaviour you're seeing (and it's there by design - it's what makes the embedded distribution behave

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: Steve Dower, I understand the purpose of the embedded package. The test was also tried by calling the python executable without modifying the path and the same thing happens. i.e. %~dp0\Python_Embedded_Windows_32bit_v3.6.2\python main.py in the zip package I

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: Hmm, never mind. This is expected behaviour because the embedded distribution includes a ".pth" file which overrides the standard sys.path. For details, see https://docs.python.org/3.6/using/windows.html#finding-modules and

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Paul Moore
Paul Moore added the comment: OK, so this is the first time (I believe) you have mentioned that you are using the embedded distribution - which is not designed for general scripting use, but very specifically for embedding Python in a custom application. Can you reproduce with the standard

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: I run the test.bat file and get the import error. -- ___ Python tracker ___

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-31 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: I have tried from 3 computers now and have been able to reproduce the issue with the same set of files described in my stackoverflow post. Here is a .zip package with all of the files I used in all 3 tests. The python package is the Windows 32bit embedded zip

[issue30732] json.dumps() lacks information about RecursionError related to default function

2017-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: simplejson behaves the same. I thought default() was allowed to return only instances of types directly supported by JSON encoder (type(None), bool, int, float, list, tuple, dict). Is there a reason of allowing to call default() more than once on the same

[issue31090] import error for numpy

2017-07-31 Thread Mark Dickinson
Mark Dickinson added the comment: Hi Sriram, NumPy is a third party package, not maintained by the Python core developers; you likely need to report this on the NumPy bug tracker (though it's probably worthwhile asking on the NumPy user mailing lists first). Closing here, since this almost

[issue31089] email.utils.parseaddr fails on odd double quotes in multiline header

2017-07-31 Thread Robert
Changes by Robert : -- components: +email nosy: +barry, r.david.murray type: -> behavior ___ Python tracker ___

[issue31090] import error for numpy

2017-07-31 Thread Sriram
New submission from Sriram: When i tried to import numpy for any program in VS 2017, it returns with Import Error. Traceback (most recent call last): File "C:\Program Files\Python36\lib\site-packages\numpy\core\__init__.py", line 16, in from . import multiarray ImportError: DLL load

[issue31089] email.utils.parseaddr fails on odd double quotes in multiline header

2017-07-31 Thread Robert
New submission from Robert: email.utils.parseaddr() does not successfully parse a field value into a (comment, address) pair if the FROM header has 2 lines (or more) containing odd number of double quotes in each of them. The address in such tuple is not e-mail address but a part of comment.

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 018d353c1c8c87767d2335cd884017c2ce12e045 by Alexander Belopolsky in branch 'master': Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896)

[issue30640] NULL + 1 in _PyFunction_FastCallDict(), PyEval_EvalCodeEx()

2017-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c6ea8974e2d939223bfd6d64ee13ec89c090d2e0 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and PyEval_EvalCodeEx() (#2919)

Re: zipapp should not include temporary files?

2017-07-31 Thread Paul Moore
On Friday, 28 July 2017 17:53:08 UTC+1, Irmen de Jong wrote: > On 28/07/2017 18:36, Irmen de Jong wrote: > > On 27/07/2017 00:03, Paul Moore wrote: > >> If you want to create a feature request for a filter function on > >> bugs.python.org and assign it to me, I'll take a look at it. \ > > > >

Re: YAML in std lib?

2017-07-31 Thread Paul Moore
On Sunday, 30 July 2017 07:21:00 UTC+1, Steve D'Aprano wrote: > 1. Perhaps nobody has thought of it. > > 2. The author of the library refused to allow it, or demanded > conditions which the Python developers either cannot or will > not meet. > > 3. The library is under rapid

[issue31088] regrtest.py: "${test_file_name} skipped" message printed twice for each ${test_file_name}

2017-07-31 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Since some change during last 3 months, regrtest.py on 2.7 branch prints "${test_file_name} skipped" message twice for each ${test_file_name}, firstly directly after given ${test_file_name}, and secondly after the following test.

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

2017-07-31 Thread INADA Naoki
INADA Naoki added the comment: When subclassing, current __repr__ uses `self.__class__.__name__`. So you get meaningful name already. When automatic generation, I recommend you to use some wrapper to cache same namedtuple, since creating namedtuple on the fly is costly job. I'm afraid

[issue31086] Add namedattrgetter function which acts like attrgetter but uses namedtuple

2017-07-31 Thread Isaac Morland
Isaac Morland added the comment: Maybe the issue is that I work with SQL constantly. In SQL, if I say "SELECT a, b, c FROM t" and table t has columns a, b, c, d, e, f, I can still select a, b, and c from the result. So to me it is natural that getting a bunch of attributes returns something

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

2017-07-31 Thread Isaac Morland
Isaac Morland added the comment: I want a meaningful name to appear in debugging output generated by repr() or str(), not just _ all over the place. I just don't want to specifically come up with the meaningful name myself. Right now I pass in the same generated name ('__'.join

[issue30940] Documentation for round() is incorrect.

2017-07-31 Thread Mark Dickinson
Mark Dickinson added the comment: > This also can be not clear. Sure. But if it comes down to a clear, mostly accurate description that helps people understand versus a harder-to-read nitpick-proof statement, I'd rather see the former. -- ___

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2017-07-31 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +3007 ___ Python tracker ___ ___

[issue29519] weakref spewing exceptions during finalization when combined with multiprocessing

2017-07-31 Thread INADA Naoki
INADA Naoki added the comment: [gsutil](https://github.com/GoogleCloudPlatform/gsutil) shows massive "Exception ... ignored" message from this regression. https://twitter.com/minimum2scp/status/890021408482316289 I think we should backport this fix to Python 2.7.14. -- nosy:

[issue29519] weakref spewing exceptions during finalization when combined with multiprocessing

2017-07-31 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +3006 ___ Python tracker ___ ___

[issue31071] *args unpacking can mask TypeErrors

2017-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka components: +Interpreter Core nosy: +serhiy.storchaka stage: needs patch -> patch review ___ Python tracker

[issue31071] *args unpacking can mask TypeErrors

2017-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3005 ___ Python tracker ___ ___

[issue30999] statistics module: add "key" keyword argument to median, mode, ...

2017-07-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I don't think it makes sense to add key arguments to mode, mean, > variance etc. I'm having trouble thinking of what that would > even mean I concur. This proposal bends the concept of a key-function to where it is no longer obvious what it does. > I've

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2017-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a568e5273382a5dca0c27274f7d8e34c41a87d4d by Serhiy Storchaka (csabella) in branch 'master': bpo-25684: ttk.OptionMenu radiobuttons weren't unique (#2276) https://github.com/python/cpython/commit/a568e5273382a5dca0c27274f7d8e34c41a87d4d

[issue31086] Add namedattrgetter function which acts like attrgetter but uses namedtuple

2017-07-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: The principal use case for attrgetter() was to work with key-functions for sorted/min/max/groupby/nsmallest/nlargest. Secondarily, it worked nicely with map() and filter() as a field extractor in a chain of iterators. Neither these use cases would

[issue31028] test_pydoc fails when run directly

2017-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Victor. But please don't forget to edit commit messages before merging. Commit messages of above commits look confusing. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python

[issue30940] Documentation for round() is incorrect.

2017-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > For a general Python object ``number``, ``round`` delegates to > ``number.__round__``. This also can be not clear. See a discussion in issue31042. -- ___ Python tracker

[issue29144] Implicit namespace packages in Python 3.6

2017-07-31 Thread Lumír Balhar
Lumír Balhar added the comment: Thank you for the replies. I created an issue [0] on setuptools GitHub (without reply yet) because I also think that setuptools should install pkg_resources-style __init__.py files. [0] https://github.com/pypa/setuptools/issues/1097 --

[issue29654] SimpleHTTPRequestHandler should support browser cache

2017-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Victor! I suppose temp.flush() is a remnant of other (unsuccessful) attempt to fix a race condition. -- ___ Python tracker

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2017-07-31 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: Since previous comment, I've studied the switch for show/hide implementation detail. As the result, I have understood the Py_BUILD_CORE macro hasn't been generally used for hiding implementation detail (and Py_LIMITED_API does the part). Therefore, I

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

2017-07-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Steven. -- assignee: -> rhettinger ___ Python tracker ___

[issue24827] round(1.65, 1) return 1.6 with decimal

2017-07-31 Thread Mark Dickinson
Mark Dickinson added the comment: > I think it is better to make a tip in the Python tutorial. I'd recommend opening a separate issue (or pull request, if you're feeling adventurous) for that; this issue is old and closed, and it's unlikely many will be following it. --

[issue31036] building the python docs requires the blurb module

2017-07-31 Thread Julien Palard
Julien Palard added the comment: I added blurb to the docs build script (https://github.com/python/docsbuild-scripts/commit/06375b6d74f6d5613fcd48030b3af8032854c87d), so 3.5 should build soon. The requirements looks automatically pulled from psf-salt