[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: I discussed it with Guido and added 'F' to the PEP. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue25049] Strange behavior under doctest: staticmethods have different __globals__

2015-09-10 Thread Jurjen N.E. Bos
New submission from Jurjen N.E. Bos: I found a pretty obscure bug/documentation issue. It only happens if you use global variables in static methods under doctest. The thing is that this code fails under doctest, while anyone would expect it to work at first sight: class foo: @staticmethod

[issue25050] windows installer does not allow 32 and 64 installs side by side

2015-09-10 Thread Adam Groszer
New submission from Adam Groszer: Installed with python-3.4.3.msi first, then wanted a 64bit side-by-side )of course in an other folder) Wanted to install python-3.4.3.amd64.msi, the first thing this one did is removed the 32bit install :-( -- components: Installation, Windows message

[issue25051] 'compile' refuses BOM.

2015-09-10 Thread Piotr
New submission from Piotr: Similar to Issue 679880 >>> compile(open("bom3.py").read(), "bom3.py", 'exec') Traceback (most recent call last): File "", line 1, in File "bom3.py", line 1 # coding: utf-8 ^ SyntaxError: invalid character in identifier -- components: Unicode

[issue25051] 'compile' refuses BOM.

2015-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka https://t.co/JxJCL5FSwT>: -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue25051] 'compile' refuses BOM.

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: open() uses locale encoding by default. You should specify correct encoding explicitly for portability and unambiguity. >>> compile(open("bom3.py", encoding="utf-8-sig").read(), "bom3.py", 'exec') at 0xb707a7a0, file "bom3.py", line 2> -- nosy: +ser

[issue25051] 'compile' refuses BOM.

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: open() uses locale encoding by default. You should specify correct encoding explicitly for portability and unambiguity. >>> compile(open("bom3.py", encoding="utf-8-sig").read(), "bom3.py", 'exec') at 0xb707a7a0, file "bom3.py", line 2> -- nosy: +ser

[issue25052] Test

2015-09-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Just for testing if I can create a *new* issue. -- messages: 250360 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Test ___ Python tracker ___

[issue25021] product_setstate() Out-of-bounds Read

2015-09-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> kristjan.jonsson ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue25051] 'compile' refuses BOM.

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Lib/test/test_tokenize.py contains a test for a Python script encoded to UTF-8 and starting with the UTF-8 BOM, Lib/test/tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt. -- ___ Python tracker

[issue25053] Possible race condition in Pool

2015-09-10 Thread Stanislaw Izaak Pitucha
New submission from Stanislaw Izaak Pitucha: This is something that happened once and I cannot reproduce anymore. In an IPython session I've done the following (see session below), which resulted in pool.map raising its internal exceptions in cases where it shouldn't. Then it worked again. (se

[issue25051] 'compile' refuses BOM.

2015-09-10 Thread Piotr
Piotr added the comment: Ok I have tried it(I had to remove ЉЊЈЁЂ from *.txt - my cp is 1250): c:\tmp>type test.py compile(open("tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt").read(), "bom3.py", 'exec') c:\tmp>c:\Python34\python.exe test.py Traceback (most recent call last): File "

[issue15012] test issue

2015-09-10 Thread R. David Murray
R. David Murray added the comment: Test issue update. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue25054] Capturing start of line '^'

2015-09-10 Thread Alcolo Alcolo
New submission from Alcolo Alcolo: Why re.findall('^|a', 'a') != ['', 'a'] ? We have: re.findall('^|a', ' a') == ['', 'a'] and re.findall('$|a', ' a') == ['a', ''] Capturing '^' take the 1st character. It's look like a bug ... -- components: Regular Expressions messages: 250364 nosy: A

[issue25054] Capturing start of line '^'

2015-09-10 Thread R. David Murray
R. David Murray added the comment: ^ finds an empty match at the beginning of the string, $ finds an empty match at the end. I don't see the bug (but I'm not a regex expert). -- nosy: +r.david.murray ___ Python tracker

