[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +7997 stage: -> patch review ___ Python tracker ___ ___

Re: Checking whether type is None

2018-07-25 Thread Steven D'Aprano
On Wed, 25 Jul 2018 16:14:18 +, Schachner, Joseph wrote: > While I appreciate that use of "is" in thing is None, I claim this > relies on knowledge of how Python works internally, to know that every > None actually is the same ID (the same object) - it is singular. No, it isn't knowledge

[issue34229] Possible access to unintended variable in "cpython/Objects/sliceobject.c" line 116

2018-07-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14266] pyunit script as shorthand for python -m unittest

2018-07-25 Thread Berker Peksag
Berker Peksag added the comment: I agree with Ned. I've been using "python -m foo" instead of "foo" more in the past few years. pyvenv has been deprecated in Python 3.6 and its documentation now uses "python -m venv". +1 for closing this as "rejected". --

Re: Can pip install packages for all users (on a Linux system)?

2018-07-25 Thread John Ladasky
On Wednesday, July 25, 2018 at 7:15:35 AM UTC-7, Stephan Houben wrote: > Op 2018-07-24, John Ladasky schreef : > > I believe that I now have tensorflow 1.8 installed twice on my system, > > once for each user. If anyone can share how to convince pip to behave > > like Synaptic, I would appreciate

[issue34230] crashes in pysqlite_build_row_cast_map() on memory allocation failure

2018-07-25 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- pull_requests: +7996 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34230] crashes in pysqlite_build_row_cast_map() on memory allocation failure

2018-07-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Better error handling in sqlite3 ___ Python tracker ___

[issue22374] Replace contextmanager example and improve explanation

2018-07-25 Thread Berker Peksag
Berker Peksag added the comment: The old tag() example has been replaced with a different example in https://github.com/python/cpython/commit/bde782bb594edffeabe978abeee2b7082ab9bc2a (bpo-33468) -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed

[issue34230] crashes in pysqlite_build_row_cast_map() on memory allocation failure

2018-07-25 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : pysqlite_build_row_cast_map() can crash on memory allocation failure: 1. it doesn't check that PyList_New() returns non-NULL 2. Py_DECREF() borrowed reference when -- components: Extension Modules messages: 322396 nosy: sir-sigurd priority: normal

[issue34229] Possible access to unintended variable in "cpython/Objects/sliceobject.c" line 116

2018-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch! -- components: +Interpreter Core keywords: +easy (C) nosy: +serhiy.storchaka stage: -> needs patch type: -> behavior ___ Python tracker

[issue34229] Possible access to unintended variable in "cpython/Objects/sliceobject.c" line 116

2018-07-25 Thread Petru-Florin Mihancea
New submission from Petru-Florin Mihancea : While experimenting with a CodeSonar plugin we develop, we noticed a potential bug in file "cpython/Objects/sliceobject.c" line 116 function PySlice_GetIndices. if (r->start == Py_None) { *start = *step < 0 ? length-1 : 0; } else { if

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-07-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset ecf411c59e33d3760dbfebf6d5b4b205bcc29d5a by Victor Stinner in branch 'master': bpo-34170: Enhance _PyCoreConfig_Read() (GH-8468) https://github.com/python/cpython/commit/ecf411c59e33d3760dbfebf6d5b4b205bcc29d5a --

[issue34227] Weighted random.sample() (weighted sampling without replacement)

2018-07-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> rhettinger nosy: +mark.dickinson, rhettinger versions: +Python 3.8 ___ Python tracker ___

[issue34226] cgi.parse_multipart() requires undocumented CONTENT-LENGTH in Python 3.7

2018-07-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33028] tempfile.TemporaryDirectory incorrectly documented

2018-07-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: On a similar note SpooledTemporaryFile is also documented as a function though it's a class. Ref : https://docs.python.org/3.8/library/tempfile.html#tempfile.SpooledTemporaryFile -- nosy: +xtreak ___

[issue9226] erroneous behavior when creating classes inside a closure

2018-07-25 Thread Tal Einat
Tal Einat added the comment: See additional discussion in the duplicate issue19979. -- nosy: +taleinat ___ Python tracker ___ ___

[issue31823] Opaque default value for close_fds argument in Popen.__init__

2018-07-25 Thread Tal Einat
Tal Einat added the comment: ISTM that the docs need to be fixed for both 3.7+ and for 3.6. The signature is indeed awkward for 3.6, but it's too minor a detail to address considering it's no longer relevant for 3.7 and later. -- assignee: -> docs@python components: +Documentation

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2018-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +7993 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Checking whether type is None

