[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: In _study2, let q instead of p be end of last good line and then set p back to beginning. Setting p to end, q to p, and p to start is confusing. -- ___ Python tracker

[issue32886] new Boolean ABC in numbers module + Integral>Integer renaming

2018-02-21 Thread Mark Dickinson
Mark Dickinson added the comment: > - register numpy bool ('np.bool_') as a virtual subclass of 'Boolean' only Be aware that np.bool_ behaves differently from Python's bool type in a number of ways. It may not make sense to have something that tries to abstract over both

[issue32008] Example suggest to use a TLSv1 socket

2018-02-21 Thread Christian Heimes
Christian Heimes added the comment: For 3.6 to 3.8 I'd prefer TLS_PROTOCOL_CLIENT. It also sets check_hostname and verify_mode to sane, safe values, too. -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open versions: +Python 3.6, Python 3.7,

[issue29282] Fused multiply-add: proposal to add math.fma()

2018-02-21 Thread Mark Dickinson
Mark Dickinson added the comment: > Is this because of the inf/NaN discrimination hiccups [...] No, more than that. If it were just that, we could work around it by adding the appropriate special case handling before calling the libm fma (as has been done, reluctantly,

[issue32008] Example suggest to use a TLSv1 socket

2018-02-21 Thread Christian Heimes
Christian Heimes added the comment: Err, I meant PROTOCOL_TLS_CLIENT: >>> import ssl >>> context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) >>> context.check_hostname True >>> context.verify_mode -- ___ Python tracker

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-02-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently different literals are represented by different types in AST: Num -- for int, float and complex Str -- for str Bytes -- for bytes Ellipsis -- for Ellipsis NameConstant -- for True, False and None And Constant (added

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2018-02-21 Thread Mark Dickinson
Mark Dickinson added the comment: +1 for the Integer alias, if it can be made to work. The "Integral" name has always felt clunky and non-obvious to me. -- nosy: +mark.dickinson ___ Python tracker

[issue32893] ast.literal_eval() shouldn't accept booleans as numbers in AST

2018-02-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently ast.literal_eval() accepts AST representing expressions like "+True" or "True+2j" if constants are represented as Constant. This is because the type of the value is tested with `isinstance(left, (int, float))` and

[issue32893] ast.literal_eval() shouldn't accept booleans as numbers in AST

2018-02-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +5577 stage: -> patch review ___ Python tracker ___

[issue32008] Example suggest to use a TLSv1 socket

2018-02-21 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5576 stage: needs patch -> patch review ___ Python tracker ___

[issue32886] new Boolean ABC in numbers module + Integral>Integer renaming

2018-02-21 Thread Sylvain Marie
Sylvain Marie added the comment: Thanks ! 1. > ok 2. > ok 3. > That's simply 'the latest state' in the discussion. I guess that having Boolean in numbers is better than it being in its own module, since it is consistent with the other ABCs (and bool is a

[issue32893] ast.literal_eval() shouldn't accept booleans as numbers in AST

2018-02-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___

[issue32894] AST unparsing of infinity numbers

2018-02-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : AST unparsing of infinity numbers produces a string which can't be evaluated because inf and infj are not builtins. >>> from __future__ import annotations >>> def f(x: A[1e1000, 1e1000j]): pass ... >>> f.__annotations__ {'x':

[issue29282] Fused multiply-add: proposal to add math.fma()

2018-02-21 Thread Nico Schlömer
Nico Schlömer added the comment: Okay, thanks for the info. As a stop-gap measure, I've created pyfma [1, 2]. Install with ``` pip install pyfma ``` and use with ``` pyfma.fma(3.0, 2.0, 1.0) ``` Only works on Unix reliable then, but that's all I care about. :)

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2018-02-21 Thread Dmitry Zotikov
Dmitry Zotikov added the comment: James, double check you specify the right path to the local system libraries. If the system is multilib, libssl resides in /usr/local/lib/hpux32 (64) and not in /usr/local/lib directly. -- nosy: +dmitry.zotikov

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Right, they shouldn't be just aliases, but Constant subclasses with __new__ which return Constant and __instancecheck__ which checks the type of the value. And the Constant class should have writable properties n and s. All

[issue32895] Make general function sum() use Numpy's sum when obviously possible

2018-02-21 Thread Uri Elias
New submission from Uri Elias : True at least to PY2.7 and 3.5 - given x is a numpy array, say np.random.rand(int(1e6)), then sum(x) is much slower (for 1e6 elements - 2 orders of magnitude) than x.sum(). Now, while this is understandable behaviour, I wander how hard it is

[issue28886] Move deprecated abc module decorators to separate section in docs

2018-02-21 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32901] Update Windows 3.7/8 builds to tcl/tk 8.6.8

