[issue25138] test_socket: socket.EAI_NODATA doesn't exist on FreeBSD

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f13a5b5a2824 by Victor Stinner in branch '3.4': Issue #25138: test_socket.test_idna() uses support.transient_internet() instead https://hg.python.org/cpython/rev/f13a5b5a2824 New changeset a7baccf0b1c2 by Victor Stinner in branch '3.5': Merge 3.4 (t

[issue25138] test_socket: socket.EAI_NODATA doesn't exist on FreeBSD

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: > Looking at this more closely, the check seems to be there just to check if > basic DNS lookups are working. It was added for Issue 12804. One option might > be to replace it with a support.transient_internet() handler: (...) Oh good idea. This context manage

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-21 Thread Stefan Behnel
Stefan Behnel added the comment: LGTM -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue25118] OSError in os.waitpid() on Windows [3.5.0 regression]

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25155] Windows: datetime.datetime.now() raises an OverflowError for date after year 2038

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25095] test_httpservers hangs on 3.5.0, win 7

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25114] asynico: add ssl_object extra info

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25150] 3.5: Include/pyatomic.h is incompatible with OpenMP (compilation of the third-party yt module fails on Python 3.5)

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Seems to be caused by the Python directory being non-decodable; the current working directory does not matter. What is going on is “pydoc” is trying to make a link to a module’s source code, such as /usr/lib/python3.4/pydoc.py For non-decodable paths, the foll

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: Technically, I think that it's possible to put bytes in an URL using %HH format. I didn't check if we can retrieve the "raw bytes". -- nosy: +haypo ___ Python tracker

[issue6331] Add unicode script info to the unicode database

2015-09-21 Thread Cosimo Lupo
Cosimo Lupo added the comment: I would very much like a `script()` function to be added to the built-in unicodedata module. What's the current status of this issue? Thanks. Cosimo -- nosy: +Cosimo Lupo ___ Python tracker

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-21 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : -- keywords: +patch Added file: http://bugs.python.org/file40532/regrtest_27.patch ___ Python tracker ___ ___

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-21 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40533/regrtest_36.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-21 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I've added the patches for Python default and 2.7. To apply them please use the command "hg import --no-commit". PGO flag is implemented for both variants (single and multi process). Default in profile-opt will be single process. -- _

[issue25194] Register of Financial Interests for core contributors

2015-09-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I like the idea, but the phrasings "disclosure" and "financial interests" sound too negative, IMO. Wouldn't it be better to put the emphasis on a) core devs who do this in their free time, b) core devs who would be available for hired work, and c) showing

[issue6331] Add unicode script info to the unicode database

2015-09-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6331] Add unicode script info to the unicode database

2015-09-21 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25194] Register of Financial Interests for core contributors

2015-09-21 Thread Ezio Melotti
Ezio Melotti added the comment: > Wouldn't it be better to put the emphasis on a) core devs who do this > in their free time, b) core devs who would be available for hired work, > and c) showing off which companies indirectly support Python via > employing core devs and giving them time to do

[issue22729] `wait` and `as_completed` depend on private api

2015-09-21 Thread Ben Mather
Ben Mather added the comment: Sorry for slow response. I completely missed your reply. I was working on a project that used a concurrent.futures thread pool but also needed to listen to responses from a chip-and-pin card reader. Payment sessions operated in three phases: - check with card r

[issue25181] Tests failed in nondecodable directory

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25182] python -v crashes in nonencodable directory

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25185] Inconsistency between venv and site

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25183] python -m inspect --details fails in nondecodable directory

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25122] test_eintr randomly fails on FreeBSD

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3184c43627f5 by Victor Stinner in branch '3.5': Issue #25122: test_eintr: the FreeBSD fix will be released in FreeBSD 10.3 https://hg.python.org/cpython/rev/3184c43627f5 -- ___ Python tracker

[issue25186] Don't duplicate _verbose_message in importlib._bootstrap and _bootstrap_external

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25193] itertools.accumulate should have an optional initializer argument

