[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: > Victor, you're looking at an outdated comment on this issue. No, I read the commit: https://github.com/python/cpython/commit/558c49bcf3a8543d64a68de836b5d855efd56696 warnings.warn("The loop argument is deprecated and scheduled for"

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: There is a new PR, so I change the issue resolution again. -- resolution: fixed -> ___ Python tracker ___ __

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: FYI if I recall correctly, in the past, we preferred to pass explicitly the loop to avoid to have to get the current loop which may add an overhead. But the current trend is to get rid of the explicit loop parameter. > asyncio.sleep is a coroutine; passing a

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: > I'm going to formally reject this, since GCC removed -fmpx support. "The MPX extensions to the C and C++ languages have been deprecated and will be removed in a future release." https://gcc.gnu.org/gcc-8/changes.html Oh. It seems like the reason is to "red

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: My understanding is: `loop` argument passed to sleep should be always the same as returned from `get_running_loop()`. Passing it explicitly can be considered as microoptimization but `get_running_loop()` is pretty fast now, no need for such micro-opts. On

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: Jeremy Kloth: "This is also an issue on Windows when the target path resides within a junction, paths outside of a junction respond (err, fail) as expected." https://developercommunity.visualstudio.com/content/problem/272379/createfile-non-error-on-filename-wi

[issue34430] Symmetrical chaining futures in asyncio.future.wrap_future

2018-10-02 Thread Alfred Sawaya
Alfred Sawaya added the comment: I use it to integrate a concurrent-based software (B) with an asyncio-based software (A). (B) will undergo a massive refactoring to become asyncio-based in the future, but for now, I need to use it as-is. I don't want to modify (A) to handle concurrent.futures

[issue34870] Core dump when Python VSCode debugger is attached

2018-10-02 Thread Per Lundberg
New submission from Per Lundberg : My code has recently started triggering a core dump in the Python executable when the VSCode debugger is attached. This doesn't happen right away; it seems to happen more or less _after_ the program is done executing (I just placed a breakpoint and stepped i

[issue23097] unittest can unnecessarily modify sys.path (and with the wrong case)

2018-10-02 Thread Charlie Dyson
Charlie Dyson added the comment: As an aside, should that be sys.path.insert(1, X)? As 0 has a special meaning (I've often thought this is a slightly odd convention). Another aside: I noticed this because I was looking to write a module finder, and thought I could extract one out of this fun

[issue34561] Replace list sorting merge_collapse()?

2018-10-02 Thread Vincent Jugé
Vincent Jugé added the comment: After having worked a little bit on improving AdaptiveShiversSort on few-run cases, I designed a new version of the algorithm, called shivers2 in the file runstack.py joined to this message It looks more complicated than the original AdaptiveShiversSort but the

[issue34866] CGI DOS vulnerability via long post list

2018-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > the author wants this transformation to be easily invertible, so a prime is > necessary A multiplication by any odd number modulo 2**64 is invertible. As I argued before, the concept of primes is meaningless (except for the prime 2) when computing modulo

[issue34870] Core dump when Python VSCode debugger is attached

2018-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Submitted a fix for Pyflakes: https://github.com/PyCQA/pyflakes/pull/369. It had more problems due to changes in line and column numbers in SyntaxError. -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: This weekend I realized something important which I didn't realize before: some hash functions which I assumed to be good (i.e. small chance of collisions between any given two tuples) turned out to often fail the tests. This is because you don't just want t

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread Michael Felt
Change by Michael Felt : Added file: https://bugs.python.org/file47840/mime-attachment Added file: https://bugs.python.org/file47841/encrypted.asc ___ Python tracker ___ __

[issue34812] [EASY] support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag

2018-10-02 Thread Danish Prakash
Danish Prakash added the comment: > With respect to documentation I was talking about '-I' not being documented > in the table at https://docs.python.org/3.7/library/sys.html#sys.flags though > it's present in the C code and in sys.flags.isolated. Thanks for bringing this up Karthikeyan, how

[issue34812] [EASY] support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag

2018-10-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Thanks for bringing this up Karthikeyan, however, could there be another > reason why -I would be left out. Also, have you filed an issue for this? I couldn't see any related issue for this though the table was changed in 3.7.0 > Also, Victor and

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: SeaHash seems to be designed for 64 bits. I'm guessing that replacing the shifts by x ^= ((x >> 16) >> (x >> 29)) would be what you'd do for a 32-bit hash. Alternatively, we could always compute the hash with 64 bits (using uint64_t) and then truncate at th

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Correction: the FNV variant of SeaHash only fails the new testsuite, not the old one. The DJB variant of SeaHash fails both. -- ___ Python tracker _

[issue34812] [EASY] support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag

2018-10-02 Thread Danish Prakash
Danish Prakash added the comment: Thank you Karthikeyan, I'm going to take care of both of these issues. -- ___ Python tracker ___

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: > 2018-10-02 11:02:32 Michael.Feltset files: + mime-attachment, > encrypted.asc You replied with an encrypted message which isn't understood by the bug tracker. -- ___ Python tracker

[issue34867] Add mode to disable small integer and interned string caches

2018-10-02 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue34871] test_site fails if run after test_inspect

2018-10-02 Thread STINNER Victor
STINNER Victor added the comment: You can try to limit the number of tests needed to reproduce the bug using: ./python -m test.bisect -n 5 test_inspect test_site -- nosy: +vstinner ___ Python tracker __

[issue34871] test_site fails if run after test_inspect

2018-10-02 Thread Chih-Hsuan Yen
New submission from Chih-Hsuan Yen : $ ./python -m test.regrtest test_inspect test_site Run tests sequentially 0:00:00 load avg: 0.03 [1/2] test_inspect 0:00:00 load avg: 0.03 [2/2] test_site test test_site failed -- Traceback (most recent call last): File "/home/yen/Projec

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > 100% pure SeaHash does x ^= t at the start first, instead of `t ^ (t << 1)` > on the RHS. Indeed. Some initial testing shows that this kind of "input mangling" (applying such a permutation on the inputs) actually plays a much more important role to avoid

[issue34871] test_site fails if run after test_inspect

2018-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34871] test_site fails if run after test_inspect

