[issue30665] pass big values for arg to fcntl.ioctl

2017-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2334 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 2286 uses for the third argument char* on Linux and int or unsigned int on other platforms. It keeps some degree of integer overflow control. -- nosy: +mark.dickinson, twouters stage: -> patch review versions: +Python 2.7, Python 3.6, Python 3.7

[issue30629] lower() is called twice

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5cc7ac24da10568d2a910a91a24183b904118cf8 by terryjreedy (Motoki Naruse) in branch 'master': bpo-30629: Add Motoki Naruse to Misc/ACKS (#2284) https://github.com/python/cpython/commit/5cc7ac24da10568d2a910a91a24183b904118cf8 -- _

[issue30629] lower() is called twice

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: What persuaded me to make the offer was your extra effort to include the link to the specific line and the minimal quote needed to explain. The link made it trivial to look at the context of the change. -- assignee: -> terry.reedy status: open -> clo

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2017-06-20 Thread Никита Конин
Changes by Никита Конин : -- nosy: +Никита Конин ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: The fixes must be backported to Python 3.6, test_os still leaks references on this branch: test_os leaked [6, 6, 6] memory blocks, sum=18 -- ___ Python tracker __

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2335 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30598] Py_NewInterpreter() leaks a reference on warnoptions in _PySys_EndInit()

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: Nick: "I'd suggest that the right fix here would be to move warnoptions into the config struct as proposed in the PEP: https://www.python.org/dev/peps/pep-0432/#supported-configuration-settings"; Nick, Eric: do you want to do that it? If you are busy, that's f

[issue27584] New addition of vSockets to the python socket module

2017-06-20 Thread Cathy Avery
Cathy Avery added the comment: The vsock code is now in the linux upstream kernel and qemu. I will be resubmitting my vsock patches for python. So from what I can tell the tip of the devel tree is for 3.7 and that the source control has switched to git. My question is do I need a github accoun

[issue25015] Idle: scroll Text faster with mouse wheel

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy, I do not understand your 'Run ...' sentence. Sorry, there was a typo in my sentence. I meant "Run the program 'wish' and enter the following command". -- ___ Python tracker

[issue30709] Bad getter from Descriptor#Properties example

2017-06-20 Thread AnqurVanillapy
New submission from AnqurVanillapy: - The purpose of `obj` in the example is implicit - As an argument the `obj` will cause errors when using Cell('b10').value because it expects more arguments, but 1 given -- assignee: docs@python components: Documentation messages: 296412 nosy: anqur,

[issue27584] New addition of vSockets to the python socket module

2017-06-20 Thread Berker Peksag
Berker Peksag added the comment: You don't need a GitHub account for contributing to CPython, but the pull request workflow is the preferred way. You can still attach your patches to this issue. -- nosy: +berker.peksag ___ Python tracker

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread Peter
Peter added the comment: I'm getting the same 2 errors in Python 3.4.6 on Solaris 11. Comes up when you run 'gmake test' or ./python -W default -bb -E -W error::BytesWarning -m test -r -w -j 0 -v test_locale.py -- nosy: +petriborg ___ Python tracke

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: A solution for that would be to return the raw byte string or to return a list of integers, rather than an unicode string. I don't think that locale.strxfrm() result is supposed to be displayed in a terminal, it should only be used to sort two strings, or to b

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: Currently, the function is documented to return a string: https://docs.python.org/dev/library/locale.html#locale.strxfrm "Transforms a string to one that can be used in locale-aware comparisons." The problem is that we don't have enough developers who care of S

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30576] http.server should support HTTP compression (gzip)

2017-06-20 Thread Pierre Quentel
Pierre Quentel added the comment: Thanks for the comments. I agree with some of them, and have improved the PR accordingly, but I don't agree on the opinion that HTTP compression is beyond the scope of http.server : like browser cache (which also implies a negociation between client and server

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is possible to use the special "encoding" for transformed strings on platforms with broken wcsxfrm(). All codes < 0x1 are not changed. Codes >= 0x1 are encoded as a pair: 0x1 + (code >> 16), code & 0x. -- components: +Interpreter

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Extension Modules -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30703] regrtest hangs on the master branch

