[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-06-04 Thread Michał Górny
Changes by Michał Górny : -- keywords: +patch Added file: http://bugs.python.org/file43231/0001-distutils-make-OO-enable-both-opt-1-and-opt-2-optimi.patch ___ Python tracker ___

[issue27188] sqlite3 execute* methods return value not documented

2016-06-04 Thread SilentGhost
SilentGhost added the comment: Thanks for the patch, Dave. For whatever reason it doesn't seem to apply cleanly to the current tip, would you mind preparing a new patch that does? -- assignee: -> docs@python components: +Documentation nosy: +SilentGhost, berker.peksag, docs@python, gha

[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-06-04 Thread Martin Panter
Martin Panter added the comment: Here is a patch which I propose to use that factors out a set_inflate_zdict() function. I think this will help with maintainence, e.g. if someone changes the UINT_MAX checking, but forgets that there are two places than need changing. Let me know if that is oka

[issue25738] http.server doesn't handle RESET CONTENT status correctly

2016-06-04 Thread Martin Panter
Martin Panter added the comment: Sorry to be a pain, but I think the new logic for HEAD is wrong. See review. -- ___ Python tracker ___ __

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2016-06-04 Thread Michał Górny
New submission from Michał Górny: Since 3.5, optimized Python modules for -O and -OO are installed using different names. The Python build system itself seems to been prepared for this as Python itself is built with both .opt-1.pyc and .opt-2.pyc files built. However, distutils at the moment c

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-06-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks for the feedback. This patch instead exposes the code as a tuple of integers named __pattern_code__. "Bytecode" is technically inaccurate since the code isn't limited to bytes but can contain larger integers. -- Added file: http://bugs.python.or

[issue21916] Create unit tests for turtle textonly

2016-06-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks, this patch addresses your comments. -- Added file: http://bugs.python.org/file43228/issue21916-more-cr.patch ___ Python tracker ___

[issue27202] make doctest fails on 2.7 release notes

2016-06-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Addressed the problem with the previous commit. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue27202] make doctest fails on 2.7 release notes

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 378c1d09b256 by Senthil Kumaran in branch '3.5': issue27202 - Fix the mistake in changesets 70af472451cb (3.5) and 2bb806539ca6 (3.6) https://hg.python.org/cpython/rev/378c1d09b256 New changeset 31573473a50e by Senthil Kumaran in branch 'default':

[issue23264] Add pickle support of dict views

2016-06-04 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, I no longer think this is a good idea. See http://bugs.python.org/issue23401#msg267383 . -- ___ Python tracker ___ __

[issue23401] Add pickle support of Mapping views

2016-06-04 Thread Guido van Rossum
Guido van Rossum added the comment: I find it extremely suspicious that if you pickle the keys of a large object it also pickles that object. These are views, not copied data, for a reason. I also take back that this is okay for concrete dict. As for your reason (http://bugs.python.org/issue23

[issue27225] Potential refleak in type_new when setting __new__ fails

2016-06-04 Thread Xiang Zhang
New submission from Xiang Zhang: As the title, there seems to be a potential refleak in type_new when setting __new__ fails. -- files: refleak_in_type_new.patch keywords: patch messages: 267382 nosy: xiang.zhang priority: normal severity: normal status: open title: Potential refleak in

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-06-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: __code__ is associated with Python bytecode. Regex bytecode can't be represented as a Unicode string since it is a sequence of 32-bit integers that can be out of the ord(sys.maxunicode) limit. -- ___ Python tracke

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-06-04 Thread Berker Peksag
Berker Peksag added the comment: I left some review comments on Rietveld: http://bugs.python.org/review/24459/ -- ___ Python tracker ___ _

[issue23401] Add pickle support of Mapping views

2016-06-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In this case we need to implement pickle support separately in OrderedDict and any Mapping subclass. -- ___ Python tracker ___ __

[issue27202] make doctest fails on 2.7 release notes

2016-06-04 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : Added file: http://bugs.python.org/file43226/issue27202-revised.patch ___ Python tracker ___ ___ Python-bugs-list

[issue21916] Create unit tests for turtle textonly

2016-06-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Jelle. Added minor comments on Rietveld. -- stage: needs patch -> patch review ___ Python tracker ___ __

[issue17888] docs: more information on documentation team

2016-06-04 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patches Terry and Laura. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue27202] make doctest fails on 2.7 release notes

2016-06-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Yes, I realized this patch is wrong: it excludes the 2.7 release notes from all make steps, not just `make doctest`. The attached patch reverts the conf.py change and instead uses directives to skip most doctests in the 2.7 release notes. The other 2.x release

[issue17888] docs: more information on documentation team

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3136c67eac4d by Berker Peksag in branch '3.5': Issue #17888: Add a note about contributing to Python docs https://hg.python.org/cpython/rev/3136c67eac4d New changeset 1f8181e66b36 by Berker Peksag in branch 'default': Issue #17888: Merge from 3.5 ht

[issue27202] make doctest fails on 2.7 release notes

2016-06-04 Thread Berker Peksag
Berker Peksag added the comment: By the way, after this I'm getting the following warnings: /Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11: WARNING: toctree contains reference to nonexisting document 'whatsnew/2.7' /Users/berkerpeksag/projects/cpython/Doc/whatsnew/index.rst:11:

[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-06-04 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue27200] make doctest in CPython has failures

2016-06-04 Thread Berker Peksag
Berker Peksag added the comment: I have also found some markup errors via 'make doctest' so I agree that this can be helpful :) -- ___ Python tracker ___ ___

