[issue30720] re.sub substitution match group contains wrong value after unmatched pattern was processed

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Atomic groups can help you: '((?>.*?))'. But this feature is not supported in the re module yet (see issue433030). You can use the third-party regex module which is compatible with the re module and supports atomic grouping. >>> import regex as re >>> patte

[issue30710] getaddrinfo raises OverflowError

2017-06-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why can't the user simply pass in a string service name in the first place? -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue30721] Show expected input for right shift operator usage in custom "print" error message

2017-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: The specific error in question here is the one where Python 3 reads the old Python 2 stream redirection syntax as a combination of the right shift operator and tuple creation: ``` >>> print >> sys.stderr, "message" Traceback (most recent call last): File "", l

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

2017-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: Also adding Ned to the nosy list, since it's ultimately his call as the 3.6 release manager. Ned: the context here is that we just landed an improvement to the custom error message for Py2-style print syntax that also says how to fix the problem, rather than ju

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

2017-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, having written the above comment, I belatedly remembered why I originally suggested this be handled as a maintenance issue rather than as a regular enhancement: I'd like to backport it to the Python 3.6 stack in Fedora, and I think it's better to do that k

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

2017-06-20 Thread knzsys
knzsys added the comment: just an example, how the pack function behaves with the same format string: before: 13830108be00cafe3e05ecbc513800043c9be14125359541bf3380447452e041. after: 13830108be00cafe3e05ecbc513800043c9be14125359541bf3380447452e041

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

2017-06-20 Thread knzsys
knzsys added the comment: Thanks a lot. changing format string from '2s2s29H26f3L4s' to '=2s2s29H26f3L4s' worked for me. But I still do not understand, why it's working if I splitt format string in 2 parts + use the (un)pack command 2 times ('2s2s29H' + '26f3L4s' are working separately, but '=

[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Installed 3.6.2rc1 is showing the same errors for test_random and test_sax. #30716. -- nosy: +terry.reedy ___ Python tracker ___ _

[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Why de we would 'want' /r/n on Windows? What beside Notepad can't handle /n? -- ___ Python tracker ___

[issue30721] Show expected input for right shift operator usage in custom "print" error message

2017-06-20 Thread Sanyam Khurana
New submission from Sanyam Khurana: While working on issue: http://bugs.python.org/issue30597 to enhance the custom error message by showing expected output in Python3 syntax when someone uses Python2 syntax, a PR was raised: https://github.com/python/cpython/pull/2009, where we just handled t

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

2017-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: We'll likely still move it eventually, but I don't think that's a good reason to keep this issue open - it's more a part of making incremental progress towards being able to make PEP 432 a public API. -- resolution: -> fixed stage: -> resolved status:

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

2017-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: A note regarding the applicable versions: for the original custom warning, we decided it made sense to change it in a maintenance release, since the generic syntax error really was incredibly cryptic, and we wanted to get the update into the hands of users as qu

[issue30720] re.sub substitution match group contains wrong value after unmatched pattern was processed

2017-06-20 Thread William Budd
William Budd added the comment: Doh! This has a really easy solution, doesn't it; just replace "." with "[^<]": re.compile('([^<]*?)', flags=re.DOTALL). Sorry about the noise. -- ___ Python tracker __

[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change needs changing one ctypes test, and can break third-party tests or even a code. That is why it is targeted only for 3.7. I'm going to backport the change as a private function for using in CPython internally since this can fix vulnerabilities. -

[issue30422] Add roadmap.txt section to idlelib

2017-06-20 Thread Louie Lu
Louie Lu added the comment: Terry, how do you think about the roadmap? I have two component that I think it should be put on the roadmap. 1. the goto/search/replace dialog to single-window app (#30521, #27115) >From internal diagram (https://i.imgur.com/1WZwakQ.png) it seem to >search/replace

[issue13617] Reject embedded null characters in wchar* strings

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: While working on this issue I found a way to inject environment variables for a subprocess on Windows. Reclassified this issue as a security issue. PR 2302 fixes this. May be there are other security vulnerabilities fixed by it. -- type: behavior ->

[issue30720] re.sub substitution match group contains wrong value after unmatched pattern was processed

2017-06-20 Thread William Budd
William Budd added the comment: I now see you're right of course. Not a bug after all. Thank you. I mistakenly assumed that the group boundary ")" would delimit the end of the non-greedy match group. I.e., ".*?" versus ".*?". I don't see a way to accomplish the "even less greedy" variant I'm l

[issue30717] str.center() is not unicode aware

2017-06-20 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30720] re.sub substitution match group contains wrong value after unmatched pattern was processed

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is non-greedy. But it needs matching not just '', but ''. After finding the first '' it doesn't see the '' after it and continue searching until found ''. -- ___ Python tracker

[issue30720] re.sub substitution match group contains wrong value after unmatched pattern was processed

2017-06-20 Thread William Budd
William Budd added the comment: I don't understand... Isn't the "?" in ".*?" supposed to make the ".*" matching non-greedy, hence matching the first "" rather than the last ""? -- ___ Python tracker __

[issue30720] re.sub substitution match group contains wrong value after unmatched pattern was processed

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works correctly. It finds a substring that starts with '' and ends with '' from left to right. The leftmost found substring starts from index 0 and ends before the final '\n'. Overlapped substrings are not found. -- nosy: +serhiy.storchaka resolut

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-20 Thread Martin Panter
Martin Panter added the comment: Sounds similar to Issue 27425. Did rc1 get built with mangled newlines or something? -- components: +Tests, Windows nosy: +martin.panter, paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue30720] re.sub substitution match group contains wrong value after unmatched pattern was processed

2017-06-20 Thread William Budd
New submission from William Budd: pattern = re.compile('(.*?)', flags=re.DOTALL) # This works as expected in the following case: print(re.sub(pattern, '\\1', 'foo\n' 'bar123456789\n')) # which outputs:

[issue30717] str.center() is not unicode aware

2017-06-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: http://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries talks about *grapheme clusters*, not "graphemes" alone, and it seems clear to me that they are language dependent. For example, it says: The Unicode Standard provides default algorithms for dete

[issue30717] str.center() is not unicode aware

2017-06-20 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Thanks for all those interesting cases you brought here! I didn't think of that at all! I'm using the word "grapheme" as per the definition given in UAX TR29 which is *not* language/locale dependant [1]. This annex is very specific and precise about where

[issue30717] str.center() is not unicode aware

2017-06-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't think graphemes is the right term here. Graphemes are language dependent, for instance "dž" may be considered a grapheme in Croatian. https://en.wikipedia.org/wiki/D%C5%BE http://www.unicode.org/glossary/#grapheme I believe you are referring to combini

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In msg149930, Roger said "There are two major changes that are not covered by other issues (AFAIK). 1) The "PseudoStderrFile" in PyShell.py brings the shell forward if an error occurs. I like this behavior. 2) Run a script without saving it first. This functio

[issue30719] IDLE: Make PyShell visible upon error.

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The lift action should only happen in the IDLE GUI process. When I retrace the data flow, I should document it. -- ___ Python tracker ___

[issue30719] IDLE: Make PyShell visible upon error.

2017-06-20 Thread Terry J. Reedy
New submission from Terry J. Reedy: Spinoff from #10079. "PseudoStderrFile" in PyShell.py brings the shell forward if an error occurs. It should be possible to extract G. Polo's patch for that class from the megapatch. A possible issue is that PseudoStdoutFile and PseudoStderrFile have been c

[issue5680] Command-line arguments when running in IDLE

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Running with arguments is only one requested or possible deviation from the standard F5 mode. See #19042, msg296498, for many more. I am thinking that there should be one menu entry (Custom Run, Alt-F5)? that brings up a box with alternatives, initially defa

[issue19042] Idle: run from editor without explicit save

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I rewrote title to slightly generalize, and add and document here on the tracker additional variations that have been requested or that I have thought of. 1. Autosave to somewhere, like .idlerc/untitled.py 2. Run without saving, by stuffing code lines into t

[issue27388] IDLE configdialog: reduce multiple references to Var names

2017-06-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: Created a pull request for this - "The varnames, like method names, are internal to configdialog and can lowercased (PEP8) and otherwised changed." -- nosy: +csabella ___ Python tracker

[issue27388] IDLE configdialog: reduce multiple references to Var names

2017-06-20 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2354 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue24718] Specify interpreter when running in IDLE

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From your post, it was unclear to me what you are actually asking for. From >reading the bitbucket thread, it appears that you want something I cannot give >you -- a built-in privileged position in IDLE. However, as I said before, you >can write a pgz exten

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: So, I made final tests with the merged commit. I manually uninstalled (Active)Perl. Without the commit, the compilation of ssl failed on my Windows VM since I'm using VS 2008. (1) using build.bat git clean -fdx In the VS2008 shell, type: PC\VS9.0\build.bat -e

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: Oh, it seems like the compilation of expat 2.2.0 fails on Windows with VS 9.0: http://bugs.python.org/issue30368#msg296493 But it seems like expat 2.2.1 is going to fix this compilation issue! -- ___ Python tracker

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: In a previous build, build 111 (June 6), the compilation of _elementtree succeeded: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%20VS9.0%202.7/builds/111/steps/compile/logs/stdio _elementtree - 0 error(s), 10 warning(s) I also see that the co

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: I checked AMD64 Windows7 SP1 VS9.0 2.7. Before the commit, the build 129 failed badly when building ssl: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%20VS9.0%202.7/builds/129/steps/compile/logs/stdio IOError: [Errno 2] No such file or directo

[issue5680] Command-line arguments when running in IDLE

2017-06-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +louielu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue5680] Command-line arguments when running in IDLE

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #28889, with a 4th patch, in favor of this one. Gabriel, you somehow never signed the PSF Contributor License Agreement. Until you do, I will assume that anything you did is covered by the other 3 patches. -- versions: +Python 3.7 -Python 2.7

[issue30351] regrtest hangs on x86 Windows XP 2.7

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%202.7/builds/131/steps/test/logs/stdio ... 0:05:06 [401/404] test_strptime passed 0:05:07 [402/404] test_test_support passed 0:05:29 [403/404] test_largefile passed (39 sec) -- running: test_weakref

[issue28889] IDLE needs the ability to pass in command-line arguments

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another duplicate of #5680, which already has three patches. I retitled the PR and it is now listed on #5680. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Command-line arguments when running in IDLE _

[issue5680] Command-line arguments when running in IDLE

2017-06-20 Thread Louie Lu (old)
Changes by Louie Lu (old) : -- pull_requests: +2353 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30368] [2.7] OpenSSL compilation fails on AMD64 Windows7 SP1 VS9.0 2.7

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset ebbccea997e03f60fec8308f2fb9e89a11521a74 by Victor Stinner (Jeremy Kloth) in branch '2.7': bpo-30368: Update build_ssl.py to restore Perl-less building (#1805) https://github.com/python/cpython/commit/ebbccea997e03f60fec8308f2fb9e89a11521a74 ---

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: Oh, and thank you Peter Parente for the bug report, and for the script to reproduce the bug. It was usual to validate that the bug is now fixed. -- ___ Python tracker

[issue30524] iter(classmethod, sentinel) broken for Argument Clinic class methods?

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: bpo-30473 has been marked as a duplicate of this bug. -- ___ Python tracker ___ ___ Python-bugs-list

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-06-20 Thread STINNER Victor
STINNER Victor added the comment: This bug is a duplicate of bpo-30524. Louie Lu: "This bug is introduce at commit: 37e4ef7b17ce6e98ca725c0a53ae14c313c0e48c, then fixed at commit: 998c20962ca3e2e693c1635efe76c0144dde76fc" This is the fix for master. For Python 3.6, the fix is the commit f0ff

[issue4765] IDLE fails to "Delete Custom Key Set" properly

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue (and a similar one for custom themes) was fixed in #27245 with a different patch, but to the same effect. -- nosy: -BreamoreBoy resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> IDLE: Fix deletio

[issue27245] IDLE: Fix deletion of custom themes and key bindings

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #4765, which I just closed as a duplicate, G Polo had same idea of applying change at top. https://bugs.python.org/file14645/removekeybindingswhiletheyexist.diff -- assignee: -> terry.reedy ___ Python tracker

[issue30718] open builtin function: specifying the size of buffer has no effect for text files

2017-06-20 Thread Mansoor Ahmed
New submission from Mansoor Ahmed: *This behavior was tested on a Linux system with Python 3.5 and 3.6 Passing the buffer size for the builtin function `open` has no effect for files opened in text mode: >>> sys.version '3.5.3 (default, Jan 19 2017, 14:11:04) \n[GCC 6.3.0 20170118]' >>> f =

[issue17822] Save on Close windows (IDLE)

2017-06-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy nosy: -BreamoreBoy stage: -> test needed versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker _

[issue1074333] On linux, numeric pad input is ignored when numlock off

2017-06-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ __

[issue30714] test_ssl fails with openssl 1.1.0f

2017-06-20 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: -> christian.heimes stage: -> patch review type: -> behavior ___ Python tracker ___ ___

[issue6699] IDLE: Warn user about overwriting a file that has a newer version on filesystem

2017-06-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: roger.serwy -> terry.reedy nosy: +terry.reedy -BreamoreBoy versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker __

[issue21519] IDLE : Bug in keybinding validity check

2017-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: #6739 also has a patch to refuse invalid key bindings. -- assignee: -> terry.reedy versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4 ___ Python tracker ___

[issue6739] IDLE: refuse invalid key bindings

2017-06-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy title: IDLE window won't start or show up after assgining new key in options v2.5.2 and 3.1.1 -> IDLE: refuse invalid key bindings versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

[issue29933] asyncio: set_write_buffer_limits() doc doesn't specify unit of the parameters

2017-06-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 5200a7c7f9ea65a96330c5f276f4acc6ec70854e by Mariatta (Kojo Idrissa) in branch 'master': bpo-29933: Improve set_write_buffer_limits description (GH-2262) https://github.com/python/cpython/commit/5200a7c7f9ea65a96330c5f276f4acc6ec70854e -

[issue30717] str.center() is not unicode aware

2017-06-20 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Obviously, I'm talking about str.center() but all functions needing a count of graphemes are then not totally correct. I can fix that and add the corresponding function, or an iterator over graphemes, or whatever seems right :) --

[issue30717] str.center() is not unicode aware

2017-06-20 Thread Guillaume Sanchez
New submission from Guillaume Sanchez: "a⃑".center(width=5, fillchar=".") produces '..a⃑.' instead of '..a⃑..' The reason is that "a⃑" is composed of two code points (2 UCS4 chars), one 'a' and one combining code point "above arrow". str.center() counts the size of the string and fills it both

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2017-06-20 Thread Terry J. Reedy
New submission from Terry J. Reedy: 3.6.2rc1, 64 bit version, installed on my Win10 machine, has 5 failures not present in my 32-bit debug repository builds. Auto Windows updates is on. Results same after uninstall and re-install. F:\dev\3x>py -3 -c "import sys; print(sys.version)" 3.6.2rc1

[issue30035] [RFC] PyMemberDef.name should be const char *

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

[issue30702] pickle uses getattr(obj, '__reduce__') instead of getattr(type(obj), '__reduce__')

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue16251. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> pickle special methods are looked up on the instance rather than the type _

[issue29269] test_socket failing in solaris

2017-06-20 Thread Jim Crigler
Jim Crigler added the comment: I'm having the same problem with gcc 6.2. Is there any update? -- nosy: +Jim Crigler ___ Python tracker ___ __

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

[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

[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

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

[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

[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

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

[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

[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

[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

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

[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

[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

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

[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

[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

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

[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
Changes by Serhiy Storchaka : -- pull_requests: +2349 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

[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 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 STINNER Victor
Changes by STINNER Victor : -- nosy: +christian.heimes, haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

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

[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
Changes by STINNER Victor : -- pull_requests: +2348 ___ 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
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

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

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

[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

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

[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

[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

  1   2   >