2018-07-25 Thread Ian Kelly
On Wed, Jul 25, 2018, 8:27 AM Stephan Houben wrote: > Op 2018-07-24, Chris Angelico schreef : > > On Wed, Jul 25, 2018 at 9:18 AM, Rob Gaddi > > wrote: > >> On 07/24/2018 01:07 PM, Chris Angelico wrote: > >> I suppose one valid usage would be this sort of thing: > >> > >> fn = { > >> int:

[issue29842] Make Executor.map work with infinite/large inputs correctly

2018-07-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: In response to Max's comments: >But consider the case where input is produced slower than it can be processed >(`iterables` may fetch data from a database, but the callable `fn` may be a >fast in-memory transformation). Now suppose the `Executor.map` is

[issue33139] Bdb doesn't find instruction in linecache after pdb.set_trace() following os.chdir("/tmp")

2018-07-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems related : https://bugs.python.org/issue31121 -- nosy: +xtreak ___ Python tracker ___

[issue19979] Missing nested scope vars in class scope (bis)

2018-07-25 Thread Tal Einat
Tal Einat added the comment: This does indeed seem to be a duplicate of issue9226. -- nosy: +taleinat resolution: -> duplicate stage: test needed -> resolved status: pending -> closed superseder: -> erroneous behavior when creating classes inside a closure

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-07-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7992 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32663] SMTPUTF8SimTests are not actually being run

2018-07-25 Thread Segev Finer
Change by Segev Finer : -- nosy: +Segev Finer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Checking whether type is None

