[issue16961] No regression tests for -E and individual environment vars

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue15376] Refactor the test_runpy walk_package support code into a common location

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-15 Thread Eric Snow
Eric Snow added the comment: New changeset 842a2f07f2f08a935ef470bfdaeef40f87490cfc by Eric Snow in branch 'master': bpo-33608: Deal with pending calls relative to runtime shutdown. (gh-12246) https://github.com/python/cpython/commit/842a2f07f2f08a935ef470bfdaeef40f87490cfc --

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This changes the Ubuntu version in Travis so I would like this decision to be reviewed by core devs who work more closely with buildbot and configs. -- nosy: +pablogsal, vstinner, xtreak, zach.ware ___ Py

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-15 Thread Brett Cannon
Brett Cannon added the comment: (And sorry about stealing this from you, Terry; I forgot to flip the assignment while I was looking into this.) -- ___ Python tracker ___

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue36304] When using bz2 and lzma in mode 'wt', the BOM is not written

2019-03-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +benjamin.peterson, ezio.melotti, lemburg, vstinner ___ Python tracker ___ ___ Python-bugs-list

[issue36300] eval of comprehension cannot access local variables

2019-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: You example is a list comprehension, but no matter. In 3.x, the value of a comprehension is the result of calling a temporary function. Functions access globals and nonlocals but not non-global locals of surrounding contexts. Class locals are an example o

[issue36291] [2.7] Coverity Scan: Modules/_json.c: leaked_storage: Variable "numstr" going out of scope leaks the storage it points to.

2019-03-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- assignee: matrixise -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34464] There are inconsitencies in the treatment of True, False, None, and __debug__ keywords in the docs

2019-03-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @serhiy The issue about the assigment operator is closed https://bugs.python.org/issue36052 could we close this issue? thank you -- ___ Python tracker __

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-15 Thread Brett Cannon
Change by Brett Cannon : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-15 Thread Brett Cannon
Brett Cannon added the comment: Got a patch up if either of you would like to review. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-15 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +12325 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue36287] Make ast.dump() not output optional default fields

2019-03-15 Thread Emmanuel Arias
Emmanuel Arias added the comment: Maybe we can ignore None and [] ? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-15 Thread Brett Cannon
Brett Cannon added the comment: I have a fix en-route. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-15 Thread Brett Cannon
Change by Brett Cannon : -- assignee: terry.reedy -> brett.cannon nosy: -terry.reedy stage: needs patch -> title: Lib/pyclbr.py fails when package spec cannot be determined -> Lib/pyclbr.py crashes when the package spec cannot be determined by importlib versions: -Python 3.8 __

[issue36299] Deprecate 'u' type in array module

2019-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: '4.0' is a stand-in for 'sometime after 2.7.final', scheduled for Jan 2020. A Pending... for 3.8.0, scheduled for Oct 2019, seems reasonable to me. Perhaps we should have a pydev discussion for the general issue of post 2.7 removals of already deprecated i

[issue36287] Make ast.dump() not output optional default fields

2019-03-15 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: We can probably also skip `type_ignores` list if it is empty (which will be the case in 99% situations). -- nosy: +levkivskyi ___ Python tracker __

[issue36211] show full url when execute "make -C Doc/ serve"

2019-03-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: +Mariatta, mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36308] Fix warning in _PyPathConfig_ComputeArgv0

2019-03-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @vstinner I just initialized argv0 to NULL but the wcsrchr could generate a SIGSEGV. What do you suggest for the initial value of argv0? try to detect the sys.executable and use it for argv0? -- stage: patch review -> _

[issue36298] Lib/pyclbr.py fails when package spec cannot be determined

2019-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I finished patching pyclbr to be a complete module class and function browser in summer 2017, for use by IDLE's class browser. I verified the bug with the import API, with a twist. >>> import pyclbr >>> pyclbr.readmodule_ex('>> pyclbr.readmodule_ex('') {}

[issue36308] Fix warning in _PyPathConfig_ComputeArgv0

2019-03-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12324 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36308] Fix warning in _PyPathConfig_ComputeArgv0

2019-03-15 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : Python/pathconfig.c: In function '_PyPathConfig_ComputeArgv0': Python/pathconfig.c:615:26: warning: 'argv0' may be used uninitialized in this function [-Wmaybe-uninitialized] wchar_t *q = wcsrchr(argv0, SEP); ^~

[issue22166] test_codecs leaks references