2018-10-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The failing test was added with d4c76d960b8b286b75c933780416ace9cda682fd commit d4c76d960b8b286b75c933780416ace9cda682fd Author: INADA Naoki Date: Mon Oct 1 21:10:37 2018 +0900 bpo-30167: Add test for module.__cached__ is None (GH-7617) diff

[issue34784] Heap-allocated StructSequences

2018-10-02 Thread Eddie Elizondo
Change by Eddie Elizondo : -- pull_requests: +9062 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34871] test_site fails if run after test_inspect

2018-10-02 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Thanks very much for the test.bisect hint! After some more trials, I guess it's an issue in the `inspect` module rather than the newly-added test in test_site. Here's an example script: import inspect import sys import _testcapi builtin = _testcapi.docstri

[issue34843] logging cookbook docs: remove 'recent' when referring to multiprocessing

2018-10-02 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread Michael Felt
Michael Felt added the comment: Final attempt to send as plain text On 10/2/2018 1:07 AM, Benjamin Peterson wrote: > On Mon, Oct 1, 2018, at 12:12, Michael Felt wrote: >> Hi all, >> >> Before I submit a patch to increase the default MAXDATA setting for AIX >> when in 32-bit mode - I want to kno

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread Michael Felt
Michael Felt added the comment: On 10/2/2018 10:36 AM, STINNER Victor wrote: > STINNER Victor added the comment: > > Jeremy Kloth: "This is also an issue on Windows when the target path resides > within a junction, paths outside of a junction respond (err, fail) as > expected." > https://deve

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread Michael Felt
Michael Felt added the comment: Was not my intent. Firewall issues. After 4 more attempts gave up until now. On 10/2/2018 3:17 PM, STINNER Victor wrote: > STINNER Victor added the comment: > >> 2018-10-02 11:02:32 Michael.Feltset files: + mime-attachment, >> encrypted.asc > You repl

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread Michael Felt
Michael Felt added the comment: On 10/2/2018 7:36 PM, Michael Felt wrote: > Python is designed as a thin wrapper to the operating system. IMHO Python > must not validate the filename itself. To shorten the discussion, I'll kill the current PR and just modify the test to skip the trailing slash

