[issue32814] smtplib.send_message mishandles 8BITMIME RFC 6152

2018-07-28 Thread Segev Finer
Segev Finer added the comment: @scorphus Note that I made a PR for this: PR 8303 -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue33083] math.factorial accepts non-integral Decimal instances

2018-07-28 Thread Tal Einat
Tal Einat added the comment: So we keep things consistent by supporting Decimal and Fraction inputs, but raising ValueError if the value isn't a non-negative integer? -- nosy: +taleinat ___ Python tracker _

[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Tal Einat
Tal Einat added the comment: I suggest closing this as "wontfix". This is a just an non-optimized regexp pattern leading to long run times. That these are possible is a well-known trait of backtracking regular expression engines in general, and ours in particular. IMO this isn't a security

[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Tal Einat
Tal Einat added the comment: Clarification: The given pattern is equivalent to that in my previous post, assuming the latter is used with the re.VERBOSE flag. -- ___ Python tracker _

[issue1467929] %-formatting and dicts

2018-07-28 Thread Tal Einat
Tal Einat added the comment: Eric, would you like an update PR for this? -- nosy: +taleinat ___ Python tracker ___ ___ Python-bug

[issue34035] Several AttributeError in zipfile seek() methods

2018-07-28 Thread Mickaël S .
Change by Mickaël S. : -- title: zipfile: AttributeError in "seek" method of "_SharedFile" class -> Several AttributeError in zipfile seek() methods ___ Python tracker ___

[issue34265] Dataclasses test doesn't run independently

2018-07-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate superseder: -> Lib/test/test_dataclasses.py failed when ran as a script ___ Python tracker ___ __

[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Tal. This problem is called "catastrophic backtracking". -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker __

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-28 Thread Stefan Behnel
Stefan Behnel added the comment: >> Commutativity guarantees can be delivered by sorting arguments before >> summation. > No thanks -- that's too expensive for such a small payoff. Since I don't really see people use this on vectors with hundreds of dimensions, let me still suggest using in

[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2018-07-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that PyArg_ParseTupleAndKeywords() supports required keyword-only parameters, but only if all parameters are required. "O|O$O" -- last two are optional. "OO$O" -- all are required. This makes designing a consistent syntax more difficult. '|'

[issue1467929] %-formatting and dicts

2018-07-28 Thread Eric V. Smith
Eric V. Smith added the comment: I unassigned myself from this a few months ago. If someone wants to fix it, I'm not opposed. But the issue is 12 years old and doesn't cause any real problems as far as I can see, so it's hard to get excited about it. And as we've seen there are a lot of corn

[issue34251] MSI build fails

2018-07-28 Thread Zachary Ware
Zachary Ware added the comment: New changeset 11eb1a94704142385ffc07852739863ced8587d2 by Zachary Ware (Berker Peksag) in branch 'master': bpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510) https://github.com/python/cpython/commit/11eb1a94704142385ffc07852739863ced8587d2 --

[issue34251] MSI build fails

2018-07-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +8055 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2018-07-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Support for keyword-only parameters was added in issue14328. Although the implementation never matched the documentation in the case when '|' is not specified before '$'. -- nosy: +larry ___ Python tracker

[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Tim Peters
Tim Peters added the comment: Note: if you found a regexp like this _in_ the Python distribution, then a bug report would be appropriate. It's certainly possible to write regexps that can suffer catastrophic backtracking, and we've repaired a few of those, over the years, that shipped with

[issue27201] expose the ABI name as a config variable

2018-07-28 Thread Matthias Klose
Matthias Klose added the comment: ok, not working on that currently -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue34266] Bad behavior with "restart \" in pdb

2018-07-28 Thread ppperry
New submission from ppperry : (Pdb) restart \ Traceback (most recent call last): File "C:\Program Files\Python36\lib\pdb.py", line 1667, in main pdb._runscript(mainpyfile) File "C:\Program Files\Python36\lib\pdb.py", line 1548, in _runscript self.run(statement) File "C:\Program Fil

[issue34266] Bad behavior with "restart \" in pdb

2018-07-28 Thread ppperry
ppperry added the comment: Just to be clear, even though the traceback is python 3.6, the same bug occurs in 3.7 with an identical traceback except for some changes in line number -- ___ Python tracker

[issue34267] find_python.bat doesn't find installed Python 3.7

2018-07-28 Thread Segev Finer
New submission from Segev Finer : The PCbuild/find_python.bat script doesn't find an installed Python 3.7 and will proceed to download Python using nuget. This is caused by it invoking py with "-3.6" which will only find Python 3.6 (py doesn't seem to support a 3.6 or above flag), despite the

[issue34251] MSI build fails

2018-07-28 Thread miss-islington
miss-islington added the comment: New changeset 1e98d87961ec752a1623135f4d7e8a41820ae256 by Miss Islington (bot) in branch '3.7': bpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510) https://github.com/python/cpython/commit/1e98d87961ec752a1623135f4d7e8a41820ae256 --

[issue33566] re.findall() dead locked whent the expected ending char not occur until end of string

2018-07-28 Thread Tim Peters
Tim Peters added the comment: Closing as not-a-bug - not enough info to reproduce, but the regexp looked prone to exponential-time backtracking to both MRAB and me, and there's been no response to requests for more info. -- components: +Regular Expressions nosy: +ezio.melotti resolut

[issue34266] Bad behavior with "restart \" in pdb

2018-07-28 Thread Jared
Jared added the comment: I wouldn't mind taking a look at this. Feel free to assign it to me! -- nosy: +j-rewerts ___ Python tracker ___ __

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2018-07-28 Thread ppperry
ppperry added the comment: `restart "` also crashes with the same tb -- title: Bad behavior with "restart \" in pdb -> Bad behavior with "restart \" or "restart "" in pdb ___ Python tracker

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2018-07-28 Thread Jared
Jared added the comment: Would it be possible to escape both of those? For the first one, restart "\\" and for the second one, restart "\"" -- ___ Python tracker ___ ___

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2018-07-28 Thread ppperry
ppperry added the comment: Both of those work and don't produce an error -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2018-07-28 Thread Jared
Jared added the comment: Good! Is it possible to start a python program with either \ or " as arguments normally (without using character escaping)? -- ___ Python tracker __

[issue34268] run pool.submit in callback when future.set_result

2018-07-28 Thread gaoxinge
New submission from gaoxinge : ## abstract When using concurrent.futures.ThreadPoolExecutor module, if we code pool.submit in callback, the callback may be not run. This is because main thread will terminate, and call _python_exit to add none to _work_queue before subthread run callback. ##

[issue34258] Python shell keeps restarting

2018-07-28 Thread Jared
Jared added the comment: First off, no judgment! :) I just want to get some more details from you. 1) How are you running your program? 2) How far into your program do you get? 3) What are you passing in as values for your Input() calls? -- nosy: +j-rewerts _

