[issue21024] PyTypeObject tp_doc is char* instead of const char*

2019-09-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2019-09-08 Thread Kyle Stanley
Kyle Stanley added the comment: I've opened PR-15735 which applies the same functionality as Victor's PR-13786, but adds the public getter and setter methods (for both AbstractEventLoop and BaseEventLoop) as requested by Andrew. Since this is still causing intermittent CI failures from test

[issue38015] inline function generates slightly inefficient machine code

2019-09-08 Thread Greg Price
Greg Price added the comment: (Just to help keep discussions together: some earlier discussion was on GH-15216 .) Because is_small_int / IS_SMALL_INT is so small, there's not much cost in the source code to making it a macro (as GH-15710 did). But I think it'd be a mistake to go a lot farth

[issue38060] precedence (relational, logical operator)not working with single value

2019-09-08 Thread Tim Peters
Tim Peters added the comment: I'm sorry you're not satisfied with the answer, but I'm a bona fide expert on this and you're not going to get anyone to agree with your confusion here ;-) But the bug tracker is not the right place for tutorials. Please take this up on, e.g., the Python mailin

[issue38060] precedence (relational, logical operator)not working with single value

2019-09-08 Thread Sangeeta M Chauhan
Sangeeta M Chauhan added the comment: i am not satisfied ..with your answer . as in the following expression 9 or 7 > "str" precedence must be given to relational operator . why is is executing logical operator first?? if we write 4>9 or 7> "str" it works correct but if we replac

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2019-09-08 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +15390 pull_request: https://github.com/python/cpython/pull/15735 ___ Python tracker ___

[issue38060] precedence (relational, logical operator)not working with single value

2019-09-08 Thread Tim Peters
Tim Peters added the comment: It's working fine. What do you expect? For example, 9 or 7 > "str" groups as 9 or (7 > "str") 9 is evaluated for "truthiness" first, and since it's not 0 it's considered to be true. That's enough to determine the result of "or", so (7 > "str") isn't

[issue38060] precedence (relational, logical operator)not working with single value

2019-09-08 Thread Sangeeta M Chauhan
New submission from Sangeeta M Chauhan : precendence betweeen relational and logical operators not working properly if expression contains single values instead of sub expressions. . Please see attached file -- components: Interpreter Core files: pythonBug.py messages: 351344 nosy: sa

[issue37790] subprocess.Popen() is extremely slow

2019-09-08 Thread Nick Henderson
Nick Henderson added the comment: We have recently bumped into a similar problem. Using FreeBSD, subprocess calls were taking more than 10 times the usual time to execute after migrating to python3.6. After some digging, the default for 'close_fds' was changed to 'True'. On linux, this actua

[issue16649] Add a PyCF_DISPLAY_EXPRESSION_RESULTS flag

2019-09-08 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2019-09-08 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue21024] PyTypeObject tp_doc is char* instead of const char*

2019-09-08 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: tp_doc is now const char*. So this should be closed. -- nosy: +nanjekyejoannah ___ Python tracker ___ _

[issue36018] Add a Normal Distribution class to the statistics module

2019-09-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset cc1bdf91d53b1a4751be84ef607e24e69a327a9b by Raymond Hettinger in branch '3.8': [3.8] bpo-36018: Address more reviewer feedback (GH-15733) (GH-15734) https://github.com/python/cpython/commit/cc1bdf91d53b1a4751be84ef607e24e69a327a9b -

[issue36018] Add a Normal Distribution class to the statistics module

2019-09-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15389 pull_request: https://github.com/python/cpython/pull/15734 ___ Python tracker ___ ___

[issue36018] Add a Normal Distribution class to the statistics module

2019-09-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 4db25d5c39e369f4b55eab52dc8f87f390233892 by Raymond Hettinger in branch 'master': bpo-36018: Address more reviewer feedback (GH-15733) https://github.com/python/cpython/commit/4db25d5c39e369f4b55eab52dc8f87f390233892 -- ___

[issue36018] Add a Normal Distribution class to the statistics module

