[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +443 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +444 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +445 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +446 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +447 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29736] Optimize builtin types constructor

2017-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually there is an issue with using Argument Clinic for constructors. I wrote a patch that fixes it and converts constructors of basic types to Argument Clinic a half year ago, but it was not finished and published due to focusing on 3.6. I'll update and p

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-07 Thread Marien Zwart
Changes by Marien Zwart : -- pull_requests: +448 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- components: +Interpreter Core stage: test needed -> patch review versions: +Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +449 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue29746] Update marshal docs to Python 3

2017-03-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The marshal module documentation still uses terms from Python 2. It mentions sys.stdin and os.popen() as legitimate sources (but they are text files). -- assignee: serhiy.storchaka components: Documentation messages: 289157 nosy: serhiy.storchaka pr

[issue29741] BytesIO methods don't accept integer types, while StringIO counterparts do

2017-03-07 Thread Oren Milman
Oren Milman added the comment: using _PyIO_ConvertSsize_t sounds great. with regard to tests for accepting integer types in other classes, there aren't a lot of them, so I guess it is not always tested. still, it is tested in (excluding tests of the actual feature of treating integer types as in

[issue29746] Update marshal docs to Python 3

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +450 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29746] Update marshal docs to Python 3

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: printf-style bytes formatting was added mainly for increasing compatibility with Python 2. It was restricted to support mostly features existing in Python 2. '%s' formatting in Python 3 supports bytes-like objects partially: >>> b'%s' % array('B', [1, 2]) "

[issue29741] BytesIO methods don't accept integer types, while StringIO counterparts do

2017-03-07 Thread Oren Milman
Oren Milman added the comment: also with regard to adding tests, consider the following scenario: in the future, someone writes a patch for these functions, which makes them not accept integer types anymore. assuming the tests don't exist, the writer of the patch doesn't realize the patch broke s

[issue29747] unittest - assertDoesNotRaise

2017-03-07 Thread Vinícius Dantas
New submission from Vinícius Dantas: Unittest provides us some assert methods, yet one is missing: the assertDoesNotRaise context. When running tests, tests may end up as failures, successes or errors. It's worth noting that errors and failures are conceptually different, and that's the point

[issue29748] Argument Clinic: slice index converter

2017-03-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Following PR adds the slice index converter. It can be used for converting indices in methods like list.index() and str.find(). -- components: Argument Clinic messages: 289162 nosy: larry, serhiy.storchaka priority: normal severity: normal stage: pa

[issue29748] Argument Clinic: slice index converter

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +451 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29748] Argument Clinic: slice index converter

2017-03-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue29749] Outdated int() docstring

2017-03-07 Thread STINNER Victor
New submission from STINNER Victor: bpo-29695 removed "bad keyword parameters in int(), bool(), float(), list() and tuple()", but int docstring (at least) is now outdated: haypo@selma$ ./python Python 3.7.0a0 (master:8f6b344d368c15c3fe56c65c2f2776e7766fef55, Mar 7 >>> help(int) class int(obje

[issue29747] unittest - assertDoesNotRaise

2017-03-07 Thread R. David Murray
R. David Murray added the comment: This has already been discussed and rejected (issue 14403). In practice the distinction between a failure and an error is not useful, and a comment in the test is IMO clearer than a no-op context manager: you can use a positive sentence instead of the reader

[issue10030] Patch for zip decryption speedup

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +452 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29593] Improve UnboundLocalError message for deleted names

2017-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue17792. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue17441] Do not cache re.compile

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue16055] incorrect error text for int(base=1000, x='1')

2017-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since the first parameter of int() is now positional-only, this issue looks outdated. -- status: open -> pending ___ Python tracker ___ _

[issue16055] incorrect error text for int(base=1000, x='1')

2017-03-07 Thread STINNER Victor
STINNER Victor added the comment: > Since the first parameter of int() is now positional-only, this issue looks > outdated. Right, but Python 3.7 still has this issue: "The *base* argument can also be 0." The error message should be: "ValueError: int() base must be >= 2 and <= 36 or 0" (add "

[issue17441] Do not cache re.compile

2017-03-07 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue29747] unittest - assertDoesNotRaise