2019-03-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: For 3.7 and 3.8, I have just tried with this command to find leaks in the test_codec* but nothing :/ ./python -m test -v -l -R 6:6 -u all \ test_codecencodings_iso2022 \ test_codecs \ test_codecmaps_hk test_codecmaps_tw \ test_codecencodings_t

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-15 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: Sure, thing, sorry—I realized I should have added one but apparently couldn't edit my post to include it. [Here's](https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments) a description of the removal of the obsolete sudo: f

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-15 Thread C.A.M. Gerlach
Change by C.A.M. Gerlach : -- keywords: +patch pull_requests: +12323 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue29299] Argument Clinic: Fix signature of optional positional-only arguments

2019-03-15 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Thanks for the explanation. > And *that* would be a lot of code. Would an effort to make inspect support this be appreciated or do you think this is not important? -- nosy: +remi.lapeyre versions: +Python 3.8 ___ Py

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @CAM, do you have a pointer about the deprecated/removed feature in Travis? Thank you -- nosy: +matrixise ___ Python tracker ___

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-15 Thread C.A.M. Gerlach
New submission from C.A.M. Gerlach : Not sure how to categorize this one, or if this should even be a bpo. Currently, the .travis.yml config file still has a sudo: false key, which previously triggered the Container-based environment on Travis. However, that was removed in December 2018, and

[issue30661] Support tarfile.PAX_FORMAT in shutil.make_archive

2019-03-15 Thread C.A.M. Gerlach
Change by C.A.M. Gerlach : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue30661] Support tarfile.PAX_FORMAT in shutil.make_archive