2018-07-25 Thread Chris Angelico
On Thu, Jul 26, 2018 at 12:20 AM, Stephan Houben wrote: > Op 2018-07-24, Chris Angelico schreef : >> On Wed, Jul 25, 2018 at 9:18 AM, Rob Gaddi >> wrote: >>> On 07/24/2018 01:07 PM, Chris Angelico wrote: >>> I suppose one valid usage would be this sort of thing: >>> >>> fn = { >>> int:

[issue34223] PYTHONDUMPREFS=1 ./python -c pass does crash

2018-07-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems like this is the same as https://bugs.python.org/issue30156. Relevant commit : https://github.com/python/cpython/commit/7822f151b68e40376af657d267ff774439d9adb9 . Comment on the commit :

[issue34228] Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc

2018-07-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 60b04c9f6fb87522a62ab6b95db9f8a09aef42d4 by Victor Stinner in branch 'master': bpo-34228: Allow PYTHONTRACEMALLOC=0 (GH-8467) https://github.com/python/cpython/commit/60b04c9f6fb87522a62ab6b95db9f8a09aef42d4 --

[issue34221] Any plans to combine collections.OrderedDict with dict

2018-07-25 Thread iMath
New submission from iMath : Since Python 3.7,dicts remember the order that items were inserted, so any plans to combine collections.OrderedDict with dict? https://docs.python.org/3/library/collections.html?#collections.OrderedDict https://docs.python.org/3/library/stdtypes.html#dict BTW, I

[issue34223] PYTHONDUMPREFS=1 ./python -c pass does crash

2018-07-25 Thread STINNER Victor
New submission from STINNER Victor : It seems like Python has an invalid object somewhere. PYTHONDUMPREFS=1 makes Python crash at exit. $ PYTHONDUMPREFS=1 ./python -c pass (...) 0x7f1992292448 [1] (, ) 0x7f1992241aa8 [1] {'__doc__': 'Thread-local dummy'} 0x7f199222c740 [1] (,) 0x9c98a0 [2]

[issue34226] cgi.parse_multipart() requires undocumented CONTENT-LENGTH in Python 3.7

2018-07-25 Thread Chih-Hsuan Yen
New submission from Chih-Hsuan Yen : In Python 3.7, cgi.parse_multipart() requires "CONTENT-LENGTH" in the second parameter `pdict`. This is not necesary in Python 3.6. For example, the following code runs with 3.6: $ python3.6 Python 3.6.6 (default, Jun 27 2018, 13:11:40) [GCC 8.1.1

Re: hello from a very excited and totally blind python programmer and game player

2018-07-25 Thread Tim Golden
Hi Daniel, I'm unsure how well your support tools will work with quoted emails. I'm going to place my answer below your text according to the convention on this list. On 24/07/2018 21:09, Daniel Perry wrote: Hi there everyone, my name is Daniel Perry and I'm a totally blind new Python user.

[issue34225] distutils._msvccompiler should trim INCLUDE/LIB directories

2018-07-25 Thread Steve Dower
New submission from Steve Dower : _msvccompiler reads the INCLUDE and LIB environment variables when building and adds each directory to the command line. However, if any of these end with os.sep (specifically, '\'), then it will escape the quoting and break the entire command. We should

[issue34220] Serialization of email message without header line length limit and a non-ASCII subject fails with TypeError

2018-07-25 Thread Grigory Statsenko
New submission from Grigory Statsenko : I have the following code that creates a simple email message with a) a pure-ASCII subject, b) non-ASCII subject (I made it into a unittest): import email.generator import email.policy from email.mime.multipart import MIMEMultipart from email.mime.text

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2018-07-25 Thread R. David Murray
Change by R. David Murray : -- nosy: +altvod versions: +Python 3.7, Python 3.8 -Python 3.6 ___ Python tracker ___ ___

[issue34227] Weighted random.sample() (weighted sampling without replacement)

2018-07-25 Thread Piotr Jurkiewicz
Change by Piotr Jurkiewicz : -- keywords: +patch pull_requests: +7988 stage: -> patch review ___ Python tracker ___ ___

[issue34195] test_nt_helpers fails with case difference in drive letter

2018-07-25 Thread Tim Golden
Tim Golden added the comment: New changeset ff64add8d4be2e37c552ba702f629b0b6639cd33 by Tim Golden in branch 'master': bpo-34195: Fix case-sensitive comparison in test_nt_helpers (GH-8448) https://github.com/python/cpython/commit/ff64add8d4be2e37c552ba702f629b0b6639cd33 --

Re: Checking whether type is None

2018-07-25 Thread Chris Angelico
On Thu, Jul 26, 2018 at 2:14 AM, Schachner, Joseph wrote: > While I appreciate that use of "is" in thing is None, I claim this relies > on knowledge of how Python works internally, to know that every None actually > is the same ID (the same object) - it is singular. That's part of the

[issue34220] Serialization of email message without header line length limit and a non-ASCII subject fails with TypeError

2018-07-25 Thread R. David Murray
R. David Murray added the comment: Thanks for the report. This is a duplicate of #33524. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> non-ascii characters in headers causes TypeError on email.policy.Policy.fold

Re: curses, ncurses or something else

2018-07-25 Thread John Pote
On 24/07/2018 16:13, Peter Pearson wrote: On Mon, 23 Jul 2018 23:24:18 +0100, John Pote wrote: I recently wrote a command line app to take a stream of numbers, do some signal processing on them and display the results on the console. There may be several output columns of data so a title line

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2018-07-25 Thread Tal Einat
Tal Einat added the comment: Ivan, can you supply a PR or would you like someone else to do so? -- nosy: +taleinat ___ Python tracker ___

[issue34227] Weighted random.sample() (weighted sampling without replacement)

2018-07-25 Thread Piotr Jurkiewicz
New submission from Piotr Jurkiewicz : Function random.choices(), which appeared in Python 3.6, allows to perform weighted random sampling with replacement. Function random.sample() performs random sampling without replacement, but cannot do it weighted. I propose to enhance random.sample()

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2018-07-25 Thread Anton Patrushev
Anton Patrushev added the comment: The same problem is reproducible with different but obvious way on Python 2.7. -- versions: +Python 2.7 ___ Python tracker ___

[issue34228] Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc

2018-07-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7991 stage: -> patch review ___ Python tracker ___ ___

[issue13041] argparse: terminal width is not detected properly

2018-07-25 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.5 ___ Python tracker ___

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-07-25 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-34228 "Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc" that I need to write unit tests on Python initiallization. -- ___ Python tracker

RE: Checking whether type is None

2018-07-25 Thread Schachner, Joseph
While I appreciate that use of "is" in thing is None, I claim this relies on knowledge of how Python works internally, to know that every None actually is the same ID (the same object) - it is singular. That probably works for 0 and 1 also but you probably wouldn't consider testing thing

[issue34223] PYTHONDUMPREFS=1 ./python -c pass does crash

2018-07-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Python 3.4 seems fine ➜ cpython git:(57b85d3) ./python Python 3.4.9rc1+ (default, Jul 25 2018, 14:39:07) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> ➜ cpython git:(57b85d3) time

[issue29097] [Windows] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2018-07-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 973649342cee3869409f341ff0f0e3d2b1547c2a by Alexander Belopolsky (Miss Islington (bot)) in branch '3.7': bpo-29097: Forego fold detection on windows for low timestamp values (GH-2385) (GH-8466)

[issue33121] recv returning 0 on closed connection not documented

2018-07-25 Thread Tal Einat
Tal Einat added the comment: My guess would be the docs for socket.recv()[1], which indeed don't mention what the return value is after a socket has been closed, nor can I find that info elsewhere on that page. Those docs for socket generally avoid going into detail, including specifically

[issue29097] [Windows] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2018-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +7990 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29097] [Windows] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2018-07-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 96d1e69a12ed8ab80203277e1abdaf573457a964 by Alexander Belopolsky (Ammar Askar) in branch 'master': bpo-29097: Forego fold detection on windows for low timestamp values (GH-2385)