2018-02-21 Thread Zachary Ware
Zachary Ware added the comment: This is on Steve these days due to the binary signing. -- assignee: -> steve.dower components: +Tkinter, Windows nosy: +paul.moore, steve.dower, tim.golden ___ Python tracker

[issue32896] Error when subclassing a dataclass with a field that uses a defaultfactory

2018-02-21 Thread Eric V. Smith
Eric V. Smith added the comment: That's a great bug report. Thanks for the tiny code to replicate it. It turns out the code isn't quite doing what I thought. I'll have to give some thought to exactly how I'm going to handle this without breaking other cases, but I should

[issue32904] os.chdir() may crash on Windows in presence of races

2018-02-21 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : win32_wchdir() retries GetCurrentDirectory() with a larger buffer if necessary, but doesn't check whether the new buffer is large enough. Another thread could change the current directory in meanwhile, so the buffer could turn out to be

[issue32902] FileInput "inplace" redirects output of other threads

2018-02-21 Thread mj4int
New submission from mj4int : A pool of threads exists, all of which have started executing. Thread A has a fileinput object and is currently iterating over the files in "edit in place mode". For each file, stdout is redirected to the file. Thread A can call print

[issue32016] Python 3.6.3 venv FAILURE

2018-02-21 Thread Ned Deily
Ned Deily added the comment: > Without any additional information, should this be closed as 'Works for Me'? Yes, please. -- nosy: +ned.deily ___ Python tracker

[issue32884] Adding the ability for getpass to print asterisks when passowrd is typed

2018-02-21 Thread Matanya Stroh
Matanya Stroh added the comment: for getpass.win_getpass() it can simply be done by adding this line msvcrt.putch("*"). So the code will look like: def win_getpass(prompt='Password: ', stream=None): """Prompt for password with echo off, using Windows getch()."""

[issue23077] PEP 1: Allow Provisional status for PEPs

2018-02-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Pull request: https://github.com/python/peps/pull/577 -- nosy: +csabella ___ Python tracker ___

[issue32903] os.chdir() may leak memory on Windows

2018-02-21 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +5579 stage: -> patch review ___ Python tracker ___

[issue32904] os.chdir() may crash on Windows in presence of races

2018-02-21 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +5580 stage: -> patch review ___ Python tracker ___

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: One sub-issue is to expand the current short doc section (2.1. Automatic indentation) the intended smart indenting. There is nothing about open parameter lists, not about multiline tuple/list/dict displays. It should say (IN CAPS?) that

[issue32904] os.chdir(), os.getcwd() may crash on Windows in presence of races

2018-02-21 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: The same issue applies to os.getcwd(). -- title: os.chdir() may crash on Windows in presence of races -> os.chdir(), os.getcwd() may crash on Windows in presence of races ___ Python tracker

[issue27923] PEP 467 -- Minor API improvements for binary sequences

2018-02-21 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___

[issue32896] Error when subclassing a dataclass with a field that uses a defaultfactory