2019-03-15 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: FYI, [GH-12355](https://github.com/python/cpython/pull/12355) will implement pax as default, as discussed in [bpo-36268](https://bugs.python.org/issue36268), which should be equivalent to option 1 here, thus also resolving this issue. Could you confirm that

[issue36268] Change default tar format to modern POSIX 2001 (pax) for better portability/interop, support and standards conformance

2019-03-15 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: PR is up with CI checks green as [GH-12355](https://github.com/python/cpython/pull/12355). I also had to fix one test which implicitly assumed that DEFAULT_FORMAT == GNU_FORMAT. -- ___ Python tracker

[issue36290] _ast.ast_type_init does not handle args and kwargs correctly.

2019-03-15 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +benjamin.peterson, brett.cannon, serhiy.storchaka, yselivanov ___ Python tracker ___ ___ Python-b

[issue34160] ElementTree not preserving attribute order

2019-03-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Diego, Victor indicates that we could propose an option to the user ``` * I cannot see the change documented anywhere in https://docs.python.org/dev/whatsnew/3.8.html * I don't see any simple workaround. It would be nice to add an opt-in option to sort attr

[issue34160] ElementTree not preserving attribute order

2019-03-15 Thread Diego Rojas
Diego Rojas added the comment: Stéphane, According to you PR, I agree that is a good approach give the option to the user if wants sorted or not the attributes. But in this thread, is discussed that there is not necessary and leaves as default that the attributes preserve the order.

[issue36246] csv.writer lineterminator affects csv escaping

2019-03-15 Thread flow2k
flow2k added the comment: Okay, thanks for pointing to the doc. I did not expect the line termination to affect escaping, but I can see why these may be related. Per your comment, I've added quoting=csv.QUOTE_NONNUMERIC. Instead of Excel, I am using Gdocs, and this escaping enables Gsheets

[issue36293] Nonblocking read sys.stdin raises error

2019-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Martin, did you mean to close this as a duplicate? -- nosy: +terry.reedy ___ Python tracker ___ _

[issue29299] Argument Clinic: Fix signature of optional positional-only arguments

2019-03-15 Thread Larry Hastings
Larry Hastings added the comment: Argument Clinic can currently only generate signatures for functions whose signatures can be represented in Python. This is because the signatures are parsed by the inspect module, which in turn uses the ast module to generate a parse tree; it then examines

[issue36266] Which module could not be found?

2019-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Phillip, when responding by email, please removed the quoted email (except possible for a line or 2) as it becomes noise when your email is placed on the web page. You can see the effect on https://bugs.python.org/issue36266 -- nosy: +terry.reedy _

[issue36268] Change default tar format to modern POSIX 2001 (pax) for better portability/interop, support and standards conformance

2019-03-15 Thread C.A.M. Gerlach
Change by C.A.M. Gerlach : -- keywords: +patch pull_requests: +12320 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue30661] Support tarfile.PAX_FORMAT in shutil.make_archive

2019-03-15 Thread C.A.M. Gerlach
Change by C.A.M. Gerlach : -- keywords: +patch pull_requests: +12321 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue34160] ElementTree not preserving attribute order

2019-03-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +12319 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread SilentGhost
Change by SilentGhost : -- superseder: -> Argument Clinic: Fix signature of optional positional-only arguments type: -> behavior ___ Python tracker ___ _

[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Yes you are right, this is actually the same issue. I will try to look for the other attempts Serhiy Storchaka talks about in issue 29299 and ping Larry on this issue. (I can't set the superseeded flag on this issue thought) -- resolution: -> duplicat

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-15 Thread Maor Kleinberger
Maor Kleinberger added the comment: I agree. So I'll open a PR that will: 1. Make the .absolute method return correct values in these cases 2. Add a regression test for this behavior -- ___ Python tracker __

[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread SilentGhost
SilentGhost added the comment: In fact, I don't see anything warranting a separate issue. I'd suggest to close this and perhaps ping Larry instead on the issue 29299 which you mentioned. -- ___ Python tracker _

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 15.03.2019 17:55, Serhiy Storchaka wrote: > Is it for debugging only? No, you can use it to store Unicode object as-is without any encoding/decoding, but after the recent changes to the internals of the Unicode implementation it's not all that useful an

[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread SilentGhost
SilentGhost added the comment: It's the only function with an optional argument in math, on 3.7 all such function result in ValueError, e.g. getattr, iter, max. -- nosy: +SilentGhost ___ Python tracker

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-15 Thread Eryk Sun
Eryk Sun added the comment: > WindowsPath('cc:').absolute() -> WindowsPath('C:/Users/maor/cc:') This is correct. "cc:" is not a drive, i.e. the `drive` attribute is an empty string. pathlib handles this as an unqualified filename that gets resolved relative to the process current working dir

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it for debugging only? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 15.03.2019 17:35, Serhiy Storchaka wrote: > > What is the purpose of the unicode-internal codec at first place? It provides a fast and direct access to the internal representation of Unicode used in Python to the outside world. -- nosy: +lembu

[issue36296] distutils.version.StrictVersion objects cannot be compared with distutils.version.LooseVersionobjects

2019-03-15 Thread Éric Araujo
Éric Araujo added the comment: OK! -- resolution: -> wont fix stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue36296] distutils.version.StrictVersion objects cannot be compared with distutils.version.LooseVersionobjects

2019-03-15 Thread Harry Seeber
Harry Seeber added the comment: I'm using these classes directly to parse semantic-ish versions in metadata for Munki packages (a package manager for MacOS). Looks like this packaging library is what I should use. Thanks you! On Thu, Mar 14, 2019 at 5:32 PM Éric Araujo wrote: > > Éric Araujo

[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : >>> import math, inspect >>> inspect.signature(math.log) Traceback (most recent call last): File "", line 1, in File "/Users/remi/src/cpython/Lib/inspect.py", line 3081, in signature return Signature.from_callable(obj, follow_wrapped=follow_wrapped) F

[issue36304] When using bz2 and lzma in mode 'wt', the BOM is not written

2019-03-15 Thread Gianluca
Gianluca added the comment: As one can read in the stackoverflow answer, using _pyio.TextIOWrapper works as expected. So it looks like this is a bug of _io.TextIOWrapper. -- ___ Python tracker _

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the purpose of the unicode-internal codec at first place? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue36127] Argument Clinic: inline parsing code for functions with keyword parameters

2019-03-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +12318 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2019-03-15 Thread Maor Kleinberger
New submission from Maor Kleinberger : The behavior of WindowsPath is undefined when used with drive paths, specifically with no trailing slash: WindowsPath('cc:').absolute() -> WindowsPath('C:/Users/maor/cc:') WindowsPath('c:').absolute() -> WindowsPath('c:') WindowsPath('c:').is_absolute()

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12317 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-15 Thread Steve Dower
Steve Dower added the comment: > :-) I assume as we're at rc1, it's too late for 3.7.3, but it could be aimed > at 3.7.4. I might try to have a look at it if no-one else does. If Ned's okay with cherry-picking the change I have no problems with taking it still. It's just a default option cha

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12316 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36303] Trying to change values (fe. "To", "From") of email.mime.text.MIMEText after initial assigment silently doesn't change them.

2019-03-15 Thread Łukasz
Łukasz added the comment: Ok, so this is not a bug, I must missed this information in documentation. In my defense this usage of `__getitem__` and `__setitem__` feels a little bit counter-intuitive. Sorry bothering. -- resolution: -> not a bug stage: -> resolved status: open -> clo

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6c0e0d141a07cc3fd2441d9df8d762f56bf7edf2 by Victor Stinner in branch '3.7': bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12348) https://github.com/python/cpython/commit/6c0e0d141a07cc3fd2441d9df8d762f56bf7edf2 ---

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset e3f4070aee6f2d489416fdcafd51d6b04d661919 by Victor Stinner in branch 'master': bpo-33608: Fix PyEval_InitThreads() warning (GH-12346) https://github.com/python/cpython/commit/e3f4070aee6f2d489416fdcafd51d6b04d661919 -- ___

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 37f6971777c05b5ca9c157606896b7ff458756a5 by Victor Stinner in branch '2.7': bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12349) https://github.com/python/cpython/commit/37f6971777c05b5ca9c157606896b7ff458756a5 ---

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 625997622b4736e9184bdd8bf1e22a7b51be1afc by Victor Stinner in branch 'master': bpo-36301: _PyCoreConfig_Read() ensures that argv is not empty (GH-12347) https://github.com/python/cpython/commit/625997622b4736e9184bdd8bf1e22a7b51be1afc

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-15 Thread Paul Moore
Paul Moore added the comment: :-) I assume as we're at rc1, it's too late for 3.7.3, but it could be aimed at 3.7.4. I might try to have a look at it if no-one else does. -- ___ Python tracker _

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12315 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12314 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12313 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 74f6568bbd3e70806ea3219e8bacb386ad802ccf by Victor Stinner in branch 'master': bpo-36301: Add _PyWstrList structure (GH-12343) https://github.com/python/cpython/commit/74f6568bbd3e70806ea3219e8bacb386ad802ccf -- __

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12312 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36127] Argument Clinic: inline parsing code for functions with keyword parameters

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12311 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 86082c22d23285995a32aabb491527c9f5629556 by Victor Stinner in branch 'master': bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) https://github.com/python/cpython/commit/86082c22d23285995a32aabb491527c9f5629556 -- ___

[issue36303] Trying to change values (fe. "To", "From") of email.mime.text.MIMEText after initial assigment silently doesn't change them.

2019-03-15 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Here's how you can rewrite your code so it is more explicit: Python 3.7.2 (default, Feb 12 2019, 08:15:36) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from email.mime.text import MIMETex

[issue36303] Trying to change values (fe. "To", "From") of email.mime.text.MIMEText after initial assigment silently doesn't change them.

2019-03-15 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I think this is the expected behavior, see https://docs.python.org/3.4/library/email.message.html#email.message.Message.__getitem__ for details: > Note that if the named field appears more than once in the message’s headers, > exactly which of those field valu

[issue36304] When using bz2 and lzma in mode 'wt', the BOM is not written

2019-03-15 Thread Gianluca
New submission from Gianluca : When bz2 and lzma files are used in writing text mode (wrapped in a TextIOWrapper), the BOM of encodings such as utf-16 and utf-32 is not written. The gzip package works as expected (it writes the BOM). The code that demonstrate this behavior (tested with Python

[issue36303] Trying to change values (fe. "To", "From") of email.mime.text.MIMEText after initial assigment silently doesn't change them.

2019-03-15 Thread Łukasz
New submission from Łukasz : Script reproducing this behavior: ```python3 from email.mime.text import MIMEText msg = MIMEText('', 'html') msg["To"] = "this.email.shouldnt.be.prin...@nokia.com" msg["To"] = "valid.em...@nokia.com" print(msg["To"]) ``` stdout: ``` this.email.shouldnt.be.prin...@no

[issue36303] Trying to change values (fe. "To", "From") of email.mime.text.MIMEText after initial assigment silently doesn't change them.

2019-03-15 Thread Łukasz
Change by Łukasz : -- components: email nosy: Fotoblysk, barry, r.david.murray priority: normal severity: normal status: open title: Trying to change values (fe. "To", "From") of email.mime.text.MIMEText after initial assigment silently doesn't change them. type: behavior versions: Pyth

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-15 Thread Steve Dower
Steve Dower added the comment: Yeah, someone still has to send a PR :) -- keywords: +easy stage: -> needs patch versions: +Python 3.7 ___ Python tracker ___ _

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12310 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36300] eval of generator expressions cannot access local variables

