[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2017-01-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___

[issue28871] Destructor of ElementTree.Element is recursive

2017-01-12 Thread STINNER Victor
STINNER Victor added the comment: > Yet one argument for moving to Python 3. Yep, thanks ;-) -- ___ Python tracker ___

[issue29219] TracebackException(capture_locals=True) may fail with RecursionError

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29219] TracebackException(capture_locals=True) may fail with RecursionError

2017-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9a64d00a439 by Serhiy Storchaka in branch '3.5': Issue #29219: Fixed infinite recursion in the repr of uninitialized https://hg.python.org/cpython/rev/d9a64d00a439 New changeset d9539a5c2315 by Serhiy Storchaka in branch '2.7': Issue #29219: Fixed

[issue29219] TracebackException(capture_locals=True) may fail with RecursionError

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue28871] Destructor of ElementTree.Element is recursive

2017-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changes were reverted by 78bf34b6a713. It is very uneasy to implement an alternative mechanism (without increasing the size of Element objects). It adds duplication of low level garbage collecting code. I think it is better to left all as is in 2.7. Yet one

[issue29192] Remove deprecated features from http.cookies

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29192] Remove deprecated features from http.cookies

2017-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7bd9ec6e5da4 by Serhiy Storchaka in branch 'default': Issue #29192: Removed deprecated features in the http.cookies module. https://hg.python.org/cpython/rev/7bd9ec6e5da4 -- nosy: +python-dev ___ Python

[issue29192] Remove deprecated features from http.cookies

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue29193] Remove support of format_string as keyword argument in string.Formatter().format()

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29193] Remove support of format_string as keyword argument in string.Formatter().format()

2017-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset d571d8cd4258 by Serhiy Storchaka in branch 'default': Issue #29193: A format string argument for string.Formatter.format() https://hg.python.org/cpython/rev/d571d8cd4258 -- nosy: +python-dev ___ Python

[issue29193] Remove support of format_string as keyword argument in string.Formatter().format()

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue29195] Get rid of supporting outdated wrong keyword arguments in re methods

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29195] Get rid of supporting outdated wrong keyword arguments in re methods

2017-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8678135c042 by Serhiy Storchaka in branch 'default': Issue #29195: Removed support of deprecated undocumented keyword arguments https://hg.python.org/cpython/rev/f8678135c042 -- nosy: +python-dev ___

[issue29258] __init__.py required for pkgutil.walk_packages in python3

