[issue33435] incorrect detection of information of some distributions

2018-05-15 Thread Andrey Bychkov
Andrey Bychkov added the comment: it's patch is not actual. new diff in git pull request! -- ___ Python tracker ___ ___ Python-bugs-

[issue33513] incorrect detection of information of some distributions python2

2018-05-15 Thread Andrey Bychkov
New submission from Andrey Bychkov : In some linux distributions, the information about the distribution is incorrectly determined when the linux_distribution() method is called from the platform class. Since the information file os-release becomes a certain standard, I propose first of all to

[issue33513] incorrect detection of information of some distributions python2

2018-05-15 Thread Andrey Bychkov
Change by Andrey Bychkov : -- keywords: +patch Added file: https://bugs.python.org/file47590/fix-issue-33513.patch ___ Python tracker ___ ___

[issue33486] regen autotools related files

2018-05-15 Thread Eitan Adler
Eitan Adler added the comment: > If these changes are autogenerated, I would prefer that a trusted core > developer create a PR. They are fully auto-generated (using autoupdate and autoreconf). It someone else wants to submit the PR, feel free. > Is it safe to bump the minimal required versi

[issue33486] regen autotools related files

2018-05-15 Thread Eitan Adler
Change by Eitan Adler : -- pull_requests: +6528 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33506] [logging] template for filename timestamps

2018-05-15 Thread Vinay Sajip
Vinay Sajip added the comment: > Are you planning to remove the predefined filename templates No. They work fine as is for most people, from what I can tell. > it still has the limitation that when a logging file is active for writing > log events, that file always has the same filename (self

[issue33507] Improving the html rendered by cgitb.html

2018-05-15 Thread Stéphane Blondon
Change by Stéphane Blondon : -- keywords: +patch pull_requests: +6529 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue33484] build system runs when it may merely link

2018-05-15 Thread Eitan Adler
Change by Eitan Adler : -- title: build system runs when it merely link -> build system runs when it may merely link ___ Python tracker ___

[issue33513] incorrect detection of information of some distributions python2

2018-05-15 Thread Andrey Bychkov
Change by Andrey Bychkov : -- pull_requests: +6530 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Vinay Sajip
Vinay Sajip added the comment: > The solution recommended in the logging cookbook does not do the same thing > as I have proposed. Perhaps not, but it appears to adequately address your first point: > Many logging aggregation and indexing systems require that log data must be > written in an

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue33506] [logging] template for filename timestamps

2018-05-15 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue33508] [logging] allow %p code to put PID into log filename

2018-05-15 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue33513] incorrect detection of information of some distributions python2

2018-05-15 Thread Ned Deily
Change by Ned Deily : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-15 Thread Miro Hrončok
New submission from Miro Hrončok : According to PEP 492, async and await should be full keywords in Python 3.7. That happened in https://bugs.python.org/issue30406 There is no mention of it at all at https://docs.python.org/3.7/whatsnew/3.7.html#porting-to-python-3-7 or anywhare on that page.

[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-15 Thread Miro Hrončok
Miro Hrončok added the comment: I'll prep a PR -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32216] Document PEP 557 Data Classes (dataclasses module)

2018-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Mariatta, go ahead and take the lead on this one. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. The 3.7 What's New document is being completed right now at the PyCon US sprints. CCing the editors. -- nosy: +Elvis.Pranskevichus, ned.deily, yselivanov ___ Python tracker

[issue33492] Updating the Evaluation order section to cover *expression in calls

2018-05-15 Thread Eric Lebigot
Change by Eric Lebigot : -- nosy: +Eric Lebigot ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-15 Thread Miro Hrončok
Change by Miro Hrončok : -- keywords: +patch pull_requests: +6531 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33514] async and await as keywords not mentioned in What’s New In Python 3.7

2018-05-15 Thread Miro Hrončok
Miro Hrončok added the comment: Oh, didn't know that. Consider my PR as a remote sprint contribution. Hopefully nobody has already written this part. -- ___ Python tracker ___

[issue33494] random.choices ought to check that cumulative weights are in ascending order

2018-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Serhiy. The proposed check would cripple the intended use of cumulative weights which is provided as a way to avoid the cost of rebuilding the weights on every call. FWIW, bisect() has a long history of requiring sorted inputs and has a sim

[issue33515] subprocess.Popen on a Windows batch file always acts as if shell=True

2018-05-15 Thread Abigail
New submission from Abigail : It's possible to invoke an application without interpreting any of its arguments as shell magic: >>> print(subprocess.check_output(["C:/testapplication.exe", "foo", "&&", >>> "echo", "%PROGRAMFILES%"])) Hello world from application! 5 arguments: Argument 0: 'C:/te