2019-09-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +15388 pull_request: https://github.com/python/cpython/pull/15733 ___ Python tracker ___ ___

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Paul Ganssle] > "grab a single component" use is overwhelmingly the common case, > I think it's worth it in the end. Dong-hee Na, you can now go ahead with the patch. The relevant function is date_isocalendar() located in Modules/_datetime.c. Model th

[issue37970] urllib.parse docstrings incomplete

2019-09-08 Thread sushma
sushma added the comment: got it - thanks for the detailed explanation! I'll go ahead and create a PR soon -- ___ Python tracker ___ __

[issue38052] Include sspipe Module with Core Python

2019-09-08 Thread Juan Telleria
Juan Telleria added the comment: There was a positive response from package mantainers for this issue :) See: https://github.com/sspipe/sspipe/issues/4 >> is the module mature and stable? I am using this module in my own projects for a while and it satisfies my own requirements. However, I t

[issue38059] Using sys.exit() over exit() in inspect.py

2019-09-08 Thread signing_agreement
New submission from signing_agreement : The change is arguably trivial, but given that this is a code change in a commonly-used module, I was asked to create an issue and a NEWS entry for it. -- components: Library (Lib) messages: 351336 nosy: signing_agreement priority: normal pull_re

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-08 Thread Paul Ganssle
Paul Ganssle added the comment: I have compiled both versions with optimizations on, looks like the gap gets a bit smaller (percentage-wise) after that: benchmark| master (ns) | PR 15633 (ns) | Δ (%) +---+-

[issue38057] Docs: source code don't can be translate

2019-09-08 Thread Adorilson Bezerra
Adorilson Bezerra added the comment: I'm not using the Sphinx itself. I'm just a translator. -- ___ Python tracker ___ ___ Python-b

[issue38057] Docs: source code don't can be translate

2019-09-08 Thread Ammar Askar
Ammar Askar added the comment: What version of Sphinx are you using? As far as I know, Sphinx supports internationalization for autodoc, so this should be possible. -- nosy: +ammar2 ___ Python tracker _

[issue38021] pep425 tag for AIX is inadequate