2017-06-20 Thread Matt Billenstein
Matt Billenstein added the comment: I've been debugging this and I can repro on El Capitan on a different machine as well -- it's an infrequent hang, I've been running in a loop: mattb@mattb-mbp:~/src/misc/cpython master$ for i in $(seq 1000); do echo "Run: $i -- $(date)"; time./python.exe -m

[issue30703] regrtest hangs on the master branch

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: > I've been debugging this and I can repro on El Capitan on a different machine > as well -- it's an infrequent hang, I've been running in a loop: Hum, a timeout of 3 minutes seems short for test_multiprocessing_forkserver. How long does it take *usually* to r

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2337 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2338 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2339 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30710] getaddrinfo raises OverflowError

2017-06-20 Thread Radek Smejkal
New submission from Radek Smejkal: If the port argument is a number, getaddrinfo attempts to convert it to a C long, that raises OverflowError if the conversion fails. Instead, getaddrinfo should convert the port to a string (bytes) directly and rely on the underlying getaddrinfo to return EAI

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: When porting the change to Python 3.4, I found this older change: if _hostprog is None: -_hostprog = re.compile('^//([^/?]*)(.*)$') +_hostprog = re.compile('//([^/?]*)(.*)', re.DOTALL) match = _hostprog.match(url) if match: -

[issue30711] getaddrinfo invalid port number

2017-06-20 Thread Radek Smejkal
New submission from Radek Smejkal: Some getaddrinfo implementations do not detect invalid numeric services and blindly pass the port number to htons(). For example, service "960179" is returned as port 42675. glibc https://sourceware.org/bugzilla/show_bug.cgi?id=16208 https://sourceware.org/gi

[issue30597] Show expected input in custom "print" error message

2017-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Interpreter Core stage: needs patch -> commit review versions: -Python 3.6 ___ Python tracker ___ _

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2340 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30597] Show expected input in custom "print" error message

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3a7f03584ab75afbf5507970711c87042e423bb4 by Serhiy Storchaka (Sanyam Khurana) in branch 'master': bpo-30597: Show expected input in custom 'print' error message. (#2009) https://github.com/python/cpython/commit/3a7f03584ab75afbf5507970711c87042e

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-20 Thread knzsys
New submission from knzsys: #Working code: from struct import * rawdata = 'A'*196 laserdata = list(unpack('2s2s29H',rawdata[14:76])) laserdata += list(unpack('26f3L4s',rawdata[76:196])) #This code generates error: from struct import * rawdata = 'A'*196 laserd

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4899d847ed3f56b2a712799f896aa1f28540a5c0 by Victor Stinner in branch '3.5': bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2290) https://github.com/python/cpython/commit/4899d847ed3f56b2a712799f896aa1f28540a5c0 ---

[issue30597] Show expected input in custom "print" error message

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

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-20 Thread knzsys
Changes by knzsys : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 536c1f1246f4faa302f9f5613fc3444e7ae09b4a by Victor Stinner in branch '3.6': bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2289) https://github.com/python/cpython/commit/536c1f1246f4faa302f9f5613fc3444e7ae09b4a ---

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-20 Thread knzsys
knzsys added the comment: #Working code: from struct import * rawdata = 'A'*196 laserdata = list(unpack('2s2s29H',rawdata[14:76])) laserdata += list(unpack('26f3L4s',rawdata[76:196])) #This code generates error: from struct import * rawdata = 'A'*196 laserdat

