[issue35380] Enable TCP_NODELAY for proactor event loop

2018-12-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +10103 stage: -> patch review ___ Python tracker ___ ___

[issue35386] ftp://www.pythontest.net/ returns error 500

2018-12-03 Thread STINNER Victor
New submission from STINNER Victor : The FTP server running at www.pythontest.net returns randomly errors with the code 500. Example: $ lftp www.pythontest.net lftp www.pythontest.net:~> ls -r--r--r--1 33 33123 Jun 06 04:15 README lftp www.pythontest.net:/> get README «

[issue26868] Document PyModule_AddObject's behavior on error

2018-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26868] Document PyModule_AddObject's behavior on error

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: issue26868_v2.diff LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10102 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Decoding a 2 GiB string takes > 80 seconds on my computer and needs around 14 GiB of memory. -- ___ Python tracker ___

[issue35377] urlsplit scheme argument broken

2018-12-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: You haven't given a convincing reason that there is a problem that needs fixing, or if there is, that your patch is the right way to fix it. You have already pointed out that there is at least one scheme where :/// is part of a valid URL: "file:///". Where

[issue35368] [2.7] Make PyMem_Malloc() thread-safe in debug mode

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset c275be54411d425c90e7c679ddb5321ba458f61d by Victor Stinner in branch '2.7': bpo-35368: Make PyMem_Malloc() thread-safe in debug mode (GH-10828) https://github.com/python/cpython/commit/c275be54411d425c90e7c679ddb5321ba458f61d --

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix ;-) I guess that nobody tried this code with a string longer than 2 GiB before you :-) -- ___ Python tracker ___

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10101 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Hum. By the way, PyInit_time() calls PyModule_AddObject() without checking for errors :-/ PyMODINIT_FUNC PyInit_time(void) { PyObject *m; m = PyModule_Create(); if (m == NULL) return NULL; ... PyModule_AddObject(m, "struct_time",

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10100 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset ab6614969301b238fcc27f43923a0189a57a2a3c by Victor Stinner in branch 'master': bpo-35373: Fix PyInit_timezone() if HAVE_DECL_TZNAME is defined (GH-10861) https://github.com/python/cpython/commit/ab6614969301b238fcc27f43923a0189a57a2a3c

[issue35385] time module: why not using tzname from the glibc?

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Ah, context of this question: I modified get_gmtoff() in bpo-35373 to fix compiler warnings :-) (see my first commit 503ce5c482cb267b0770bc46c315d5cf822bdca9) -- ___ Python tracker

[issue35385] time module: why not using tzname from the glibc?

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35385] time module: why not using tzname from the glibc?

2018-12-03 Thread STINNER Victor
New submission from STINNER Victor : Currently, the time module uses tm_zone and tm_gmtoff of struct tm with localtime_r() to get the timezone (name and offset) on my Fedora 29. But it seems like glibc provides "tzname", "daylight" and "timezone" variables. Why not using them? Python also

[issue35384] The repr of ctypes.CArgObject fails for non-ascii character

2018-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10099 stage: -> patch review ___ Python tracker ___ ___

[issue35384] The repr of ctypes.CArgObject fails for non-ascii character

2018-12-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The repr of the ctypes.CArgObject instance will fail when the value is a non-ascii character. The code is: sprintf(buffer, "", self->tag, self->value.c); ... return PyUnicode_FromString(buffer); If self->value.c is out of

[issue35377] urlsplit scheme argument broken