2017-03-07 Thread Vinícius Dantas
Changes by Vinícius Dantas : -- pull_requests: +453 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue17441] Do not cache re.compile

2017-03-07 Thread Guido van Rossum
Changes by Guido van Rossum : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue19871] json module won't parse a float that starts with a decimal point

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2017-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue is outdated since implementing automatic encoding detecting in issue17909. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue29686] Unittest - Return empty string instead of None object on shortDescription()

2017-03-07 Thread Vinícius Dantas
Vinícius Dantas added the comment: In the point of view of a tester, if it's an error, they will know right away it is a test case problem, not an assert problem. That makes debugging easier. It is also important to note that, if it's an AssertionError, we may add a message. While, if it is an er

[issue29537] Alternative fix for BUILD_MAP_UNPACK_WITH_CALL opcode in 3.5

2017-03-07 Thread Iryna
Iryna added the comment: If I may ask, what was the decision on this matter? We are planning to rebase Python 3.5 for Fedora and this currently blocks us, if we do not work this around with a patch. Let me know if there is anything I can help with to speed up the process. -- _

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2017-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Support of the 'U' mode is removed in 3.6 (issue27029). -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-07 Thread Xiang Zhang
Xiang Zhang added the comment: Isn't this a discussed behaviour that is explicitly documented in PEP 461? -- ___ Python tracker ___ __

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-07 Thread Stefan Krah
Stefan Krah added the comment: For '%b', it looks like the PEP supports it. I didn't follow the PEP discussions, I think Ethan will know more. -- ___ Python tracker ___

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I agree that it's reasonable to have glibc's aliases override the X.org ones, but this patch makes some pretty significant changes to Python's default assumptions with respect to default encodings for several locales. While some changes obviously make sens

[issue29739] zipfile raises wrong exception for some incorrect passwords

2017-03-07 Thread Jack Cushman
Jack Cushman added the comment: Ah, thanks! That makes sense. I see it's documented in "man unzip" as well: "The correct password will always check out against the header, but there is a 1-in-256 chance that an incorrect password will as well. (This is a security feature of the PKWARE zipfile

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > 'cy_GB.ISO8859-1' to 'cy_GB.ISO8859-14' Looks as just fixing an error. The default West-European ISO8859-1 is changed to Celtic cy_GB.ISO8859-14. This looks better option for Welsh. > 'tg_TJ.KOI8-C' to 'tg_TJ.KOI8-T' KOI8-C is not supported by Python, but

[issue29739] zipfile raises wrong exception for some incorrect passwords

2017-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think that this makes much sense. The exception raised for wrong password is not documented, even the fact that some exception is raised is not documented. In very rare cases you can read a data without any error using wrong password, but the result

[issue29691] Some tests fail in coverage Travis check

2017-03-07 Thread Brett Cannon
Brett Cannon added the comment: So the reason we don't have the coverage run complain loudly is it takes at least 40 minutes to complete, so having to wait for that could potentially be annoying if you're e.g. trying to merge a cherry-pick and you just want to verify you didn't break anything.

[issue29691] Some tests fail in coverage Travis check

2017-03-07 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue29048] Coverage influence tests, make some of them fail

2017-03-07 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue17003] Unification of read() and readline() argument names

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

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 07.03.2017 18:23, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > >> 'cy_GB.ISO8859-1' to 'cy_GB.ISO8859-14' > > Looks as just fixing an error. The default West-European ISO8859-1 is changed > to Celtic cy_GB.ISO8859-14. This looks be

[issue28826] Programming with Python 3.6

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python

[issue23267] multiprocessing pool.py doesn't close inqueue and outqueue pipes on termination

2017-03-07 Thread Camilla Montonen
Camilla Montonen added the comment: I did some investigating using a test script and Python 3.7.0a0 from multiprocessing import Pool import os import time def f(x): time.sleep(30) return x*x if __name__=='__main__': print('Main pid {0}'.format(os.getpid())) p =

[issue20612] cElementTree has problems with StringIO object containing unicode content

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> wont fix stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Pyt

[issue19159] 2to3 incorrectly converts two parameter unicode() constructor to str()

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> wont fix stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___

[issue17343] Add a version of str.split which returns an iterator

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> rejected stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___