2019-09-08 Thread Michael Felt
Michael Felt added the comment: When testing the PR with --with-pydebug I started getting the following error: root@x066:[/data/prj/python/git/pr-test]./python '-X' 'tracemalloc' -m test test_venv Run tests sequentially 0:00:00 [1/1] test_venv test test_venv failed -- Traceback (most recent c

[issue38058] Tutorial: 4.2. for Statements

2019-09-08 Thread Kevin
Change by Kevin : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-lis

[issue38058] Tutorial: 4.2. for Statements

2019-09-08 Thread Kevin
New submission from Kevin : >>> # Measure some strings: ... words = ['cat', 'window', 'defenestrate'] >>> for w in words: ... print(w, len(w)) ... cat 3 window 6 defenestrate 12 If you need to modify the sequence you are iterating over while inside the loop (for example to duplicate selec

[issue38057] Docs: source code don't can be translate

2019-09-08 Thread Adorilson Bezerra
New submission from Adorilson Bezerra : The source code examples in documentation doesn't can be translated because it doesn't included in po files (and after in transifex). It would be wonderful if we can to translate the code: class MyClass: """A simple example class""" i = 12345

[issue38056] Add examples for common text encoding Error Handlers

2019-09-08 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +15386 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15732 ___ Python tracker ___ _

[issue38056] Add examples for common text encoding Error Handlers

2019-09-08 Thread Ma Lin
New submission from Ma Lin : Text descriptions about `Error Handlers` are not very friendly to novices. https://docs.python.org/3/library/codecs.html#error-handlers For example: 'xmlcharrefreplace' Replace with the appropriate XML character reference (only for encoding). Implemented i

[issue38055] Starting multiprocessing.Process causes FileNotFoundError

2019-09-08 Thread Donny Brown
New submission from Donny Brown : Starting multiprocessing.Process causes FileNotFoundError in certain case: ``` import multiprocessing as mp import time def demo(f): print(f) def main(): cxt=mp.get_context('spawn') f=cxt.Value('i', 0) p=cxt.Process(target=demo, args=[f])

[issue38054] enhance pdb.set_trace() to run when the specified condition is true

2019-09-08 Thread Alexander Ulyanov
Change by Alexander Ulyanov : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2019-09-08 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue24416] Have date.isocalendar() return a structseq instance

2019-09-08 Thread Paul Ganssle
Paul Ganssle added the comment: I haven't had time to try this with an optimized build, I have done a few more benchmarks using a standard build, I'm seeing almost a 50% regression on isocalendar() calls, but the picture is a little rosier if you consider the fact that you need to construct a

[issue38054] enhance pdb.set_trace() to run when the specified condition is true

2019-09-08 Thread Alexander Ulyanov
Change by Alexander Ulyanov : -- keywords: +patch pull_requests: +15384 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15731 ___ Python tracker __

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: behavior -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is more serious issue: InterpreterID and ChannelID are declared as int subclasses, but actually they have incompatible structure, so using them as int causes a crash. For example, the following code is crashed: float(int(id)) == id -- _

[issue36946] Possible signed integer overflow in slice handling

2019-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zackery and HongWeipeng for your contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38054] enhance pdb.set_trace() to run when the specified condition is true

2019-09-08 Thread Alexander Ulyanov
New submission from Alexander Ulyanov : Through out my experience with python debugger, I often found myself creating if-statements around set_trace() instructions. This patch introduces a key-word argument that allows to pass in a boolean or a condition that evaluates to boolean to control w

[issue36946] Possible signed integer overflow in slice handling

2019-09-08 Thread miss-islington
miss-islington added the comment: New changeset 021e5db20bc19d678a5b94247a5cdcf689eff006 by Miss Islington (bot) in branch '3.7': bpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639) https://github.com/python/cpython/commit/021e5db20bc19d678a5b94247a5cdcf689eff006

[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

2019-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have doubts about accepting floats and bytes objects in all function that accept InterpreterID or ChannelID. Is it intentional? There are tests for strings. -- ___ Python tracker

[issue36946] Possible signed integer overflow in slice handling

2019-09-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +15383 pull_request: https://github.com/python/cpython/pull/15729 ___ Python tracker ___ __

[issue36946] Possible signed integer overflow in slice handling

2019-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3c87a667bb367ace1de6bd1577fdb4f66947da52 by Serhiy Storchaka (HongWeipeng) in branch 'master': bpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639) https://github.com/python/cpython/commit/3c87a667bb367ace1de6bd1577f

[issue38007] Regression: name of PyType_Spec::slots conflicts with Qt macro

2019-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a major breaking change. It may need changing the Python version to 4.0. I suggest you to not use global macros without prefixes and undefine the conflicting one before using the Python C API. -- nosy: +serhiy.storchaka ___

[issue38053] Update plistlib documentation

2019-09-08 Thread hai shi
hai shi added the comment: >* Remove notes about the new API being added in 3.4 since 3.4 is no longer >supported Related bpo in issue14455 -- nosy: +shihai1991 ___ Python tracker

[issue38038] Remove urllib.parse._splittype from xmlrpc.client

2019-09-08 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7, Python 3.8 ___ Python tracker ___ __

[issue38038] Remove urllib.parse._splittype from xmlrpc.client

2019-09-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9c4c459ac66c86a4511c8fec1997e8760e15ec17 by Serhiy Storchaka (Dong-hee Na) in branch 'master': bpo-38038: Remove urllib.parse._splittype from xmlrpc.client. (GH-15703) https://github.com/python/cpython/commit/9c4c459ac66c86a4511c8fec1997e8760e

[issue38048] unususal behavior

2019-09-08 Thread Gaurav Kumar Pandit
Gaurav Kumar Pandit added the comment: Oh thanks.May I know the typo error Sent from Mail for Windows 10 From: Zachary Ware Sent: 08 September 2019 02:24 AM To: grvkmrpan...@gmail.com Subject: [issue38048] unususal behavior Zachary Ware added the comment: To reiterate, there is no bug in P