[issue34871] test_site fails if run after test_inspect

2018-10-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 9012a0fb4c4ec1afef9efb9fdb0964554ea17983 by Yury Selivanov in branch 'master': bpo-34728: Fix asyncio tests to run under "-Werror" (GH-9661) https://github.com/python/cpython/commit/9012a0fb4c4ec1afef9efb9fdb0964554ea17983 --

[issue34728] deprecate *loop* argument for asyncio.sleep

2018-10-02 Thread Yury Selivanov
Yury Selivanov added the comment: [victor] > Why does it not make sense to pass the loop to sleep? "it makes no sense > anymore" something changes? [andrew] `loop` argument passed to sleep should be always the same as returned from `get_running_loop()`. What Andrew said. Basically, it wasn

[issue34711] return ENOTDIR when open() accepts filenames with a trailing slash

2018-10-02 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +9063 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: A meta-comment: a great deal of work has been done on non-crypto hashes in recent years. I'm not interested in rolling our own if one of the "winners" from that process can be adapted. For that reason, I've only been looking at those that scored 10 (best poss

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: >> the author wants this transformation to be easily >> invertible, so a prime is necessary > A multiplication by any odd number modulo 2**64 is > invertible. Right! My mistake. > As I argued before, the concept of primes is > meaningless (except for the prime

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: > So my suggestion remains > > for y in INPUT: >t = hash(y) >t ^= t * SOME_LARGE_EVEN_NUMBER >h ^= t >h *= MULTIPLIER On the face of it, I'd be amazed if that passed SMHasher, because it only propagates bits "to the left". All hashes that score w

[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2018-10-02 Thread Paul Goins (work)
Paul Goins (work) added the comment: I'm just going to ping on this issue. It looks like this has just slipped off the radar. I've seen the last diff and the code review, but it seems that this just needs some final follow-up on the code review comments, no? I could easily do the final cle

[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-02 Thread Yury Selivanov
New submission from Yury Selivanov : Vladimir Matveev has discovered that C and Python implementation of asyncio.Task diverge: * asynciomodule.c: https://github.com/python/cpython/blob/9012a0fb4c4ec1afef9efb9fdb0964554ea17983/Modules/_asynciomodule.c#L2716 * tasks.py: https://github.com/pytho

[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-02 Thread Yury Selivanov
Yury Selivanov added the comment: Elvis, please take a look at this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: > If we, e.g., tested tuples of little floats instead ... Speaking of which: >>> from itertools import product >>> len(set(map(hash, product([0.5, 0.25], repeat=20 32 32 hash codes out of 1048576 distinct two-tuples isn't exactly confidence-inspiring either

[issue34711] Fix test_httpservers on AIX (trailingSlashOK)

2018-10-02 Thread Michael Felt
Michael Felt added the comment: Changed the title to reflect the requested change is only in Tests. -- components: -IO title: return ENOTDIR when open() accepts filenames with a trailing slash -> Fix test_httpservers on AIX (trailingSlashOK) ___ P

[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-02 Thread Vladimir Matveev
Change by Vladimir Matveev : -- nosy: +v2m ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue34313] IDLE crashes with Tk-related error on macOS with ActiveTcl 8.6

2018-10-02 Thread Vlad Tudorache
Vlad Tudorache added the comment: @terry.reedy Maybe "users are urged to install the most recent bug-fix releases" is a little bit misleading. As I wrote, Tcl/Tk 8.5.18 does not give crashes on macOS, when both 8.5.17 and 8.5.19 (bug-fix) do. Some times ago, if I remember well, the same thi

[issue34711] Fix test_httpservers on AIX (trailingSlashOK)

2018-10-02 Thread Eryk Sun
Eryk Sun added the comment: > I confirm that in a junction point This path-parsing bug that strips a trailing slash occurs when a traversed directory is a reparse point, such as a mount-point (junction) or directory symbolic link. It may be limited to just the NTFS and ReFS file-system drive

[issue34313] IDLE crashes with Tk-related error on macOS with ActiveTcl 8.6

2018-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Current Mac installers do contain hopefully tested tcl/tk installers. (This has always been true for the Windows installers.) We are not responsible if users use anything else with Python. -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > I've noted before, e.g., that sticking to a prime eliminates a world of > regular bit patterns in the multiplier. Why do you think this? 0x1fff is prime :-) Having regular bit patterns and being prime are independent properties. To be clear: I

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-10-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +9065 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-10-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 97bfe8d3ebb0a54c8798f57555cb4152f9b2e1d0 by Antoine Pitrou (tzickel) in branch 'master': bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) https://github.com/python/cpython/commit/97bfe8d3ebb0a54c8798f57555cb4152f9b2e

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > For that reason, I've only been looking at those that scored 10 (best > possible) on Appleby's SMHasher[1] test suite, which is used by everyone who > does recognized work in this field. So it seems that this SMHasher test suite doesn't catch the problem t

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-10-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +9064 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: >>> from itertools import product >>> len(set(map(hash, product([0.5, 0.25], repeat=20 32 Good catch! Would you like me to add this to the testsuite? -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-10-02 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > For that reason, I've only been looking at those that scored 10 (best > possible) on Appleby's SMHasher[1] test suite Do you have a list of such hash functions? -- ___ Python tracker

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: >> I've noted before, e.g., that sticking to a prime >> eliminates a world of regular bit patterns in the >> multiplier. > Why do you think this? 0x1fff is prime :-) Point taken ;-) But "a world of" is not the same as "the universe". For example, s

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-10-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 97f998a4dfd6db6d867f446daa62445d0782bf39 by Antoine Pitrou (Miss Islington (bot)) in branch '3.7': bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) (GH-9676) https://github.com/python/cpython/commit/97f998a4dfd6db6d

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: >> For that reason, I've only been looking at those that >> scored 10 (best possible) on Appleby's SMHasher[1] test suite > Do you have a list of such hash functions? A world of searching. The ones rated "Excellent" here (previously cited) for a start: https:/

[issue34873] re.finditer behaviour in re.MULTILINE mode fails to match first 7 characters

2018-10-02 Thread Tom Dawes
New submission from Tom Dawes : re.finditer appears to fail to match within the first 7 characters in a string when re.MULTILINE is used: >>> REGEX = re.compile("y") >>> [list(m.start() for m in REGEX.finditer("{}y".format("x"*i), re.MULTILINE)) >>> for i in range(10)] [[], [], [], [], [], []

[issue34873] re.finditer behaviour in re.MULTILINE mode fails to match first 7 characters

2018-10-02 Thread Tom Dawes
Tom Dawes added the comment: Please ignore, re.finditer and REGEX.finditer aren't the same. I was passing re.MULTILINE (= 8) to endPos. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-10-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 07b96a95db78eff3557d1bfed1df9ebecc40815b by Antoine Pitrou (Miss Islington (bot)) in branch '3.6': bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450) (GH-9677) https://github.com/python/cpython/commit/07b96a95db78eff3

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-10-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks tzickler for the report and pull request, and sorry for the delay. This is now fixed in all 3.x branches. I will close this now as multiprocessing in 2.7 diverges quite a bit from 3.x. If you want to fix the issue in 2.7 as well, please say so and I

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-02 Thread Tim McDonough
New submission from Tim McDonough : I found an odd behavior that seems to be limited to Python 3.6.3. Python 3.6.3 command scripts seem to prefer wrapping in double quotes instead of single quotes. Here is an example of the error. $ echo -n '{"A":"a"}' | python3 -c 'import sys,json; j=json

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-10-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: (tzickel, sorry for mistyping your handle :-/) -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: > >>> from itertools import product > >>> len(set(map(hash, product([0.5, 0.25], repeat=20 > 32 > Good catch! Would you like me to add this to the testsuite? It's in mine already ;-) I've added all the "bad examples" in all the messages here. Sooner or lat

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: > So it seems that this SMHasher test suite doesn't > catch the problem that we're seeing with negative integers. Seems to be so, but I've never run SMHasher myself. I believe it's focused on statistical properties, like avalanche and bit independence. > Howev

[issue34711] Fix test_httpservers on AIX (trailingSlashOK)

2018-10-02 Thread Martin Panter
Martin Panter added the comment: Hi Michael, I agree with Victor that the best place to fix the problem is in the HTTP server module. In other words, the “medium fix” you mentioned in your original post. Your recent proposal to just skip the test means that AIX will continue to suffer from t

[issue34875] Change .js mime to "test/javascript"

2018-10-02 Thread Myles Borins
New submission from Myles Borins : I propose to change the mapping of file extension .js to mime type "text/javascript" from "application/javascript. "text/javascript" is the currently documented best practice in the whatwg HTML spec. https://html.spec.whatwg.org/multipage/scripting.html#scr

[issue34875] Change .js mime to "test/javascript"

2018-10-02 Thread Myles Borins
Change by Myles Borins : -- keywords: +patch pull_requests: +9066 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue34876] Python3.8 changes how decorators are traced

2018-10-02 Thread Ned Batchelder
New submission from Ned Batchelder : When decorating a function, the sequence of lines reported to the trace function is different in Python3.8 than with previous versions $ cat -n decorator.py 1 def decorator(f): 2 return f 3 4 def f(): 5 @decorator 6

[issue34877] Inconsistent Behavior Of futures.ProcessPoolExecutor

2018-10-02 Thread Tom Ashley
New submission from Tom Ashley : Not sure if this goes in core or modules. There is an inconsistency in the output of the attached script. From the docs I read it's supposed to have the behavior of: "If something happens to one of the worker processes to cause it to exit unexpectedly, the Pro

[issue34875] Change .js mime to "test/javascript"

2018-10-02 Thread Ammar Askar
Ammar Askar added the comment: It should be noted that the HTML spec also says: The term "JavaScript" is used to refer to ECMA-262, rather than the official term ECMAScript, since the term JavaScript is more widely known. Similarly, the MIME type used to refer to JavaScript in this specifica

[issue34876] Python3.8 changes how decorators are traced

2018-10-02 Thread Ammar Askar
Ammar Askar added the comment: It looks like this is caused by https://github.com/python/cpython/commit/da8d72c953369b872a12c13f136ada77a786714a Adding Serhiy to the nosy list. -- nosy: +ammar2, serhiy.storchaka ___ Python tracker

[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-02 Thread Elvis Pranskevichus
Change by Elvis Pranskevichus : -- keywords: +patch pull_requests: +9068 stage: -> patch review ___ Python tracker ___ ___ Python-b

[issue12458] Tracebacks should contain the first line of continuation lines

2018-10-02 Thread Ned Batchelder
Ned Batchelder added the comment: The other drawback is changing how the trace function is notified in a few scenarios. -- nosy: +nedbat ___ Python tracker ___ __

[issue34878] Lock Objects documentation bug

2018-10-02 Thread ulrich.stern
New submission from ulrich.stern : The first sentence of the documentation for Lock Objects (https://docs.python.org/2/library/threading.html#lock-objects) seems incorrect. It currently states "A primitive lock is a synchronization primitive that is not owned by a particular thread when lock

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: FYI, this appears to be a good overview of what SMHasher is looking for: https://github.com/aappleby/smhasher/wiki/SMHasher Someg of everything: performance, correctness, statistical measures, and specific kinds of keysets that have proved problematic for other

[issue34877] Inconsistent Behavior Of futures.ProcessPoolExecutor

2018-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-02 Thread Yury Selivanov
Yury Selivanov added the comment: Ned, will we have 3.7.1rc2? If so, would it be possible to include the fix for this one? -- nosy: +ned.deily ___ Python tracker ___ ___

[issue34751] Hash collisions for tuples

2018-10-02 Thread Tim Peters
Tim Peters added the comment: > SeaHash seems to be designed for 64 bits. Absolutely. > I'm guessing that replacing the shifts by > > x ^= ((x >> 16) >> (x >> 29)) > > would be what you'd do for a 32-bit hash. My guess too. But "the prime" is a puzzle. As noted before, the 64-bit prime is

[issue2771] Test issue

2018-10-02 Thread Ezio Melotti
Ezio Melotti added the comment: another test -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-02 Thread Sangbae Nam
Sangbae Nam added the comment: This issue still persists in 3.6 and 3.7. -- assignee: -> docs@python components: +Documentation nosy: +Sangbae Nam, docs@python versions: +Python 3.7 Added file: https://bugs.python.org/file47844/py37chm.png ___ Pyth

[issue34878] Lock Objects documentation bug

2018-10-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: The current documentation is correct. While conceptually one may think of a lock as being held ("owned") by a particular thread, the lock internally has no idea what thread owns it—operations on a lock are influenced only by its current state not what thre

[issue34879] bytesobject.c: Possible null pointer dereference due to formatfloat()

2018-10-02 Thread Zackery Spytz
New submission from Zackery Spytz : The PyBytes_FromStringAndSize() call in formatfloat() is not checked for failure. -- components: Interpreter Core messages: 326933 nosy: ZackerySpytz priority: normal severity: normal status: open title: bytesobject.c: Possible null pointer dereferen

[issue34879] bytesobject.c: Possible null pointer dereference due to formatfloat()

2018-10-02 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +9069 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: I cannot reproduce this problem with exactly Python 3.6.3. This may be some strange situation specific to your configuration, which should be supported to RedHat. -- nosy: +benjamin.peterson ___ Python tracker

[issue34876] Python3.8 changes how decorators are traced

2018-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is because the first line of the function definition was the line of the last decorator in 3.7, and it is the line of the first decorator in 3.8. $ rlwrap ./python -m dis @decorator @decorator @decorator def func(): pass In 3.7: 2 0

[issue34876] Python3.8 changes how decorators are traced

2018-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On other hand, consider the following example of multiline assignment: $ rlwrap ./python -m dis a = [ x, y, ] In 3.7: 2 0 LOAD_NAME0 (x) 3 2 LOAD_NAME1 (y) 4 BUILD_LIST

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can reproduce this problem when use double quotes as both outer and internal quotes. $ echo -n '{"A":"a"}' | python3 -c "import sys,json; j=json.load(sys.stdin); print(j["A"])" Traceback (most recent call last): File "", line 1, in NameError: name 'A'

[issue34879] bytesobject.c: Possible null pointer dereference due to formatfloat()

2018-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 96c593279400693226d5a560c420ae0fcf1731b9 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683) https://github.com/python/cpython/commit/96c593279400693226d5a560c42

[issue34879] bytesobject.c: Possible null pointer dereference due to formatfloat()

2018-10-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +9070 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34879] bytesobject.c: Possible null pointer dereference due to formatfloat()

2018-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report and fix Zackery. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue34879] bytesobject.c: Possible null pointer dereference due to formatfloat()

2018-10-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +9071 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34879] bytesobject.c: Possible null pointer dereference due to formatfloat()

2018-10-02 Thread miss-islington
miss-islington added the comment: New changeset 063755c20184e80f587d522600536d1ba70a5f7e by Miss Islington (bot) in branch '3.7': bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683) https://github.com/python/cpython/commit/063755c20184e80f587d522600536d1ba70a5f7e -

[issue34879] bytesobject.c: Possible null pointer dereference due to formatfloat()

2018-10-02 Thread miss-islington
miss-islington added the comment: New changeset 6580e52b64cb207f03a1bf86a18f088b081c10f4 by Miss Islington (bot) in branch '3.6': bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683) https://github.com/python/cpython/commit/6580e52b64cb207f03a1bf86a18f088b081c10f4 -

[issue34879] bytesobject.c: Possible null pointer dereference due to formatfloat()

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

  1   2   >