[issue26340] modal dialog with transient method; parent window fails to iconify

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> works for me stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue24549] string.format() should have a safe_substitute equivalent, to be run consecutively

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Pyt

[issue27235] Heap overflow occurred due to the int overflow (Python-2.7.11/Modules/posixmodule.c)

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue27619] getopt should strip whitespace from long arguments

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue25901] `make test` crashes in test_httpservers

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> works for me stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue28025] Use IntEnum and IntFlags in ssl module

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: pending -> closed ___ Python tracker ___ _

[issue23150] urllib parse incorrect handing of params

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue8238] Proxy handling very slow

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ P

[issue19253] PyArg_ParseTuple: wrong use of seterror() clips helpful type error annotation

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: patch review -> resolved status: pending -> closed ___ Python tracker ___

[issue6445] Add check parameter to subprocess.Popen.communicate

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue1283110] Give __len__() advice for "don't know"

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +needs review stage: -> patch review status: pending -> open versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker __

[issue26016] io.TextIOWrapper.tell() report 65bit number when mix readline() + tell()

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue25841] In FancyURLopener error in example with http address.

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue25547] Improve repr for files to show whether the file is open or closed.

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: not a bug -> out of date status: pending -> closed ___ Python tracker ___ ___ Python-bugs

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-07 Thread Eric Frederich
Eric Frederich added the comment: I'm wondering if I'm experiencing this same issue. In a simple directory with a foo.py and a bar.py where foo tries to import from bar I cannot get it to work with the embeddable 3.6.0 zip, but the standard 3.6.0 that gets "installed" works fine. Also 3.5.3 wo

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> rejected stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___

[issue2263] struct.pack() + numpy int raises SystemError

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> third party stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ P

[issue19469] Duplicate namespace package portions (but not on Windows)

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: test needed -> resolved status: pending -> closed ___ Python tracker ___ _

[issue16429] Emit SyntaxWarning for code that risks UnboundLocalError

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue20525] Got compiler warning when compiling readline module

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> works for me stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue25641] urllib/request.py/getproxies_environment() throws "dictionary changed size during iteration" error occasionally

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug stage: test needed -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue1158490] locale fails if LANGUAGE has multiple locales

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ __

[issue29695] Weird keyword parameter names in builtins

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-07 Thread Steve Dower
Steve Dower added the comment: Eric - that sounds like the same issue. Can you test with 3.6.1rc1 to see if it is fixed for you? -- ___ Python tracker ___ __

[issue29740] Visual C++ CRT security update from 14 June 2011

2017-03-07 Thread Steve Dower
Steve Dower added the comment: We don't use MFC in Python, so we are not affected. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29750] smtplib doesn't handle unicode passwords

2017-03-07 Thread david
New submission from david: Trying to use unicode passwords on smtplib fails miserably on python3. My particular issue arises on line 643 of said library: (code, resp) = self.docmd(encode_base64(password.encode('ascii'), eol='')) which obviously dies when trying to handle unicode chars. ---

[issue29750] smtplib doesn't handle unicode passwords

2017-03-07 Thread david
david added the comment: I'm sorry I rushed my comment. Same thing happens on line 604 return encode_base64(s.encode('ascii'), eol='') changing both from 'ascii' to 'utf-8' works for me. -- ___ Python tracker _

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2017-03-07 Thread Camilla Montonen
Changes by Camilla Montonen : -- nosy: +Winterflower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29750] smtplib doesn't handle unicode passwords

2017-03-07 Thread R. David Murray
R. David Murray added the comment: See msg253287. Someone should check the RFC. It is not obvious that just encoding using utf8 is correct; fundamentally passwords are binary data. But the auth methods don't currently accept binary data. UTF8 is a reasonable default these days, I think, bu

[issue29740] Visual C++ CRT security update from 14 June 2011