[issue27202] make doctest fails on 2.7 release notes

2016-06-04 Thread Berker Peksag
Berker Peksag added the comment: Perhaps it would be better to exclude all files in Doc/whatsnew. -- nosy: +berker.peksag ___ Python tracker ___ _

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2016-06-04 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue27202] make doctest fails on 2.7 release notes

2016-06-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for your contribution, Jelle. -- nosy: +orsenthil resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue27202] make doctest fails on 2.7 release notes

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 70af472451cb by Senthil Kumaran in branch '3.5': issue27202 - Exclude 2.x release notes from python3 make doctests. https://hg.python.org/cpython/rev/70af472451cb New changeset 2bb806539ca6 by Senthil Kumaran in branch 'default': [merge from 3.5] -

[issue27203] Failing doctests in Doc/faq/programming.rst

2016-06-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the patch, Jelle Zijlstra. We don't have warnings in Doc/faq/programming.rst now, and this issue was specific to fix the doctests for it. I find it complete. Closing this issue. -- nosy: +orsenthil resolution: -> fixed stage: -> resolved

[issue27203] Failing doctests in Doc/faq/programming.rst

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset fea14da8442d by Senthil Kumaran in branch '3.5': Issue27203 - Fix doctests Doc/faq/programming.rst. https://hg.python.org/cpython/rev/fea14da8442d New changeset 4a072fff6945 by Senthil Kumaran in branch 'default': [merge from 3.5] - Issue27203 - Fix