2017-01-12 Thread Anthony Sottile
New submission from Anthony Sottile: PEP420 makes __init__.py files optional: https://docs.python.org/3/whatsnew/3.3.html#pep-420-implicit-namespace-packages Though it seems without them, pkgutil.walk_packages does not function as desired:

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2017-01-12 Thread Nick Coghlan
Nick Coghlan added the comment: SSH environment forwarding will propagate this "LC_CTYPE=UTF-8" setting from Mac OS X clients to Linux servers. At present, that breaks in multiple ways, as CPython will interpret it as being the "C" locale (since Linux servers don't offer a "UTF-8" locale,

[issue29062] hashlib documentation link error

2017-01-12 Thread Xiang Zhang
Xiang Zhang added the comment: Although I am +1 for merging it before but these days I find it's not the only case. There are also two unittest.mock entries. This is just FYI, no opinion on this issue. -- ___ Python tracker

[issue29062] hashlib documentation link error

2017-01-12 Thread INADA Naoki
INADA Naoki added the comment: @christian.heimes Would you look merge-hashlib-blake2.patch? This is blocker of our document translation project. -- ___ Python tracker

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-01-12 Thread INADA Naoki
INADA Naoki added the comment: How about locale.getpreferredencoding() returns 'utf-8' in utf8 mode? -- ___ Python tracker ___

[issue29257] Possible error in discussion of Abstract Base Classes and abstract properties

2017-01-12 Thread Gerald Britton
New submission from Gerald Britton: I was rereading the 2.7 docs about abstract base classes the other day. I found this: "This defines a read-only property; you can also define a read-write abstract property using the ‘long’ form of property declaration:" along with an example. so I

[issue23407] os.walk always follows Windows junctions

2017-01-12 Thread Eryk Sun
Eryk Sun added the comment: I simply listed the tags that have the name-surrogate bit set out of those defined in km\ntifs.h. To keeps things simple it might be better to only include Microsoft tags (i.e. bit 31 is set). That way we don't have to deal with REPARSE_GUID_DATA_BUFFER struct

[issue11339] annotation for class being defined

2017-01-12 Thread Ryan Hiebert
Changes by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker ___ ___

[issue29241] sys._enablelegacywindowsfsencoding() don't apply to os.fsencode and os.fsdecode

2017-01-12 Thread Steve Dower
Steve Dower added the comment: Then we do in fact need to make os.fsencode/fsdecode either stop caching the encoding completely, or figure out a way to reset the cache when that function is called. -- ___ Python tracker

[issue29256] Windows select() errors out when given no fds to select on, which breaks SelectSelector

2017-01-12 Thread Nathaniel Smith
New submission from Nathaniel Smith: If SelectSelector.select() is called when there are no fds registered, then it ends up calling select.select([], [], [], timeout). On sensible operating systems, this is equivalent to time.sleep(timeout). On Windows, it raises an error. Asyncio manages to

[issue29255] selects.KqueueSelector behaves incorrectly when no fds are registered

2017-01-12 Thread Nathaniel Smith
New submission from Nathaniel Smith: When calling kevent(), selectors.KqueueSelector.select sets the "maxevents" argument to len(self._fd_to_key). So if there are no fds registered, it passes maxevents=0. It turns out that the kevent() API has a special case behavior for maxevents=0: it

[issue23407] os.walk always follows Windows junctions

2017-01-12 Thread Craig Holmquist
Craig Holmquist added the comment: Can you point me toward any documentation on the additional tags you want to support? Searching for IO_REPARSE_TAG_IIS_CACHE mostly seems to yield header files that define it (and nothing at all on MSDN), and the non-Microsoft tags just yield a few results

[issue29246] typing.Union raises RecursionError when comparing Union to other type

2017-01-12 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Thank you for catching this corner case! I have made a PR upstream based on your patch: https://github.com/python/typing/pull/350 As I understand the fix will go in 3.6.1 and 3.5.4 -- ___ Python tracker

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-12 Thread Thomas Nyberg
Thomas Nyberg added the comment: Hi Vinay, I just checked and yes that code works fine on my end (debian 8 box). Personally, I think either this or Mark's second patch would be fine. Cheers, Thomas -- ___ Python tracker

[issue17824] pty.spawn handles errors improperly

2017-01-12 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue29252] self in classes missinterpreted as a string.

2017-01-12 Thread Decorater
Decorater added the comment: Also in the code I had to subclass it 3 times, 1 time to preserver original functionality as if the hook was not inserted in the front of the path hooks, another time for 1 format of files it should be able to allow importing of, and the other time for another

[issue29252] self in classes missinterpreted as a string.

2017-01-12 Thread Decorater
Decorater added the comment: Also I sadly have to make this a dummy class just to add in an actual dictionary with the file extensions it supports because I cant use setattr on it. It is retarded that you cant use it for builtin types or classes if your code actually requires such.

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-12 Thread Vinay Sajip
Vinay Sajip added the comment: It seems simpler to do it all in EnvBuilder.create: def create(self, env_dir): """ Create a virtual environment in a directory. :param env_dir: The target directory to create an environment in. """ env_dir =

[issue28130] Document that time.tzset updates time module globals

2017-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8578757cc3a6 by Alexander Belopolsky in branch '2.7': Closes #28130: Documented that time.tzset() updates time module globals. https://hg.python.org/cpython/rev/8578757cc3a6 -- status: open -> closed ___

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-12 Thread Thomas Nyberg
Changes by Thomas Nyberg : Removed file: http://bugs.python.org/file46250/venv_site_packages.patch ___ Python tracker ___

[issue28969] lru_cache is not threadsafe

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2017-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed with changed test. Thank you for your patch Chi Hsuan Yen. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28130] Document that time.tzset updates time module globals