2019-03-15 Thread Emmanuel Arias
Emmanuel Arias added the comment: I don't know if this a bug for py3 or py2 because the the w variable is not defined on the list comprehension context. Maybe the locals on `eval` must be create w on locals context -- type: -> behavior versions: +Python 2.7 _

[issue36297] Remove unicode_internal codec

2019-03-15 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12309 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue36302] distutils creates unreproducible .so files

2019-03-15 Thread Bernhard M. Wiedemann
Change by Bernhard M. Wiedemann : -- keywords: +patch pull_requests: +12308 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36302] distutils creates unreproducible .so files

2019-03-15 Thread Bernhard M. Wiedemann
New submission from Bernhard M. Wiedemann : While working on reproducible builds for openSUSE, I found countless python modules that come with binary .so files that did not build reproducibly from non-deterministic filesystem readdir order. One contributing factor is bpo-30461 that will not b

[issue36301] Add _Py_PreInitialize() function

2019-03-15 Thread STINNER Victor
New submission from STINNER Victor : Follow-up of bpo-36142, add _Py_PreInitialize() function to "pre-initialize" Python: * initialize memory allocators * initialize LC_CTYPE locale and UTF-8 Mode Py_Initialize() should also be modified to no longer coerce the C locale or enable the UTF-8 Mo