2018-02-21 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +ned.deily priority: normal -> release blocker ___ Python tracker ___

[issue32016] Python 3.6.3 venv FAILURE

2018-02-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Without any additional information, should this be closed as 'Works for Me'? -- nosy: +csabella ___ Python tracker

[issue28498] tk busy command

2018-02-21 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___

[issue32903] os.chdir() may leak memory on Windows

2018-02-21 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: As noted in the test for find_good_parse_start and PR5755 discussion, a single line header on a line by itself in a multiline comment before a multiline header can prevent recognition of the latter. >>> P.set_str("'somethn=ig'\ndef

[issue32895] Make general function sum() use Numpy's sum when obviously possible

2018-02-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28498] tk busy command

2018-02-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: There was a lot of work put into this patch, but I don't think it's been committed yet. Are any of the original authors interested in converting this to a Github pull request on the master branch? Thanks! -- nosy: +csabella

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2018-02-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: As things stand, given Serhiy comment, I agree. Like others, I don't like 'Integral', but also I don't like clunky special case code. -- priority: high -> normal versions: -Python 3.7 ___ Python

[issue32880] IDLE: Fix and update and cleanup pyparse

2018-02-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- dependencies: +IDLE pyparse: fix initialization and remove unused code ___ Python tracker ___

[issue32905] IDLE pyparse: fix initialization and remove unused code

2018-02-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: terry.reedy components: IDLE nosy: terry.reedy priority: normal severity: normal stage: test needed status: open title: IDLE pyparse: fix initialization and remove unused code type: behavior versions: Python 3.6, Python 3.7,

[issue32905] IDLE: remove unused code in pyparse module

2018-02-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 451d1edaf4d27c4e632d81246d308e8dd6ea945f by Terry Jan Reedy in branch 'master': bpo-32905: IDLE - remove unused code in pyparse module (GH-5807) https://github.com/python/cpython/commit/451d1edaf4d27c4e632d81246d308e8dd6ea945f

[issue32905] IDLE: remove unused code in pyparse module

2018-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +5585 stage: test needed -> patch review ___ Python tracker ___

[issue32899] Not documented: key in dict test may raise TypeError

2018-02-21 Thread xitop
xitop added the comment: You are right. It is 'key in d', not 'object in d'. (Thanks for you patience. I'm sorry I did not get it right earlier.) -- ___ Python tracker

[issue32874] IDLE: Add tests for pyparse

2018-02-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c84cf6c03fce1fb73bfaf91d7909f1c2708f14a2 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-32874: IDLE: add tests for pyparse (GH-5755) https://github.com/python/cpython/commit/c84cf6c03fce1fb73bfaf91d7909f1c2708f14a2

[issue32874] IDLE: Add tests for pyparse

2018-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +5581 ___ Python tracker ___

[issue32874] IDLE: Add tests for pyparse

2018-02-21 Thread miss-islington
miss-islington added the comment: New changeset c59bc98fb26ff1a2361f168a97da4a5f6c1e5b43 by Miss Islington (bot) in branch '3.7': bpo-32874: IDLE: add tests for pyparse (GH-5755)

[issue32898] [BUILD] Using COUNT_ALLOCS breaks build

2018-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +5583 ___ Python tracker ___

[issue32898] [BUILD] Using COUNT_ALLOCS breaks build

2018-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 745dc65b17b3936e3f9f4099f735f174d30c4e0c by Benjamin Peterson (Eddie Elizondo) in branch 'master': closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)

[issue32898] [BUILD] Using COUNT_ALLOCS breaks build

2018-02-21 Thread miss-islington
miss-islington added the comment: New changeset bc2e1104693fd471b96ecac5b2ab4cffa09830ab by Miss Islington (bot) in branch '3.7': closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)

[issue32905] IDLE: remove unused code in pyparse module

2018-02-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE pyparse: fix initialization and remove unused code -> IDLE: remove unused code in pyparse module ___ Python tracker