2017-01-12 Thread Greg Bengeult
Greg Bengeult added the comment: Here's the 2.7 patch. -- Added file: http://bugs.python.org/file46276/tzset_rst_27.patch ___ Python tracker ___

[issue29221] ABC Recursion Error on isinstance() with less than recursion limit class hierarchy depth

2017-01-12 Thread Jamie Bliss
Jamie Bliss added the comment: I consider it debatable as to if this is a bug in ABC (for using recursion in a way that limits class tree depth) or in CPython (for accounting recursion in such a way you can get significantly shallower stacks). --

[issue28130] Document that time.tzset updates time module globals

2017-01-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: closed -> open ___ Python tracker ___

[issue28130] Document that time.tzset updates time module globals

2017-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec3b08b361c0 by Alexander Belopolsky in branch 'default': Closes #28130: Documented that time.tzset() updates time module globals. https://hg.python.org/cpython/rev/ec3b08b361c0 -- nosy: +python-dev status: open -> closed

[issue28130] Document that time.tzset updates time module globals

2017-01-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in ec3b08b361c0. Thanks, Greg. Leaving open until 2.7 docs are fixed as well. -- resolution: -> fixed stage: -> resolved versions: +Python 2.7 -Python 3.6 ___ Python tracker

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-01-12 Thread desbma
desbma added the comment: Thoughts anyone? This is a minor bug, but for a common use case (easy to hit), and the fix is trivial. -- ___ Python tracker

[issue29246] typing.Union raises RecursionError when comparing Union to other type

2017-01-12 Thread Guido van Rossum
Changes by Guido van Rossum : -- assignee: -> levkivskyi nosy: +levkivskyi ___ Python tracker ___

[issue28969] lru_cache is not threadsafe

2017-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Inada. Committed in 9314aebc9674, 5724c3ddf25b and 9c852878a998. There were errors during pushing: remote: adding changesets remote: adding manifests remote: adding file changes remote: added 9 changesets with 15 changes to 5 files remote: buildbot:

[issue28130] Document that time.tzset updates time module globals

2017-01-12 Thread Greg Bengeult
Greg Bengeult added the comment: How about this documentation patch for tzset()? Most of the verbiage comes from the Linux tzset() man page. I can also generate a similar patch for 2.7 if it's needed. -- nosy: +gbengeult versions: +Python 3.7 Added file:

[issue29221] ABC Recursion Error on isinstance() with less than recursion limit class hierarchy depth

2017-01-12 Thread Jamie Bliss
Changes by Jamie Bliss : -- nosy: +astronouth7303 ___ Python tracker ___ ___

[issue22343] Install bash activate script on Windows when using venv

2017-01-12 Thread Vinay Sajip
Vinay Sajip added the comment: Changesets: 3.5 d6ae934da199 3.6 8f77c4f93806 default 7afe82ad34e7 -- ___ Python tracker ___

[issue22343] Install bash activate script on Windows when using venv

2017-01-12 Thread Vinay Sajip
Vinay Sajip added the comment: I've pushed the changes, but due to some SMTP problem this issue wasn't updated by Roundup: remote: SMTPServerDisconnected: Connection unexpectedly closed: timed out remote: error: changegroup.roundup hook raised an exception: Connection unexpectedly closed:

[issue11681] -b option undocumented

2017-01-12 Thread Greg Bengeult
Greg Bengeult added the comment: Thanks for the :class: markup edits. I'm still learning this stuff. -- ___ Python tracker ___

[issue29254] Documentation Error

2017-01-12 Thread Ammar Askar
Ammar Askar added the comment: Given `slice[start:end]`: What this line is trying to say is that the slice index is inclusive for the start parameter and exclusive for the end parameter. In mathematical/interval notation this would look like [start, end) As a quick example look at the word

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-01-12 Thread STINNER Victor
STINNER Victor added the comment: encodings.py: enhancement version of pep540_cli.py, add locale and filesystem encoding. Script to test the implementation of the PEP 540 (and PEP 538). -- Added file: http://bugs.python.org/file46274/encodings.py