[issue33015] Fix function cast warning in thread_pthread.h

2018-05-15 Thread Siddhesh Poyarekar
Siddhesh Poyarekar added the comment: Actually it is not; the parameter passed to Pythread_start_new_thread has a different type (void (*)(void *)) from what's accepted (and executed by) pthread_create (void *(*)(void *)). That is undefined behaviour. --

[issue33497] cgi.parse_multipart does not have an associated "errors" parameter with its "encoding" parameter

2018-05-15 Thread Amber Brown
Amber Brown added the comment: This change mirrors the default in FieldStorage (which it calls). If it's not the best option, then it would need to be changed in FieldStorage too. (personally, I don't like strict because UnicodeDecodeErrors on untrusted user input kind of sucks, but also repl

[issue33516] unittest.mock: Add __round__ to supported magicmock methods

2018-05-15 Thread Martijn Pieters
New submission from Martijn Pieters : I notice that __trunc__, __floor__ and __ceil__ are supported methods for MagicMock, but __round__ (in the same grouping of numeric types emulation methods, see https://docs.python.org/3/reference/datamodel.html#object.__round__), is not. Please add this

[issue18022] Inconsistency between quopri.decodestring() and email.quoprimime.decode()

2018-05-15 Thread R. David Murray
R. David Murray added the comment: I should have just deleted the table, actually. The only important info in it is that per RFC '=', '=\n', and '= \n' all ought to become '='. But I don't think we should make that change, I think we should continue to turn those into ''. So I consider the

[issue21145] Add the @cached_property decorator

2018-05-15 Thread Omer Katz
Omer Katz added the comment: I believe so. Let's do it :) ‫בתאריך יום ב׳, 14 במאי 2018 ב-19:30 מאת ‪Carl Meyer‬‏ <‪ rep...@bugs.python.org‬‏>:‬ > > Carl Meyer added the comment: > > > I don't think it makes sense to try to make cached_property itself work > implicitly with both normal attribu

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread Eric V. Smith
New submission from Eric V. Smith : With the recent (and ongoing) change to string annotations, it's no longer obvious what the type of a field is (normal, ClassVar, or InitVar). I propose exposing the heretofore undocumented _field_type to the repr. Instead of writing it directly, I'm going t

[issue33198] Build on Linux with --enable-optimizations fails

2018-05-15 Thread Ned Deily
Ned Deily added the comment: Florian, any further information on this problem? Are you still seeing it? Can you supply a backtrace? Without more information to go on, there's not much we can do to help. -- nosy: +ned.deily ___ Python tracker

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +6532 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: What I think Guido might mean is that some type annotations are not strictly speaking type hints. For example, `dataclasses.InitVar`, is not really a type, it is just a way to indicate how constructor should be constructed. I could see similar potential feat

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Guido van Rossum
Guido van Rossum added the comment: I actually intended to say that annotations continue to be usable for non-typing purposes (beyond ClassVar/InitVar). It may be deprecated but the usage still exists. This is a glossary, not a manifesto. I'm fine with adding that the main use of annotations is

[issue32534] Speed-up list.insert: use memmove()

2018-05-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, just a small reminder for this issue because I was reviewing the PR. what is the status? Thanks -- nosy: +matrixise ___ Python tracker ___

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Yes, local annotations are important and should be mentioned (maybe even with an example). -- ___ Python tracker ___ ___

[issue29640] _PyThreadState_Init and fork race leads to inconsistent key list

2018-05-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Petr, Do you continue this patch/issue? Thank you -- nosy: +matrixise ___ Python tracker ___

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 01abc6ec3a61769c55ee86834a432fb97801d28f by Eric V. Smith in branch 'master': bpo-33517: dataclasses: Add the field type to Field repr (GH-6858) https://github.com/python/cpython/commit/01abc6ec3a61769c55ee86834a432fb97801d28f -- __

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6533 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread miss-islington
miss-islington added the comment: New changeset 5c7e079158db869c9ede1ac9b5b9735091d3ffb6 by Miss Islington (bot) in branch '3.7': bpo-33517: dataclasses: Add the field type to Field repr (GH-6858) https://github.com/python/cpython/commit/5c7e079158db869c9ede1ac9b5b9735091d3ffb6 -- no

[issue33518] Add PEP to glossary

2018-05-15 Thread Andrés Delfino
New submission from Andrés Delfino : I think PEP should be mentioned in the glossary, as it is an important piece of how Python is developed and learned. The PR's wording is taken from PEP1, mostly verbatim. -- assignee: docs@python components: Documentation messages: 316653 nosy: adel

[issue33518] Add PEP to glossary

2018-05-15 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6534 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33198] Build on Linux with --enable-optimizations fails

