[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: So a potentially more robust fix here would be to always call `PySys_SetArgVEx(argc, argv, 0)` rather than the plain `PySys_SetArgV` when we know we're going to be relying on RunMainFromImporter. That way RunMainFromImporter could just *always* insert at the

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, interesting, I didn't know there was a difference between the platforms in when the placeholder got resolved to a full path. However, after browsing the code and running some local tests, it seems that injecting sys.path[0] isn't handled by Py_GetPath() or

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-03-07 Thread Xiang Zhang
Xiang Zhang added the comment: Any reason our _Py_stat_struct on Windows uses a signed type to represent st_ino? -- nosy: +eryksun, steve.dower ___ Python tracker

[issue29753] Ctypes Packing Incorrectly - Linux

2017-03-07 Thread Eryk Sun
Changes by Eryk Sun : -- versions: +Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue29753] Ctypes Packing Incorrectly - Linux

2017-03-07 Thread Eryk Sun
Eryk Sun added the comment: To make it simpler to diagram the fields, I've rewritten your structure using field names A-J: import ctypes class MyStructure(ctypes.Structure): _pack_ = 1 _fields_ = (('A', ctypes.c_uint16), # 2 bytes ('B',

[issue29753] Ctypes Packing Incorrectly - Linux

2017-03-07 Thread Charles Machalow
Charles Machalow added the comment: Some more debug with print statements in the c code seems to confirm my suspicion: bitsize, pfield_size, bitofs, dict->size prints were added just above the if chain to determine fieldtype and fieldtype was just after that if chain. That code looks

[issue17441] Do not cache re.compile

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

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not all platforms use glibc 2.24 as libc. Ideally most of entries should even not exist. We should ask libc for the default encoding if it is not included in the locale name. The aliases table should be used only for mapping commonly used but unsupported by

[issue29753] Ctypes Packing Incorrectly - Linux

2017-03-07 Thread Charles Machalow
Charles Machalow added the comment: Took a quick look at the c code for this. The area at fault appears to be this section in cfield.c: #ifndef MS_WIN32 } else if (bitsize /* this is a bitfield request */ && *pfield_size /* we have a bitfield open */ && dict->size * 8 >=

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-07 Thread Eryk Sun
Eryk Sun added the comment: > It's actually "adding" the current directory It's the script directory, which gets added on all platforms when PySys_SetArgv is called with Py_IsolatedFlag == 0. In this case we're running "__main__.py" from a directory or zip file, and we don't want its parent

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: I just merged https://github.com/python/cpython/commit/93602e3af70d3b9f98ae2da654b16b3382b68d50 as the fix for issue #29537, so 3.5.4+ should handle legacy bytecode files without any complaints (and redistributors can backport it to 3.5.3 as needed). For

[issue29571] test_re is failing when local is set for `en_IN`

2017-03-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +457 ___ Python tracker ___ ___

[issue29571] test_re is failing when local is set for `en_IN`

2017-03-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +456 ___ Python tracker ___ ___

[issue29537] Alternative fix for BUILD_MAP_UNPACK_WITH_CALL opcode in 3.5

2017-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: Merged (with test cases) in https://github.com/python/cpython/commit/93602e3af70d3b9f98ae2da654b16b3382b68d50 The test cases even cover ensuring the backwards compatibility also applies to frozen bytecode :) -- resolution: -> fixed stage: patch review

[issue20087] Mismatch between glibc and X11 locale.alias

2017-03-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why is the X11 locale alias map used at all? It seems like it can only create confusion with libc. -- nosy: +benjamin.peterson ___ Python tracker

[issue29754] sorted ignores reverse=True when sorting produces same list

2017-03-07 Thread Tim Peters
Tim Peters added the comment: Your last line can't possibly return True, because `somelist.reverse()` returns None. So the last line is irrelevant. Your complaint appears to be about the line before, which shows that the list retains its original order. That's expected. All the keys are

[issue29571] test_re is failing when local is set for `en_IN`

2017-03-07 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +455 ___ Python tracker ___ ___

[issue19837] Wire protocol encoding for the JSON module

2017-03-07 Thread Clay Gerrard
Clay Gerrard added the comment: and for *encoding* case? Can you just add the encoding argument back to json.dumps? Have it default to None because of backwards compatibility in python3 and continue to return strings by default... ... and then *everyone* that ever wants to *serialize* an

[issue29754] sorted ignores reverse=True when sorting produces same list

2017-03-07 Thread Tomas Dabašinskas
New submission from Tomas Dabašinskas: sorted ignores reverse=True when sorting produces same list, I was expecting reverse regardless of the sorting outcome. Python 3.5.2 (default, Jul 17 2016, 00:00:00) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-07 Thread Steve Dower
Steve Dower added the comment: It's actually "adding" the current directory by not replacing the empty string that's normally there, presumably because it's already been resolved into a path at this stage. The behavior on Windows is correct, so I expect it's actually a difference between

[issue29537] Alternative fix for BUILD_MAP_UNPACK_WITH_CALL opcode in 3.5

2017-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: I just realised I need to add some test cases to test_importlib/source/test_file_loader.py before merging it, but since Larry hasn't objected to the proposed approach, I'm going to go ahead and implement this fix. --

[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

[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

[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 ___ ___

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

2017-03-07 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___

[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 ___

[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 ___

[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 ___

[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

[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

[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 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

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

2017-03-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> davin ___ Python tracker ___ ___

[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 --

[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

[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

[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

[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

[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

[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.

[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

[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

[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,

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

2017-03-07 Thread Camilla Montonen
Changes by Camilla Montonen : -- nosy: +Winterflower ___ Python tracker ___ ___

[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

[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.

[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

[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

[issue29695] Weird keyword parameter names in builtins

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed status: open -> 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

[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

[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

[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 ___

[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

[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

[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

[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

[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 ___

[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 ___

[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 ___

[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

[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 ___

[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

[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

[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 ___

[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

[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

[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 ___

[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 ___

[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

[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

[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

[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

[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

[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 =

[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 ___

[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

[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

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

2017-03-07 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___

[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 ___

[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

[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

[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,

[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

[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

[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

[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 ___

[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

[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. --

[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

[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

[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 ___

[issue17441] Do not cache re.compile

2017-03-07 Thread Guido van Rossum
Changes by Guido van Rossum : -- status: open -> pending ___ Python tracker ___ ___

[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 ___

[issue29747] unittest - assertDoesNotRaise

2017-03-07 Thread Vinícius Dantas
Changes by Vinícius Dantas : -- pull_requests: +453 ___ 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

[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

[issue17441] Do not cache re.compile

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[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

[issue10030] Patch for zip decryption speedup

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +452 ___ Python tracker ___ ___

  1   2   >