[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2016-09-08 Thread Eric Snow
Eric Snow added the comment: What ended up happening with this? -- nosy: +eric.snow versions: +Python 3.6 -Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue16

[issue28026] module_from_spec() should raise an error in 3.6

2016-09-08 Thread Eric Snow
New submission from Eric Snow: In Lib/importlib/_bootstrap.py, module_from_spec() specifies that the current deprecation warning should be an error in 3.6. So, here's a patch. -- assignee: eric.snow components: Interpreter Core files: module_from_spec.diff keywords: patch mes

[issue28026] module_from_spec() should raise an error in 3.6

2016-09-08 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue28030] Update the language reference for PEP 468.

2016-09-08 Thread Eric Snow
New submission from Eric Snow: Doc/reference/compound_stmts.rst needs to be updated to reflect the changes from PEP 468. -- assignee: eric.snow components: Documentation messages: 275153 nosy: eric.snow priority: normal severity: normal status: open title: Update the language reference

[issue28030] Update the language reference for PEP 468.

2016-09-08 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue28030> ___

[issue24254] Make class definition namespace ordered by default

2016-09-08 Thread Eric Snow
Eric Snow added the comment: Note that most of the changes here have been reverted in changeset 103366:a964b8d2324e9f22a66e458ea72e6d5c8c1fcc93. -- ___ Python tracker <http://bugs.python.org/issue24

[issue24254] Make class definition namespace ordered by default

2016-09-08 Thread Eric Snow
Changes by Eric Snow : -- Removed message: http://bugs.python.org/msg275185 ___ Python tracker <http://bugs.python.org/issue24254> ___ ___ Python-bugs-list mailin

[issue22257] PEP 432: Redesign the interpreter startup sequence

2016-09-09 Thread Eric Snow
Eric Snow added the comment: It may be worth refactoring the patch relative to the new C99 support. -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue22

[issue16221] tokenize.untokenize() "compat" mode misses the encoding when using an iterator

2016-09-09 Thread Eric Snow
Changes by Eric Snow : -- assignee: eric.snow -> ___ Python tracker <http://bugs.python.org/issue16221> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue27576] An unexpected difference between dict and OrderedDict

2016-09-09 Thread Eric Snow
Eric Snow added the comment: Thanks for pointing this out, Alexander. -- ___ Python tracker <http://bugs.python.org/issue27576> ___ ___ Python-bugs-list mailin

[issue27576] An unexpected difference between dict and OrderedDict

2016-09-09 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue17421] Drop restriction that meta.__prepare__() must return a dict (subclass)

2016-09-09 Thread Eric Snow
Changes by Eric Snow : -- assignee: eric.snow -> ___ Python tracker <http://bugs.python.org/issue17421> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24320] Remove a now-unnecessary workaround from importlib._bootstrap.

2016-09-09 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue28053] parameterize what serialization is used in multiprocessing

2016-09-09 Thread Eric Snow
Eric Snow added the comment: LGTM -- ___ Python tracker <http://bugs.python.org/issue28053> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-09 Thread Eric Snow
Changes by Eric Snow : -- assignee: -> eric.snow ___ Python tracker <http://bugs.python.org/issue28007> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow
Eric Snow added the comment: Here's a patch to soften the impact of pyc-related problems. Note: * Each pyc-related case that previously caused import to fail now results in an ImportWarning. This applies to both reading and writing .pyc files. * Each warning has __cause__ set to the c

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file44604/issue28007.diff ___ Python tracker <http://bugs.python.org/issue28007> ___ ___ Python-bugs-list mailin

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file44601/issue28007.diff ___ Python tracker <http://bugs.python.org/issue28007> ___ ___ Python-bugs-list m

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-12 Thread Eric Snow
Eric Snow added the comment: I was going to ask Ned, but I'm fine with holding off until 3.7. :) -- ___ Python tracker <http://bugs.python.org/issue28007> ___ ___

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-12 Thread Eric Snow
Eric Snow added the comment: With issue #28007 wrapped up, there isn't a lot left to do here. I was considering that we don't want to abort when we have problems loading a codec during startup. However, Steve Dower made the point to me that a problem with the main codec duri

[issue28202] Python 3.5.1 C API, the global variable is not destroyed when delete the module

2016-09-19 Thread Eric Snow
Eric Snow added the comment: To make sure I'm understanding: * you are using PyDict_DelItemString() on sys.modules * a module-level variable in the module is not getting cleaned up when the module is deleted from sys.modules * this worked in Python 3.3 but not in 3.5 It may help to h

[issue28214] Improve exception reporting for problematic __set_name__ attributes

2016-09-20 Thread Eric Snow
Eric Snow added the comment: I agree with Serhiy that __set_name__ should be looked up on the class like all other special methods. Pickle is a great example why lookup (of __reduce__) on the instance is a pain. -- nosy: +eric.snow ___ Python

[issue28265] builtin_function_or_method's __getattribute__ not applicable to self

2016-09-24 Thread Eric Snow
Eric Snow added the comment: Hmm. It's not clear what you're after here. The error from your example code is correct. The valid invocation is: b.__getattribute__(abs, 'x') That works just fine. If you want to look up *class* attributes then you must call __getattrib

[issue28411] Eliminate PyInterpreterState.modules.

2016-10-10 Thread Eric Snow
New submission from Eric Snow: tl;dr PyInterpreterState does not need a "modules" field. Attached is a patch that removes it. During interpreter startup [1] the sys module is imported using the same C API [2] as any other builtin module. That API only requires one bit of imp

[issue28411] Eliminate PyInterpreterState.modules.

2016-10-11 Thread Eric Snow
Eric Snow added the comment: What's the benefit to adding PyInterpreterState_GetModuleCache()? TBH, it should only be needed in this short period during startup when the import system hasn't been bootstrapped yet. After that code can import sys and access sys.modules from there.

[issue28411] Eliminate PyInterpreterState.modules.

2016-10-11 Thread Eric Snow
Eric Snow added the comment: Hmm, actually _PyImport_GetModuleDict() isn't needed to solve the startup issue. It's still rather internally focused but the same could be said for PyImport_GetModuleDict(). I guess I'm still not sold on adding a new public API function for wh

[issue28411] Eliminate PyInterpreterState.modules.

2016-10-11 Thread Eric Snow
Eric Snow added the comment: Meh, there really isn't any need for _PyImport_GetModuleDict(). I'll drop it. Problem solved! :) -- ___ Python tracker <http://bugs.python.o

[issue28550] if inline statement does not work with multiple assignment.

2016-10-28 Thread Eric Snow
Eric Snow added the comment: The syntax is working correctly. Precedence rules are throwing you off. It should be more clear if we use parentheses to demonstrate precedence explicitly. You expected: a, b = (obj.a, obj.b) if obj else [None, None] However, what you wrote is equivalent to: a

[issue28550] if inline statement does not work with multiple assignment.

2016-10-31 Thread Eric Snow
Changes by Eric Snow : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue28550> ___ ___ Python-bugs-list mailing list Unsubscrib

<    22   23   24   25   26   27