[issue32905] IDLE: remove unused code in pyparse module

2018-02-21 Thread miss-islington
miss-islington added the comment: New changeset dfa1144582e19e5fee2c07e6b7e281da1bef7782 by Miss Islington (bot) in branch '3.7': bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)

[issue32899] Not documented: key in dict test may raise TypeError

2018-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: In general, Python functions don't document all possible exceptions. One reason is that it would lead to substantial redundancy in the docs. Another reason is that functions generally don't know all the possible exceptions

[issue32903] os.chdir() may leak memory on Windows

2018-02-21 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : 'new_path' is not freed if the new directory is a UNC path longer than MAX_PATH. -- components: Extension Modules, Windows messages: 312522 nosy: izbyshev, paul.moore, steve.dower, tim.golden, vstinner, zach.ware priority: normal

[issue32905] IDLE pyparse: fix initialization and remove unused code

2018-02-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +5584 stage: test needed -> patch review ___ Python tracker ___

[issue32906] AttributeError: 'NoneType' object has no attribute 'sendall'

2018-02-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi, this is for tracking bugs in the Python interpreter and standard library, not asking for help debugging your own code. There's no reason (yet) to believe this error is a bug in Python, you need to debug it first to ensure it

[issue32899] Not documented: key in dict test may raise TypeError

2018-02-21 Thread INADA Naoki
INADA Naoki added the comment: We have it already: https://docs.python.org/3/library/stdtypes.html#mapping-types-dict > A dictionary’s keys are almost arbitrary values. Values that are not > hashable, that is, values containing lists, dictionaries or other mutable >

[issue23077] PEP 1: Allow Provisional status for PEPs

2018-02-21 Thread Nick Coghlan
Nick Coghlan added the comment: I'll also note that I made my comments above about writing a new PEP prior to the migration to GitHub and the availability of a PR-based workflow for reviewing PEP changes. So consider the PR Cheryl linked and the post at

[issue32874] IDLE: Add tests for pyparse

2018-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +5582 ___ Python tracker ___

[issue32874] IDLE: Add tests for pyparse

2018-02-21 Thread miss-islington
miss-islington added the comment: New changeset 52064c3d8a62c8c14967ec1e004927e9297bb62c by Miss Islington (bot) in branch '3.6': bpo-32874: IDLE: add tests for pyparse (GH-5755)

[issue32905] IDLE pyparse: fix initialization and remove unused code

2018-02-21 Thread Terry J. Reedy
New submission from Terry J. Reedy : Spinoff from #32880. msg312394: dump duplicates print, except that sys.__stdout__ may be None. msg312395: lastopenbracketpos is now always initialized in _study2, as was stmt_bracketing. get_last_open_bracket_pos is never called. Test are

[issue32906] AttributeError: 'NoneType' object has no attribute 'sendall'

2018-02-21 Thread Varalakshmi
New submission from Varalakshmi : Hi , I have requirement to simulate http server on particular port we have an application which sends req to that simulated server for that port I need to get that request read the request body Validate the request body and send

[issue32899] Not documented: key in dict test may raise TypeError

2018-02-21 Thread xitop
xitop added the comment: While I do fully agree with not documenting all exceptions, I'd like to point out a major difference in the case of "unhashable in dict". It differs from the general case where an exception means the function is unable to return a meaningful

[issue32905] IDLE: remove unused code in pyparse module

2018-02-21 Thread miss-islington
miss-islington added the comment: New changeset d8e7b98b17cd2cc15b307f54a768c9ca31072b5f by Miss Islington (bot) in branch '3.6': bpo-32905: IDLE - remove unused code in pyparse module (GH-5807)

[issue32905] IDLE: remove unused code in pyparse module

2018-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +5586 ___ Python tracker ___

[issue32896] Error when subclassing a dataclass with a field that uses a defaultfactory

