[issue35383] lib2to3 raises ParseError on argument called "print"

2018-12-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 2.x, 'print' is a reserved keyword and compiling foo fails with SyntaxError. AFAIK, 2to3 expects the input to be *valid* 2.x code that compiles. So it seems to me that the bug is in the input, not 2to3, and that this issue should be closed as 'not a bug

[issue34977] Release Windows Store app containing Python

2018-12-07 Thread Ethan Smith
Change by Ethan Smith : -- nosy: +Ethan Smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue35402] Upgrade macOS (and Windows?) installer to Tcl/Tk 8.6.9.1

2018-12-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: ... and master. I believe for Windows the policy has been to stick with one tcl/tk version for a Python version. But I don't know that this is written on stone. If not too much trouble, I would like master updated occasionally during the a1 period rather

[issue35403] support application/wasm in mimetypes and http.server

2018-12-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35401] Upgrade Windows and macOS installers to use OpenSSL 1.1.0j / 1.0.2q

2018-12-07 Thread Steve Dower
Steve Dower added the comment: Bin and source dependency repos are updated - just needs the project updates now and testing. -- ___ Python tracker ___ ___

[issue35435] Discourage external links to old docs.

2018-12-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed the title to better state the actual issue and goal of action. The termination solution is rejected, but further revisions to docs and site need not be. Adding the auto updated https://docs.python.org/3/ was a good move (and a reason to not casual

[issue34977] Release Windows Store app containing Python

2018-12-07 Thread Paul Moore
Paul Moore added the comment: Thanks for the clarification. > In all the cases I've tested, regular Python install shows up first. If it's > not installed, the Store app shows up much of the time. This feels like the > right design (with the caveat about "much of the time" requiring changes

[issue35438] Extension modules using non-API functions

2018-12-07 Thread Eddie Elizondo
New submission from Eddie Elizondo : Three extension modules: _testcapimodule.c, posixmodule.c, and mathmodule.c are using `_PyObject_LookupSpecial` which is not API. These should instead use `PyObject_GetAttrString`, `PyType_GetSlot`. -- components: Library (Lib) messages: 331364 nos

[issue33747] Failed separate test_patch_propogrates_exc_on_exit in test_unittest

2018-12-07 Thread Brett Cannon
Brett Cannon added the comment: New changeset 3cf74384b53b998fa846dc2590cedf9ad2a0d5fd by Brett Cannon (Anirudha Bose) in branch 'master': bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests (GH-8520) https://github.com/python/cpython/commit/3cf74384b53b998fa846dc259

[issue33747] Failed separate test_patch_propogrates_exc_on_exit in test_unittest

2018-12-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10268 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33747] Failed separate test_patch_propogrates_exc_on_exit in test_unittest

2018-12-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +10269 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35376] modulefinder skips nested modules with same name as top-level bad module

2018-12-07 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35376] modulefinder skips nested modules with same name as top-level bad module

2018-12-07 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +jvr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue35376] modulefinder skips nested modules with same name as top-level bad module

2018-12-07 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35376] modulefinder skips nested modules with same name as top-level bad module

2018-12-07 Thread Brett Cannon
Brett Cannon added the comment: PRs should always be against 'master' unless the issue is already fixed there. -- nosy: +brett.cannon ___ Python tracker ___ __

[issue35431] Add a function for computing binomial coefficients to the math module

2018-12-07 Thread Brett Cannon
Change by Brett Cannon : -- title: The math module should provide a function for computing binomial coefficients -> Add a function for computing binomial coefficients to the math module ___ Python tracker _

[issue35429] Incorrect use of raise NotImplemented

2018-12-07 Thread Brett Cannon
Brett Cannon added the comment: This was fixed by https://github.com/python/cpython/pull/10934 -- nosy: +brett.cannon stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34977] Release Windows Store app containing Python

2018-12-07 Thread Steve Dower
Steve Dower added the comment: > In general, I don't think we've done that great a job of publicising > the various install options on Windows - we still get pip users trying > to install packages into the embedded distribution, which they are > using as if it were a standalone interpreter, and

[issue35431] Add a function for computing binomial coefficients to the math module

2018-12-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Brett, what was the purpose of the title change? > title: The math module should provide a function for computing > binomial coefficients -> Add a function for computing binomial > coefficients to the math module -- ___

[issue35439] New class instance not initializing variables of type list

2018-12-07 Thread Arturo Inzunza
New submission from Arturo Inzunza : List type variables in a class are not reset on new instances of the class. Example: class Klazz: lst = [] def __init__(self, va): print(self.lst) self.lst.append(va) k = Klazz(1) [] -> This is correct as the lst value is emp

[issue35439] New class instance not initializing variables of type list

2018-12-07 Thread Ammar Askar
Ammar Askar added the comment: This is expected behavior, take a look at this section in the tutorial on classes: https://docs.python.org/3/tutorial/classes.html#class-and-instance-variables Unlike say Java, member variables need to be initialized in the constructor. -- nosy: +ammar

[issue35438] Extension modules using non-API functions

2018-12-07 Thread Eddie Elizondo
Eddie Elizondo added the comment: Correction, this is not as trivial as just using `PyObject_GetAttrString`. Will investigate the correct behavior. -- ___ Python tracker ___

[issue35438] Extension modules using non-API functions

2018-12-07 Thread Josh Rosenberg
Josh Rosenberg added the comment: Batteries-included extension modules aren't limited to the public and/or limited API; they use tons of undocumented internal APIs (everything to do with Py_IDENTIFIERs being an obvious and frequently used non-public API). _PyObject_LookupSpecial is necessary

[issue35383] lib2to3 raises ParseError on argument called "print"

2018-12-07 Thread Martin Panter
Martin Panter added the comment: Previous related reports: * Issue 35260: “2to3” doesn’t parse Python 3’s “print” function by default because it is supposed to translate Python 2 syntax * Issue 2412: “2to3” should support “from __future__ import print_function”. That frees up the “print” rese

<    1   2