[issue25021] product_setstate() Out-of-bounds Read

2015-09-10 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Thanks, I'll get this committed and merged asap. -- ___ Python tracker ___ ___ Python-bugs-l

[issue25043] document socket constants for Bluetooth

2015-09-10 Thread Tim Tisdall
Tim Tisdall added the comment: I'm not sure how to unit test a constant... it's just a string. If you're asking for a unit test for when you'd actually make use of the constant, I haven't been able to figure out that situation yet. It seems like in Bluez 4.101 it's used to issue a command t

[issue25043] document socket constants for Bluetooth

2015-09-10 Thread Tim Tisdall
Changes by Tim Tisdall : -- keywords: +patch Added file: http://bugs.python.org/file40424/bdaddr_36_1.patch ___ Python tracker ___ ___

[issue25043] document socket constants for Bluetooth

2015-09-10 Thread Tim Tisdall
Changes by Tim Tisdall : Added file: http://bugs.python.org/file40425/bdaddr_34_1.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25043] document socket constants for Bluetooth

2015-09-10 Thread Tim Tisdall
Changes by Tim Tisdall : Added file: http://bugs.python.org/file40426/bdaddr_35_1.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-10 Thread Tim Tisdall
Tim Tisdall added the comment: oops. yeah, I got my terminology wrong. It accepts only a byte-string. -- ___ Python tracker ___ ___

[issue25044] bring BTPROTO_SCO inline with other Bluetooth protocols

2015-09-10 Thread Tim Tisdall
Tim Tisdall added the comment: Yes, then any existing implementations will continue to work. One sticky issue with all of this... there's no existing tests as per #7687 . -- ___ Python tracker

[issue7687] Bluetooth support untested

2015-09-10 Thread Tim Tisdall
Changes by Tim Tisdall : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue25054] Capturing start of line '^'

2015-09-10 Thread Matthew Barnett
Matthew Barnett added the comment: After matching '^', it advances so that it won't find the same match again (and again and again...). Unfortunately, that means that it sometimes misses some matches. It's a known issue. -- ___ Python tracker

[issue24272] PEP 484 docs

2015-09-10 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailin

[issue25051] 'compile' refuses BOM.

2015-09-10 Thread eryksun
eryksun added the comment: You're passing an already decoded string, so the BOM is treated as text. Instead open the file in binary mode, i.e. open("bom3.py", "rb"). This way the BOM will be detected when decoding the source bytes. Here's an example that passes the source as a bytes object:

[issue23270] Use the new __builtin_mul_overflow() of Clang and GCC 5 to check for integer overflow

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Implementation for any compiler using the new builtin if available: http://thread.gmane.org/gmane.linux.kernel/204 -- ___ Python tracker ___

[issue23270] Use the new __builtin_mul_overflow() of Clang and GCC 5 to check for integer overflow

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Implementation for any compiler using the new builtin if available: http://thread.gmane.org/gmane.linux.kernel/204 -- ___ Python tracker ___

[issue25055] Test

2015-09-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Just test if the tracker works for me now. -- messages: 250375 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Test ___ Python tracker

[issue25056] no support for Bluetooth LE in socket

2015-09-10 Thread Tim Tisdall
New submission from Tim Tisdall: When Bluetooth LE support was added to Bluez they expanded sockaddr_l2 (the struct for making L2CAP connections) to include a l2_bdaddr_type. Since the existing code initializes the struct with 0's the type is set to regular Bluetooth (BDADDR_BREDR). An addit

[issue25041] document AF_PACKET socket address format

2015-09-10 Thread Adam
Changes by Adam : -- nosy: +azsorkin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue25054] Capturing start of line '^'

