[issue29594] implementation of __or__ in enum.auto

2017-02-17 Thread Marc Guetg
Changes by Marc Guetg : -- title: implement __or__ in enum.auto -> implementation of __or__ in enum.auto ___ Python tracker ___

[issue29549] Improve docstring for str.index

2017-02-17 Thread Sanyam Khurana
Changes by Sanyam Khurana : -- pull_requests: +107 ___ Python tracker ___ ___

[issue29521] Minor warning messages when compiling documentation

2017-02-17 Thread Amit Kumar
Changes by Amit Kumar : -- pull_requests: +106 ___ Python tracker ___ ___

[issue29556] Remove unused #include

2017-02-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg288058 ___ Python tracker ___

[issue29548] Recommend PyObject_Call* APIs over PyEval_Call*() APIs

2017-02-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg288059 ___ Python tracker ___

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg288060 ___ Python tracker ___

[issue29576] Improve some deprecations in the importlib

2017-02-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg288061 ___ Python tracker ___

[issue29026] time.time() documentation should mention UTC timezone

2017-02-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg288063 ___ Python tracker ___

[issue29521] Minor warning messages when compiling documentation

2017-02-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg288062 ___ Python tracker ___

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-02-17 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list

[issue29576] Improve some deprecations in the importlib

2017-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 1d4601c2c6952d03fc4dda2b041be9aa8713c0bc by Brett Cannon in branch 'ncoghlan-devguide-link': bpo-29576: add explicit deprecation for importlib.abc.find_loader() and find_module() (GH-32)

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 36da1c3589e1bc4246cccf6bd0094a110416a43a by GitHub in branch 'ncoghlan-devguide-link': bpo-29481: add versionadded 3.6.1 to typing.Deque docs (#107) https://github.com/python/cpython/commit/36da1c3589e1bc4246cccf6bd0094a110416a43a --

[issue29026] time.time() documentation should mention UTC timezone

2017-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 23557d59b819f57800ddef0b1373acef8e024670 by Victor Stinner in branch 'ncoghlan-devguide-link': bpo-29026: Clarify documentation of time.time (#34) https://github.com/python/cpython/commit/23557d59b819f57800ddef0b1373acef8e024670 -- nosy:

[issue29548] Recommend PyObject_Call* APIs over PyEval_Call*() APIs

2017-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 72dccde884d89586b0cafd990675b7e21720a81f by GitHub in branch 'ncoghlan-devguide-link': bpo-29548: Fix some inefficient call API usage (GH-97) https://github.com/python/cpython/commit/72dccde884d89586b0cafd990675b7e21720a81f -- nosy:

[issue29556] Remove unused #include

2017-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 72e81d00eee685cfe33aaddf2aa9feef2d07591f by Victor Stinner in branch 'ncoghlan-devguide-link': bpo-29556: Remove unused #include (#98) https://github.com/python/cpython/commit/72e81d00eee685cfe33aaddf2aa9feef2d07591f -- nosy: +ncoghlan

[issue29521] Minor warning messages when compiling documentation

2017-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 85064db281545d587992df61154e76439138319f by Victor Stinner in branch 'ncoghlan-devguide-link': bpo-29521 update Misc/ACKS (#106) https://github.com/python/cpython/commit/85064db281545d587992df61154e76439138319f -- nosy: +ncoghlan

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: PR 136 now adds `sys._framework` and 'PYTHONFRAMEWORK' macro in pyconfig.h. -- ___ Python tracker ___

[issue29571] test_re is failing when local is set for `en_IN`

2017-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: I have a few folks hitting this at the PyCon Pune sprints, so I'm going to apply Serhiy's patch :) -- assignee: serhiy.storchaka -> ncoghlan nosy: +ncoghlan ___ Python tracker

[issue28087] macOS 12 poll syscall returns prematurely

2017-02-17 Thread Nick Coghlan
Nick Coghlan added the comment: The failures in test_eintr and test_asyncio are confusing new contributors on Mac OS X - could we get some variant of this workaround merged until Apple fix their bug? -- nosy: +ncoghlan ___ Python tracker

[issue18861] Problems with recursive automatic exception chaining

2017-02-17 Thread Nathaniel Smith
Changes by Nathaniel Smith : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list

[issue29561] Interactive mode gives sys.ps2 not sys.ps1 after comment-only line

2017-02-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: If src is effectively blank, compile(src, filename, mode) raises SyntaxError if mode is 'single' but not if it is 'exec'. I believe IDLE compiles with 'single', but it has the behavior Jim (and I) expect and consider correct, printing '>>>' after effectively

[issue29592] abs_paths() in site.py is slow

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: $ python2 -S Python 2.7.12+ (default, Sep 17 2016, 12:08:02) [GCC 6.2.0 20160914] on linux2 >>> import x >>> x.__file__ 'x.py' $ python3 -S Python 3.6.0 (default, Dec 30 2016, 20:49:54) [GCC 6.2.0 20161005] on linux >>> import x >>> x.__file__

[issue29592] abs_paths() in site.py is slow

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap_external.py#L1089-L1095 While '' in sys.path, it is converted to `getcwd()` before calling PathHook. Is there any chance relative / not normalized path is in sys.path before site is loaded?

[issue29580] "Built-in Functions" not being functions

2017-02-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with the other respondents and am going to mark this as closed. -- nosy: +rhettinger resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue29560] Turtle graphics fill behavior differs between versions

2017-02-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that there is a known difference between tk on Windows and linux with respect to filling of even and odd areas. If I understand correctly, you saw one behavior on Windows and the other on Linux. If so, this is not a bug in tkinter. --

[issue29592] abs_paths() in site.py is slow

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: path normalization was added by https://github.com/python/cpython/commit/38cb9f1f174415d3b37fbaeb5d152d65525839d2 -- ___ Python tracker

[issue5945] PyMapping_Check returns 1 for lists

2017-02-17 Thread James R Barlow
Changes by James R Barlow : -- pull_requests: +105 ___ Python tracker ___ ___

[issue29596] Unfinished sentense in howto/clinic.rst

2017-02-17 Thread Matthias Bussonnier
New submission from Matthias Bussonnier: Around line 1400 of Doc/howto/clinic.rst ``two-pass`` A buffer like ``buffer``. However, a two-pass buffer can only be written once, and it prints out all text sent to it during all of processing, even from Clinic blocks *after* the I've

[issue29453] Remove reference to undefined dictionary ordering in Tutorial

2017-02-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: >> But maybe it is worth to mention that the output >> corresponds to the order of passed keyword arguments > Should I add this note? Yes, please. This is a section on keyword arguments, making it the preferred place to mention the new guaranteed

[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322

2017-02-17 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, Could someone put this ticket on "waiting for review"? Regards, Eric Lafontaine -- ___ Python tracker ___

[issue6721] Locks in the standard library should be sanitized on fork

2017-02-17 Thread Camilla Montonen
Changes by Camilla Montonen : -- nosy: +Winterflower ___ Python tracker ___ ___

[issue29247] Document return value of epoll.poll

2017-02-17 Thread Camilla Montonen
Changes by Camilla Montonen : -- nosy: +Winterflower ___ Python tracker ___ ___

[issue29575] doc 17.2.1: basic Pool example is too basic

2017-02-17 Thread Camilla Montonen
Camilla Montonen added the comment: Would you like to open a PR with a patch on GH? I think the docs could certainly do with another example for Pool. -- nosy: +Winterflower ___ Python tracker

[issue19675] Pool dies with excessive workers, but does not cleanup

2017-02-17 Thread Camilla Montonen
Camilla Montonen added the comment: Would it be possible to see a review of the existing attempts at testing this issue? -- ___ Python tracker ___

[issue29595] Expose max_queue_size in ThreadPoolExecutor

2017-02-17 Thread prayerslayer
New submission from prayerslayer: Hi! I think the ThreadPoolExecutor should allow to set the maximum size of the underlying queue. The situation I ran into recently was that I used ThreadPoolExecutor to parallelize AWS API calls; I had to move data from one S3 bucket to another (~150M

[issue29579] Windows Python 3.7 installer broken by README.txt renamed to README.rst

2017-02-17 Thread Steve Dower
Steve Dower added the comment: I don't think that removing the readme.txt from the install constitutes a breaking change (LICENSE would be a bigger deal), and removing the file from the installer sounds simpler than updating the readme. Also, if you choose the 3.6 branch from the GitHub page

[issue29593] Improve UnboundLocalError message for deleted names

2017-02-17 Thread Martin Panter
Martin Panter added the comment: Matthias’s proposal sounds reasonable to me. There is a minor disadvantage that it will exceed the width of an 80-character terminal: UnboundLocalError: local variable 'x' referenced before assignment, or got delet ed But I don’t think the wrapping is a big

[issue29579] Windows Python 3.7 installer broken by README.txt renamed to README.rst

2017-02-17 Thread Zachary Ware
Zachary Ware added the comment: There were significant corrections to the README in that backport that should not be lost if we do de-restify the 3.6 readme. -- ___ Python tracker

[issue29579] Windows Python 3.7 installer broken by README.txt renamed to README.rst

2017-02-17 Thread STINNER Victor
STINNER Victor added the comment: Steve> Anyone know how far the change has been backported? Ah, it seems like the README.txt => README.rst change was backported: commit 1e8cc88a48a049b064f786bb4b97ea60b70dc504. Since it breaks the Windows installer, I suggest to revert this change. FYI my

[issue29593] Improve UnboundLocalError message for deleted names

2017-02-17 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > makes the error message longer Out of curiosity is there a guide as to what is considered a too long error message ? Or is there a technical reason like after a certain length strings are not cached and exception will be slower to construct ? I'm

[issue29579] Windows Python 3.7 installer broken by README.txt renamed to README.rst

2017-02-17 Thread Zachary Ware
Zachary Ware added the comment: So far, to 3.6. I don't really expect it to move back to 3.5, and 2.7's README is its own mess. -- ___ Python tracker

[issue29579] Windows Python 3.7 installer broken by README.txt renamed to README.rst

2017-02-17 Thread Steve Dower
Steve Dower added the comment: Okay. Unless someone volunteers to write a Windows specific one, I'll make the change to the installer to leave it out. Anyone know how far the change has been backported? -- ___ Python tracker

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Steve Dower
Steve Dower added the comment: Depending on why the pip install failed, we may still have registered that it was installed. IIRC, we only trigger the install on a state change, which wouldn't happen in repair. That deserves its own bug (though maybe this one will suffice if we figure out the

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Eryk Sun
Eryk Sun added the comment: The original install failed with the status code STATUS_DLL_NOT_FOUND (0xC135), as reported in "Python 3.5.3 (32-bit)_20170217102132_008_pip_JustForMe.log": MSI (s) (88:D8) [10:22:59:574]: Executing op: ActionStart(Name=UpdatePip,,) MSI (s) (88:D8)

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2017-02-17 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +103 ___ Python tracker ___

[issue29593] Improve UnboundLocalError message for deleted names

2017-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Adding "or got deleted" makes the error message longer, and since "del" is rarely used for deleting local variables I afraid that it can add confusion in most cases. The "del" statement is not the only way to unset the local variable. >>> def foo(): ...

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list

[issue29593] Improve UnboundLocalError message for deleted names

2017-02-17 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Wouldn't be better to say just "local variable 'xxx' is not set"? Thank you for responding that fast and for your interest in this issue. While I think that "local variable 'xxx' is not set" is technically correct, I think it would be a step back.

[issue29565] Still broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2017-02-17 Thread Eryk Sun
Eryk Sun added the comment: This issue is more straight-forward than #22273. ISTM, we just have to copy large values. For example, in ffi_call, we'd iterate over the arguments and alloca and memcpy the large values prior to calling ffi_call_AMD64: case FFI_SYSV: /* If a single

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since core developers have different opinions about this issue, it should be discussed on the Python-Dev maillist until one side convince the other side or BDFL make his decision. Personally I dislike any complication of json API. Likely it is already the

[issue29594] implement __or__ in enum.auto

2017-02-17 Thread Marc Guetg
New submission from Marc Guetg: At the moment it is only possible to combine flags that already exist: from enum import * class Foo(Flag): A = auto() # 1 B = auto() # 2 AB = A | B # 3 (1 | 2) AC = auto() | A # Fails, but should be 5 (1 | 4) ABD = auto() | A |

[issue29579] Windows Python 3.7 installer broken by README.txt renamed to README.rst

2017-02-17 Thread Ned Deily
Ned Deily added the comment: FWIW, we do not include the top-level README in the macOS installer package. Instead, we supply Mac-installer specific Welcome and Readme files that are displayed by the macOS Installer app during the installation process and the installer Readme is also

[issue29549] Improve docstring for str.index

2017-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: str.index() still is not converted to Argument Clinic (this is not easy). The docstring needs to be rewritten when convert it to Argument Clinic in any case. It would be nice to make it Argument Clinic compatible right now. The first line line should be

[issue29546] A more helpful ImportError message

2017-02-17 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-17 Thread Ben Hoyt
Ben Hoyt added the comment: I agree with the confusion (PR proposes separators=COMPACT, issue compact=True). I like the concept but not either of the APIs proposed. I *much* more often want to get pretty output -- if I had a dime for every time I've written "json.dumps(obj, sort_keys=True,

[issue29581] __init_subclass__ causes TypeError when used with standard library metaclasses (such as ABCMeta)

2017-02-17 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue29549] Improve docstring for str.index

2017-02-17 Thread Ben Hoyt
Ben Hoyt added the comment: Good call. Additionally, it's weird to me that the docstring for str.find() says "Return -1 on failure." because the string not being found is not a "failure". Like the docs (https://docs.python.org/3.5/library/stdtypes.html#str.find) say, the str.find() docstring

[issue29593] Improve UnboundLocalError message for deleted names

2017-02-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wouldn't be better to say just "local variable 'xxx' is not set"? -- components: +Interpreter Core nosy: +martin.panter, r.david.murray, rhettinger, serhiy.storchaka ___ Python tracker

[issue29593] Improve UnboundLocalError message for deleted names

2017-02-17 Thread Matthias Bussonnier
New submission from Matthias Bussonnier: Raymond Hettinger reported during PyCon Canada 2016 Keynote (~20m30 sec) that unbound local error message was inaccurate, it state that : > local variable 'xxx' referenced before assignment Though it can be assigned and deleted. for a toy example:

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Adrian Chan
Adrian Chan added the comment: Install logs attached. First set from initial install, second set from repair. -- Added file: http://bugs.python.org/file46645/py_install_logs.tar.gz ___ Python tracker

[issue26788] test_gdb fails all tests on a profile-opt build configured --with-lto

2017-02-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: there may be something in sysconfig.get_config_vars() we could use or, better, we could add something specific to indicate both pgo and lto builds. -- ___ Python tracker

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: I create #29592 for abs_paths(). Let's focus on sysconfig in this issue. PR 136 ports really needed part of sysconfig into site.py already. 'PYTHONFRAMEWORK' on macOS is the only variable we need import from sysconfig. Adding `site.cfg` like `pyvenv.cfg` make

[issue29592] abs_paths() in site.py is slow

2017-02-17 Thread INADA Naoki
New submission from INADA Naoki: abs_paths() is the another most slow parts of site module. We can speedup it if we have C implementation of os.path.abspath() or abs_paths(). But before trying it, is abs_paths() really needed for now? It only rewrite `__file__` and `__cached__` of modules

[issue29591] Various security vulnerabilities in bundled expat

2017-02-17 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: -> christian.heimes components: +XML stage: -> needs patch versions: -Python 3.3, Python 3.4 ___ Python tracker

[issue29591] Various security vulnerabilities in bundled expat

2017-02-17 Thread Christian Heimes
Christian Heimes added the comment: CVE-2016-0718 and CVE-2016-4472 might be relevant for Python. CVE-2016-5300 and CVE-2012-6702 are irrelevant. As Victor already pointed out, Python seeds libexpat from a good CPRNG. -- ___ Python tracker

[issue29591] Various security vulnerabilities in bundled expat

2017-02-17 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue29591] Various security vulnerabilities in bundled expat

2017-02-17 Thread STINNER Victor
STINNER Victor added the comment: You may want to look also at https://pypi.python.org/pypi/defusedxml -- ___ Python tracker ___

[issue29591] Various security vulnerabilities in bundled expat

2017-02-17 Thread STINNER Victor
STINNER Victor added the comment: > CVE-2012-6702 (issue 519) > Resolve troublesome internal call to srand that was introduced with Expat > 2.1.0 when addressing CVE-2012-0876 (issue 496) https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-6702 Extract of Modules/pyexpat.c: --- #if

[issue29579] Windows Python 3.7 installer broken by README.txt renamed to README.rst

2017-02-17 Thread Zachary Ware
Zachary Ware added the comment: Another option acceptable to me would be to simply leave out the readme entirely. I wasn't even aware it was included until this issue came up :) -- ___ Python tracker

[issue29591] Various security vulnerabilities in bundled expat

2017-02-17 Thread Natanael Copa
New submission from Natanael Copa: cpython bundles expat in Modules/expat/ and needs to be updated to expat-2.2.0 to fix various security vulnerabilities. 21 June 2016, Expat 2.2.0 released. Release 2.2.0 includes security & other bug fixes. Security fixes CVE-2016-0718 (issue 537) Fix crash

[issue29579] Windows Python 3.7 installer broken by README.txt renamed to README.rst

2017-02-17 Thread Zachary Ware
Zachary Ware added the comment: With the exception of the Travis and Codecov badges, `rst2html README.rst` produces a nicely self-contained HTML readme. However, I'm not sure how useful that readme is on Windows. Perhaps we should draft a new, simple readme for inclusion in the Windows

[issue28637] Python startup performance regression

2017-02-17 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

Re: [issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread M.-A. Lemburg
On 17.02.2017 13:06, STINNER Victor wrote: >> Alternatively, sysconfig data could be made available via a C lookup >> function; with the complete dictionary only being created on demand. >> get_config_var() already is such a lookup API which could be used as >> front-end. > > I don't think

[issue25612] nested try..excepts don't work correctly for generators

2017-02-17 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-17 Thread STINNER Victor
STINNER Victor added the comment: Thank you for your check! Good to know that it works on Android. Chi Hsuan Yen added the comment: > I know little about the C API. Just a question: isn't > PyImport_ImportModuleNoBlock deprecated? I am not aware of any deprecation:

[issue29590] Incorrect stack traces when re-entering a generator/coroutine stack via .throw()

2017-02-17 Thread Nathaniel Smith
New submission from Nathaniel Smith: The attached script sets up a stack of generators calling each other via 'yield from': f yields from g yield from h. Then the generator at the bottom of the stack yields. Before they yield, sys._getframe shows the expected stack (or if you put in

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Eryk Sun
Eryk Sun added the comment: If you have the 3.5 installation logs in your %TEMP% directory, please zip them up and attach them to this issue. -- ___ Python tracker

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Adrian Chan
Adrian Chan added the comment: It's all working fine now, thanks. If one of the installer/windows guys wants to dig more into why this didn't install properly I'm happy to run things in my environment as necessary. -- ___ Python tracker

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Eryk Sun
Eryk Sun added the comment: pip should be installed in site-packages, which for you is "C:\Python\Python35-32\Lib\site-packages". Try manually running ensurepip to make sure pip is installed: python -m ensurepip --verbose --upgrade --default-pip --

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-17 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here are test results for PR 53: shell@ASUS_Z00E_2:/data/local/tmp $ python3.7m -m test -u curses test_curses Run tests sequentially 0:00:00 [1/1] test_curses 1 test OK. Total duration: 1 sec Tests result: SUCCESS abcshell@ASUS_Z00E_2:/data/local/tmp $ I know

[issue29589] test_asyncio & test_multiprocessing_forkserver failed

2017-02-17 Thread Dima Zhukov
New submission from Dima Zhukov: Hi, i'm new to Python. Just have downloded source code and tried to install it, but "make test" failed 2 test: test_asyncio and test_multiprocessing_forkserver. How bad is it and what should i do? Logs attached -- components: Build files:

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Adrian Chan
Adrian Chan added the comment: Thanks, but I know how to drive a terminal ;) Your hunch was basically correct though. I ran again with `python -v -m pip` (see with_pip_dir.txt), and see that python is attempting to import pip from my user directory (C:\Users\amc2\pip). This is an empty

[issue29583] Python 3.6 won't install on Windows 2012 R2

2017-02-17 Thread Eryk Sun
Eryk Sun added the comment: That's good news. As far as I can see, there isn't anything Python's installer can do if the CRT update fails for reasons beyond our control, so I'm closing this as a 3rd party issue. Thank you for the report. -- resolution: -> third party stage: ->

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Eryk Sun
Eryk Sun added the comment: That error looks like __init__.py[c] was left in "C:\python27\lib\site-packages\pip". Just to be sure, since I don't know what you did to clear the value, please run `set PYTHONPATH=` to clear the value for the current shell. Then try `python -m pip`. When you

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: no-site python_startup_no_site: Median +- std dev: 9.13 ms +- 0.02 ms default: python_startup: Median +- std dev: 15.6 ms +- 0.0 ms GH-136 + skip abs_paths(). python_startup: Median +- std dev: 14.2 ms +- 0.0 ms profile of GH-136 + skip abs_paths():

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: FYI, here is profile of site: https://gist.github.com/methane/1f1fe4385dad84f03eb429359f0f917b -- ___ Python tracker ___

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread Christian Heimes
Christian Heimes added the comment: Instead of _site, would it make sense to include the four vars in sys, perhaps as named structure like sys.flags? -- ___ Python tracker

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Adrian Chan
Adrian Chan added the comment: There is no traceback, that is the entirety of the output of the command. Python bin is C:\Python\Python35-32\python.exe PYTHONHOME is not set. PYTHONPATH is C:\python27\lib\site-packages\ I don't know why PYTHONPATH was set. I cleared it but it made no

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread STINNER Victor
STINNER Victor added the comment: Marc-Andre Lemburg added the comment: > I don't think rewriting party of site.py in C is a good idea. It's a rather > maintenance intense module. > > However, optimizing access is certainly something that's possible, e.g. by > placing the few variables that

[issue25612] nested try..excepts don't work correctly for generators

2017-02-17 Thread Nathaniel Smith
Nathaniel Smith added the comment: (Issue 29587 is a duplicate of this one, but it has some more information on where the !throwflag check came from and why it might be possible to remove it now.) -- ___ Python tracker

[issue25612] nested try..excepts don't work correctly for generators

2017-02-17 Thread Nathaniel Smith
Nathaniel Smith added the comment: I read the patch but I don't understand the logic behind it :-). Why should the value of tstate->exc_type affect whether we save/restore exc_info? Won't this mean that things are still broken for code like: - def f(): try: raise KeyError

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Eryk Sun
Eryk Sun added the comment: Please provide the complete traceback. Copy and paste it from the command prompt. Also, include the fully-qualified path for what "python" runs, e.g. run `where python` in the command prompt. Also, include the value of the environment variables PYTHONHOME and

[issue25683] __context__ for yields inside except clause

2017-02-17 Thread Nathaniel Smith
Nathaniel Smith added the comment: I disagree with the stated reason for closing this, because in general, implicit context chaining doesn't care about where the exception was instantiated, only where it was raised. For example: - err = ValueError() try: raise KeyError except

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2017-02-17 Thread Martin Panter
Martin Panter added the comment: The second example seems like the original complaint in Issue 25612. That spawned a separate bug related to the first situation, which was later closed: Issue 25683. -- nosy: +martin.panter type: -> behavior ___

[issue29588] importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined

2017-02-17 Thread Christian Heimes
Christian Heimes added the comment: The _ssl extension module always defines and exports PROTOCOL_TLS. The name is always available. I guess you somehow mixed a new ssl.py with an old _ssl.so. Please verify that _ssl is correct and defines the name. --

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I don't think rewriting party of site.py in C is a good idea. It's a rather maintenance intense module. However, optimizing access is certainly something that's possible, e.g. by placing the few variables that are actually needed by site.py into a

[issue29588] importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined

2017-02-17 Thread Jeroen Demeyer
New submission from Jeroen Demeyer: This is a regression introduced in Python 2.7.13: Importing the ssl module can fail with >>> import ssl Traceback (most recent call last): File "", line 1, in File "/Users/jdemeyer/sage/local/lib/python/ssl.py", line 133, in PROTOCOL_SSLv23 =

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: Christian: I'm using macOS on office and Linux on home. sysconfig is imported even on Linux https://github.com/python/cpython/blob/master/Lib/site.py#L247-L248 https://github.com/python/cpython/blob/master/Lib/site.py#L263-L271 --

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2017-02-17 Thread Nathaniel Smith
New submission from Nathaniel Smith: Example 1: --- def f(): try: raise KeyError except Exception: yield gen = f() gen.send(None) gen.throw(ValueError) - Output: Traceback (most recent call last): File "", line 1, in File "", line 5, in f

[issue29586] Cannot run pip in fresh install of py 3.5.3

2017-02-17 Thread Adrian Chan
New submission from Adrian Chan: I uninstalled python 2.7 and 3.4, then performed a fresh install of 3.5.3. Running pip with `python -m pip` as per https://docs.python.org/3.5/installing gives the following error: C:\Python\Python35-32\python.exe: No module named pip.__main__; 'pip' is a

  1   2   >