[issue30597] Show expected input in custom "print" error message

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually end=' ' in Python 3 is not exact replacement of the trailing comma in Python 2. But it covers most of cases. The difference is too subtle and too subtle for the user that makes an error of using Python 2 syntax in Python 3. -- _

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2341 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2342 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2343 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-20 Thread SylvainDe
Changes by SylvainDe : -- nosy: +SylvainDe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2344 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 410860662f53945cddf5886801c5a88a84801fec by Victor Stinner in branch '3.5': bpo-30500: Fix the NEWS entry (#2295) https://github.com/python/cpython/commit/410860662f53945cddf5886801c5a88a84801fec -- _

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 82acabd3c52508d9e3f83a41fe7c684619cbbe7b by Victor Stinner in branch '3.6': bpo-30500: Fix the NEWS entry (#2296) https://github.com/python/cpython/commit/82acabd3c52508d9e3f83a41fe7c684619cbbe7b -- _

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8457706ee308a621103e9b9c760ca9da3cc4e7c0 by Victor Stinner in branch 'master': bpo-30500: Fix the NEWS entry (#2293) https://github.com/python/cpython/commit/8457706ee308a621103e9b9c760ca9da3cc4e7c0 -- __

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I didn't expected that newlines can be in a host name. In any case if newlines are a problem, it is better to check explicitly whether a host name contains CR, LF or other special characters. And it is better to do such checks when format a request rathe

[issue29755] python3 gettext.lgettext sometimes returns bytes, not string

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 26cb4657bcc9a7adffa95798ececb588dddfeadb by Serhiy Storchaka in branch 'master': bpo-29755: Fixed the lgettext() family of functions in the gettext module. (#2266) https://github.com/python/cpython/commit/26cb4657bcc9a7adffa95798ececb588dddfead

[issue29755] python3 gettext.lgettext sometimes returns bytes, not string

2017-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2345 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29755] python3 gettext.lgettext sometimes returns bytes, not string

2017-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2346 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset d4324baca4c03eb8d55446cd1b74b32ec5633af5 by Victor Stinner in branch '2.7': bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2294) https://github.com/python/cpython/commit/d4324baca4c03eb8d55446cd1b74b32ec5633af5 ---

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: > It is possible to use the special "encoding" for transformed strings on > platforms with broken wcsxfrm(). I wouldn't say that the function is wrong. wchar_t is 32-bit long, the function is free to use numbers > 0x10. It's more a Python limitation, no? -

[issue30710] getaddrinfo raises OverflowError

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What do you mean by converting the port to a string (bytes) directly? Can you provide an example? -- nosy: +serhiy.storchaka ___ Python tracker _

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-20 Thread knzsys
knzsys added the comment: the pack function has the same error: it adds additional 2 bytes -- ___ Python tracker ___ ___ Python-bugs-l

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: > New changeset d4324baca4c03eb8d55446cd1b74b32ec5633af5 by Victor Stinner in > branch '2.7': Oh, I was too fast. I wanted to see an agreement on DOTALL before merging this one. I missed that the 2.7 change also added DOTALL. I had to handle many branches (2.

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree, it's more a Python limitation. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg296425 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: I tested my system python2 (Python 2.7.13 on Fedora 25): haypo@selma$ python2 Python 2.7.13 (default, May 10 2017, 20:04:28) >>> urllib.splithost('//hostname/url') ('hostname', '/url') >>> urllib.splithost('//host\nname/url') # newline in hostname, accepted ('

[issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/770/steps/test/logs/stdio == FAIL: test_timeout (test.test_multiprocessing_spawn.WithManagerTestQueue) ---

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: > Agree, it's more a Python limitation. Why do you think of changing locale.strxfrm() from str to bytes or tuple? I prefer a tuple. But again, I'm not super motivated by this change. IMHO there are more severe issues that should be fixed in Solaris.

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-20 Thread SylvainDe
SylvainDe added the comment: Could it be caused by alignment ? Also, it could be interesting to explain a bit more what you expect and what you actually get. -- ___ Python tracker

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The urllib package consists of two parts: urllib.parse and urllib.request. I think urllib.request is responsible for making valid requests and validate arguments if needed. -- ___ Python tracker

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: rebuild_expat_dir.sh: Script to update Modules/expat/ to libexpat 2.2.1. The script requires to manually revert one change in Modules/expat/expat_external.h to restore the #include "pyexpatns.h" line. -- Added file: http://bugs.python.org/file46962/reb

[issue16258] test_local.TestEnUSCollection failures on Solaris 10

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This will change the documented behavior. Even if allow this change in a new feature release, it can't be made in maintained releases. A tuple of integers is memory excessive and slow. A bytes object is more compact (but may be less compact than a string) an

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2347 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Or more low-level modules used by urllib.request: http, ftplib, etc. -- ___ Python tracker ___ ___

[issue30712] struct.unpack generates wrong error in certain conditions

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Don't forget about an alignment. If the first character is not one of '@', '=', '<', '>' or '!', '@' is assumed, which means native byte order, type sizes and alignments. If the 'f' format character require 4-byte alignment, 2 padding bytes are inserted befo

[issue29755] python3 gettext.lgettext sometimes returns bytes, not string

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a1115e1a0454f0548f96cace6ee97b286dfa1c0d by Serhiy Storchaka in branch '3.6': [3.6] bpo-29755: Fixed the lgettext() family of functions in the gettext module. (GH-2266) (#2297) https://github.com/python/cpython/commit/a1115e1a0454f0548f96cace6e

[issue29755] python3 gettext.lgettext sometimes returns bytes, not string

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 29c89d00bf4b57c5ee2aafe660002ce1b8cea176 by Serhiy Storchaka in branch '3.5': [3.5] bpo-29755: Fixed the lgettext() family of functions in the gettext module. (GH-2266) (#2298) https://github.com/python/cpython/commit/29c89d00bf4b57c5ee2aafe660

[issue29755] python3 gettext.lgettext sometimes returns bytes, not string

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As for the original issue in the Debian bug tracker, lgettext() and ugettext() are two right ways (depending on how you format the output, as 8-bit strings or as Unicode strings) for doing localization in Python 2, but gettext() is the right way in Python 3.

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-20 Thread STINNER Victor
New submission from STINNER Victor: Spin-off of the bpo-30500: modify the urllib.parse module to reject the newline character (U+000A) in URLS. Modify 3 functions: * splittype() * splithost() * splitport() -- messages: 296453 nosy: haypo priority: normal severity: normal status: open t

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2348 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30500] [security] urllib connects to a wrong host

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-30713: "Reject newline character (U+000A) in URLs in urllib.parse", to discuss how to handle newlines in URLs. -- ___ Python tracker

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: I chose to not change how the \r newline character (U+000D) is handled: it is still accepted, even if it is used in SMTP and HTTP as newline separator. -- ___ Python tracker _

[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-20 Thread Charalampos Stratakis
New submission from Charalampos Stratakis: After updating openssl in Fedora 26 from 1.1.0e to 1.1.0f the test_alpn_protocols from test_ssl started failing: == FAIL: test_alpn_protocols (test.test_ssl.ThreadedTests)

[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +christian.heimes, haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue29606. I think that fixing the modules implementing Internet protocols is more appropriate way than fixing just a parsing utility. -- nosy: +serhiy.storchaka ___ Python tracker

[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-20 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Note: Python version is 3.6.1 -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: > See also issue29606. I think that fixing the modules implementing Internet > protocols is more appropriate way than fixing just a parsing utility. IMHO we can/should fix ftplib (ftplib, httplib, etc.) *and* urllib. -- ___

[issue13617] Reject embedded null characters in wchar* strings

2017-06-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2349 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30703] regrtest hangs on the master branch

2017-06-20 Thread Matt Billenstein
Matt Billenstein added the comment: It consistently takes between ~61 and ~73 seconds with this setup. -- ___ Python tracker ___ ___ P

[issue13617] Reject embedded null characters in wchar* strings

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 2302 doesn't fix all issues with PyUnicode_AsWideCharString(). Issue30708 should fix them. -- dependencies: +Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned __

[issue13617] Reject embedded null characters in wchar* strings

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

[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-06-20 Thread Brett Cannon
Brett Cannon added the comment: And hence why you proposed having a counter of 128 (or some number) to prevent the infinite recursion. I think this has gotten sufficiently complicated and into the bowels of CPython itself it might make sense to ask for a reviewer from python-committers (I don

[issue30054] Expose tracemalloc C API to track/untrack memory blocks

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5ea4c0677389ead2eee759958694cff2c65834a7 by Victor Stinner in branch 'master': bpo-30054: Expose tracemalloc C API (#1236) https://github.com/python/cpython/commit/5ea4c0677389ead2eee759958694cff2c65834a7 --

[issue30054] Expose tracemalloc C API to track/untrack memory blocks

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: I merged my PR: the future Python 3.7 will provide a public C API to track memory allocations. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: The ALPN test expects an error on OpenSSL >= 1.1, and an error on older OpenSSL versions. Note: I don't know what is ALPN :-) I found: https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation -- ___ Pyth

[issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/x86%20Windows7%203.5/builds/299/steps/test/logs/stdio == FAIL: test_timeout (test.test_multiprocessing_spawn.WithProcessesTestQueue) -

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2350 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: I tried to be more strict, and I was bitten by tests: test_urllib fails on splittype("data:...") where (...) contains newlines characters. One example: == ERROR: test_read_text_base64 (test.te

[issue30616] Cannot use functional API to create enum with zero values

2017-06-20 Thread Dong-hee Na
Changes by Dong-hee Na : -- pull_requests: +2351 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-20 Thread Christian Heimes
Christian Heimes added the comment: I can confirm that OpenSSL has changed behavior of ALPN hook between 1.1.0e and 1.1.0f. The change was probably introduced by https://github.com/openssl/openssl/pull/3158/commits/b3159f23b293c3d1870ab7b816e4e07386efbe53 I need to investigate further. --

[issue28827] f-strings: format spec should not accept unicode escapes

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should this issue be closed as "not a bug"? -- status: open -> pending ___ Python tracker ___ ___

[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-20 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +2352 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-20 Thread Christian Heimes
Christian Heimes added the comment: Ned, I like to address this issue for 3.6.2. The fix only affects one test and documentation. -- nosy: +benjamin.peterson, larry, ned.deily priority: normal -> release blocker versions: +Python 2.7, Python 3.5, Python 3.7

[issue30710] getaddrinfo raises OverflowError

2017-06-20 Thread Radek Smejkal
Radek Smejkal added the comment: Use PyObject_Str and PyUnicode_AsUTF8 if the port argument is a PyLong instead of converting it to an intermediate C long that may raise OverflowError. See getaddrinfo_overflow_error.patch -- components: +Extension Modules -Library (Lib) keywords: +patc

[issue30713] Reject newline character (U+000A) in URLs in urllib.parse

2017-06-20 Thread Nam Nguyen
Nam Nguyen added the comment: Just being nosy here that we should not continue down the path with regex. A proper grammar parser according to spec would be much more appropriate and eliminate these whack-a-mole issues. -- nosy: +Nam.Nguyen ___ Pytho

[issue30710] getaddrinfo raises OverflowError

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now I understand your idea. It looks reasonable to me. Could you create a pull request on GitHub? Please provide also tests, add a Misc/NEWS entry and add your name in Misc/ACKS. But how large is the performance hit of this change? It adds at least one addi

[issue30715] Test_winreg, test_dynamic_key hangs on my Win 10

2017-06-20 Thread Terry J. Reedy
New submission from Terry J. Reedy: On my Win10-64 machine, test_winreg hangs, impervious to ^C. I have to close Command Prompt. (With IDLE I can run just test_winreg and then Restart Shell.) This happened with repository builds last Friday and today, and with installed 3.6.2rc1. But I bel

[issue30715] Test_winreg, test_dynamic_key hangs on my Win 10

2017-06-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: behavior -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

  1   2   >