2015-09-21 Thread Mark Dickinson
Mark Dickinson added the comment: A couple of observations: 1. Haskell's (rough) equivalents would be `mapAccumL` and `mapAccumR`, which do take an initializer [1]. The signature for both functions is something like: (acc -> b -> (acc, c)) -> acc -> [b] -> (acc, [c]). 2. In the particular ca

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: It looks like fpsetmask() was deprecated since many years, and that fedisableexcept() is available since FreeBSD 5.3. Since we try to support FreeBSD 9, it's fine to drop support of FreeBSD < 5.3. I'm concerned by the "CAVEATS" section below. Should we put "#p

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-09-21 Thread takayuki
takayuki added the comment: This bug seems to remain in Python 3.5.0. How to reproduce: 1. Save the attached cgitest.py into cgi-bin directory and changed it to executable file by "chmod +x cgitest.py" 2. Run CGIHTTPRequestHandler [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux Type "help", "

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-21 Thread Simeon Warner
Simeon Warner added the comment: s/Path/Patch/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25047] xml.etree.ElementTree encoding declaration should be capital ('UTF-8') rather than lowercase ('utf-8')

2015-09-21 Thread Simeon Warner
Simeon Warner added the comment: Path looks fine and seems to work as expected -- Simeon -- ___ Python tracker ___ ___ Python-bugs-lis

[issue25202] with-statement doesn't release file handle after exception

2015-09-21 Thread Lauri Kajan
New submission from Lauri Kajan: Hi all, I found out that handle to a file opened with with-statement is not released in all cases. I'm trying to delete a file when space on a disk is filled (0 bit left) by writing this file. I catch the IOError 28 to figure this out. I write the file within

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ P

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- title: with-statement doesn't release file handle after exception -> Windows: with-statement doesn't release file handle after exception on "No space left on device" error ___ Python tracker

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We could use url = urllib.parse.quote_from_bytes(os.fsencode(path)) on Posix systems, but I heart that on Windows os.fsencode() can irreversible spoil file names (replace unencodable characters with '?'). On other side, I'm not sure that Windows unicode path

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread Lauri Kajan
Changes by Lauri Kajan : -- versions: +Python 3.2 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue25124] No single .msi available for 3.5 release

2015-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +loewis, skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread Stefan Krah
Stefan Krah added the comment: In theory we should set FENV_ACCESS whenever the control word is changed (C99): "If part of a program tests floating-point status flags, sets floating-point control modes, or runs under non-default mode settings, but was translated with the state for the FENV_ACCES

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: FYI in Python/pytime.c, I put a lot of "volatile double" when tests started to fail on some platforms. It's inefficient, but it's easier than teaching how to disable optimizations on each different compiler :-p -- _

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread eryksun
eryksun added the comment: See issue 16597. This wasn't fixed for 3.2, so it won't close the file if flush() fails. You'll either have to work around this or upgrade to 3.3+. -- nosy: +eryksun resolution: -> out of date stage: -> resolved status: open -> closed __

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread Stefan Krah
Stefan Krah added the comment: Ok, clang does not support it either: https://llvm.org/bugs/show_bug.cgi?id=10409 -- ___ Python tracker ___ __

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread Zachary Ware
Changes by Zachary Ware : -- superseder: -> file descriptor not being closed with context manager on IOError when device is full ___ Python tracker ___

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread Stefan Krah
Stefan Krah added the comment: Regarding volatile: gcc/clang seem to honor *some* changes to the control word. At least in libmpdec both compilers have always left the settings 80bit-prec/ROUND_CHOP intact, even though it's not the default. Let's rewrite Python in asm to avoid these issues. :)

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: @Lauri: What is your Python version? Can you retry your test with Python 3.5? -- nosy: +haypo ___ Python tracker ___ ___

[issue25114] asynico: add ssl_object extra info

2015-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: the patch lgtm -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread eryksun
eryksun added the comment: Lauri changed the version from 3.4 to 3.2, and I was able to reproduce the problem in 3.2.5: C:\Temp>py -3.2 --version Python 3.2.5 C:\Temp>py -3.2 nospace.py removing fill.txt Traceback (most recent call last): File "nospace.py", line 8, in