2015-09-10 Thread Alcolo Alcolo
Alcolo Alcolo added the comment: Naively, I thinked that ^ is be considered as a 0-length token (like $, \b, \B), then after capturing it, we can read the next token : 'a' (for the input string "a"). I use a simple work around: prepending my string with ' ' (because ' ' is neutral with my reg

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka https://t.co/JxJCL5FSwT>: -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test again. -- nosy: +serhiy.storchaka status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka https://t.co/JxJCL5FSwT>: -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15012] test issue

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: victor test -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue15012] test issue

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test. -- nosy: +serhiy.storchaka status: open -> closed ___ Python tracker ___ ___ Python-bugs-lis

[issue25057] Make parameter of io.base to be positional and keyword

2015-09-10 Thread shiyao.ma
New submission from shiyao.ma: The parameters for io.[Text]IOBase.seek are currently positional only, as discussed in http://bugs.python.org/issue25030. We make the parameters to be both positional and keyword based. -- files: patch.diff keywords: patch messages: 250382 nosy: berker.pe

[issue25050] windows installer does not allow 32 and 64 installs side by side

2015-09-10 Thread Steve Dower
Steve Dower added the comment: This is an issue with 3.4.3 only, and I suspect it was something funny in the build config that should just work with 3.4.4 - adding Martin to make sure. Basically, the upgrade code in the 32-bit installer was (I think) the code used for dev snapshots. Both insta

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2015-09-10 Thread David Fraser
David Fraser added the comment: Filed with pypa at https://github.com/pypa/pip/issues/3091 -- nosy: +davidfraser ___ Python tracker ___ __

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm inclined to reject this idea too. -- nosy: +georg.brandl, ncoghlan, pitrou, serhiy.storchaka ___ Python tracker ___ __

[issue24900] Raising an exception that cannot be unpickled causes hang in ProcessPoolExecutor

2015-09-10 Thread Benedikt Reinartz
Benedikt Reinartz added the comment: That would touch 2, but as this is happening in the exception handling already that would need to be catched and handled by itself. However, one could then do without a "pickle -> unpickle" dance. -- ___ Python t

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2015-09-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The idea looks ok to me, but you'd have to provide a patch. -- ___ Python tracker ___ ___ Python-bug

[issue25058] Right square bracket argparse metavar

2015-09-10 Thread Juan Jimenez-Anca
New submission from Juan Jimenez-Anca: When trying to assign the metavar in add_argument() method of argparse module I'm unable to include characters after a right square bracket. Trying to set something like this: metavar="[host:database:collection:]field" would raise an AssertionError, whic

[issue25058] Right square bracket argparse metavar

2015-09-10 Thread Juan Jimenez-Anca
Juan Jimenez-Anca added the comment: My apologies for the formatting of the last line. This is my issue corrected: When trying to assign the metavar in add_argument() method of argparse module I'm unable to include characters after a right square bracket. Trying to set something like this: me

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: Feel free to make changes to the patch if you want to improve the sentence structure. -- assignee: docs@python components: Documentation messages: 250390 nosy: docs@python, sahutd priority: normal severity: normal status: open title: Mistake in in

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file40428/issue25059 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25060] BUILD_MAP stack effect suboptimal

2015-09-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: In PyCompile_OpcodeStackEffect() compile.c: case BUILD_MAP: return 1; But starting from 3.5, BUILD_MAP pops 2*oparg objects from the stack. -- components: Interpreter Core messages: 250391 nosy: benjamin.peterson, georg.brandl, pi

[issue25054] Capturing start of line '^'

2015-09-10 Thread Matthew Barnett
Matthew Barnett added the comment: Just to confirm, it _is_ a bug. It tries to avoid getting stuck, but the way it does that causes it to skip a character, sometimes missing a match it should have found. -- ___ Python tracker

[issue25053] Possible race condition in Pool

2015-09-10 Thread Davin Potts
Davin Potts added the comment: I have been able to reproduce the behavior you described under 3.5 under one set of circumstances so far. When attempting to use classes/functions/other not defined in an importable module, an AttributeError is expected as you observed. The viability of that ex

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread R. David Murray
R. David Murray added the comment: Well, it's a tutorial. I'm not sure it makes sense to introduce sep at that point, that's more appropriate for when the user is more advanced and looking at the reference documentation. (Frankly, I've *never* used that feature, and I've been using python fo

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: +1 on the "by default" change. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list maili