[issue36300] eval of generator expressions cannot access local variables

2019-03-15 Thread Emmanuel Arias
Emmanuel Arias added the comment: I test it on 3.7 and 3.8 and have the same problem -- nosy: +eamanu versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue36300] eval of generator expressions cannot access local variables

2019-03-15 Thread Martin Hosken
Change by Martin Hosken : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36300] eval of generator expressions cannot access local variables

2019-03-15 Thread Martin Hosken
New submission from Martin Hosken : The following code fails: >>> lcls = {'w': 100} >>> eval('[w for x in ("hello", "world")]', None, lcls) Traceback (most recent call last): File "", line 1, in File "", line 1, in File "", line 1, in NameError: name 'w' is

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-15 Thread Eryk Sun
Eryk Sun added the comment: > Is this only targeted at 3.8, then? Steve said he was okay with adding it in 3.7.3, but it hasn't been added yet in 3.7.3-rc1. In msg337949 I linked to the 3.7.3-rc1 version of options.py, line 54, where "venv" would need to be added to the nuget "options" list.

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-15 Thread Paul Moore
Paul Moore added the comment: Hmm, I see that the Versions tag here is 3.8. Is this only targeted at 3.8, then? -- ___ Python tracker ___

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-15 Thread Paul Moore
Paul Moore added the comment: Apparently, this is not in 3.7.3-rc1: >nuget install python -version 3.7.3-rc1 Feeds used: C:\Users\\.nuget\packages\ https://api.nuget.org/v3/index.json Attempting to gather dependency information for package 'python.3.7.3-rc1' with respect to project

[issue36297] Remove unicode_internal codec

2019-03-15 Thread STINNER Victor
STINNER Victor added the comment: I found: * _PyUnicode_DecodeUnicodeInternal() * _codecs.unicode_internal_decode() * _codecs.unicode_internal_encode() * Lib/encodings/unicode_internal.py Files which contain "unicode_internal": Doc/library/codecs.rst Doc/whatsnew/3.3.rst Lib/encodings/unicod

[issue34033] distutils is not reproducible

2019-03-15 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: unreproducible .pyc files are still one of the major headaches for my work on openSUSE reproducible builds. There is also one aspect where i586 builds end up with different .pyc files than x86_64 builds. And then we randomly chose one of them for our

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-15 Thread Matthias Klose
Matthias Klose added the comment: seen in Ubuntu 19.04 as well. Started after the openssl update form 1.1.1 to 1.1.1b. -- nosy: +doko ___ Python tracker ___ _

[issue36294] `io.BufferedIOBase` returns `None`

2019-03-15 Thread Martin Panter
Martin Panter added the comment: The general problem of non-blocking reads with BufferedIOBase is covered by Issue 13322. The documentation and implementations do not agree. I suggest to not rely on any particular behaviour reading BufferedIOBase objects in non-blocking mode. The problem of

[issue36293] Nonblocking read sys.stdin raises error

2019-03-15 Thread Martin Panter
Martin Panter added the comment: This is the same story as in Issue 35762. Both “sys.stdin” and “subprocess.Popen.stderr” (when universal_newlines=True is enabled) use the TextIOWrapper class, which I don’t think was implemented with non-blocking mode in mind. Issue 24560 is similar, but is

[issue25476] close() behavior on non-blocking BufferedIO objects with sockets

2019-03-15 Thread Martin Panter
Change by Martin Panter : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-15 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list U

<    1   2   3