2018-02-21 Thread John Didion
New submission from John Didion : > @dataclass > class Foo: > x: dict = field(default_factory=dict) > @dataclass > class Bar(Foo): > y: int = 1 > @dataclass > class Baz(Foo): > def blorf(self): > print('hello') > Foo().x {} > Bar().x {} > Baz().x Traceback

[issue32896] Error when subclassing a dataclass with a field that uses a defaultfactory

2018-02-21 Thread Ned Deily
Change by Ned Deily : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list

[issue32017] profile.Profile() has no method enable()

2018-02-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: We can't remove public-looking methods (i.e. they don't start with an underscore) like that because some people may be using them. Rather than document the differences, I think it would be more useful to try to bridge the gap by augmenting

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-02-21 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, right - in that case, I think the subclasses would be worthwhile, as they shouldn't be too much hassle to maintain for a release, and will provide a more graceful migration for folks doing their own AST processing and generation.

[issue32886] new Boolean ABC in numbers module + Integral>Integer renaming

2018-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If a Boolean ABC includes __and__, __or__ and __xor__ which implement conjunction, disjunction and exclusive disjunction, shouldn't it include __le__, __gt__, __ge__ and __lt__? They implement other logical operations: material

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2018-02-21 Thread Mark Dickinson
Mark Dickinson added the comment: And it's Ned's call, of course, but this smells like a new feature rather than a fix to me, and I'm not sure why it would be considered special enough to break the usual release-process rules. Serhiy's point about pickles shows that

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-02-21 Thread Nick Coghlan
Nick Coghlan added the comment: As pure aliases, those wouldn't necessarily be that useful, as aside from NameConstant, the field names are different (Num.n, Str.s, Bytes.s). I do wonder whether it might be worth keeping "NameConstant", though, and use that for Ellipsis

[issue32886] new Boolean ABC in numbers module + Integral>Integer renaming

2018-02-21 Thread Sylvain Marie
Sylvain Marie added the comment: @Mark: you are right. That's why the proposed ABC does NOT inherit from Integral/Integer and focuses on boolean logic in its simplest form (not, and, or, xor). This one is common to both python bool and np.bool_. @Serhiy:

[issue32895] Make general function sum() use Numpy's sum when obviously possible

2018-02-21 Thread ppperry
Change by ppperry : -- type: performance -> enhancement ___ Python tracker ___ ___

[issue32895] Make general function sum() use Numpy's sum when obviously possible

2018-02-21 Thread ppperry
Change by ppperry : -- type: enhancement -> performance ___ Python tracker ___ ___

[issue32895] Make general function sum() use Numpy's sum when obviously possible

2018-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I think many programmers aren't aware of that, so all in all > it can improve the performance of a lot of existing code. We could create a __sum__ dunder method to allow classes to override the normal behavior of sum, but

[issue32893] ast.literal_eval() shouldn't accept booleans as numbers in AST

2018-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: What harm comes from accepting expressions like "+True" or "True+2j"? While weird looking, those are valid Python expressions, so this doesn't seem like a bug. A key feature of booleans is that they are interoperable with

[issue32895] Make general function sum() use Numpy's sum when obviously possible

2018-02-21 Thread ppperry
Change by ppperry : -- components: +Library (Lib) -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___

[issue32898] [BUILD] Using COUNT_ALLOCS breaks build

2018-02-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: -> patch review versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue32895] Make general function sum() use Numpy's sum when obviously possible

2018-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Raymond. NumPy is a third-party library, Python builtins can't depend on it. This could be solved by introducing a special protocol, but this isn't free. It adds a burden on writing and maintaining code and tests,

[issue32899] Not documented: key in dict test may raise TypeError

2018-02-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +inada.naoki, rhettinger ___ Python tracker ___

[issue32886] new Boolean ABC in numbers module