[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-21 Thread Brett Cannon
Brett Cannon added the comment: It should be mentioned in this issue that the core-workflow mailing list decided on having NEWS entries being attached to the related issue in the issue tracker. This was then presented to python-committers and no one objected to the idea. -- _

[issue25114] asynico: add ssl_object extra info

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7859e7e7071 by Victor Stinner in branch '3.4': Issue #25114, asyncio: add ssl_object extra info to SSL transports https://hg.python.org/cpython/rev/d7859e7e7071 -- nosy: +python-dev ___ Python tracker <

[issue25114] asyncio: add ssl_object extra info

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- title: asynico: add ssl_object extra info -> asyncio: add ssl_object extra info ___ Python tracker ___ ___

[issue25114] asyncio: add ssl_object extra info

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f451651038c by Victor Stinner in branch '3.5': Issue #25114: Adjust versionchanged in the doc https://hg.python.org/cpython/rev/2f451651038c -- ___ Python tracker ___

[issue25114] asyncio: add ssl_object extra info

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: I pushed my change to Python 3.4, 3.6 and 3.6 and Github. The strange thing is the put a different "versionchanged" tag in the doc: version 3.4.4 in the 3.4 branch, version 3.5.1 in the 3.5 and default branches. -- resolution: -> fixed status: open ->

[issue25203] Incorrect handling MemoryError in readline.set_completer_delims

2015-09-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: MemoryError raised in readline.set_completer_delims() turns the readline library to incorrect state. $ (ulimit -v 20; ./python;) Python 3.6.0a0 (default:e33b4c18af59+, Sep 17 2015, 17:05:17) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "

[issue23630] support multiple hosts in create_server/start_server

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 682623e3e793 by Victor Stinner in branch '3.4': Issue #23630, asyncio: host parameter of loop.create_server() can now be a https://hg.python.org/cpython/rev/682623e3e793 -- nosy: +python-dev ___ Python tr

[issue23630] support multiple hosts in create_server/start_server

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: I pushed the change to Python 3.4, 3.5, 3.6 and asyncio at Github. Thanks Yann for your nice enhancement of asyncio! It put your name in CPython "acks" and asyncio author list. I modified the patch a little bit (3 lines), how the hosts variable was initialize

[issue23972] Asyncio reuseport

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: Hum, the latest patch was not reviewed yet :-( -- nosy: +ysionneau ___ Python tracker ___ ___ Python

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-21 Thread Brett Cannon
Brett Cannon added the comment: I left some comments on the Python 3.6 version of the patch. I don't know if we should apply such a change to Python 2.7 or 3.5, though, as it is a new feature of regrtest and thus runs the risk of breaking stuff. Then again, we have said that anything in the te

[issue24779] Python/ast.c: decode_unicode is never called with rawmode=True

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5230115de64d by Eric V. Smith in branch 'default': Issue #24779: Remove unused rawmode parameter to unicode_decode. https://hg.python.org/cpython/rev/5230115de64d -- nosy: +python-dev ___ Python tracker

[issue24779] Python/ast.c: decode_unicode is never called with rawmode=True

2015-09-21 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue25202] Windows: with-statement doesn't release file handle after exception on "No space left on device" error

2015-09-21 Thread Lauri Kajan
Lauri Kajan added the comment: Thanks for these. I'll see what I could do to upgrade our python version. Sorry for not finding the old issue. Didn't find the right search terms. -- ___ Python tracker _

[issue25156] shutil.copyfile should internally use os.sendfile when possible

2015-09-21 Thread desbma
desbma added the comment: Additional advantage of calling sendfile from shutil.copyfile: other fonctions in shutil module would automatically benefit from the use of senfile because they call copyfile directly (copy, copy2) or indirectly (copytree). So for example, the performance of shutil.co

[issue25204] Confusing (?) warning when run deprecated module as script

2015-09-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -Wa Lib/imp.py sys:1: PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses "sys:1:" is output when the stacklevel argument is larger then the deep of the stack. Foll

[issue25204] Confusing (?) warning when run deprecated module as script

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue25205] setattr accepts invalid identifiers

2015-09-21 Thread W deW
New submission from W deW: An identifier is defined by identifier ::= (letter|"_") (letter | digit | "_")* setattr accepts identifiers that do not meet this criterion: Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-21 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: The patch does not display dots, as they are not that intuitive and users cannot make an estimate of the time left or the position in the training phase. Instead, the regrtest.py, will display the progress as [X/Y], like the default version, but without a

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-21 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: """ For example, this code: f'abc{expr1:spec1}{expr2!r:spec2}def{expr3:!s}ghi' Might be be evaluated as: 'abc' + format(expr1, spec1) + format(repr(expr2)) + 'def' + format(str(expr3)) + 'ghi' """ format(repr(expr2)) should be format

[issue25114] asyncio: add ssl_object extra info

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32e3a9e46f70 by Victor Stinner in branch '3.4': Issue #25114: Fix test_asyncio https://hg.python.org/cpython/rev/32e3a9e46f70 -- ___ Python tracker ___