2018-12-03 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +10097 stage: -> patch review ___ Python tracker ___ ___

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32477] Move jumps optimization from the peepholer to the compiler

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Simplified PR 5077. It uses now NEXT_BLOCK() to guarantee that a new block is always used after jumps. NEXT_BLOCK() was defined, but not used before. bpo-35193 and bpo-9566 demonstrate that the code of peephole.c is complex and error-prone. Moving it to

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Crap. My commit 503ce5c482cb267b0770bc46c315d5cf822bdca9 was supposed to fix on of the latest compiler warning in master, but I introduced a new warning :-( What a shame on me :-( I was too quick... PR 10861 should fix the new warning. --

[issue35373] PyInit_timezone() must return a value

2018-12-03 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10096 stage: -> patch review ___ Python tracker ___ ___

[issue35377] urlsplit scheme argument broken

2018-12-03 Thread devkral
devkral added the comment: Ok, then the problem is in unsplit. Because: :/// is not a valid url. Next try: in urlunsplit: if netloc or (scheme and scheme in uses_netloc and url[:2] != '//'): if url and url[:1] != '/' and scheme in ("file", ""): # my change url = '/' + url

[issue35383] lib2to3 raises ParseError on argument called "print"

2018-12-03 Thread Niklas Rosenstein
New submission from Niklas Rosenstein : On Python 3.7.0 lib2to3 will not parse code like this: def foo(print=None): pass and yield the following error instead lib2to3.pgen2.parse.ParseError: bad input: type=1, value='print', context=('', (1, 8)) -- components: 2to3

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2018-12-03 Thread STINNER Victor
STINNER Victor added the comment: Since it's a denial of service which can be triggered by an user, I mark this issue as a security issue. I can be wrong, but it seems like Python 2.7 isn't affected: Lib/email/_header_value_parser.py was added by bpo-12586 (commit

[issue33337] Provide a supported Concrete Syntax Tree implementation in the standard library

2018-12-03 Thread Niklas Rosenstein
Niklas Rosenstein added the comment: Lukasz, have you created a 3rd party package branching off lib2to3? I'm working on a project that is based on it (in a similar usecase as YAPF and Black) and was hoping that there may be some version maintained distinctly from the Python release

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2018-12-03 Thread Denton Liu
Denton Liu added the comment: Pinging for updates. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-12-03 Thread Dieter Maurer
Dieter Maurer added the comment: > Hi, I am going to solve this issue through below process. > ... > Is it okay? For me, this would be perfect. -- ___ Python tracker ___

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread miss-islington
miss-islington added the comment: New changeset 0f9b6687eb8b26dd804abcc6efd4d6430ae16f24 by Miss Islington (bot) in branch '3.6': bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848) https://github.com/python/cpython/commit/0f9b6687eb8b26dd804abcc6efd4d6430ae16f24 --

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
miss-islington added the comment: New changeset f65ede3f8fa08493facf48177540d0ec26e59560 by Miss Islington (bot) in branch '3.6': bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
miss-islington added the comment: New changeset a9f435e5d856fb62516b70a78217e40b90bec233 by Miss Islington (bot) in branch '3.7': bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread miss-islington
miss-islington added the comment: New changeset bdeb56cd21ef3f4f086c93045d80f2a753823379 by Miss Islington (bot) in branch '3.7': bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848) https://github.com/python/cpython/commit/bdeb56cd21ef3f4f086c93045d80f2a753823379 --

[issue35382] Something wrong with pymysql

2018-12-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, I messed up while adding the reply at the same time. Closing it again. -- nosy: +mark.dickinson, steven.daprano resolution: -> third party stage: -> resolved status: open -> closed ___ Python

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-12-03 Thread Dong-hee Na
Dong-hee Na added the comment: Hi, I am going to solve this issue through below process. 1. Implement `isAlive` for dummy thread 2. Updating docstrings to recommend use is_alive() instead of isAlive(). 3. Add a deprecation warning for both Thread.isAlive and _DummyThread.isAlive 4. Remove

[issue35382] Something wrong with pymysql

2018-12-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It's a third party issue as others noted but just to add to this I found the below PR and question to be related to your problem in the tracker while googling byte2int pymysql that might be of help. *

[issue35382] Something wrong with pymysql

2018-12-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: Also, for future reference, please spend the time to make a good bug report, showing the minimum code needed to reproduce the error, and the full error, not just a summary. Please read this before your next bug report: http://sscce.org/ Thank you.

[issue35382] Something wrong with pymysql

2018-12-03 Thread Mark Dickinson
Mark Dickinson added the comment: Hi Leung. This is the issue tracker for the core Python language (along with the standard library). PyMySQL is a third-party project: it isn't part of the standard library. I'd suggest reporting your issue directly to the PyMySQL maintainers. (At a quick

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10095 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4013c179117754b039957db4730880bf3285919d by Serhiy Storchaka in branch 'master': bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848) https://github.com/python/cpython/commit/4013c179117754b039957db4730880bf3285919d --

[issue35372] Code page decoder incorrectly handles input >2GiB

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10094 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10093 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10091 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10320] printf %qd is nonstandard

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10092 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10320] printf %qd is nonstandard

2018-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 062cbb67726f26794b1b461853e40696b4a0b220 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)

[issue35382] Something wrong with pymysql

2018-12-03 Thread Leung
New submission from Leung : when i use like that userinfo = dbsession2.query(func.count(radcheck1.username)).\ outerjoin(radcheck2,radcheck1.username==radcheck2.username).\

[issue32153] mock.create_autospec fails if an attribute is a partial function

2018-12-03 Thread Chris Withers
Chris Withers added the comment: New changeset 1ef06c62d3c05cbba6448c56af30a09c551c9ec2 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-32153: Add unit test for create_autospec with partial function returned in getattr (GH-10398) (#10855)

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-12-03 Thread Sergei Zobov
Sergei Zobov added the comment: So, should I just close this issue in case we've decided it's not a big problem? -- ___ Python tracker ___

[issue32153] mock.create_autospec fails if an attribute is a partial function

2018-12-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10090 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2