[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset e89eb7935ca9 by Gregory P. Smith in branch 'default': merge from 3.5. (moves the issue26372 tests to the proper class) https://hg.python.org/cpython/rev/e89eb7935ca9 -- ___ Python tracker

[issue27156] IDLE: remove unused code

2016-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch removed 1 & 2. 4. macosx.runningAsOSXApp and macosx.isCarbonAquaTk were deprecated in then current versions on 2014 Feb 27 by New Deily in #17654. In particular, 67a7a49e7b78 was applied to the future 3.4.1. Ned, do you have any objection to removing

[issue27224] IDLE: editor versus grep line number differ

2016-06-04 Thread Terry J. Reedy
New submission from Terry J. Reedy: In IDLE 3.6, open idlelib.macosx (^M easiest). Open Find in Files dialog (Alt-F3), enter 'isAquaTk' (without quotes), and go. Output for me currently looks like ...\idlelib\macosx.py: 9: warnings.warn("runningAsOSXApp() is deprecated, use isAquaTk()",

[issue13771] HTTPSConnection __init__ super implementation causes recursion error

2016-06-04 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue25738] http.server doesn't handle RESET CONTENT status correctly

2016-06-04 Thread Susumu Koshiba
Susumu Koshiba added the comment: 3.6 patch(..._05.patch file) -- Added file: http://bugs.python.org/file43225/issue25738_http_reset_content_05.patch ___ Python tracker ___

[issue25738] http.server doesn't handle RESET CONTENT status correctly

2016-06-04 Thread Susumu Koshiba
Susumu Koshiba added the comment: 3.5 patch. -- Added file: http://bugs.python.org/file43224/issue25738_http_reset_content_3.5_01.patch ___ Python tracker ___ __

[issue25738] http.server doesn't handle RESET CONTENT status correctly

2016-06-04 Thread Susumu Koshiba
Susumu Koshiba added the comment: Thanks, makes sense to me. I've created patches for 2.7, 3.5, 3.6. 3.5's implementation looked slightly different from 3.6 so I've decided to create a separate patch, just in case. I will upload them 1 by 1 starting with 2.7. It will get a bit noisy here(sorry

[issue25738] http.server doesn't handle RESET CONTENT status correctly

2016-06-04 Thread Martin Panter
Martin Panter added the comment: I think it would be unusual to have different error handling for GET vs HEAD, given HEAD is supposed to be exactly like GET but without a body. On the other hand, see SimpleHTTPRequestHandler.send_head() for an example of calling send_error(NOT_FOUND) for both

[issue27223] _ready_ready and _write_ready should respect _conn_lost

2016-06-04 Thread Łukasz Langa
Changes by Łukasz Langa : Added file: http://bugs.python.org/file43222/srv.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue27223] _ready_ready and _write_ready should respect _conn_lost

2016-06-04 Thread Łukasz Langa
Changes by Łukasz Langa : Added file: http://bugs.python.org/file43221/cli.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue27223] _ready_ready and _write_ready should respect _conn_lost

2016-06-04 Thread Łukasz Langa
Changes by Łukasz Langa : -- keywords: +patch Added file: http://bugs.python.org/file43220/issue27223.diff ___ Python tracker ___ ___

[issue27223] _ready_ready and _write_ready should respect _conn_lost

2016-06-04 Thread Łukasz Langa
New submission from Łukasz Langa: Currently _read_ready and _write_ready callbacks do not respect _conn_lost, which makes them vulnerable to the following race condition: - the client protocol connects to a server - the client protocol sends some data - the server sends some data back - in the m

[issue13771] HTTPSConnection __init__ super implementation causes recursion error

2016-06-04 Thread Martin Panter
Martin Panter added the comment: My guess is Michael was doing something like >>> class Monkey(http.client.HTTPSConnection): ... pass ... >>> http.client.HTTPSConnection = Monkey >>> http.client.HTTPSConnection("bugs.python.org") Traceback (most recent call last): File "", line 1, in F

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-06-04 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : Removed file: http://bugs.python.org/file43218/issue26336.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-06-04 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : Added file: http://bugs.python.org/file43219/issue26336.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27200] make doctest in CPython has failures

2016-06-04 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- assignee: -> Jelle Zijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue25738] http.server doesn't handle RESET CONTENT status correctly

2016-06-04 Thread Susumu Koshiba
Susumu Koshiba added the comment: Thanks again for valuable comments. I agree that there could be a case where send_error() gets used for both HEAD and GET, in which case we could send content-length field as an optional field. However, if send_error() is not used for both HEAD and GET, then t

[issue22257] PEP 432: Redesign the interpreter startup sequence

2016-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: Looking at the potential impact of being able to use C99 initializers for the main configuration structs, I realised those could be a *lot* easier to work with if they consisted entirely of pointers to Python objects: * NULL initialisation would correctly indica

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-06-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This patch exposes the bytecode as a __code__ attribute on pattern objects as a Unicode string (consistent with the internal representation as Py_UCS4 instances). -- keywords: +patch nosy: +Jelle Zijlstra Added file: http://bugs.python.org/file43218/is

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-06-04 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue25738] http.server doesn't handle RESET CONTENT status correctly