[issue34256] Python treats ASCII record seperator ('\x1e') as a newline

2018-07-28 Thread Anton Patrushev
Anton Patrushev added the comment: 0x1e listed as linebreak char in tests: Lib/test/test_unicodedata.py:317 -- nosy: +apatrushev ___ Python tracker ___ __

[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps it would be nice to add a section about catastrophic backtracking and ways of resolving it in the RE Howto. -- ___ Python tracker

[issue34257] SSL should accept cert content, instead of just cert file path

2018-07-28 Thread Nathaniel Smith
Nathaniel Smith added the comment: This is a duplicate of bpo-16487, which has more discussion about how the API might work. -- nosy: +njs resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue34257] SSL should accept cert content, instead of just cert file path

2018-07-28 Thread Jared
Jared added the comment: Also [PEP 543](https://www.python.org/dev/peps/pep-0543/) is related to this. In addition, I think [PyOpenSSL](https://pyopenssl.org/en/stable/index.html) provides support for what you want. -- nosy: +j-rewerts ___ Python

[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Tal Einat
Tal Einat added the comment: Serhiy, that would be a good idea. A short mention of the issue with a link to an external reference would also suffice IMO. -- ___ Python tracker _

[issue34251] MSI build fails

2018-07-28 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report! -- components: +Library (Lib) -Distutils nosy: -dstufft, eric.araujo resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker

[issue1467929] %-formatting and dicts

2018-07-28 Thread Tal Einat
Tal Einat added the comment: Ah, sorry Eric, I misread that change as you assigning this to yourself. -- versions: +Python 3.8 -Python 3.2, Python 3.3 ___ Python tracker ___

[issue1467929] %-formatting and dicts

2018-07-28 Thread Tal Einat
Change by Tal Einat : -- nosy: -taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

<    1   2