[issue29254] Documentation Error

2017-01-12 Thread Suraj Kumar
New submission from Suraj Kumar: Hi, I have found one documentation mistake in section 3.1.2. Strings saying """Note how the start is always included, and the end always excluded. This makes sure that s[:i] + s[i:] is always equal to s: >>>word = 'Python' >>> word[:2] + word[2:] 'Python' """

[issue28969] lru_cache is not threadsafe

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: rhettinger -> serhiy.storchaka stage: patch review -> commit review ___ Python tracker

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2017-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ce22d69e134 by Serhiy Storchaka in branch '2.7': Issue #29082: Fixed loading libraries in ctypes by unicode names on Windows. https://hg.python.org/cpython/rev/4ce22d69e134 -- nosy: +python-dev ___

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2017-01-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I think Ronald's patch issue18378-2015-07-25-py36.txt with added darwin check would be the best way forward. In the current form, it would allow using 'UTF-8' as locale string on all platforms - which is not such a good idea. -- nosy: +lemburg

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2017-01-12 Thread Erik Bray
Erik Bray added the comment: Thanks Masayuki for the updated patch, and especially for the additional test cases. Looking at the patch, it occurs to me that this solution seems to be the minimal needed to fix the issue that we were originally trying to fix, without adding too much additional

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue29082] In 2.7.13, _ctypes.LoadLibrary no longer accepts Unicode objects

2017-01-12 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here's a new patch using fake library names. And thanks for those related issues about asdl_c.py! -- Added file: http://bugs.python.org/file46273/issue29082_3.patch ___ Python tracker

[issue29253] Fix test_asyncore tests on Cygwin

2017-01-12 Thread Erik Bray
New submission from Erik Bray: This patch works around a couple different problems with running the test_asyncore tests in Cygwin, both of which are due to bugs in Cygwin itself and not in Python. As such, I don't think Python should try to work around these issues in general, but I do think

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-01-12 Thread STINNER Victor
STINNER Victor added the comment: Patch version 4: * Handle PYTHONLEGACYWINDOWSFSENCODING: this env var now disables the UTF-8 mode and has the priority over -X utf8 and PYTHONUTF8 * Add an unit test on PYTHONUTF8 env var and -E cmdline option * Add an unit test on the POSIX locale * Fix

[issue29185] test_distutils fails on Android API level 24

2017-01-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: can_symlink() is needed by test_posixpath and other tests, new patch. -- Added file: http://bugs.python.org/file46271/test_distutils_3.patch ___ Python tracker

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Jon Walsh
Jon Walsh added the comment: Seems a bit strange to not have glob() and match() working the same though. Is there any reason for that? -- ___ Python tracker

[issue29246] typing.Union raises RecursionError when comparing Union to other type

2017-01-12 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +gvanrossum stage: -> patch review ___ Python tracker ___

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

2017-01-12 Thread STINNER Victor
STINNER Victor added the comment: Oops, I missed Chi Hsuan Yen's comment: > I guess replace mkstemp (C function) with tempfile.mkstemp (Python function) > can solve the problem. So yes, I agree :-) -- ___ Python tracker

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

2017-01-12 Thread STINNER Victor
STINNER Victor added the comment: I change the issue type to security. -- type: behavior -> security ___ Python tracker ___

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

2017-01-12 Thread STINNER Victor
STINNER Victor added the comment: The putwin() function uses mkstemp() with the path template /tmp/py.curses.getwin.XX. I would prefer to use the Python function tempfile.mkstemp(). This function has a more portable behaviour. For example, Python is able to atomatically make the file

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2017-01-12 Thread Wolfgang Maier
Wolfgang Maier added the comment: I think PEP 538 extended to the UTF-8 locale *would* help here. Specifically, it would coerce only LC_CTYPE to en_US.UTF-8 (unless OS X has C.UTF-8), which I guess is good enough for the purpose here. I do agree that it is not the kind of problem that PEP 538

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2017-01-12 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 538 wouldn't help here, as there's nothing wrong with CPython's assumptions about the text encoding to use for operating system interfaces - it's assuming UTF-8 (because it's Mac OS X) and that assumption is correct (because it's Mac OS X). The problem

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2017-01-12 Thread Wolfgang Maier
Wolfgang Maier added the comment: To me this issue seems quite related to PEP 538. Maybe the LC_CTYPE coercion proposed in the PEP could be extended to cover the case of LC_CTYPE=UTF-8? -- nosy: +ncoghlan versions: +Python 3.7 ___ Python tracker