2018-05-15 Thread Florian Schulze
Florian Schulze added the comment: Due to the TLS changes on pypi.org the buildout I used before doesn't work anymore on Travis and I have now switched to pyenv. If I ever stumble over it again, I will open a new bug with more information. -- stage: -> resolved status: open -> closed

[issue33517] dataclasses: Add the field type to Field repr

2018-05-15 Thread Eric V. Smith
Change by Eric V. Smith : -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue29640] _PyThreadState_Init and fork race leads to inconsistent key list

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Not immediately, but it is on my TODO list. If anyone wants to tackle it in the mean time, I'd be happy to answer any questions -- ___ Python tracker

[issue33505] Optimize asyncio.ensure_future by reordering if conditions

2018-05-15 Thread Jimmy Lai
Jimmy Lai added the comment: Benchmark result: ./python.exe -m perf compare_to ensure_future_original.json ensure_future_optimized.json Mean +- std dev: [ensure_future_original] 57.4 ms +- 4.0 ms -> [ensure_future_optimized] 49.3 ms +- 4.5 ms: 1.17x faster (-14%) -- Added file: https:

[issue32604] Expose the subinterpreters C-API in Python for testing use.

2018-05-15 Thread Eric Snow
Eric Snow added the comment: New changeset 6bd0c476c58ca0046969f70dc2a4e4dfb3268062 by Eric Snow in branch '3.7': bpo-32604: Remove xid registry. (#6813) https://github.com/python/cpython/commit/6bd0c476c58ca0046969f70dc2a4e4dfb3268062 -- ___ Pyth

[issue33435] incorrect detection of information of some distributions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: linux_distribution is deprecated since 3.5, so I don't think it makes sense to modify it. (see https://docs.python.org/3/library/platform.html#platform.linux_distribution) Can you use a third-party package instead, e.g. distro? http://distro.readthedocs.io/en/

[issue33435] incorrect detection of information of some distributions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Oh, and there's a long discussion on the deprecation here: https://bugs.python.org/issue1322 -- ___ Python tracker ___ ___

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: I talked to Ned, the release manager for 3.7. It's too late to remove this in 3.7, so I'll update the docs and make the deprecation notice more current/useful, and link to the distro library. -- ___ Python tracker <

[issue33316] Windows: PyThread_release_lock always fails

2018-05-15 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > So I would drop the pretense and make these fns void. Scratch that. In POSIX, they are #define'd as pthread fns which do return an error code. So, nothing more to do here. -- ___ Python tracker

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-05-15 Thread Paul Ganssle
Paul Ganssle added the comment: I don't really agree with these changes to the documentation. The format that paulc identifies is actually an RFC 3339 datetime, which is a subset of ISO 8601, to the extent that you consider the fact that "we're using RFC 3339" is "mutual consent" for omitting

[issue33435] incorrect detection of information of some distributions

2018-05-15 Thread Andrey Bychkov
Andrey Bychkov added the comment: I think that it would be good to update linux_distribution, the discussion has been going on for a long time, but still in some cases the information is not determined correctly. It seems to me that the methods used are not entirely correct. My change more ac

[issue33519] Should MutableSequence provide .copy()?

2018-05-15 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : https://docs.python.org/3.7/library/stdtypes.html#mutable-sequence-types lists .copy() among the methods provided by mutable sequences. However, MutableSequence does not actually define .copy(): https://github.com/python/cpython/blob/master/Lib/_collections

[issue33471] string format with 'n' failling with french locales

2018-05-15 Thread Licht Takeuchi
Change by Licht Takeuchi : -- keywords: +patch pull_requests: +6535 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 9eb40bc38de83e6ad3fad1931bba1cd36ae88c24 by Petr Viktorin (Matthias Bussonnier) in branch 'master': bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669) https://github.com/python/cpython/commit/9eb40bc38de83e6ad3fad1931bba1cd36ae88

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6536 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread Isaiah Peng
New submission from Isaiah Peng : The `col_offset` of the ast.Tuple node is set to the column offset of the first element, shown in code: >>> a = "{1,2,3}" >>> b = ast.parse(a).body[0] >>>

[issue33451] Start pyc file lock the file

2018-05-15 Thread Jean-Louis Tamburini
Jean-Louis Tamburini added the comment: Same for python v3.6.5:f59c0932b4 -- Added file: https://bugs.python.org/file47592/dummy.py ___ Python tracker ___ _