2016-06-04 Thread Martin Panter
Martin Panter added the comment: For a HEAD request, I think we should continue to send Content-Length (except in combination with one of the special responses). HEAD is slightly different to 304 Not Modified. With HEAD vs GET, the response code and other header values do not change, but the b

[issue26930] Upgrade installers to OpenSSL 1.0.2h

2016-06-04 Thread Ned Deily
Changes by Ned Deily : -- components: +Windows priority: normal -> critical stage: -> needs patch versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ __

[issue27217] IDLE 3.5.1 not using Tk 8.6

2016-06-04 Thread Glenn Travis
Glenn Travis added the comment: Alas, I apologize -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue26930] Upgrade installers to OpenSSL 1.0.2h

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset d858eadf2602 by Ned Deily in branch '2.7': Issue #26930: Update OS X 32-bit-only installer builds to use OpenSSL 1.0.2h. https://hg.python.org/cpython/rev/d858eadf2602 New changeset 5462d455215a by Ned Deily in branch '3.5': Issue #26930: Update OS

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: This may be of interest for iOS and Android cross-compilation, so I've added Xavier de Gaye to the nosy list, while Russell Keith-Magee added himself. -- nosy: +xdegaye ___ Python tracker

[issue27219] turtle.fillcolor doesn't accept a tuple of floats

2016-06-04 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- keywords: +patch Added file: http://bugs.python.org/file43217/issue27219.patch ___ Python tracker ___ _

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-06-04 Thread Russell Keith-Magee
Changes by Russell Keith-Magee : -- nosy: +freakboy3742 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21916] Create unit tests for turtle textonly

2016-06-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Patch tests constructor, repr, equality checks, and pickling on Vec2D. -- Added file: http://bugs.python.org/file43216/issue21916-more.patch ___ Python tracker

[issue18083] _sysconfigdata.py is installed in an arch-independent directory

2016-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 23968 moves _sysconfigdata.py to an arch dependent directory -- dependencies: +rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET) nosy: +ncoghlan ___ Python tracker

[issue22724] byte-compile fails for cross-builds

2016-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 23968 moves _sysconfigdata.py to an arch dependendent directory -- dependencies: +rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET) nosy: +ncoghlan ___ Python tracker

[issue27186] add os.fspath()

2016-06-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This patch adds support for fspath to a number of functions in the os module by augmenting the path_t argument converter. The tests only cover a subset of the functions that use path_t, because some (e.g., unlink) have destructive side effects. -- Add

[issue21277] don't try to link _ctypes with a ffi_convenience library

2016-06-04 Thread Matthias Klose
Changes by Matthias Klose : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21277] don't try to link _ctypes with a ffi_convenience library

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a8509023c09 by doko in branch 'default': - Issue #21277: Don't try to link _ctypes with a ffi_convenience library. https://hg.python.org/cpython/rev/0a8509023c09 -- nosy: +python-dev ___ Python tracker

[issue20210] Provide configure options to enable/disable Python modules and extensions

2016-06-04 Thread Matthias Klose
Matthias Klose added the comment: fyi, this came up again at the 2016 Language Summit, the request here was to provide some minimal packages which are just enough to run a cloud image (the cloud-init package requires a somehow minimal python). -- __

[issue27101] Compilation of python (modules) for foreign target platform problem.

2016-06-04 Thread Matthias Klose
Matthias Klose added the comment: The 0002-* patches look fine, however the 0001-* patches are wrong if you are in a Multi-Arch environment, where you can find valid headers in /usr/include. From my point of view, the set of include and header directories should be directly initialized from t

[issue25548] Show the address in the repr for class objects

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset af29d89083b3 by Kushal Das in branch 'default': Issue #25548: Showing memory address of class objects in repl https://hg.python.org/cpython/rev/af29d89083b3 -- nosy: +python-dev ___ Python tracker

[issue21272] use _sysconfigdata to itinialize distutils.sysconfig