[issue29252] self in classes missinterpreted as a string.

2017-01-12 Thread Decorater
New submission from Decorater: So, I have a class (it subclasses the zipimporter for my import hook) that allows me to not worry about issues when the hook is appended to the beginning of the path hooks. The code to the class as follows: class OriginalZipImport(zipimport.zipimporter):

[issue29185] test_distutils fails on Android API level 24

2017-01-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: This new patch skips the second test when hard links fail on the platform under test. -- Added file: http://bugs.python.org/file46269/test_distutils_2.patch ___ Python tracker

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-12 Thread Michael Felt
Michael Felt added the comment: The "key" bit of the patch is to move the code AND make this assignment: if _PYTHON_BUILD: vars['LDSHARED'] = vars['BLDSHARED'] Besides, imho, skipping around the problem that LDSHARED is not correctly assigned - it cannot work because BLDSHARED is

[issue29251] Class __dict__ is only a mapping proxy

2017-01-12 Thread Martin Panter
New submission from Martin Panter: The __dict__ attribute of class objects is documented as being a (standard) dictionary, but implemented with a proxy object. I propose to clarify the documentation in “Custom classes” under

[issue28759] access to mkfifo, mknod and hard links is controled by SELinux MAC on Android

2017-01-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Please go ahead and start the discussion on Python-Dev. -- assignee: xdegaye -> ___ Python tracker ___

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

2017-01-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo, serhiy.storchaka stage: needs patch -> patch review ___ Python tracker ___

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

2017-01-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: The test suite runner in the test.libregrtest.main module calls tempfile.gettempdir() and mkstemp_curses.patch uses the same logic to fix the problem on Android where the tests that I run use TMPDIR=/data/local/tmp on Android API 24. As a side note, when the

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ** is supported not just as a prefix. Path('./Lib').glob('**/*.py') emits the same paths as Path('.').glob('Lib/**/*.py'). But ** is supported only in glob(), not in match(). The support of ** in match() is not documented. Would be worth to document

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list

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

2017-01-12 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file46266/ncurses.patch ___ Python tracker ___

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Christian Heimes
Christian Heimes added the comment: The ticket is not about glob but about pathlib. Pathlib supports ** directory globbing, but it's only documented as prefix globbing, https://docs.python.org/3/library/pathlib.html#pathlib.Path.glob -- nosy: +christian.heimes

[issue28759] access to mkfifo, mknod and hard links is controled by SELinux MAC on Android

2017-01-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The purpose of this helper is skipping the test rather than failing if some OS operation is not permitted by current configuration. May be skip_if_not_permitted()? Similar helpers that convert runtime error in skipping a test: import_module(),

[issue27632] build on AIX fails when builddir != srcdir, more than bad path to ld_so_aix

2017-01-12 Thread Michael Felt
Michael Felt added the comment: > Regarding reopening Issue 10656, whatever you think is more appropriate. Not "scary", just irritating. I'll open a new one when I have more time to document it. > Issue 16189 and Issue 25825 were about updating to match recent changes to > directory names,

[issue18235] _sysconfigdata.py wrong on AIX installations

2017-01-12 Thread Michael Felt
Michael Felt added the comment: OK - just looked at what happens with Python3-3.6 new file name: _sysconfigdata_m_aix5_.py values: root@x064:[/data/prj/python/python3-3.6.0/X64/opt/lib/python3.6]grep SHARED _sysconf*.py | grep LD 'BLDSHARED': '/opt/lib/python3.6/config-3.6m/ld_so_aix xlc_r '

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Andrew Dunai
Andrew Dunai added the comment: Isn't this intended? According to https://docs.python.org/2/library/glob.html and wiki, typical UNIX glob pattern does not have the reqursive matching operator (`**`). -- nosy: +Andrew Dunai ___ Python tracker