[issue31947] names=None case is not handled by EnumMeta._create_ method

2018-05-15 Thread Ethan Furman
Ethan Furman added the comment: New changeset c50e5b1f1f2501f697aa52d9c9a440bdeced7006 by Ethan Furman (Miss Islington (bot)) in branch '3.6': bpo-31947: remove None default for names param in Enum._create_ GH-4288 (GH-6485) https://github.com/python/cpython/commit/c50e5b1f1f2501f697aa52d9c9a

[issue33479] Document tkinter and threads

2018-05-15 Thread Mark Roseman
Mark Roseman added the comment: Hi Ivan, thanks for your detailed response. The approach you're suggesting ("Since the sole offender is their threading model, the way is to show them how it's defective and work towards improving it.") is in the end not something I think is workable. Some hi

[issue33521] Optimize asyncio.isfuture by providing C implementation

2018-05-15 Thread Jimmy Lai
New submission from Jimmy Lai : asyncio.isfuture called whenever ensure_future is called. Providing C implementation to make it fast. -- components: asyncio messages: 316670 nosy: asvetlov, jimmylai, yselivanov priority: normal severity: normal status: open title: Optimize asyncio.isfut

[issue24318] Better documentaiton of profile-opt (and release builds in general?)

2018-05-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +6537 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33435] incorrect detection of information of some distributions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Python's deprecation process takes several years, but linux_distribution is actually nearing the end of it. It is planned to be removed. Your improvement is great, but at this point, it is more similar to adding a new feature to the standard library, than fixi

[issue33519] Should MutableSequence provide .copy()?

2018-05-15 Thread R. David Murray
R. David Murray added the comment: The ABCs are different from the standard types provided by python itself. The former are a minimal subset of the methods provided by the latter. So I think the answer is neither. -- nosy: +r.david.murray ___ Pyt

[issue33519] Should MutableSequence provide .copy()?

2018-05-15 Thread R. David Murray
R. David Murray added the comment: On the other hand, that section does reference the ABC directly, so I can see the point of your question. So I guess I'm not sure what the answer is...I don't think copy is an essential part of the ABC, but I'm not sure. --

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +6538 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue32769] Add 'annotations' to the glossary

2018-05-15 Thread Andrés Delfino
Andrés Delfino added the comment: Hopefully I address your comments with the last PR update. -- ___ Python tracker ___ ___ Python-bu

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-15 Thread Eric Snow
Eric Snow added the comment: Yeah, I added an extra parameter. Since it's an internal API I didn't think anything of it. -- ___ Python tracker ___ ___

[issue33498] pathlib.Path wants an rmtree method

2018-05-15 Thread Aaron Hall
Aaron Hall added the comment: > What is wrong with just using shutil.rmtree()? 0. It's awkward to import just for demonstrations. 1. It's harder for new pythonists to discover. 2. A method provides discoverability in an object's namespace. 3. rmtree is a method of paths (typical usage is rmtree

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-15 Thread Steve Dower
New submission from Steve Dower : We have been provided with https://python.visualstudio.com/cpython and a measure of build machines to help us run continuous integration builds. The benefits are more reliable builds (especially Mac and Windows) and higher parallelism than our current services

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-15 Thread Jason Fried
New submission from Jason Fried : At Facebook and Instagram we have large interconnected codebases without clear boundaries of ownership. As we move more and more services to utilize asyncio we are finding that once blocking (but fast) code paths, are now cropping up with asyncio code using ru

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-15 Thread Jason Fried
Change by Jason Fried : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, I'm sorry, I misunderstood the issue. Changes in the *private* API must not be documented. In short, you must not use the private API :-) If you really have to use the private API, be prepared for incompatible changes in new Python releases. For the gdb i

[issue33523] loop.run_until_complete re-entrancy to support more complicated codebases in transition to asyncio

2018-05-15 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch pull_requests: +6540 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

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

2018-05-15 Thread radical164
New submission from radical164 : Python 3.6.5 has trouble on folding email messages: Traceback (most recent call last): File "emailtest.py", line 7, in policy.fold("Subject", msg["Subject"]) File "/usr/lib/python3.6/email/policy.py", line 183, in fold return self._fold(name, value,

[issue19124] os.execv executes in background on Windows

2018-05-15 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

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

2018-05-15 Thread R. David Murray
R. David Murray added the comment: Oh, interesting. I could argue that that's a missing feature in Python's slice handling. The value of text_space at that point is '+inf', and I obviously incorrectly assumed that slicing would treat that as if it were [:]. The counter argument, of course,

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset f4fdb619ddb5b00178c79c2b90adc45075b5f17d by Petr Viktorin (Miss Islington (bot)) in branch '3.7': bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669) (GH-6862) https://github.com/python/cpython/commit/f4fdb619ddb5b00178c79c2b90adc

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset e618e96581a711f2bc4f9bbcff6069bea15f0177 by Petr Viktorin in branch '3.6': bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6864) https://github.com/python/cpython/commit/e618e96581a711f2bc4f9bbcff6069bea15f0177 -- ___

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread Łukasz Langa
Łukasz Langa added the comment: This is because technically parentheses aren't part of the tuple. They are just organizational and unnecessary for the tuple to be recognized by the parser. Those two are equivalent: >>> ast.parse("(1,2,3)").body[0].value.col_offset 1 >>> ast.parse("(1)