[issue23630] support multiple hosts in create_server/start_server

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 42e7334e0e4c by Victor Stinner in branch '3.4': Issue #23630: Fix test_asyncio on Windows https://hg.python.org/cpython/rev/42e7334e0e4c New changeset 840942a3f6aa by Victor Stinner in branch '3.5': Merge 3.4 (Issue #23630, fix test_asyncio) https:/

[issue25207] ICC compiler warnings

2015-09-21 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86-64%20Windows%20Server%202012R2%20ICC%203.x/builds/109/steps/compile/logs/warnings%20%2832%29 2>C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\PCbuild\pythoncore.vcxproj(418,5): warning : Toolset Intel

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset a138a1131bae by Victor Stinner in branch 'default': Issue #25207, #14626: Fix ICC compiler warnings in posixmodule.c https://hg.python.org/cpython/rev/a138a1131bae -- ___ Python tracker

[issue25207] ICC compiler warnings

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset a138a1131bae by Victor Stinner in branch 'default': Issue #25207, #14626: Fix ICC compiler warnings in posixmodule.c https://hg.python.org/cpython/rev/a138a1131bae -- nosy: +python-dev ___ Python tracker

[issue25207] ICC compiler warnings

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73867bf953e6 by Victor Stinner in branch 'default': ssue #25207: fix ICC compiler warning in msvcrtmodule.c https://hg.python.org/cpython/rev/73867bf953e6 -- ___ Python tracker

[issue25205] setattr accepts invalid identifiers

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: Even if it's not well document, it's legit and supported by CPython, but it may not be supported by other Python implementation (ex: PyPy). -- nosy: +haypo ___ Python tracker

[issue24520] Stop using deprecated floating-point environment functions on FreeBSD

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I don't understand if we should apply or not the patch :-/ -- ___ Python tracker ___ ___ Pyth

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2015-09-21 Thread eryksun
eryksun added the comment: > local_encoding = locale.getdefaultlocale()[1] Use locale.getpreferredencoding(). > b = eval('b' + ascii(result)) > result = b.decode(local_encoding) It's simpler and more reliable to use 'latin-1' and 'mbcs' (ANSI). For example: result = result.encode('latin-1

[issue25208] improvements to the asyncio documentation

2015-09-21 Thread Benjamin Hodgson
New submission from Benjamin Hodgson: I spotted some grammatical errors in the "Develop with asyncio" page, so I improved the wording a bit. I also added a more explicit link to BaseEventLoop.set_debug(). -- assignee: docs@python components: Documentation files: asynciodocs.patch keywo

[issue25208] improvements to the asyncio documentation

2015-09-21 Thread Benjamin Hodgson
Changes by Benjamin Hodgson : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 831276834e4b by Eric V. Smith in branch 'default': Partial fix for issue 25206: Fixed format() call. https://hg.python.org/peps/rev/831276834e4b -- nosy: +python-dev ___ Python tracker

[issue25209] Append space after completed keywords

2015-09-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Open parenthesis ('(') is appended after completed callable globals and attributes. I propose to add a space after completed keyword. In most cases a space is either required after the keyword, or recommended by PEP8. Attached patch implements this. -

[issue25205] setattr accepts invalid identifiers

