Re: An endless loop

2017-10-14 Thread Steve D'Aprano
On Sun, 15 Oct 2017 01:43 pm, Dennis Lee Bieber wrote: > On 15 Oct 2017 02:10:15 GMT, r...@zedat.fu-berlin.de (Stefan Ram) declaimed > the following: [...] >>def poly( n, length ): >>i = 0 >>while i < n: >>forward( length ) >>left( 360/n ) >> > > A clear example of why a

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: OK, I'll wait for the new PEP and ignore the ticket. -- ___ Python tracker ___

[issue31742] Default to emitting FutureWarning for provisional APIs

2017-10-14 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

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

2017-10-14 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

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

2017-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds like a plan, I will ignore the ticket then. -- ___ Python tracker ___

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

2017-10-14 Thread Nick Coghlan
Nick Coghlan added the comment: Err, I phrased that last sentence really badly. I meant that if Guido *hasn't* been following this ticket closely, he's more likely to ask for clarification if PEP 558 proposes a semantic change based on the discussion here without

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

2017-10-14 Thread Nick Coghlan
Nick Coghlan added the comment: Guido: any proposed semantic changes for CPython will eventually make their way through PEP 558 (and potentially a competing PEP if someone else is sufficiently keen on the idea of making non-tracing mode behave the same way as tracing

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 59b5c139d2ae95b1d1da63f81c3d777932215533 by Terry Jan Reedy (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (GH-4002) (#4004)

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4 by Terry Jan Reedy (Dargor) in branch 'master': bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (#4002)

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-14 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +3977 ___ Python tracker ___

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Running the file containing 'import test.autotest' directly with python gives the test_aifc failure and the same bizarre behavior after test_concurrent_futures. Testing restarts apparently in 5 parallel threads or processes. The lines of

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0fee56c86344386bde8486ab803f564cb8a5203b by Terry Jan Reedy in branch '3.6': [3.6] bpo-25588: Document autotest in idle_test/README.txt. (GH-4000) (#4001)

[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-14 Thread Pablo
Change by Pablo : -- keywords: +patch pull_requests: +3976 stage: -> patch review ___ Python tracker ___

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-14 Thread Pablo
Change by Pablo : -- keywords: +patch pull_requests: +3975 stage: needs patch -> patch review ___ Python tracker ___

Re: Python 2 -> 3, urllib.urlopen (corrected the case)

2017-10-14 Thread Ben Bacarisse
Irv Kalb writes: > Thank you! You're welcome. >> Just a data point... It works here: >> >> $ python3 t.py >> Response is: b'156.99\n' >> $ cat t.py >> import urllib.request >> fullURLWithParameters = 'http://finance.yahoo.com/d/quotes.csv?s=aapl=l1' >> # read all the

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +3974 stage: commit review -> patch review ___ Python tracker ___

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 620f70eed615efde35517d7ae86354de3b2a0d03 by Terry Jan Reedy in branch 'master': bpo-25588: Document autotest in idle_test/README.txt. (#4000) https://github.com/python/cpython/commit/620f70eed615efde35517d7ae86354de3b2a0d03

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The README patch will finish this issue. Fixing individual failures and investigating the crash will be new issues. -- ___ Python tracker

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I reported on related #31761, importing autotest on Windows 10 has 3 errors with Python's shell and 4 with IDLE's, with two of those the same as the python shell failures. IDLE can be detected in at least two ways. >>> import sys;

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +3973 ___ Python tracker ___ ___

[issue31789] Better error message when failing to overload metaclass.mro

2017-10-14 Thread Dan Snider
New submission from Dan Snider : class meta(type): mros = (object,) def __new__(metacls, name, bases, namespace, fake_bases=()): print('entering __new__') metacls.fake_bases = fake_bases cls = type.__new__(metacls, name, bases,

Re: Python 2 -> 3, urllib.urlopen (corrected the case)

2017-10-14 Thread Irv Kalb
Thank you! > On Oct 14, 2017, at 12:10 PM, Ben Bacarisse wrote: > > Irv Kalb writes: > > Lots of detail snipped. I hope it won't matter... > >> > (_ssl.c:749)> >> >> Huh??? >> >> I've read a bunch of documentation, and it looks like I'm doing >>

[issue31788] Typo in comments Modules/_ssl.c

2017-10-14 Thread Semen Zhydenko
New submission from Semen Zhydenko : completly must be changed to completely -- assignee: docs@python components: Documentation messages: 304405 nosy: Semen Zhydenko, docs@python priority: normal severity: normal status: open title: Typo in comments

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-14 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___

[issue17776] IDLE Internationalization

2017-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned> IDLE uses some Tk-supplied default menus and menu items On Windows and *nix, the visible menu labels all come from IDLE. I don't yet understand what is going on with Mac menus. Some menu items call the tk file dialog, and the config

Re: Best practise for passing time as arguments

2017-10-14 Thread Christopher Reimer
On Oct 14, 2017, at 10:44 AM, Thomas Jollans wrote: > >> On 14/10/17 19:34, Stefan Ram wrote: >> r...@zedat.fu-berlin.de (Stefan Ram) writes: >>> a post. Use whatever is appropriate in the special case >>> given, or - to write a general library -, learn the design >>> of a good

[issue17776] IDLE Internationalization

2017-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the last few months, configdialog has been refactored to have a class for each settings tab. This makes it easier to revise and add new options, such as 'menu language'. With this done, the IDLE features implemented as (optional)

Re: Best practise for passing time as arguments

2017-10-14 Thread Chris Angelico
On Sun, Oct 15, 2017 at 8:15 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> * You get into the habit of posting distro-specific (not just >> OS-specific) commands to global mailing lists. > > And? I don't mind you posting the instructions for any other Linux

Re: Best practise for passing time as arguments

2017-10-14 Thread Marko Rauhamaa
Chris Angelico : > * You get into the habit of posting distro-specific (not just > OS-specific) commands to global mailing lists. And? I don't mind you posting the instructions for any other Linux distro. Chances are the translation into my distro is somewhat obvious. At least

Re: Best practise for passing time as arguments

2017-10-14 Thread Chris Angelico
On Sun, Oct 15, 2017 at 7:57 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Sun, Oct 15, 2017 at 5:20 AM, Marko Rauhamaa wrote: >>> Even better: >>> >>>sudo dnf install python3-pytz >> >> How is that better? It's the same thing,

[issue21263] test_gdb failures on os x 10.9.2

2017-10-14 Thread Aniket Vyas
Aniket Vyas added the comment: Hi ! I am willing to take a look into this. I am pretty new to the community and would appreciate some pointers relating to the issue which can give me a head-start to resolving it. Thanks in advance ! -- nosy: +vyas45

Re: Best practise for passing time as arguments

2017-10-14 Thread Marko Rauhamaa
Chris Angelico : > On Sun, Oct 15, 2017 at 5:20 AM, Marko Rauhamaa wrote: >> Even better: >> >>sudo dnf install python3-pytz > > How is that better? It's the same thing, packaged differently, and > thus only available on Red Hat-family systems, and depends

[issue31785] Move instruction code from ceval.c to a separate file

2017-10-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > A strict (non-leaky) abstraction interface is necessary > for being able to re-use the instruction code in an > alternate evaluator. The problem is that we don't have a strict (non-leaky) abstraction and I don't think we

Re: Python 2 -> 3, urllib.urlOpen

2017-10-14 Thread Mark Lawrence via Python-list
On 13/10/17 23:27, Irv Kalb wrote: One of the colleges where I teach has just moved from Python 2 to Python 3. I am in the process of converting my beginning Python class from Python 2 to Python 3. Everything has gone smoothly, until I just tried to convert some code that imports and uses

Re: Best practise for passing time as arguments

2017-10-14 Thread Chris Angelico
On Sun, Oct 15, 2017 at 5:20 AM, Marko Rauhamaa wrote: > Thomas Jollans : > >> When working with time zones, the standard library needs a little help. >> Luckily, there's a module for that. https://pypi.python.org/pypi/pytz > > Even better: > >sudo dnf install

[issue31778] ast.literal_eval supports non-literals in Python 3

2017-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The support of parsing addition and subtraction at any level of nesting was added by bc95973b51abadc84960e7836ce313f12cf515cf. The commit message and NEWS entry don't contain an issue number, thus the rationale of this change is

[issue31758] various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object

2017-10-14 Thread Oren Milman
Change by Oren Milman : -- pull_requests: +3972 ___ Python tracker ___ ___

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

2017-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: > Moreover, if f_locals can be modified outside a tracing hook, then we have > the same problem in a cross-function way, e.g. if function f1() calls > function f2() which does sys._getframe(1).f_locals['foo'] = 42. That's covered by the

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

2017-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: @Armin: > Guido: you must be tired and forgot that locals() is a regular function :-) > The compiler cannot recognize it reliably. I know, but we occasionally do make exceptions for builtins. In particular super() is recognized by the

Re: Python 2 -> 3, urllib.urlopen (corrected the case)

2017-10-14 Thread Ben Bacarisse
Irv Kalb writes: Lots of detail snipped. I hope it won't matter... > (_ssl.c:749)> > > Huh??? > > I've read a bunch of documentation, and it looks like I'm doing > everything right, but I cannot get this to work. Any other > suggestions to get this 3 line program to work

Re: Best practise for passing time as arguments

2017-10-14 Thread Marko Rauhamaa
Thomas Jollans : > When working with time zones, the standard library needs a little help. > Luckily, there's a module for that. https://pypi.python.org/pypi/pytz Even better: sudo dnf install python3-pytz Marko -- https://mail.python.org/mailman/listinfo/python-list

[issue31725] Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread"

2017-10-14 Thread Rick J. Pelleg
Rick J. Pelleg added the comment: Just one more issue: since it happened before I found out that the "turtle" package already has the pre-defined short version of commands, such as "fd()", "lt()", etc., the crashed session included four function definitions, for "fd()",

Re: Python 2 -> 3, urllib.urlopen (corrected the case)

2017-10-14 Thread MRAB
On 2017-10-14 18:40, Irv Kalb wrote: On Oct 13, 2017, at 3:27 PM, Irv Kalb wrot If I take the same program and just modify the print statement to add parentheses, then try to run it in Python 3.6 (on a Mac): ... import urllib # set the Yahoo finance url, set stock

Re: Best practise for passing time as arguments

2017-10-14 Thread Marko Rauhamaa
r...@zedat.fu-berlin.de (Stefan Ram): > Of course, you (the OP), should check out > > datetime.datetime > > and > > datetime.timedelta > > from the Python Library. which he mentioned in his post. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Best practise for passing time as arguments

2017-10-14 Thread Thomas Jollans
On 14/10/17 19:34, Stefan Ram wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes: >> a post. Use whatever is appropriate in the special case >> given, or - to write a general library -, learn the design >> of a good existing library, like Time4J, first. > > Though in many cases, an ISO 8601

Re: Python 2 -> 3, urllib.urlopen (corrected the case)

2017-10-14 Thread Irv Kalb
> On Oct 13, 2017, at 3:27 PM, Irv Kalb wrot > If I take the same program and just modify the print statement to add > parentheses, then try to run it in Python 3.6 (on a Mac): > > ... > import urllib > > # set the Yahoo finance url, set stock name, ask for last price >

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2017-10-14 Thread Alex Dzyoba
Change by Alex Dzyoba : -- nosy: +alexdzyoba ___ Python tracker ___ ___

Re: Best practise for passing time as arguments

2017-10-14 Thread Marko Rauhamaa
Andrew Z : > I wonder what are the "best practises" for passing "time" parameters to > functions? > I noticed that sometimes i pass "time" as a str and then start "massaging" > it into delta or i need this time format or that format. Thats quite > annoying and inconsistent. I

[issue31758] various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object

2017-10-14 Thread Oren Milman
Oren Milman added the comment: According to Serhiy's advice (https://bugs.python.org/issue31455#msg304338), this issue now also includes some crashes in _elementtree: The following code crashes: import _elementtree parser =

[issue31725] Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread"

2017-10-14 Thread Rick J. Pelleg
Rick J. Pelleg added the comment: Sorry, all reproduction attempts failed, both in plain Python and in iPython. I guess you can close this for now. -- ___ Python tracker

Re: Running flask on AWS SAM

2017-10-14 Thread Frustrated learner
export SERVER_NAME="0.0.0.0:3000 sam local start-api" just exports everything and does not execute. I tried export SERVER_NAME="0.0.0.0:3000" sam local start-api comes back with the same error. Shekar -- https://mail.python.org/mailman/listinfo/python-list

Best practise for passing time as arguments

2017-10-14 Thread Andrew Z
Hello, I wonder what are the "best practises" for passing "time" parameters to functions? I noticed that sometimes i pass "time" as a str and then start "massaging" it into delta or i need this time format or that format. Thats quite annoying and inconsistent. I use word "time" as a general word

Re: Return str to a callback raise a segfault if used in string formating

2017-10-14 Thread Paul Moore
On 14 October 2017 at 16:06, Vincent Vande Vyvre wrote: > I think I've found the problem, the string (a file path) is modified in c > with "sprintf, snprintf, ..." And I plan to change that with some CPython > equivalent function. Nice :-) Glad you found it. Paul

Re: Return str to a callback raise a segfault if used in string formating

2017-10-14 Thread Vincent Vande Vyvre
Le 14/10/17 à 15:59, Stefan Behnel a écrit : Vincent Vande Vyvre schrieb am 13.10.2017 um 13:18: Le 13/10/17 à 12:39, Paul Moore a écrit : As a specific suggestion, I assume the name of the created file is a string object constructed in the C extension code, somehow. The fact that you're

[issue31757] Tutorial: Fibonacci numbers start with 1, 1

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

[issue31757] Tutorial: Fibonacci numbers start with 1, 1

2017-10-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 8c26a34f93db7ae96b42bcce6b557437436c7721 by Raymond Hettinger in branch 'master': bpo-31757: Make Fibonacci examples consistent (#3991)

[issue31732] Add TRACE level to the logging module

2017-10-14 Thread R. David Murray
R. David Murray added the comment: I'm not arguing against the rejection, but I want to mention a point in relation to Raymond's statement "five levels have sufficed for a long and that the need for finer distinctions almost never arises in practice". In thinking

Re: Return str to a callback raise a segfault if used in string formating

2017-10-14 Thread Stefan Behnel
Vincent Vande Vyvre schrieb am 13.10.2017 um 13:18: > Le 13/10/17 à 12:39, Paul Moore a écrit : >> As a specific suggestion, I assume the name of the created file is a >> string object constructed in the C extension code, somehow. The fact >> that you're getting the segfault with some uses of that

BOTLIB #31 released - https://pypi.python.org/pypi/botlib

2017-10-14 Thread Bart Thate
BOTLIB #31 released - https://pypi.python.org/pypi/botlib BOTLIB is a python3 framework to use if you want to program CLI, IRC or XMPP bots. features BOTLIB provides the following features: :: object class save/load to/from a json file. rest serverserve

Re: Heroku (was Re: Lies in education [was Re: The "loop and a half"])

2017-10-14 Thread Chris Angelico
On Sat, Oct 14, 2017 at 10:16 PM, Ben Bacarisse wrote: > "Peter J. Holzer" writes: >> Which probably boils down to the question: Why did providers offer PHP >> and not Python? One reason might be that at the time no suitable web >> framework for Python

test

2017-10-14 Thread Tiglath Suriol
test -- https://mail.python.org/mailman/listinfo/python-list

Re: Lies in education [was Re: The "loop and a half"]

2017-10-14 Thread Chris Angelico
On Sat, Oct 14, 2017 at 10:12 PM, Steve D'Aprano wrote: > But be reasonable, I had just asked almost exactly the same question not one > line earlier: > > "If it's read-only, how can the compiler write to it?" > > and (as far as I can see) *nobody* thought to

[issue31672] string.Template should use re.ASCII flag

2017-10-14 Thread INADA Naoki
INADA Naoki added the comment: New changeset 073150db39408c1800e4b9e895ad0b0e195f1056 by INADA Naoki in branch 'master': bpo-31672: doc: Remove one sentence from library/string.rst (GH-3990)

Re: Heroku (was Re: Lies in education [was Re: The "loop and a half"])

2017-10-14 Thread Ben Bacarisse
"Peter J. Holzer" writes: > On 2017-10-13 21:42, Ben Bacarisse wrote: >> That's one way to put it. Another is that to use Python I need to buy a >> new service that is already configured. > > That's exactly the same for PHP. You can't use that either

Re: Lies in education [was Re: The "loop and a half"]

2017-10-14 Thread Steve D'Aprano
On Sat, 14 Oct 2017 08:26 pm, Peter J. Holzer wrote: > On 2017-10-14 01:05, Steve D'Aprano wrote: >> In context, we are talking about a computer program (the compiler) writing >> data to memory. > > No, I don't think so. You keep talking about that, even though

Re: Heroku (was Re: Lies in education [was Re: The "loop and a half"])

2017-10-14 Thread alister via Python-list
On Sat, 14 Oct 2017 11:41:08 +0200, Peter J. Holzer wrote: > On 2017-10-13 21:42, Ben Bacarisse wrote: >> That's one way to put it. Another is that to use Python I need to buy >> a new service that is already configured. > > That's exactly the same for PHP. You can't use

[issue9633] pdb go stack up/down

2017-10-14 Thread Nick Coghlan
Nick Coghlan added the comment: Note that we're currently looking into this as something that could be potentially addressed by PEP 558 and any related changes to the way that function locals interact with trace hooks: https://bugs.python.org/issue30744#msg304388

Re: Heroku (was Re: Lies in education [was Re: The "loop and a half"])

2017-10-14 Thread Peter J. Holzer
On 2017-10-13 21:42, Ben Bacarisse wrote: > That's one way to put it. Another is that to use Python I need to buy a > new service that is already configured. That's exactly the same for PHP. You can't use that either unless somebody configured to server to use it. The

[issue31787] various refleaks when calling the __init__() method of an object more than once

2017-10-14 Thread Oren Milman
Change by Oren Milman : -- keywords: +patch pull_requests: +3971 stage: -> patch review ___ Python tracker ___

Re: Lies in education [was Re: The "loop and a half"]

2017-10-14 Thread Peter J. Holzer
On 2017-10-14 01:05, Steve D'Aprano wrote: > On Sat, 14 Oct 2017 07:15 am, Peter J. Holzer wrote: >> On 2017-10-13 15:11, alister wrote: >>> On Sat, 14 Oct 2017 01:48:44 +1300, Gregory Ewing wrote: Steve D'Aprano wrote: > I wasn't

[issue31714] Improve re documentation

2017-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31714] Improve re documentation

2017-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 69ed5b61e7d2bdaf2dc6684061f737adc24a96ae by Serhiy Storchaka in branch '3.6': [3.6] bpo-31714: Improved regular expression documentation. (GH-3907). (#3994)

[issue31787] various refleaks when calling the __init__() method of an object more than once

2017-10-14 Thread Oren Milman
New submission from Oren Milman : Various __init__() methods don't decref (if needed) before assigning to fields of the object's struct (i.e. assigning to `self->some_field`): - _asyncio_Task___init___impl() (in Modules/_asynciomodule.c) - _lzma_LZMADecompressor___init___impl()

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

2017-10-14 Thread Nick Coghlan
Nick Coghlan added the comment: The current pdb misbehaviour when navigating the stack is indeed a valid argument in favour of allowing immediate write-through from trace functions for regular local variables as well - I don't recall reading that bug report when Xavier

[issue31714] Improve re documentation

2017-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +3970 ___ Python tracker ___ ___

[issue31714] Improve re documentation

2017-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cd195e2a7ac5c9b2574d5462752b7939641de4a9 by Serhiy Storchaka in branch 'master': bpo-31714: Improved regular expression documentation. (#3907)

[issue31786] In select.poll.poll() ms can be 0 if timeout < 0

2017-10-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : According to the documentation select.poll.poll() is blocked for infinite timeout if the timeout argument is negative. But due to rounding it is possible that timeout < 0, but an integer ms passed to the poll() syscall is 0,

[issue9633] pdb go stack up/down

2017-10-14 Thread Nick Coghlan
Change by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list

[issue31334] select.poll.poll fails on BSDs with arbitrary negative timeouts

2017-10-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: -> patch review versions: -Python 3.3, Python 3.4, Python 3.5 ___ Python tracker

[issue31754] Documented type of parameter 'itemsize' to PyBuffer_FillContiguousStrides is incorrect.

2017-10-14 Thread Aniket Vyas
Aniket Vyas added the comment: Thanks Mariatta. I have initiated a PR for the issue. https://github.com/python/cpython/pull/3993 -- ___ Python tracker

[issue31754] Documented type of parameter 'itemsize' to PyBuffer_FillContiguousStrides is incorrect.

2017-10-14 Thread Aniket Vyas
Change by Aniket Vyas : -- keywords: +patch pull_requests: +3969 stage: needs patch -> patch review ___ Python tracker ___

[issue31785] Move instruction code from ceval.c to a separate file

2017-10-14 Thread pdox
pdox added the comment: rhettinger, helper functions used by the instruction code would also be moved into instructions.h (e.g. call_function, do_call_core, cmp_outcome, etc). Done properly, there should be very little need to move between instructions.h and ceval.c to

[issue31455] ElementTree.XMLParser() mishandles exceptions

2017-10-14 Thread Stefan Behnel
Stefan Behnel added the comment: Backport PR for 2.7 added: 3992 -- ___ Python tracker ___

[issue31455] ElementTree.XMLParser() mishandles exceptions

2017-10-14 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: +3968 ___ Python tracker ___ ___

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-14 Thread Eric V. Smith
Eric V. Smith added the comment: I agree there's no need for tests, since we usually don't guarantee such messages going forward. Also, I think skipping the news blurb is reasonable for this change. -- ___ Python tracker

Re: Return str to a callback raise a segfault if used in string formating

2017-10-14 Thread dieter
Thomas Jollans writes: > On 2017-10-13 11:07, Vincent Vande Vyvre wrote: >> Le 13/10/17 à 09:23, Chris Angelico a écrit : >>> On Fri, Oct 13, 2017 at 4:46 PM, Vincent Vande Vyvre > ... > If you have custom C code, it's likely that there is a memory management > problem there. It's

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

2017-10-14 Thread Nathaniel Smith
Nathaniel Smith added the comment: @Nick: > We're OK with the idea that installing a trace function might automatically > turn off various compiler and interpreter managed optimisations We're OK with assigning to locals() doing that too. > What we're aiming to avoid is

[issue31763] Add NOTICE level to the logging module

2017-10-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking as rejected/closed for the reasons cited in Issue 31732. In particular, see Vinay Sajip's commentary in https://bugs.python.org/msg304318 where he notes that it was a specific design decision to not emulate syslog(3)

[issue31778] ast.literal_eval supports non-literals in Python 3

2017-10-14 Thread David Bieber
David Bieber added the comment: # Replies > Rolling back previous enhancements would break existing code. I sympathize completely with the need to maintain backward compatibility. And if this is the reason that this issue gets treated only as a documentation issue,

[issue31785] Move instruction code from ceval.c to a separate file

2017-10-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: While I can see the utility for experimentation, I think the proposed change would make our lives more difficult. The body inside the instruction blocks is central to the understanding of ceval.c and somewhat tightly coupled