[issue33520] ast.Tuple has wrong col_offset

2018-05-15 Thread Łukasz Langa
Łukasz Langa added the comment: For comparison, a tuple without parentheses: >>> ast.parse("1,2,3").body[0].value.col_offset 0 -- ___ Python tracker ___ __

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-15 Thread Miro Hrončok
Miro Hrončok added the comment: Sorry for mixing two things here, but I meant that I found out about this because of the private API use in gdb, however nothing from the change is documented on whatsnew at all. This bug was a reaction for https://github.com/python/cpython/pull/1638#issuecomme

[issue33479] Document tkinter and threads

2018-05-15 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: @markroseman replied to python-dev since those perspectives are off topic for this ticket. -- ___ Python tracker ___ __

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Brett Cannon
Brett Cannon added the comment: I just wanted to say thanks to Steve for at least taking the time to open the issues to ask if we would consider accepting the proposed changes. -- nosy: +brett.cannon ___ Python tracker

[issue33496] Accept Pathlib paths for sqlite file

2018-05-15 Thread John Reese
Change by John Reese : -- nosy: +jreese ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, would you review or at least comment on PR 6444? Your comments in msg316669 on #33479 suggest that you have the requisite knowledge. -- nosy: +markroseman ___ Python tracker

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 389a48ede92bf7965889d554d2cd17b50d6e3d86 by Terry Jan Reedy in branch 'master': bpo-29706: Test that IDLE colors async/await as keywords. (GH-6846) https://github.com/python/cpython/commit/389a48ede92bf7965889d554d2cd17b50d6e3d86 -- __

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6541 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue29706] IDLE needs syntax highlighting for async and await

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6542 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33399] site.abs_paths should handle None __cached__ type

2018-05-15 Thread Brett Cannon
Brett Cannon added the comment: I didn't bother digging as I assume this was done for a reason. I left a request for changes on the PR to make the code has a stricter `try` block. -- ___ Python tracker _

[issue33465] test_from_import_missing_attr_has_name_and_so_path fails when select is a builtin instead of an extension

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6543 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33465] test_from_import_missing_attr_has_name_and_so_path fails when select is a builtin instead of an extension

2018-05-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 8709b236fc997077d24b4802320db287640f82e2 by Barry Warsaw in branch 'master': bpo-33465: Use an unlikely to be built-in C extension in a test (#6797) https://github.com/python/cpython/commit/8709b236fc997077d24b4802320db287640f82e2 --

[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset b056562860c227bad2e0ba7cd3130e115c007768 by Victor Stinner in branch 'master': bpo-33509: Fix _warnings for module_globals=None (#6833) https://github.com/python/cpython/commit/b056562860c227bad2e0ba7cd3130e115c007768 -- __

[issue33509] warnings.warn_explicit with module_globals=True raises a SystemError

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6544 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +6545 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue33465] test_from_import_missing_attr_has_name_and_so_path fails when select is a builtin instead of an extension

2018-05-15 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue28167] remove platform.linux_distribution()

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Marc-Andre, I opened a PR to remove platform.linux_distribution() in Python 3.8. How do you feel about this? -- nosy: +lemburg ___ Python tracker _

[issue33503] use pypi.org instead of pypi.python.org

2018-05-15 Thread Ned Deily
New submission from Ned Deily : New changeset 19177fbd5d6d9b29ccc302d65f9d9417ece082ce by Ned Deily (Stéphane Wirtel) in branch 'master': bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814) https://github.com/python/cpython/commit/19177fbd5d6d9b29ccc302d65f9d9417e

[issue33503] use pypi.org instead of pypi.python.org

2018-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +6546 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2018-05-15 Thread Petr Viktorin
Petr Viktorin added the comment: Marc-Andre, if you agree the function can be removed in 3.8. This is tracked in https://bugs.python.org/issue28167 -- ___ Python tracker ___ ___

  1   2   3   >