[issue24272] PEP 484 docs

2015-09-10 Thread Berker Peksag
Berker Peksag added the comment: By the way, for some reason the changes in revision e361130782d4 are not in Doc/library/typing.rst. For example, io documentation on current default branch: https://hg.python.org/cpython/file/default/Doc/library/typing.rst#l376 io documentation on current 3.5

[issue25059] Mistake in input-output tutorial regarding print() seperator

2015-09-10 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Agreed with both David Murray and Eric. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue24272] PEP 484 docs

2015-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: I suck at merge. :-( No idea what happened. To fix it, I have now just copied the file again from the larry branch and committed that in 3.5, then merged up to 3.6 (default). changeset: 97856:8a7814a3613b branch: 3.5 parent: 97847:6c8e2c6e3a99 user

[issue25061] Add native enum support for argparse

2015-09-10 Thread desbma
New submission from desbma: I often find myself using the following pattern with argparse: import argparse import enum CustomEnumType = enum.Enum("CustomEnumType", ("VAL1", "VAL2", "VAL3", ...)) arg_parser = argparse.ArgumentParser(...) ... arg_parser.add_argument("-

[issue25061] Add native enum support for argparse

2015-09-10 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue3548] subprocess.pipe function

2015-09-10 Thread desbma
Changes by desbma : -- nosy: +desbma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mai

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread STINNER Victor
New submission from STINNER Victor: The Docs buildbot is red since the changeset 7fc4306d537b5feedb7f9dac54d96ed378c093a7. http://buildbot.python.org/all/builders/Docs%203.x/builds/52 -- assignee: docs@python components: Documentation messages: 250400 nosy: docs@python, gvanrossum, hay

[issue25061] Add native enum support for argparse

2015-09-10 Thread desbma
Changes by desbma : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-10 Thread desbma
New submission from desbma: Sorry if it has already been discussed, or if this is a stupid idea. By looking at the signature, my thought was that the only use of shutil.copyfileobj was to wrap the use of sendfile, and use a fallback if it is not available on the system or not usable with "fake

[issue1103213] Adding a recvexactly() to socket.socket: receive exactly n bytes

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Oh, in fact recvall() is a bad name. The io module uses the "readall()" name to really read all content of a file, whereas "recvall(N)" here only read up to N bytes. It would be better to reuse the same name than asyncio, "readexactly(N)": https://docs.python.

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-10 Thread STINNER Victor
Changes by STINNER Victor : -- title: os.urandom() should call getrandom(2) not getentropy(2) on Solaris -> os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer ___ Python tracker ___

[issue25003] os.urandom() should call getrandom(2) not getentropy(2)

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: > Yes, the syscall was failing with EINVAL. Sorry, I don't understand. Do you mean that calling a non-existant syscall on Solaris fails with EINVAL? Calling the getrandom() syscall on Solaris < 11.3 fails with EINVAL? -- _

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris

2015-09-10 Thread STINNER Victor
Changes by STINNER Victor : -- title: os.urandom() should call getrandom(2) not getentropy(2) -> os.urandom() should call getrandom(2) not getentropy(2) on Solaris ___ Python tracker __

[issue25029] MemoryError in test_strptime

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: The test doesn't fail anymore on buildbots. I ran manually test_strptime with a memory limit of 1 GB on Python 3.5 and 3.6: the test pass. Can we close the issue? -- ___ Python tracker

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: Alexander: can you please review attached round_half_even_py34.patch? It's the minimum patch to fix datetime/timedelta rounding for Python 3.4 (and 3.5). -- ___ Python tracker ___

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-10 Thread R. David Murray
R. David Murray added the comment: No, it's to copy file like objects that aren't necessarily true file system objects. The only requirement is that they support a minimal file-like object interface. There is no suggestion or requirement that the object supports file descriptors (which would

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: > The one potential problem that I see is that it looks like specifying > PROC_THREAD_ATTRIBUTE_HANDLE_LIST means that no other handles are inherited, > even if they are inheritable. We can maybe add a parameter to configure the behaviour: keep current behavio

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: That link gives me a timeout right now. How can I run the doc linter manually? "make html" in the Doc tree didn't alert me to this issue. -- ___ Python tracker _

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: I rebased patch because faster-decode-ascii-surrogateescape.patch was generated in git format, and the git format is not accepted by Rietveld (the Review button). -- Added file: http://bugs.python.org/file40429/faster-decode-ascii-surrogateescape.patc

[issue24821] The optimization of string search can cause pessimization

2015-09-10 Thread STINNER Victor
STINNER Victor added the comment: > I think we should use more robust optimization. What do you propose? I don't understand the purpose of the issue. Do you want to remove the optimization? -- ___ Python tracker

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe Zach knows how to fix this since he fixed it for an earlier version? (Sorry Zach!) -- nosy: +zach.ware ___ Python tracker ___ _

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Zachary Ware
Zachary Ware added the comment: Guido van Rossum added the comment: > That link gives me a timeout right now. How can I run the doc linter > manually? "make html" in the Doc tree didn't alert me to this issue. "make check" is the doc linter. I've considered whether to back that buildbot off to

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Zachary Ware
Zachary Ware added the comment: Oh right, Berker already beat me to it: changeset 97861:72e696bc480a 3.5 Fix typos and improve markup in typing.rst. author Berker Peksag dateThu, 10 Sep 2015 21:55:50 +0300 (35 minutes ago) parents a380841644b2 childrenc52194da1ae2 47e9d7dd

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5 ___ Python tracker ___ ___

[issue25053] Possible race condition in Pool

2015-09-10 Thread Davin Potts
Changes by Davin Potts : -- status: open -> pending versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue25062] Doc linter error: [2] library/typing.rst:358: default role used

2015-09-10 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks everyone! This episode shows I should not try to commit CPython stuff. Period. -- ___ Python tracker ___ _

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-10 Thread John Beck
John Beck added the comment: Sorry, let me try to clarify. ENOSYS is the correct errno value to check for, for the situation (e.g., Solaris < 11.3) of a non-existent system call. But EINVAL should also be checked for to make sure the system call was invoked with proper parameters. My builds

[issue25029] MemoryError in test_strptime

2015-09-10 Thread Steve Dower
Steve Dower added the comment: Done. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue25022] Remove PC/example_nt/

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a30598e59964 by Zachary Ware in branch '2.7': Issue #25022: Remove PC/example_nt/ https://hg.python.org/cpython/rev/a30598e59964 New changeset de3e1c81ecd7 by Zachary Ware in branch '3.4': Issue #25022: Remove PC/example_nt/ https://hg.python.org/cp