2015-09-21 Thread eryksun
eryksun added the comment: The name can be any str/unicode string, including language keywords: >>> setattr(o, 'def', 'allowed') >>> getattr(o, 'def') 'allowed' >>> o.def File "", line 1 o.def ^ SyntaxError: invalid syntax and even an empty string:

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2015-09-21 Thread Petr Prikryl
Petr Prikryl added the comment: @eryksun: I see. In my case, I can set the locale before importing the time module. However, the code (asciidoc3.py) will be used as a module, and I cannot know if the user imported the time module or not. Instead of your suggestion result = result.encode('

[issue25205] setattr accepts invalid identifiers

2015-09-21 Thread eryksun
eryksun added the comment: To clarify using a unicode name in 2.x, it has to be encodable using the default encoding, sys.getdefaultencoding(). Normally this is ASCII. -- ___ Python tracker ___

[issue25201] lock of multiprocessing.Value is not a keyword-only argument

2015-09-21 Thread Josh Rosenberg
Josh Rosenberg added the comment: Agreed. Having a named positional varargs argument makes subsequently defined arguments keyword only automatically. -- nosy: +josh.r ___ Python tracker ___

[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is that something that might happen 'soon' or only when the whole workflow is redone? -- ___ Python tracker ___ ___

[issue1731717] race condition in subprocess module

2015-09-21 Thread Vitaly
Vitaly added the comment: Is this issue fixed in python 2.7.10? I am experiencing strange race conditions in code that combines threads with multiprocessing pool, whereby a thread is spawned by each pool worker. Running on latest Mac OS X. -- nosy: +vitaly

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c430259873e by Victor Stinner in branch 'default': Issue #24870: Optimize the ASCII decoder for error handlers: surrogateescape, https://hg.python.org/cpython/rev/3c430259873e -- nosy: +python-dev ___ Py

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: I pushed a change to optimize the ASCII decoder. Attached bench.py script: microbenchmark on the ASCII decoder. My results follows. Common platform: Platform: Linux-4.1.5-200.fc22.x86_64-x86_64-with-fedora-22-Twenty_Two Bits: int=32, long=64, long long=64, siz

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Serhiy’s patch essentially uses the local filesystem encoding and then percent encoding, rather than the current behaviour of strict UTF-8 encoding and percent encoding. This is similar to what the “pathlib” make_uri() methods do, so maybe we could let “pathlib

[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-21 Thread Brett Cannon
Brett Cannon added the comment: As soon as someone finds the time to make the change we can switch. While this is a necessary requirement to change the workflow it isn't gated by it either. -- ___ Python tracker _

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-21 Thread Brett Cannon
Brett Cannon added the comment: Ah, OK. As I said I had not run it so I wasn't sure of the actual outcome. =) As for keyword-only arguments/parameters, see https://www.python.org/dev/peps/pep-3102/ . They are a Python 3 feature. -- ___ Python tracke

[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Also in the first example, the colon (format specifier) and exclamation mark (conversion) are in the wrong order. It should either be f"{expr3:!s}" → format(expr3, "!s") or f"{expr3!s:}" → format(str(expr3), "") -- nosy: +martin.panter __

[issue25205] setattr accepts invalid identifiers

2015-09-21 Thread Martin Panter
Martin Panter added the comment: Previous report: Issue 14029 -- nosy: +martin.panter ___ Python tracker ___ ___ Python-bugs-list mail

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2cf85e2834c2 by Victor Stinner in branch 'default': Issue #24870: Reuse the new _Py_error_handler enum https://hg.python.org/cpython/rev/2cf85e2834c2 New changeset aa247150a8b1 by Victor Stinner in branch 'default': Issue #24870: Add _PyUnicodeWrite

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-21 Thread STINNER Victor
STINNER Victor added the comment: Ok, I prepared the code for the UTF-8 optimization. @Serhiy: would you like to rebase your patch faster_surrogates_hadling.patch? Attached utf8.patch is a less optimal implementation which only changes PyUnicode_DecodeUTF8Stateful(). Maybe it's enough? I wou

[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 170cd0104267 by Victor Stinner in branch 'default': Issue #25207, #14626: Fix my commit. https://hg.python.org/cpython/rev/170cd0104267 -- ___ Python tracker _

[issue25207] ICC compiler warnings

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 170cd0104267 by Victor Stinner in branch 'default': Issue #25207, #14626: Fix my commit. https://hg.python.org/cpython/rev/170cd0104267 -- ___ Python tracker _

[issue24861] deprecate importing components of IDLE

2015-09-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9edb95ca8b6 by Terry Jan Reedy in branch '2.7': Issue #24861: add Idle news items and correct previous errors. https://hg.python.org/cpython/rev/e9edb95ca8b6 New changeset 5087ca9e6002 by Terry Jan Reedy in branch '3.4': Issue #24861: add Idle news

[issue25201] lock of multiprocessing.Value is not a keyword-only argument

2015-09-21 Thread Davin Potts
Davin Potts added the comment: Berker: It looks to me like the docs are indeed in sync with the code on Value in that lock really is a keyword-only argument. It looks like it's been that way since at least 2.7 (I didn't look at earlier). There are enough other things in the multiprocessing.s

[issue25209] Append space after completed keywords

2015-09-21 Thread Martin Panter
Martin Panter added the comment: I agree with adding a space in some cases, but not others. E.g. "pass" would only need a space if you wanted to add a comment, "return" often takes no argument, "lambda" may need an immediate colon (lambda: x). See

  1   2   >