[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: The same way the dis module does: by looking at the names listed in the various code object attributes. If it's listed in co_cellvars, then it's a local variable in the current frame that's in a cell because it's part of the closure for a nested function. If

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-10 Thread INADA Naoki
INADA Naoki added the comment: > Original Raymond's design didn't preserve ordering during deletion. Original Raymond's pure Python implementation rebuilds index table. Without it, proving can be very long or infinite loop. See L89-92 in http://code.activestate.com/recipes/578375/ Strictly

[issue31415] Add -X option to show import time

2017-09-10 Thread INADA Naoki
New submission from INADA Naoki: I used my local patch to profile import time. I think it's useful for 3rd party authors. For example: ./python -Ximportprofile -c 'import traceback' - _codecs 71 [us] - codecs 677 [us] - encodings.aliases 412 [us] - encodings 1688 [us] - encodings.utf_8

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that mixed insertion and deletion is worst-case O(n) in current implementation. Original Raymond's design didn't preserve ordering during deletion. It had worst-case O(1) for mixed insertion and deletion. I didn't follow the numerous discussions about

[issue29526] Documenting format() function

2017-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3484 stage: -> patch review ___ Python tracker ___

[issue29718] Fixed compile on cygwin.

2017-09-10 Thread Decorater
Decorater added the comment: Closing this in favor of https://www.python.org/dev/peps/pep-0539/. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue28638] Optimize namedtuple creation

2017-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Microbenchmark for caching docstrings: $ ./python -m perf timeit -s "from collections import namedtuple; names = ['field%d' % i for i in range(1000)]" -- "namedtuple('A', names)" With sys.intern(): Mean +- std dev: 3.57 ms +- 0.05 ms With Python-level

[issue29136] Add OP_NO_TLSv1_3

2017-09-10 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: In backport to 2.7 branch, ".. versionadded:: 2.7.15" and ".. versionchanged:: 2.7.15" were used. However, in backport to 3.6 branch, ".. versionadded:: 3.7" and ".. versionchanged:: 3.7" were used, instead of expected ".. versionadded::

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

2017-09-10 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset e1847ea4a9bdc7549893091a63e14f2afbdecc32 by Mariatta (Cheryl Sabella) in branch '2.7': bpo-25684: ttk.OptionMenu radiobuttons weren't unique (GH-2276) (GH-2960) https://github.com/python/cpython/commit/e1847ea4a9bdc7549893091a63e14f2afbdecc32

People choosing Python 3

2017-09-10 Thread INADA Naoki
I saw encouraging tweet from Kenneth Reitz. https://twitter.com/kennethreitz/status/902028601893294081/photo/1 On Heroku, most people choose Python 3! I know, it's because Python 3 is the default Python on Heroku. I can't wait Python 3 is the default Python of Red Hat, and "python" command

[issue31415] Add -X option to show import time

2017-09-10 Thread INADA Naoki
Changes by INADA Naoki : -- keywords: +patch pull_requests: +3483 stage: -> patch review ___ Python tracker ___

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

2017-09-10 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Fixed and backported to 3.6 and 2.7. Thanks, all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Using Python 2

2017-09-10 Thread Rick Johnson
Ian wrote: > Rick Johnson wrote: > > Ned Batchelder wrote: > > > Leam Hall wrote: > > > > > > > > I've read comments about Python 3 moving from the Zen of > > > > Python. I'm a "plain and simple" person myself. > > > > Complexity to support what CompSci folks want, which was > > > > used to

[issue31409] Implement PEP 559 - built-in noop()

2017-09-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- keywords: +patch pull_requests: +3470 stage: -> patch review ___ Python tracker ___

[issue31409] Implement PEP 559 - built-in noop()

2017-09-10 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: Placeholder issue for discussion of the design of the implementation of PEP 559. -- assignee: barry components: Interpreter Core messages: 301816 nosy: barry priority: normal severity: normal status: open title: Implement PEP 559 - built-in noop()

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Changes by Stefan Krah : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29136] Add OP_NO_TLSv1_3

2017-09-10 Thread Christian Heimes
Christian Heimes added the comment: Good catch, thanks! I'll update the documentation. -- stage: resolved -> needs patch status: closed -> open versions: -Python 2.7, Python 3.7 ___ Python tracker