[issue25022] Remove PC/example_nt/

2015-09-10 Thread Zachary Ware
Zachary Ware added the comment: Erk...just discovered there's a section of Doc/extending/windows.rst that depends on example_nt that will need to be excised. -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tr

[issue24821] The optimization of string search can cause pessimization

2015-09-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I was going to provide another optimization (I had an idea), but it is not so easy as looked to me at first glance. This issue exists rather as a reminder to me. I should make a second attempt. -- resolution: -> remind _

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: This version does dynamic allocation for the expression list, and fixes some memory leaks and early decrefs. I think it's complete, but I'll take some more passes through it checking for leaks. -- ___ Python tracker

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Changes by Eric V. Smith : Added file: http://bugs.python.org/file40430/pep-498-4.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue25022] Remove PC/example_nt/

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3456af022541 by Zachary Ware in branch '2.7': Issue #25022: Add NEWS, fix docs to not mention the old example. https://hg.python.org/cpython/rev/3456af022541 New changeset c535bf72aa60 by Zachary Ware in branch '3.4': Issue #25022: Add NEWS, fix doc

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: The good news is that the performance is pretty good, and finally I have a case where I can beat %-formatting: $ ./python.bat -mtimeit -s 'a=2' "'%s' % a" 100 loops, best of 3: 0.883 usec per loop $ ./python.bat -mtimeit -s 'a=2' '"{}".format(a)' 100 lo