2018-02-21 Thread Mark Dickinson
Mark Dickinson added the comment: Adjusted title (since the Integer <-> Integral rename is the subject of a separate issue) and versions (since as a new feature, this can't go into Python 3.7, which is already in feature freeze). -- title: new Boolean ABC in

[issue32886] new Boolean ABC in numbers module + Integral>Integer renaming

2018-02-21 Thread Mark Dickinson
Mark Dickinson added the comment: > This one is common to both python bool and np.bool_. It's not, though. One of my examples was using `~` (`__invert__`) from the proposed ABC). And the behaviour of that function differs between NumPy and Python I think one of the rules

[issue32896] Error when subclassing a dataclass with a field that uses a defaultfactory

2018-02-21 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith components: +Library (Lib) type: crash -> behavior ___ Python tracker ___

[issue32898] [BUILD] Using COUNT_ALLOCS breaks build

2018-02-21 Thread Eddie Elizondo
New submission from Eddie Elizondo : The following build crashed: mkdir debug && cd debug ../configure --with-pydebug make EXTRA_CFLAGS="-DCOUNT_ALLOCS" The bug was introduced here:

[issue32886] new Boolean ABC in numbers module + Integral>Integer renaming

2018-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use <= for this operation. -- ___ Python tracker ___

[issue32893] ast.literal_eval() shouldn't accept booleans as numbers in AST

2018-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This doesn't look like Python literal. And if the function accepts a one particular non-literal the user can except that it accepts other looking similarly non-literal, that is false. Actually ast.literal_eval("+True") is

[issue32897] test_gdb failed on Fedora 27

2018-02-21 Thread Amit Ghadge
New submission from Amit Ghadge : Hi, I get latest changes, $ git log -1 Author: Paul Price Date: Wed Feb 21 01:00:01 2018 -0500 compilation done successfully but gdb test is failing, I attached output of test_gdb -- components:

[issue32897] test_gdb failed on Fedora 27

2018-02-21 Thread Amit Ghadge
Amit Ghadge added the comment: gdb version is, GNU gdb (GDB) Fedora 8.0.1-30.fc27 -- ___ Python tracker ___

[issue32900] Teach pdb to step through asyncio et al.

2018-02-21 Thread Matthias Urlichs
New submission from Matthias Urlichs : The attached patch is a proof-of-concept implementation of a way to teach pdb to "single-step" through non-interesting code that you can't skip with "n". The prime example for this is asyncio, trio et al., though decorators like

[issue32900] Teach pdb to step through asyncio et al.

2018-02-21 Thread Matthias Urlichs
Matthias Urlichs added the comment: File attachment failed, retrying … -- keywords: +patch Added file: https://bugs.python.org/file47456/pdb.diff ___ Python tracker

[issue32901] Update Windows 3.7/8 builds to tcl/tk 8.6.8

2018-02-21 Thread Terry J. Reedy
New submission from Terry J. Reedy : This should be done ASAP for most testing. MacOS 64bit 3.7.0b1 links to 8.6.7. Whether that should be upgraded to 8.6.8 is up to Ned. I raised question on #15663. -- messages: 312512 nosy: serhiy.storchaka, terry.reedy,

[issue15663] Investigate providing Tcl/Tk 8.6 with OS X installers

2018-02-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is there anything left to do for this? The new 64 bit MacOS 3.7.0b1 links with 8.6.7. Perhaps that should be updated to 8.6.8. -- ___ Python tracker

[issue32899] Not documented: key in dict test may raise TypeError

2018-02-21 Thread xitop
New submission from xitop : I'd like to suggest an addition to the documentation of the "key in dict" operation. Current version found at https://docs.python.org/3/library/stdtypes.html#dict says only: --- key in d Return True if d has a key key, else False. --- This

[issue32900] Teach pdb to step through asyncio et al.

2018-02-21 Thread Nathaniel Smith
Nathaniel Smith added the comment: Can you back up a bit and give an example of the problem you're running into? -- ___ Python tracker