[issue34228] Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc

2018-07-25 Thread STINNER Victor
New submission from STINNER Victor : Currently, -X tracemalloc=0 command line option is reject as an invalid value. I would like to allow to explicitly disable tracemalloc. That's useful to ignore the PYTHONTRACEMALLOC environment variable: "PYTHONTRACEMALLOC=1 python3 -X tracemalloc=0"

[issue34223] PYTHONDUMPREFS=1 ./python -c pass does crash

2018-07-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can reproduce this on Python 3.5 and 3.6 too # Python 3.5 ➜ cpython git:(f497e74) $ ./python Python 3.5.6rc1+ (remotes/upstream/3.5:f497e74, Jul 25 2018, 14:32:33) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for

[issue34195] test_nt_helpers fails with case difference in drive letter

2018-07-25 Thread Tim Golden
Tim Golden added the comment: Test fixed to ignore case and volume differences between paths -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue12458] Tracebacks should contain the first line of continuation lines

2018-07-25 Thread Doug
Change by Doug : -- nosy: +beck ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32663] SMTPUTF8SimTests are not actually being run

2018-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +7995 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34225] distutils._msvccompiler should trim INCLUDE/LIB directories

2018-07-25 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +7987 stage: -> patch review ___ Python tracker ___ ___

[issue33092] The bytecode for f-string formatting is inefficient.

2018-07-25 Thread Tal Einat
Change by Tal Einat : -- nosy: -taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33092] The bytecode for f-string formatting is inefficient.

2018-07-25 Thread Tal Einat
Tal Einat added the comment: Mark, since you have a working version of this, perhaps you can supply some performance benchmark results to help in making a decision? -- nosy: +taleinat ___ Python tracker

Re: Python in the news

2018-07-25 Thread oliver
Along the same lines but focused on one of the companies mentioned in the Economist article is one by Bloomberg : https://www.bloomberg.com/news/articles/2018-06-14/citi-wants-analysts-to-add-python-to-list-of-languages-on-resume On Mon, Jul 23, 2018, 12:35 Rich Shepard, wrote: >The lead

[issue34224] python 3.7 inside venv tries to write back to read-only installation directory (Grammar3.7.0.final.0.pickle)

2018-07-25 Thread Andreas Jung
New submission from Andreas Jung : I installed Python 3.7.0 from source inside /opt/python-3.7.0 (make install as root). Then I created a virtual environment for a package and tried to develop the package. Python 3.7.0 tries to create a file