[issue25035] Getter/setter for argparse keys

2015-09-10 Thread Sworddragon
Sworddragon added the comment: In this case probably all is fine then. But there is a minor thing I noticed from one of your previous posts: You said parser.add_argument returns an Action object but I noticed that this is not mentioned on "16.4.3. The add_argument() method". Is it maybe mentio

[issue22980] C extension naming doesn't take bitness into account

2015-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1744d65705d0 by Yury Selivanov in branch '3.5': whatsnew/3.5: Describe changes in issue #22980 https://hg.python.org/cpython/rev/1744d65705d0 New changeset cfbcb3a6a848 by Yury Selivanov in branch 'default': Merge 3.5 (issue #22980, whatsnew/3.5) ht

[issue22980] C extension naming doesn't take bitness into account

2015-09-10 Thread Yury Selivanov
Yury Selivanov added the comment: Larry, Matthias, Steve, Berker - I've mentioned this issue in the whatsnew (applied Larry's patch with some modifications to address comments from Steve and Matthias). Please review. -- ___ Python tracker

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-10 Thread Martin Panter
Martin Panter added the comment: I agree it is a nice idea, but have the same concern as David. Many pseudo file objects wrap real file descriptors. E.g. BufferedReader hides unread data in a buffer, GzipFile decompresses data, HTTPResponse decodes chunks. Detecting when sendfile() is appropri

[issue25058] Right square bracket argparse metavar

2015-09-10 Thread paul j3
paul j3 added the comment: This assertion error caused by brackets (and other 'odd' characters) in the metavar is a known issue. http://bugs.python.org/issue11874 http://bugs.python.org/issue14046 The formatter that handles line wrapping of the usage line is fragile. -- nosy: +paul.j3

[issue25057] Make parameter of io.base to be positional and keyword

2015-09-10 Thread Martin Panter
Martin Panter added the comment: I’m not sure this is a good idea. IOBase is a base class, so adding to its API really means everybody’s subclasses may need to be updated to support the proper keyword argument names. Even ignoring classes outside Python’s standard library, it looks like you wo

[issue25061] Add native enum support for argparse

2015-09-10 Thread paul j3
paul j3 added the comment: The `type` parameter is a *function* that takes a string, and returns a valid value. If it can't convert the string it is supposed to raise an error. The default one is a do-nothing identity (take a string, return the string). `int` is the Python function that con

[issue25043] document socket constants for Bluetooth

2015-09-10 Thread Martin Panter
Martin Panter added the comment: Well if the constant is not very useful then maybe we shouldn’t add it :) For testing, nothing complicated. Maybe check the module attributes exist, and are strings. In the past, people have converted module-level constants to enums, and introduced a typo in a

[issue22980] C extension naming doesn't take bitness into account

2015-09-10 Thread Steve Dower
Steve Dower added the comment: There's no dot before the debug marker on Windows. Otherwise, looks good to me. Thanks for writing this up. -- ___ Python tracker ___

[issue25061] Add native enum support for argparse

2015-09-10 Thread paul j3
paul j3 added the comment: Here's a type function that enumerates the enum in the error message: def enumtype(astring): try: return CustomEnumType[astring.upper()] except KeyError: msg = ', '.join([t.name.lower() for t in CustomEnumType]) msg = 'CustomEnumType: us

[issue25038] test_os.TestSendfile.test_keywords() introduced a regression

2015-09-10 Thread Martin Panter
Martin Panter added the comment: Victor, the BSD and OS X buildbots seem to be passing test_os now. E.g.: http://buildbot.python.org/all/buildslaves/koobs-freebsd10 http://buildbot.python.org/all/buildslaves/intel-yosemite-icc Do you agree we can close this? -- nosy: +berker.peksag __

  1   2   >