2016-06-04 Thread Matthias Klose
Changes by Matthias Klose : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue21272] use _sysconfigdata to itinialize distutils.sysconfig

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3fa8aebed636 by doko in branch 'default': - Issue #21272: Use _sysconfigdata.py to initialize distutils.sysconfig. https://hg.python.org/cpython/rev/3fa8aebed636 -- nosy: +python-dev ___ Python tracker <

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-06-04 Thread Matthias Klose
Matthias Klose added the comment: attaching an updated patch. besides renaming of the platform directory, the following changes are made: - it makes the name of the internal _sysconfigdata module dependent on the abiflags - it moves the _sysconfigdata module into the platform directory.

[issue27213] Rework CALL_FUNCTION* opcodes

2016-06-04 Thread Demur Rumed
Demur Rumed added the comment: I'd like to take on creating a patch for this proposal once #27140 lands -- ___ Python tracker ___ ___

[issue27182] PEP 519 support in the stdlib

2016-06-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: If we do that, then os.* functions that accept fds would also work on objects whose __fspath__ method returns an integer. I don't think that is desirable (I was just writing a test to ensure that fspath returning an integer throws an error). -- _

[issue27201] expose the ABI name as a config variable

2016-06-04 Thread Matthias Klose
Matthias Klose added the comment: maybe we don't need that. you already can do: import sys '%s-%d%d%s' % (sys.implementation.name, sys.version_info[0], sys.version_info[1], sys.abiflags) 'cpython-35m' -- ___ Python tracker

[issue26467] Add async magic method support to unittest.mock.Mock

2016-06-04 Thread Yusuke Tsutsumi
Yusuke Tsutsumi added the comment: I'm interested in taking this on. I'm considering for this approach, creating a new MagicProxy class specifically for async, and assigning __aexit__ and __aenter__ to those. The __call__ method itself has to be detected as asynchronous, and I don't believe i

[issue26884] android: cross-compilation of extension module links to the wrong python library

2016-06-04 Thread Matthias Klose
Changes by Matthias Klose : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue26884] android: cross-compilation of extension module links to the wrong python library

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset d00837de03d7 by doko in branch '3.5': - Issue #26884: Fix linking extension modules for cross builds. https://hg.python.org/cpython/rev/d00837de03d7 -- nosy: +python-dev ___ Python tracker

[issue27186] add os.fspath()

2016-06-04 Thread Ethan Furman
Ethan Furman added the comment: os.path is actually two different modules: posixpath.py and ntpath.py posixpath.py is being tracked in issue26027 ntpath.py is being tracked in issue27184 -- ___ Python tracker __

[issue16851] Hint about correct ismethod and isfunction usage

2016-06-04 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue27137] Python implementation of `functools.partial` is not a class

2016-06-04 Thread Emanuel Barry
Emanuel Barry added the comment: New patch, now almost all the tests that are used for the C version are also used for the Python version (the only exception is the one checking that trying to change/delete attributes would raise an error). Some tests needed a bit of tweaking to work with the

[issue27182] PEP 519 support in the stdlib