[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-07-25 Thread STINNER Victor
STINNER Victor added the comment: TODO list, open questions: * Should isolated=1 always imply config->ignore_environment=1 and config->user_site_directory = 0? * Should we rename debug to parser_debug? "debug" is a very generic term, whereas this flag is really specific to the parser *

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2018-07-25 Thread Tal Einat
Tal Einat added the comment: Thanks for the PR, Aaron! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.6 ___ Python tracker

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2018-07-25 Thread Anton Patrushev
Anton Patrushev added the comment: I found when this "feature" was implemented: gitff2d9b71547d95566416fa968872910ca9c4adb1 Part of commit message: ``` in command-line options, and in two phases at that: first, we expand 'install_base' and 'install_platbase', and then the other 'install_*'

[issue34220] Serialization of email message without header line length limit and a non-ASCII subject fails with TypeError

2018-07-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I took all the commits made to Lib/email from 3.5 to latest of 3.6 branch with `git log --oneline --format="%h" upstream/3.5..upstream/3.6 Lib/email > commits.txt` I could see the test fails with a87ba60 and passes with d94ef8f. Probably something

[issue34224] python 3.7 inside venv tries to write back to installation directory

2018-07-25 Thread Andreas Jung
Change by Andreas Jung : -- components: Installation nosy: ajung priority: normal severity: normal status: open title: python 3.7 inside venv tries to write back to installation directory ___ Python tracker

[issue32663] SMTPUTF8SimTests are not actually being run

2018-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +7994 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2018-07-25 Thread Tal Einat
Tal Einat added the comment: New changeset c0f0a7669c73c0d444851dd4c5299de2479214cc by Tal Einat (Aaron Ang) in branch 'master': bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208) https://github.com/python/cpython/commit/c0f0a7669c73c0d444851dd4c5299de2479214cc

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2018-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +7986 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2018-07-25 Thread Tal Einat
Tal Einat added the comment: New changeset ec02c58f5a6fdb06b769f53255fcb5d393812160 by Tal Einat (Miss Islington (bot)) in branch '3.7': bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2018-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +7985 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32663] SMTPUTF8SimTests are not actually being run

2018-07-25 Thread R. David Murray
R. David Murray added the comment: New changeset 48ed88a93bb0bbeaae9a4cfaa533e4edf13bcb51 by R. David Murray (chason) in branch 'master': bpo-32663 Make SMTPUTF8SimTests run (#5314) https://github.com/python/cpython/commit/48ed88a93bb0bbeaae9a4cfaa533e4edf13bcb51 -- nosy:

[issue34218] test_xml_etree_c leaked [68, 68, 74] references, sum=210

2018-07-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33102] get the nth folder of a given path

2018-07-25 Thread Tal Einat
Tal Einat added the comment: -1 on adding this to os.path given the existence in pathlib. -- nosy: +taleinat ___ Python tracker ___

[issue34218] test_xml_etree_c leaked [68, 68, 74] references, sum=210

2018-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This test was finished 4 hours before the leak was fixed, and a hour before this issue was opened. -- ___ Python tracker ___

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2018-07-25 Thread miss-islington
miss-islington added the comment: New changeset cfadd1c2421e13d76d588982147d4fbdc71d5527 by Miss Islington (bot) in branch '3.6': bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208) https://github.com/python/cpython/commit/cfadd1c2421e13d76d588982147d4fbdc71d5527

[issue34218] test_xml_etree_c leaked [68, 68, 74] references, sum=210

2018-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ee98e7bbde45fcf24d769353e29337d5ccdbaac5 by Serhiy Storchaka in branch 'master': bpo-34218: Fix a leak in _elementtree.c introduced in GH-6769. (GH-8460) https://github.com/python/cpython/commit/ee98e7bbde45fcf24d769353e29337d5ccdbaac5

[issue28677] difficult to parse sentence structure in "When an instance attribute is referenced that isn't a data attribute"

2018-07-25 Thread miss-islington
miss-islington added the comment: New changeset 1c8f6553ad5a7f97495972da8f35f4dabcb372d4 by Miss Islington (bot) in branch '2.7': bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208) https://github.com/python/cpython/commit/1c8f6553ad5a7f97495972da8f35f4dabcb372d4

[issue13041] argparse: terminal width is not detected properly

2018-07-25 Thread Berker Peksag
Berker Peksag added the comment: New changeset 74102c9a5f2327c4fc47feefa072854a53551d1f by Berker Peksag in branch 'master': bpo-13041: Use shutil.get_terminal_size() in argparse.HelpFormatter (GH-8459) https://github.com/python/cpython/commit/74102c9a5f2327c4fc47feefa072854a53551d1f

[issue34222] Email message serialization enters an infinite loop when folding non-ASCII headers with long words

2018-07-25 Thread Grigory Statsenko
New submission from Grigory Statsenko : (Discovered together with https://bugs.python.org/msg322348) Email message serialization (in function _fold_as_ew) enters an infinite loop when folding non-ASCII headers whose words (after encoding) are longer than the given maxlen. Besides being stuck

[issue34227] Weighted random.sample() (weighted sampling without replacement)

2018-07-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33102] get the nth folder of a given path

2018-07-25 Thread Tal Einat
Tal Einat added the comment: I'm closing this as "wontfix". Amjad, if you'd like to discuss this further, please bring it up on python-ideas. Serhiy, as the expert for the os.path module, FYI. -- nosy: +serhiy.storchaka ___ Python tracker

Re: hello from a very excited and totally blind python programmer and game player

2018-07-25 Thread Rhodri James
On 24/07/18 21:09, Daniel Perry wrote: Also, When I opened up the first message that I had gotten from this list, I got a prompt that popped up asking if I wanted to make windows live mail my default news client and I answered no. From that point on, I've been getting an error message and the

[issue29842] Make Executor.map work with infinite/large inputs correctly

2018-07-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: In any event, sorry to be a pain, but is there any way to get some movement on this issue? One person reviewed the code with no significant concerns to address. There have been a duplicate (#30323) and closely related (#34168) issues opened that this would

[issue34218] test_xml_etree_c leaked [68, 68, 74] references, sum=210

2018-07-25 Thread STINNER Victor
STINNER Victor added the comment: Is this issue really fixed? https://buildbot.python.org/all/#builders/1/builds/295 still detects leaks. -- nosy: +vstinner ___ Python tracker

[issue34220] Serialization of email message without header line length limit and a non-ASCII subject fails with TypeError

2018-07-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34224] python 3.7 inside venv tries to write back to read-only installation directory (Grammar3.7.0.final.0.pickle)

2018-07-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems related : https://bugs.python.org/issue15317 Thanks -- nosy: +xtreak ___ Python tracker ___

[issue33102] get the nth folder of a given path

2018-07-25 Thread Tal Einat
Change by Tal Einat : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34168] RAM consumption too high using concurrent.futures (Python 3.7 / 3.6 )

2018-07-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Note: While this particular use case wouldn't be fixed (map returns in order, not as completed), applying the fix from #29842 would make many similar use cases both simpler to implement and more efficient/possible. That said, no action has been taken on

Re: Checking whether type is None

2018-07-25 Thread Stephan Houben
Op 2018-07-24, Chris Angelico schreef : > On Wed, Jul 25, 2018 at 9:18 AM, Rob Gaddi > wrote: >> On 07/24/2018 01:07 PM, Chris Angelico wrote: >> I suppose one valid usage would be this sort of thing: >> >> fn = { >> int: dispatchInt, >> str: dispatchStr, >> list: dispatchList, >>

Re: Can pip install packages for all users (on a Linux system)?

2018-07-25 Thread Stephan Houben
Op 2018-07-24, John Ladasky schreef : > I believe that I now have tensorflow 1.8 installed twice on my system, > once for each user. If anyone can share how to convince pip to behave > like Synaptic, I would appreciate it. Thanks. I would recommend against using pip to install packages into the

[issue34218] test_xml_etree_c leaked [68, 68, 74] references, sum=210

2018-07-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +7984 stage: -> patch review ___ Python tracker ___ ___

[issue34218] test_xml_etree_c leaked [68, 68, 74] references, sum=210

2018-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks like a regression introduced in issue29209 (02ec92fa7b1dddc23d479ee0b87dc283793505a8). -- nosy: +serhiy.storchaka ___ Python tracker

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2018-07-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13041] argparse: terminal width is not detected properly

2018-07-25 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +7983 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34219] distutils: build_ext -D wrongly assume defining a symbol with no value

2018-07-25 Thread monson
Change by monson : -- keywords: +patch pull_requests: +7982 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34219] distutils: build_ext -D wrongly assume defining a symbol with no value

2018-07-25 Thread monson
New submission from monson : `python setup.py build_ext -D zero,one=v1,two=k2=v2` will generate preprocessor argument `-D zero=1 -D one=v1=1 -D two=k2=v2=1`. Expect `-D zero=1 -D one=v1 -D two=k2=v2`. -- components: Library (Lib) messages: 322344 nosy: monson priority: normal

[ANN] - Skyline v1.2.4-stable-luminosity

2018-07-25 Thread Gary Wilson
For those interested in anomaly detection and deflection in streamed time series data. I would like to announce the new release of Skyline v1.2.4 - https://github.com/earthgecko/skyline/releases/tag/v1.2.2-stable-luminosity Project page -> https://github.com/earthgecko/skyline Documentation ->

NumPy 1.15.0 released.

2018-07-25 Thread Charles R Harris
Hi All, On behalf of the NumPy team I'm pleased to announce the release of NumPy 1.15.0rc2. This release has an unusual number of cleanups, many deprecations of old functions, and improvements to many existing functions. A total of 438 pull reguests were merged for this release, please look at

Re: NumPy 1.15.0 released.

2018-07-25 Thread Charles R Harris
On Mon, Jul 23, 2018 at 11:21 AM, Charles R Harris < charlesr.har...@gmail.com> wrote: > Hi All, > > On behalf of the NumPy team I'm pleased to announce the release of NumPy > 1.15.0rc2. > Oops, NumPy 1.15.0. Oh well ... This release has an unusual number of cleanups, many deprecations of old

  1   2   >