[issue31410] int.__repr__() is slower than repr()

2017-09-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Following the StackOverflow question [1]. Calling repr() is faster than calling unbound method __repr__(). This looks strange at first glance because it is *obvious* that repr() is implemented via calling __repr__(). $ ./python -m timeit

[issue31411] SystemError raised by warn_explicit() in case warnings.onceregistry is not a dict

2017-09-10 Thread Oren Milman
New submission from Oren Milman: The following code causes warn_explicit() (in Python/_warnings.c) to raise a SystemError: import warnings warnings.filterwarnings('once') warnings.onceregistry = None warnings.warn_explicit(message='foo', category=Warning, filename='bar',

[issue31370] Remove support for threads-less builds

2017-09-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +3472 ___ Python tracker ___ ___

[issue29136] Add OP_NO_TLSv1_3

2017-09-10 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3473 stage: needs patch -> patch review ___ Python tracker ___

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Stefan Krah added the comment: New changeset 3cedf46cdbeefc019f4a672c1104f3d5e94712bd by Stefan Krah in branch 'master': bpo-31406: Fix crash due to lack of type checking in subclassing. (#3477) https://github.com/python/cpython/commit/3cedf46cdbeefc019f4a672c1104f3d5e94712bd --

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3469 ___ Python tracker ___

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Stefan Krah added the comment: Thanks for the report and the patch! -- resolution: -> fixed versions: +Python 3.6 ___ Python tracker ___

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-10 Thread Stefan Behnel
Stefan Behnel added the comment: Any more comments on the proposed implementation? 13-15% seem worth it to me. @Victor, or are you saying "PyId, or no change at all"? -- ___ Python tracker

[issue31410] int.__repr__() is slower than repr()

2017-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3471 ___ Python tracker ___

v2.0 released of: a Boulder Dash clone with retro graphics and sound

2017-09-10 Thread Irmen de Jong
On 06/09/2017 23:17, Irmen de Jong wrote: > > https://github.com/irmen/bouldercaves > My Boulder Dash clone is now at version 2.0 because a few important things that were lacking are now implemented: * authentic mode: The game is now displayed in a small screen that scrolls smoothly over the

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-10 Thread Christian Heimes
Christian Heimes added the comment: Good work, Stefan! It's an impressive speedup of class creation. It looks like you have not yet addressed Serhiy's comment https://github.com/python/cpython/pull/3279/files#r136815648 -- nosy: +christian.heimes

[issue31408] Leak in typeobject.c

2017-09-10 Thread Stefan Krah
New submission from Stefan Krah: I traced this valgrind result down to 2ebc5ce42a8a9e047e790aefbf9a94811569b2b6 : ==23495== 240 (72 direct, 168 indirect) bytes in 1 blocks are definitely lost in loss record 2,255 of 2,922 ==23495==at 0x4C2A9A1: malloc (vg_replace_malloc.c:299) ==23495==

[issue31408] Leak in typeobject.c

2017-09-10 Thread INADA Naoki
INADA Naoki added the comment: Maybe, PyDict_ClearFreeList() is not called? -- nosy: +inada.naoki ___ Python tracker ___

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Stefan Krah added the comment: New changeset f8909d0e4b652256e4da153fa6be664490f60a07 by Stefan Krah (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31406: Fix crash due to lack of type checking in subclassing. (GH-3477) (#3479)

Re: Python in Perspective

2017-09-10 Thread MRAB
On 2017-09-10 11:21, Leam Hall wrote: y'all, My god-kids and their proginators lost most everything because of Harvey. I spent much of yesterday worrying about a friend who had gone quiet as he evacuated his family ahead of Irma. Please keep Python in perspective. Whether we use 1.5 or 4rc1 is

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread Marko Rauhamaa
Dennis Lee Bieber : > In contrast, every sample I've seen of the async library comes > across as "magic happens here -- at some point in time". That magic can be learned, in principle. I'm afraid few programmers will be willing/able to get over the hump, and there

[issue28638] Optimize namedtuple creation

2017-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 8b57d7363916869357848e666d03fa7614c47897 by Raymond Hettinger in branch 'master': bpo-28638: Optimize namedtuple() creation time by minimizing use of exec() (#3454)

[issue28638] Optimize namedtuple creation

2017-09-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31409] Implement PEP 559 - built-in noop()

2017-09-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Rejected by GvR! -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Changes by Stefan Krah : -- pull_requests: +3468 ___ Python tracker ___ ___

[issue21009] Potential deadlock in concurrent futures when garbage collection occurs during Queue.get

2017-09-10 Thread Simon Jagoe
Simon Jagoe added the comment: In the script attached to the original issue, the weakref callback that causes the hang is the callback defined in ThreadPoolExecutor._adjust_thread_count Attached is a faulthandler stack captured from Python 3.6.1. The script submitted here uses a patched

Re: Using Python 2

2017-09-10 Thread Marko Rauhamaa
Ian Kelly : > 2. Type hints are completely optional, so this does not support the > claim that Python 3 added complexity that is counter-productive to > "simple" users. If you want to keep your program simple, you can: just > don't use them. We'll see about that. I'm

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka, skrah ___ Python tracker ___

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread Rick Johnson
Chris Angelico wrote: > Marko Rauhamaa wrote: [...] > > The clouds I see looming over Python's head are: > > > > * 2-to-3 migration > > If that was going to kill Python, it would have had some > impact by now. There are students learning Python *today* > who are never going to have to

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Oren Milman
Changes by Oren Milman : -- keywords: +patch pull_requests: +3467 stage: -> patch review ___ Python tracker ___

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread breamoreboy
On Sunday, September 10, 2017 at 6:07:00 AM UTC+1, Ben Finney wrote: > Gene Heskett writes: > > > On Saturday 09 September 2017 21:48:44 Chris Angelico wrote: > > > > > The Python Secret Underground emphatically does not exist. > > > > Humm. here all this time I thought you were a charter member.

[issue31407] --without-pymalloc broken

2017-09-10 Thread Stefan Krah
New submission from Stefan Krah: ./configure --without-pymalloc produces: Objects/obmalloc.c: In function ‘bumpserialno’: Objects/obmalloc.c:1326:21: error: ‘struct _pymem_runtime_state’ has no member named ‘serialno’ ++_PyRuntime.mem.serialno; ^ Objects/obmalloc.c:

Re: People choosing Python 3

2017-09-10 Thread Chris Warrick
On 10 September 2017 at 11:24, Leam Hall wrote: > On 09/10/2017 04:19 AM, Chris Warrick wrote: >> >> On 10 September 2017 at 09:30, Marko Rauhamaa wrote: >>> >>> INADA Naoki : >>> I can't wait Python 3 is the default Python of

Python in Perspective

2017-09-10 Thread Leam Hall
y'all, My god-kids and their proginators lost most everything because of Harvey. I spent much of yesterday worrying about a friend who had gone quiet as he evacuated his family ahead of Irma. Please keep Python in perspective. Whether we use 1.5 or 4rc1 is a lot less critical than using

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread Stephan Houben
Op 2017-09-10, Chris Angelico schreef : > Want to make something iterable? Define __iter__. Want to make it > async-iterable (with "async for")? Define __aiter__. It's a bit clunky > if you want the same object to be iterable both ways, but I don't know > of any real-world

ايجى وورلد

2017-09-10 Thread mohmmedmohmmedalagmyabdalrhman
ايجى وورلد http://egyworld.bid -- https://mail.python.org/mailman/listinfo/python-list

[issue31345] Backport docstring improvements to the C version of OrderedDict

2017-09-10 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: Hi Mariatta, Thanks for pointing that out about 3.5. Is that also why the build failed!? I found it hard to parse travis' output and was surprised it failed. Thanks for letting me know---getting it fixed. I have added my github account to the other one,

[issue31311] a SystemError and a crash in PyCData_setstate() when __dict__ is bad

2017-09-10 Thread Oren Milman
Oren Milman added the comment: just in case it was missed - I have opened two PRs for this issue. -- ___ Python tracker ___

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread Marko Rauhamaa
Skip Montanaro : >> * asyncio with its a-dialect > > What is a/the "a-dialect"? await async def async for __aiter__ __anext__ async with __aenter__ __aexit__ What's more, when you turn a function into an async, you need to refactor a large part of your program.

[issue31373] demoting floating float values to unrepresentable types is undefined behavior

2017-09-10 Thread Mark Dickinson
Mark Dickinson added the comment: > Do you know a way to get the IEEE 754 rounding behavior without invoking C > undefined behavior? One option is to hard-code the actual boundary, which is 2**128 * (1 - 2**-25) (as opposed to FLT_MAX, which is 2**128 * (1 - 2**-24)): values equal to or

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread Marko Rauhamaa
Stephan Houben : > Op 2017-09-10, Chris Angelico schreef : >> Want to make something iterable? Define __iter__. Want to make it >> async-iterable (with "async for")? Define __aiter__. It's a bit clunky >> if you want the same object to be iterable

[issue31370] Remove support for threads-less builds

2017-09-10 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Also 'import threading' code in Tools/scripts/run_tests.py should be cleaned. -- nosy: +Arfrever ___ Python tracker

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread Gene Heskett
On Sunday 10 September 2017 01:06:00 Ben Finney wrote: > Gene Heskett writes: > > On Saturday 09 September 2017 21:48:44 Chris Angelico wrote: > > > The Python Secret Underground emphatically does not exist. > > > > Humm. here all this time I thought you were a charter

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Oren Milman
New submission from Oren Milman: The following code crashes the interpreter: import decimal import fractions class BadRational(fractions.Fraction): numerator = None denominator = 42 decimal.Decimal() < BadRational() this is because numerator_as_decimal() (in

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread Skip Montanaro
> * asyncio with its a-dialect What is a/the "a-dialect"? S -- https://mail.python.org/mailman/listinfo/python-list

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread Chris Angelico
On Sun, Sep 10, 2017 at 7:45 PM, Skip Montanaro wrote: >> * asyncio with its a-dialect > > What is a/the "a-dialect"? Want to make something iterable? Define __iter__. Want to make it async-iterable (with "async for")? Define __aiter__. It's a bit clunky if you want

Re: People choosing Python 3

2017-09-10 Thread Stephan Houben
Op 2017-09-10, Marko Rauhamaa schreef : > As an application developer, I can't make the customers depend on EPEL. > It's Python2 until the distro comes with Python3. Why not bundle the Python interpreter with your application? It seems to work for Windows developers... Stephan

Re: Python in Perspective

2017-09-10 Thread Tristan B. Kildaire
On 2017-09-10 12:21 PM, Leam Hall wrote: y'all, My god-kids and their proginators lost most everything because of Harvey. I spent much of yesterday worrying about a friend who had gone quiet as he evacuated his family ahead of Irma. Please keep Python in perspective. Whether we use 1.5 or

Re: array.array()'s memory shared with multiprocessing.Process()

2017-09-10 Thread gerlando . falauto
> > I suspect it's down to timing. > > What you're putting into the queue is a reference to the array, and it's > only some time later that the array itself is pickled and then sent (the > work being done in the 'background'). > > Modifying the array before (or while) it's actually being sent

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My comment was addressed. As for using the _Py_IDENTIFIER API, I don't think it is related. The speedup was caused by avoiding few simple checks and function calls. The _Py_IDENTIFIER API is great, but it has a small overhead which is comparable to the

[issue31412] wave.open does not accept PathLike objects

2017-09-10 Thread Michael Cuthbert
New submission from Michael Cuthbert: The wave library (reading and writing .wav audio files) accepts filehandles, strings, and bytes, but does not accept PathLike objects. Patch will modify wave.py to allow open to use these objects. -- messages: 301826 nosy: mscuthbert priority:

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-10 Thread Stefan Behnel
Stefan Behnel added the comment: No, that one was addressed. I think only Victor's comment is still open, that's why I asked back. -- ___ Python tracker

[issue31412] wave.open does not accept PathLike objects

2017-09-10 Thread Michael Cuthbert
Changes by Michael Cuthbert : -- components: +Library (Lib) type: -> enhancement ___ Python tracker ___

[issue29136] Add OP_NO_TLSv1_3

2017-09-10 Thread Christian Heimes
Christian Heimes added the comment: Thanks, I fixed versionchanged. -- stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.7 ___ Python tracker

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-10 Thread Christian Heimes
Christian Heimes added the comment: Victor is currently travelling and recovering from jetlag. I'm sure he'll reply within a day or two. -- assignee: -> haypo ___ Python tracker

[issue31411] SystemError raised by warn_explicit() in case warnings.onceregistry is not a dict

2017-09-10 Thread Oren Milman
Changes by Oren Milman : -- keywords: +patch pull_requests: +3475 stage: -> patch review ___ Python tracker ___

[issue31411] SystemError raised by warn_explicit() in case warnings.onceregistry is not a dict

2017-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

Re: Python programming language vulnerabilities

2017-09-10 Thread Skip Montanaro
That link's not working for me, even after changing the double slash to a single slash. Skip On Sun, Sep 10, 2017 at 1:45 PM, Stephen Michell wrote: > My apologies. I maintain that website. > > There should have been no broken links. I will fix that. > > The

[issue31373] demoting floating float values to unrepresentable types is undefined behavior

2017-09-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +3476 ___ Python tracker ___ ___

[issue27099] IDLE: turn built-in extensions into regular modules

2017-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 58fc71c447049d0efe4e11db1b55edc307f1bede by Terry Jan Reedy (wohlganger) in branch 'master': bpo-27099: IDLE - Convert built-in extensions to regular features (#2494)

Re: Python programming language vulnerabilities

2017-09-10 Thread Skip Montanaro
These links work: * http://open-std.org/JTC1/SC22/WG23/docs/ISO-IECJTC1-SC22-WG23_N0702-tr24772-4-draft-python-before-mtg-48-2017-03-10.pdf * http://open-std.org/JTC1/SC22/WG23/docs/ISO-IECJTC1-SC22-WG23_N0702-tr24772-4-draft-python-before-mtg-48-2017-03-10.docx Skip On Sun, Sep 10, 2017 at

[issue29136] Add OP_NO_TLSv1_3

2017-09-10 Thread Christian Heimes
Christian Heimes added the comment: New changeset 28580316a57d1757978196c27286f989d21ec0f3 by Christian Heimes in branch '3.6': bpo-29136: Fix versionchange for TLS 1.3 changes (#3483) https://github.com/python/cpython/commit/28580316a57d1757978196c27286f989d21ec0f3 --

[issue31412] wave.open does not accept PathLike objects

2017-09-10 Thread Michael Cuthbert
Changes by Michael Cuthbert : -- keywords: +patch pull_requests: +3474 stage: -> patch review ___ Python tracker ___

[issue30918] Unable to launch IDLE in windows 7

2017-09-10 Thread dongdong
dongdong added the comment: Hi Terry, Sorry, I missed your resply because it was buried in my trash email. Here are the configuration in my PC: HOMEDRIVE=Z: HOMEPATH=\ HOMESHARE=\\nt3.imec.be\zhai65 LOCALAPPDATA=C:\Users\zhai65\AppData\Local USERPROFILE=C:\Users\zhai65 In python >>>

[issue31373] demoting floating float values to unrepresentable types is undefined behavior

2017-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm going to undo the changes to getargs.c and floatobject.c. I think the pytime.c change is still correct because the doubles are explicitly rounded before conversion (and the old code checked for error > 1.0). It's hard to win here I think. The clang

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM that what is being proposed is an algorithmically flawed re-implementation of the ordered dictionary. I'm unclear about whether you understand and acknowledge why the doubly-linked list was chosen and what kind of workloads it supports (we didn't

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-10 Thread INADA Naoki
INADA Naoki added the comment: > I'm unclear about whether you understand and acknowledge why the > doubly-linked list was chosen and what kind of workloads it supports (we > didn't choose it because it was either convenient or fun, we chose it because > it was an algorithmically correct way

[issue31345] Backport docstring improvements to the C version of OrderedDict

2017-09-10 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks Henk-Jaap for the PR. It's been merged. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31413] Support importing anything in ._pth files.

2017-09-10 Thread Decorater
New submission from Decorater: E:\TinyURL\app\Release>tinyurl Fatal Python error: only 'import site' is supported in ._pth file Current thread 0x161c (most recent call first): The above Happens when I try to use the ._pth file to automatically call .main() However it prints that and then

[issue31413] Support importing anything in ._pth files.

2017-09-10 Thread Decorater
Changes by Decorater : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list

Re: [Tutor] beginning to code

2017-09-10 Thread Chris Angelico
On Mon, Sep 11, 2017 at 11:29 AM, Rick Johnson wrote: > Ruby: > farray = [1.5, 1.9, 2.0, 1.0] > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length > > Python: > flist = [1.5, 1.9, 2.0, 1.0] > uniqueIntegers = len(set(map(lambda f:int(f), flist)))

[issue30788] email.policy.SMTP.fold() issue for long filenames with spaces

2017-09-10 Thread R. David Murray
Changes by R. David Murray : -- keywords: +patch pull_requests: +3479 stage: -> patch review ___ Python tracker ___

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-09-10 Thread R. David Murray
Changes by R. David Murray : -- keywords: +patch pull_requests: +3478 stage: needs patch -> patch review ___ Python tracker ___

[issue27099] IDLE: turn built-in extensions into regular modules

2017-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Here is a high-level overview of the steps involved in the patch, and a few TODOs for new issues. Move menu specifications from feature files to mainmenu.py. Remove enable items from config-extensions.def sections. Most features were enabled for both shell

[issue30918] Unable to launch IDLE in windows 7

2017-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the information. I hope to get to this before 3.6.3. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Unable to run IDLE without write-access to home directory ___

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Based on the python-dev discussion, can we close this now? -- ___ Python tracker ___

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2017-09-10 Thread Grant Bremer
Grant Bremer added the comment: The use case is for an internal PKI implementation where verification should be, needs to be limited to certificates signed by the PKI CA and no higher to, say, a larger realm which would not be appropriate. -- ___

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-10 Thread INADA Naoki
INADA Naoki added the comment: The discussion on [1] was for removing pure Python implementation, not about changing C implementation. [1]: https://mail.python.org/pipermail/python-dev/2017-September/149147.html While I withdrawed my suggestion about removing pure Python implementation, I

[issue31373] demoting floating float values to unrepresentable types is undefined behavior

2017-09-10 Thread Mark Dickinson
Mark Dickinson added the comment: > It's hard to win here I think. Agreed. > It seems like the undefined behavior sanitizer is being overzealous when the > target supports IEEE754. Also agreed. -- ___ Python tracker

[issue31361] Update feedparser.py to prevent theano compiling fail in python3

2017-09-10 Thread Wei-Shun Lo
Wei-Shun Lo added the comment: Hi David, >From the error message, the source of the None object was from pip, and it is grabbing data from the metadata of the package. File "/usr/local/lib/python3.6/site-packages/pip/utils/packaging.py", line 48, in check_dist_requires_python -- By adding

[issue27099] IDLE: turn built-in extensions into regular modules

2017-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset d6c397bf772a8f17e00afc5e0a2cf37fdebcdf29 by Terry Jan Reedy in branch '3.6': [3.6] bpo-27099: IDLE - Convert built-in extensions to regular features (GH-2494) (#3487)

[issue8231] Unable to run IDLE without write-access to home directory

2017-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #30918 as a duplicate of this. It has full 'set' and expanduser info. -- ___ Python tracker ___

[issue27099] IDLE: turn built-in extensions into regular modules

2017-09-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +patch pull_requests: +3477 stage: test needed -> patch review ___ Python tracker ___

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Just for the record, here is the draft of the post I was going to make on python-dev but didn't prove to be necessary. - I think would be a mistake to replace the implementation of collections.OrderedDict() with

[issue31265] Remove doubly-linked list from C OrderedDict

2017-09-10 Thread INADA Naoki
INADA Naoki added the comment: > Just for the record, here is the draft of the post I was going to make on > python-dev but didn't prove to be necessary. Thank you for write down your thought. For move_to_end(), I admit new behavior is *amortized* O(1) and current behavior is *worst-case*

Re: Using Python 2

2017-09-10 Thread Gregory Ewing
Rick Johnson wrote: Heck, when is the last time GvR participated in any discussion outside the hermetic bubble of Python-Dev or Python-Ideas? I'd hardly call python-ideas "hermetic". Anyone is free to post there and participate in discussions. Python-dev is open to anyone too, the only

[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-09-10 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- keywords: +patch pull_requests: +3480 stage: test needed -> patch review ___ Python tracker ___

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-09-10 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3481 ___ Python tracker ___

  1   2   >