2016-06-04 Thread Ethan Furman
Ethan Furman added the comment: Currently, os.fspath will raise an exception if the thing passed in is not str/bytes/PathLike, and that error message will proclaim that str or bytes or PathLike is required; however, this is not true in cases such as Path (which doesn't allow bytes), and incomp

[issue18117] Missing symlink:Current after Mac OS X 3.3.2 package installation

2016-06-04 Thread Ned Deily
Ned Deily added the comment: David, I think we are not going to change the Current symlink behavior at this point so we might as well close this issue. We may decide to address the need to pick which version to link with in a different manner later. -- resolution: -> wont fix stage:

[issue21916] Create unit tests for turtle textonly

2016-06-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Thanks for merging it in. I'll add the additional tests. -- ___ Python tracker ___ ___ Python-bugs-l

[issue25194] Opt-in motivations & affiliations page for core contributors

2016-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: The page is up and running, with a few folks contributing entries, so there's nothing further to be done here. -- status: pending -> closed ___ Python tracker __

[issue25732] functools.total_ordering does not correctly implement not equal behaviour

2016-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: Sorry for the delayed review. I agree it makes sense to fix this for 2.7, and the proposed solution looks good to me. However, the latest patch looks it was only partway through editing - the additional test cases seem to be copies of the existing test cases, ra

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2016-06-04 Thread Demur Rumed
Demur Rumed added the comment: Java duplicates finally bytecode too: http://cliffhacks.blogspot.ca/2008/02/java-6-tryfinally-compilation-without.html Tho they avoid jsr instruction because it causes non trivial bytecode validation. Still, they would've had to concluded that finally blocks are

[issue27186] add os.fspath()

2016-06-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Sure, I'll do that too. Now that os.PathLike and PyOS_FSPath exist, it should also be possible to add support to os.path. -- ___ Python tracker ___

[issue27186] add os.fspath()

2016-06-04 Thread Ethan Furman
Ethan Furman added the comment: Jelle: We still need os.open if you would like to work on that. :) -- ___ Python tracker ___ ___ Pyt

[issue19611] inspect.getcallargs doesn't properly interpret set comprehension code objects.

2016-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: Fix committed for 3.6 - this is obscure enough that I'm not going to worry about fixing it on maintenance branches. -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior versions: -Python 2.7

[issue23264] Add pickle support of dict views

2016-06-04 Thread Guido van Rossum
Guido van Rossum added the comment: On general I think we should always document whether a class is picklable. And we should document how a subclass can hook into pickling. --Guido (mobile) -- ___ Python tracker _

[issue19611] inspect.getcallargs doesn't properly interpret set comprehension code objects.

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6247dd0f230e by Nick Coghlan in branch 'default': Issue #19611: handle implicit parameters in inspect.signature https://hg.python.org/cpython/rev/6247dd0f230e -- nosy: +python-dev ___ Python tracker

[issue18751] A manager's server never joins its threads

2016-06-04 Thread Yusuke Tsutsumi
Yusuke Tsutsumi added the comment: I'm interested in taking this on. I can do the following: * keep track of the threads in a field attached to the class * handle thread synchronization and cleanup in the finally block * set a flag on the exception, which ensures the loop completes, vs immediate

[issue27186] add os.fspath()

2016-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 254125a265d2 by Ethan Furman in branch 'default': issue27186: add open/io.open; patch by Jelle Zijlstra https://hg.python.org/cpython/rev/254125a265d2 -- ___ Python tracker

[issue21130] equivalent functools.partial instances should compare equal

2016-06-04 Thread Emanuel Barry
Emanuel Barry added the comment: New patch with Jelle's suggestions. I completely removed the macros since we need to (potentially) call Python code with PyObject_IsInstance, and need to check for return code. I also reverted some of the unrelated changes. -- Added file: http://bugs.p

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2016-06-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23264] Add pickle support of dict views

2016-06-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What docs are needed? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue24254] Make class definition namespace ordered by default

2016-06-04 Thread Nick Coghlan
Nick Coghlan added the comment: The patch looks good to me as a reference implementation, but I think it's worth writing up as a short PEP so there's a clear reference from the What's New documentation, and so developers of other implementations have a chance to review and comment on the chang

[issue27213] Rework CALL_FUNCTION* opcodes

2016-06-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +Demur Rumed, Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue27095] Simplify MAKE_FUNCTION

2016-06-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27129] Wordcode, part 2

2016-06-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27140] Opcode for creating dict with constant keys

2016-06-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23401] Add pickle support of Mapping views

2016-06-04 Thread Guido van Rossum
Guido van Rossum added the comment: I think it's fine to do this for concrete classes, I just don't think it should be added to ABCs. --Guido (mobile) -- ___ Python tracker ___

[issue23401] Add pickle support of Mapping views

2016-06-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because I can! I just want to ensure that all basic types (for which it makes sense) are correctly and portable pickleable, especially collections and related classes. Note that currently Mapping views are pickleable (as most pure Python classes), but pickle

  1   2   >