2017-03-07 Thread Markus
Markus added the comment: I beg pardon to be pedantic. The issue is not MFC, but CRT. The related safety bulletin (https://technet.microsoft.com/library/security/ms11-025) says Your application may be an attack vector if all of the following conditions are true: - Your application m

[issue29751] PyLong_FromString fails on decimals with leading zero and base=0

2017-03-07 Thread Cubi
New submission from Cubi: Calling PyLong_FromString(str, NULL, 0) fails, if str is a string containing a decimal number with leading zeros, even though such strings should be parsed as decimal numbers according to the documentation: "If base is 0, the radix will be determined based on the lead

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2017-03-07 Thread STINNER Victor
STINNER Victor added the comment: If you open the can of worms, other features will be requested like uint32+uint32 which would silently overflow. IMHO it would be better to have a package (on PyPI) providing integers of fixed size implementing two's complement arithmetic: int8, uint16, etc. I

[issue29751] PyLong_FromString fails on decimals with leading zero and base=0

2017-03-07 Thread Martin Panter
Martin Panter added the comment: My guess is this is supposed to emulate (or is actually the implementation of) the "int" constructor and the Python syntax. In these cases, numbers with leading zeros are disallowed. This was to help with Python 2 porting, where a leading zero specified an octa

[issue29751] PyLong_FromString fails on decimals with leading zero and base=0

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> docs@python components: +Documentation -Interpreter Core nosy: +docs@python, mark.dickinson type: behavior -> enhancement ___ Python tracker __

[issue29752] Enum._missing_ not called for __getattr__ failures

2017-03-07 Thread Ethan Furman
New submission from Ethan Furman: class Label(Enum): RedApple = 1 GreenApple = 2 @classmethod def _missing_(cls, name): for member in cls: if member.name.lower() == name.lower(): return member Currently, _missing_ is only called when using th

[issue28685] Optimizing list.sort() by performing safety checks in advance

2017-03-07 Thread Elliot Gorokhovsky
Elliot Gorokhovsky added the comment: Will post the final version of this patch as a pull request on Github. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29753] Ctypes Packing Incorrectly - Linux

2017-03-07 Thread Charles Machalow
New submission from Charles Machalow: There appears to be a bug related to sizing/packing of ctypes Structures on Linux. I'm not quite sure how, but this structure: class MyStructure(Structure): _pack_ = 1 _fields_= [ ("P", c_uint16),# 2 Bytes

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-07 Thread Eric Frederich
Eric Frederich added the comment: I can confirm that this is NOT fixed in 3.6.1rc1 embeddable zip. This is extremely easy to reproduce. Look at the contents of foo.py and bar.py. Just throw them in the same directory and try to run C:\path\to\extracted\python.exe foo.py -- versions:

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2017-03-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue17441] Do not cache re.compile

2017-03-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can this be closed. Caching of regexes has been around for a very long time and I expect that a lot of code depends on it. This should not be washed away without considerable discussion. -- nosy: +rhettinger status: pending -> open __

[issue19225] lack of PyExc_BufferError doc

2017-03-07 Thread Tomohiko Kinebuchi
Tomohiko Kinebuchi added the comment: This issue seems pending. > beng94 Would you create a pull request? -- nosy: +cocoatomo ___ Python tracker ___ ___

[issue17441] Do not cache re.compile

2017-03-07 Thread Matthew Barnett
Matthew Barnett added the comment: If we were doing it today, maybe we wouldn't cache them, but, as you say, it's been like that for a long time. (The regex module also caches them, because the re module does.) Unless someone can demonstrate that it's a problem, I'd say just leave it as it is.

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2017-03-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +454 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24329] __qualname__ and __slots__

2017-03-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2017-03-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue29568] undefined parsing behavior with the old style string formatting

2017-03-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2017-03-07 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23267] multiprocessing pool.py doesn't close inqueue and outqueue pipes on termination

2017-03-07 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue29319] Embedded 3.6.0 distribution cannot run pyz files

2017-03-07 Thread Steve Dower
Steve Dower added the comment: Oh, well that's by design. Neither the current working directory nor the directory of the initial script are in sys.path by default - they need to be added explicitly. The intent of this distro is that you know exactly where relative to the executable your modul

[issue29740] Visual C++ CRT security update from 14 June 2011

2017-03-07 Thread Steve Dower
Steve Dower added the comment: There will be no changes to the CRT in the update. It's been released as a major upgrade package rather than a patch, which is why it contains all the files, but the last version field typically (and in this case definitely) indicates no change to the API or impl

  1   2   >