[issue22343] Install bash activate script on Windows when using venv

2017-01-12 Thread Evan
Evan added the comment: Works for me in Git Bash. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28759] access to mkfifo, mknod and hard links is controled by SELinux MAC on Android

2017-01-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: 'supported_operation': * The intent in using 'supported' was that the context manager could possibly be extended later. * 'operation' is the terminology used in the GNU libc documentation [1]. I will replace 'supported_operation' with 'permitted_operation'

[issue25591] refactor imaplib tests

2017-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset a10d6ab65b23 by Victor Stinner in branch '3.5': Issue #25591: Fix test_imaplib if ssl miss https://hg.python.org/cpython/rev/a10d6ab65b23 -- ___ Python tracker

[issue29250] islink and stat follow_symlinks are inconsistent on Windows

2017-01-12 Thread Eryk Sun
Changes by Eryk Sun : -- dependencies: +os.walk always follows Windows junctions ___ Python tracker ___

[issue23407] os.walk always follows Windows junctions

2017-01-12 Thread Eryk Sun
Eryk Sun added the comment: I opened issue 29248 for the os.readlink bug and issue 29250 for the inconsistency between os.path.islink and os.stat. Handling junctions as links is new behavior, so I've changed this issue to be an enhancement for 3.7. If the notion of a link is generalized to

[issue17824] pty.spawn handles errors improperly

2017-01-12 Thread Martin Panter
Martin Panter added the comment: The patch for Issue 26228 proposes an improvement to the situation, although it is not perfect and does not include a test. I wonder if it is possible to replace fork() and execlp() with a subprocess.Popen invokation, at least in a new Python release?

[issue29250] islink and stat follow_symlinks are inconsistent on Windows

2017-01-12 Thread Eryk Sun
New submission from Eryk Sun: win32_xstat_impl in Modules/posixmodule.c doesn't check the value of reparse_tag to limit traversal to only tags that are considered links. So we have cases in which os.path.islink returns False (e.g. junctions, pending the resolution of issue 23407), but os.stat

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-01-12 Thread STINNER Victor
STINNER Victor added the comment: Hum, test_utf8mode lacks an unit test on the -E command line option: PYTHONUTF8 should be ignored if -E is used. -- ___ Python tracker

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-01-12 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue29249] Pathlib glob ** bug

2017-01-12 Thread Jon Walsh
New submission from Jon Walsh: >>> from pathlib import Path >>> Path("a/b/c/d/e.txt").match('a/*/**/*') False -- components: Library (Lib) messages: 285297 nosy: Jon Walsh priority: normal severity: normal status: open title: Pathlib glob ** bug type: behavior versions: Python 3.5

[issue29240] Implementation of the PEP 540: Add a new UTF-8 mode

2017-01-12 Thread STINNER Victor
STINNER Victor added the comment: > Can -X utf8 option be processed before Py_Main()? I'm trying to implement that, but it's hard to factorize the code. I will probably have to duplicate the code handling -E, -X utf8, PYTHONMALLOC and PYTHONUTF8 for wchar_t* (UCS4 or UTF-16) and char*

[issue29006] 2.7.13 _sqlite more prone to "database table is locked"

2017-01-12 Thread Gian-Carlo Pascutto
Gian-Carlo Pascutto added the comment: >Then we wait for someone that really knows why the change was done in the >first place. Python 2.7 had a regression compared to 2.6 where a SELECT after a COMMIT would silently return the wrong data: http://bugs.python.org/issue23129

[issue29248] os.readlink fails on Windows

2017-01-12 Thread Eryk Sun
New submission from Eryk Sun: win_readlink in Modules/posixmodule.c mistakenly treats the PrintNameOffset field of the reparse data buffer as a number of characters instead of bytes. Thus, if the offset is non-zero, the value returned is incorrect stack garbage. For example, the following