[issue32912] Raise non-silent warning for invalid escape sequences

2018-10-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9043 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32912] Raise non-silent warning for invalid escape sequences

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since the author of PR 5849 had not the time to work on it, I have created PR 9652 which properly replaces a DeprecationWarning with a SyntaxWarning. It also updates the documentation. -- ___ Python tracker

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

2018-10-01 Thread Jakub Wilk
Jakub Wilk added the comment: Also broke pyflakes: https://github.com/PyCQA/pyflakes/issues/367 -- nosy: +jwilk ___ Python tracker ___

[issue34859] python core in string substring search

2018-10-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: What do you think the problem is? The output of the script is what I'd expect it to be. Note that str.find() returns -1 when the needle is not present (and the first offset where the needle is found when it is present). -- nosy: +ronaldoussoren __

[issue34860] fix test_sqlite for AIX

2018-10-01 Thread Michael Felt
New submission from Michael Felt : On AIX test_sqlite fails with: == FAIL: test_database_source_name (sqlite3.test.backup.BackupTests) -- Traceback (most recen

[issue34860] fix test_sqlite for AIX

2018-10-01 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +9044 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue34860] fix test_sqlite for AIX

2018-10-01 Thread Berker Peksag
Berker Peksag added the comment: Could you try latest master? I think this is a duplicate of issue 34743 and it has already been fixed in https://github.com/python/cpython/commit/b10a64d117de6121ea3e79c467c4107f8f399f3d. -- nosy: +berker.peksag __

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-10-01 Thread INADA Naoki
INADA Naoki added the comment: Thanks, Nathaniel. I totally concur with you. This is tutorial section. We should focus on readers of the tutorial. -- ___ Python tracker ___

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-10-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido, the check-in message for this section indicates that Fred Drake added this wording at your behest. Do you still agree with the guidance and examples or would you like to have it removed from all active versions of the documentation as proposed? h

[issue34859] python core in string substring search

2018-10-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: The test code for the third case looks incorrect in two places: Given: if str.find("\n\r"): ^-- should compare to -1 - these are reversed Corrected: if str.fin

[issue34850] Emit a syntax warning for "is" with a literal

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

[issue34859] python core in string substring search

2018-10-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: I suspect that there may also be confusion about the line ending in multiline strings. Is there any documentation on the fact that this is always "\n" and not "\r\n" (even on Windows)? The closest I've found is the Lexical Analysis part of the language re

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

2018-10-01 Thread Tal Einat
Tal Einat added the comment: I couldn't reproduce this issue with any of the 3.7.1rc1 and 3.6.7rc1 installers from python.org on my macOS. This certainly seems like an issue with Tcl/Tk versions before 8.6.8. It is unfortunate that ActiveState have still not released ActiveTcl 8.6.8; the la

[issue34859] python core in string substring search

2018-10-01 Thread pashkasan
pashkasan added the comment: >I suspect that there may also be confusion about the line ending in multiline >strings. Is there any documentation on the fact that this is always "\n" and >not "\r\n" (even on Windows)? the problem is that "\r\n" not found in source multiline strings str, str

[issue34859] python core in string substring search

2018-10-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: @pahskazan: It is correct that '\r\n' is not found in those strings, Python source code is always parsed after conversion to "Unix" line endings with "\n" between lines. This is basicly the same as the "universal newlines" feature of the open function

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

2018-10-01 Thread Vlad Tudorache
Vlad Tudorache added the comment: @taleinat The issues appear with both Tk 8.6.[:8] and (8.5.[:18] + 8.5.[19:], just in case you update the docs. For 32/64 bit installers on macOS, the only version (built by myself or ActiveState) without crashes is 8.5.18 (on my Mac). -- versions:

[issue30156] PYTHONDUMPREFS segfaults on exit

2018-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset e972c13624c32d0efdceb08ff83917fb6b488525 by Victor Stinner in branch 'master': bpo-30156: Remove property_descr_get() optimization (GH-9541) https://github.com/python/cpython/commit/e972c13624c32d0efdceb08ff83917fb6b488525 --

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

2018-10-01 Thread Tal Einat
Tal Einat added the comment: Vlad, you previously mentioned that with Tcl/Tk 8.6.8 you also didn't see this issue. Have you tried building Tcl/Tk 8.6.8 yourself? When I did so everything worked fine. -- ___ Python tracker

[issue34476] asyncio.sleep(0) not documented

2018-10-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset cd602b8af2d14ff686261eeb18b80f718bb16550 by Andrew Svetlov (Hrvoje Nikšić) in branch 'master': bpo-34476: Document that asyncio.sleep() always suspends. (#9643) https://github.com/python/cpython/commit/cd602b8af2d14ff686261eeb18b80f718bb16550 -

[issue30156] PYTHONDUMPREFS segfaults on exit

2018-10-01 Thread STINNER Victor
STINNER Victor added the comment: I proposeto leave Python 3.6 and 3.7 unchanged. I don't think that this specific bug matters enough to remove to remove an optimization from these stable branches. Since the optimization has been added (2015, bpo-23910), I'm only aware of two bug reports on

[issue34476] asyncio.sleep(0) not documented

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

[issue23910] property_descr_get reuse argument tuple

2018-10-01 Thread STINNER Victor
STINNER Victor added the comment: This optimization caused multiple crashes, so it has been decided to remove it :-( See bpo-30156. -- nosy: +vstinner ___ Python tracker ___

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

2018-10-01 Thread Vlad Tudorache
Vlad Tudorache added the comment: Yes, like in the Pythonic Tk 8.6.[:8] :), starting at version 8.6.8 (-dev, too) I see no crash. Tcl/Tk 8.6.8 is built by myself (the last time I checked there was no 8.6.8 built on ActiveState). As for the old 8.5 series, only 8.5.18 works with the dual 32/64

[issue34476] asyncio.sleep(0) not documented

2018-10-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 655608a1112e592cd6a9155ebe774dd285f561f3 by Andrew Svetlov (Miss Islington (bot)) in branch '3.7': bpo-34476: Document that asyncio.sleep() always suspends. (GH-9643) (#9654) https://github.com/python/cpython/commit/655608a1112e592cd6a9155ebe774

[issue34476] asyncio.sleep(0) not documented

2018-10-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue34476] asyncio.sleep(0) not documented

2018-10-01 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2018-10-01 Thread STINNER Victor
STINNER Victor added the comment: In the C code, sys.flags.isolated clearly documented as linked to the -I option: static PyStructSequence_Field flags_fields[] = { {"debug", "-d"}, {"inspect", "-i"}, {"interactive", "-i"}, {"optimiz

[issue30672] PEP 538: Unexpected locale behaviour on *BSD (including Mac OS X)

2018-10-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2018-10-01 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +easy title: support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag -> [EASY] support.args_from_interpreter_flags() doesn't inherit -I (isolated) flag ___ Python tracker

[issue21165] Optimize str.translate() for replacement with substrings and non-ASCII strings

2018-10-01 Thread STINNER Victor
STINNER Victor added the comment: > I actually have a patch (...) Please open a new issue, since that one is closed. You can reference this issue from your new issue. -- ___ Python tracker

[issue34831] Asyncio Tutorial

2018-10-01 Thread Caleb Hattingh
Caleb Hattingh added the comment: > * I think we should stick to your structure and push things to > docs.python.org as soon as every next section is somewhat ready. Ok. I'll get a PR going for the start page of the tutorial. > * Every big section should probably have its own page, linking pr

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

2018-10-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Victor for the details. > In the C code, sys.flags.isolated clearly documented as linked to the -I > option: With respect to documentation I was talking about '-I' not being documented in the table at https://docs.python.org/3.7/library/sy

[issue34859] python core in string substring search

2018-10-01 Thread pashkasan
pashkasan added the comment: str2 = open('sample.txt', 'rU').read() if "\n" in str2: print ("\\n found") else: print ("\\n not found") if "\r" in str2: print ("\\r found") else: print ("\\r not found") if "\r\n" in str2: print ("\\r\\n found") else:

[issue33947] Dataclasses can raise RecursionError in __repr__

2018-10-01 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2018-10-01 Thread STINNER Victor
STINNER Victor added the comment: > ./python.exe -I -c 'import subprocess; > print(subprocess._args_from_interpreter_flags())' > ['-s', '-E', '-I'] This looks wrong, I would prefer to only get ['-I']. -- ___ Python tracker

[issue34861] Improve cProfile standard output

2018-10-01 Thread Anders Hovmöller
New submission from Anders Hovmöller : The standard output for cProfile when run from a command line is not very useful. It has two main flaws: - Default sort order is by name of function - It strips the full path of source files The first makes it very hard to look at the output. The second i

[issue34861] Improve cProfile standard output

2018-10-01 Thread Anders Hovmöller
Change by Anders Hovmöller : -- keywords: +patch pull_requests: +9046 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue34860] fix test_sqlite for AIX

2018-10-01 Thread Michael Felt
Michael Felt added the comment: I just pulled master, did not see Modules/_sqlite/connection.c in the list, but I redo everything for just in case and update later. On 10/1

[issue33117] asyncio example uses non-existing/documented method

2018-10-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: @xtreak is right, `run_coroutine_threadsafe()` returns `concurrent.futures.Future` object. Personally, I like the fact that `fut.result()` is called with timeout parameter to reflect the fact of the different object type. -- resolution: -> not a bu

[issue34846] Runtime failure with Failed to import site module

2018-10-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Can you please add the full stack trace as text in the comment so that it's more accessible? Searching along similar lines there is an open issue about corrupted .pyc causing import related failure in issue28007 with a patch

[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2018-10-01 Thread INADA Naoki
INADA Naoki added the comment: New changeset d4c76d960b8b286b75c933780416ace9cda682fd by INADA Naoki in branch 'master': bpo-30167: Add test for module.__cached__ is None (GH-7617) https://github.com/python/cpython/commit/d4c76d960b8b286b75c933780416ace9cda682fd --

[issue33331] Clean modules in the reversed order

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If move a module to the end of sys.modules when it have finished execution, we will get the following order: D, C, B, A, Y, Z, X, __main__ In can be cleaned from the end, and each module will be cleaned before its dependencies. -- __

[issue34850] Emit a syntax warning for "is" with a literal

2018-10-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Sun, Sep 30, 2018 at 10:24:41PM +, Nathaniel Smith wrote: > Would it make sense to implement a "chaos" mode (that e.g. testing > tools could enable unconditionally), that disables the small integer > and small string caches? I'm not really sure that

[issue34859] python core in string substring search

2018-10-01 Thread Ammar Askar
Ammar Askar added the comment: Please read this excerpt from the documentation Ronald linked for open: newline controls how universal newlines mode works (it only applies to text mode). It can be None, '', '\n', '\r', and '\r\n'. It works as follows: When reading input from the stream, if ne

[issue28604] Exception raised by python3.5 when using en_GB locale

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

[issue34811] test_gdb fails with latest gdb

2018-10-01 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Tested so far only on a 3.7.0 build. -- versions: -Python 3.8 ___ Python tracker ___ ___

[issue34811] test_gdb fails with latest gdb

2018-10-01 Thread STINNER Victor
STINNER Victor added the comment: > Tested so far only on a 3.7.0 build. I'm unable to reproduce the failure on 3.7.1rc1, so I consider that the bugs have been fixed. Recent test_gdb and Tools/gdb/ fixes: * bpo-32962 * bpo-30983 Commits: * commit 5fe59f8e3a0a56a155c18f9d581205ec533764b6 *

[issue34850] Emit a syntax warning for "is" with a literal

2018-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: Consider moving the chaos discussion to a new issue. On Mon, Oct 1, 2018 at 6:33 AM Steven D'Aprano wrote: > > Steven D'Aprano added the comment: > > On Sun, Sep 30, 2018 at 10:24:41PM +, Nathaniel Smith wrote: > > Would it make sense to implement a "

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: I think as a general recommendation it is not such a good idea that we should specifically mention it. (Is it in PEP 8 too? If so it should be removed there too.) It's a pattern that is sometimes helpful, sometimes not. I don't think that people need to h

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-10-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just as extra data point: It is fairly common to have a common exception class which is then used a mixin class together with the standard exception classes, so that you can indeed identify the source of an exception and catch errors based on the source

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-01 Thread twisteroid ambassador
twisteroid ambassador added the comment: I have finally managed to reproduce this one reliably. The issue happens when i) async generators are not finalized immediately and must be garbage collected in the future, and ii) the garbage collector happens to run in a different thread than the on

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-01 Thread Yury Selivanov
Yury Selivanov added the comment: Wow. Thanks so much for figuring this out, I know how hard it is to debug issues like this. Now I see it clearly: _asyncgen_finalizer_hook should be using loop.call_soon_threadsafe. Interestingly, I used _write_to_self there, so I knew about the issue, bu

[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-01 Thread Yury Selivanov
Yury Selivanov added the comment: Rereading your first message: > When testing my happy eyeballs library, I occasionally run into issues with > async generators seemingly not finalizing. After setting > loop.set_debug(True), I have been seeing log entries like these: The bug we are fixing n

[issue34811] test_gdb fails with latest gdb

2018-10-01 Thread Miro Hrončok
Miro Hrončok added the comment: I've reproduced this on 3.7.1rc1: https://src.fedoraproject.org/rpms/python3/pull-request/58 log (x86_64): https://kojipkgs.fedoraproject.org//work/tasks/2460/29992460/build.log -- nosy: +hroncok ___ Python tracker

[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9048 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

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

2018-10-01 Thread Yury Selivanov
Yury Selivanov added the comment: The PR needs a very careful review, but in general I'm OK with the idea. I'm also curious why do you want to fix wrap_future -- how are you using it? -- ___ Python tracker ___

[issue34811] test_gdb fails with latest gdb

2018-10-01 Thread STINNER Victor
STINNER Victor added the comment: > I've reproduced this on 3.7.1rc1: (...) Oh. I reopen the issue. It seems like the bug occurred on the debug build of Python: + /builddir/build/BUILD/Python-3.7.1rc1/build/debug/python -m test.regrtest -wW --slowest --findleaks -x test_distutils -x test_bd

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-10-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9049 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34014] loop.run_in_executor should propagate current contextvars

2018-10-01 Thread Yury Selivanov
Yury Selivanov added the comment: So we're deprecating passing non-ThreadPoolExecutor instances to loop.set_default_executor. In 3.9 that will trigger an error. For this issue we have basically the next few options: (1) Do nothing; (2) Fix "run_in_executor" to start copying and running in

[issue34014] loop.run_in_executor should propagate current contextvars

2018-10-01 Thread Yury Selivanov
Yury Selivanov added the comment: One problem with (3) is what will happen if someone uses "retain_context=True" and a ProcessPoolExecutor. It has to fail in a graceful and obvious way. -- ___ Python tracker _

[issue34824] _ssl.c: Possible null pointer dereference

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch, but there is more than one error here. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

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

2018-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that the resolution of this issue should be revision of at least the tkinter paragraph in https://docs.python.org/3/using/mac.html#gui-programming-on-the-mac, and I think at least the tkinter revision should be cherry-picked into the upcoming releas

[issue34860] fix test_sqlite for AIX

2018-10-01 Thread Michael Felt
Michael Felt added the comment: Yes, that seems to have fixed it already. Closing the PR and issue! Thx for the quick response! On 10/1/2018 1:37 PM, Michael Felt wrote: > Michael Felt added the comment: > > I just pulled master, did not see Modules/_sqlite/connection.c >

[issue34860] fix test_sqlite for AIX

2018-10-01 Thread Michael Felt
Michael Felt added the comment: duplicate of issue34743 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34860] fix test_sqlite for AIX

2018-10-01 Thread Berker Peksag
Change by Berker Peksag : -- superseder: -> test_database_source_name fails with SQLite 3.7.9 ___ Python tracker ___ ___ Python-bug

[issue34862] No longer builds on OpenBSD due to missing definition of convert_sched_param

2018-10-01 Thread William Orr
New submission from William Orr : [ worr on locke ] ( cpython ) % make -j15 [0] gcc -pthread -fno-strict-aliasing -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -pipe -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers

[issue34862] No longer builds on OpenBSD due to missing definition of convert_sched_param

2018-10-01 Thread William Orr
Change by William Orr : -- keywords: +patch pull_requests: +9050 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34838] Improve arg clinic code generation for cases with type checking

2018-10-01 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +9052 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34838] Improve arg clinic code generation for cases with type checking

2018-10-01 Thread Ammar Askar
Ammar Askar added the comment: I've attached a PR that implements this. From the looks of it, there aren't a lot of uses of subclass_of within argument clinic converted functions at the moment. Additionally, most of the places it is used tend to have some non object arguments so a call to _P

[issue34751] Hash collisions for tuples

2018-10-01 Thread Tim Peters
Tim Peters added the comment: If SeaHash is interesting to us (it is to me), I suggest dropping our DJB/FNV combining part entirely and using a purer form, like so: Py_uhash_t t = (Py_uhash_t)y; x ^= t ^ (t << 1); x *= (Py_uhash_t)0x6eed0e9da4d94a4fULL; x ^= (x >> 32) >> (x >>

[issue34863] Idle Mac scrolling only down

2018-10-01 Thread Andy Harrington
New submission from Andy Harrington : In a source file in Idle I scroll down no matter which way I rotate the mouse wheel. This happens in no other app. Mac High Sierra OS. I have the Mac scrolling setup "natural" - backwards from the Windows directions. -- assignee: terry.reedy c

[issue34864] In Idle, Mac tabs make bottom editor line with cursor location disappear

2018-10-01 Thread Andy Harrington
New submission from Andy Harrington : Mac now puts multiple tabs inside of application window instead of starting a separate window (with some OS settings). With just one file being edited in Idle (no tab line) the bottom line with the numerical cursor coordinates is visible. When there are

[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-10-01 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34818] test.test_ssl.ThreadedTests.test_tls1_3 fails in 2.7 with AttributeError: __exit__

2018-10-01 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34834] test_ssl.test_options does not correctly account for built-in ctx defaults with openssl 1.1.1

2018-10-01 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34836] test_ssl.test_default_ecdh_curve needs no tls1.3 flag in 2.7, for now

2018-10-01 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32117] Tuple unpacking in return and yield statements

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: assertEquals() is deprecated, use assertEqual() instead. This causes tests failure when run with -Werror. -- stage: resolved -> needs patch status: closed -> open ___ Python tracker

[issue34865] Incorrect assignment of optional argument when partial match with different argument found.

2018-10-01 Thread Rob Dalton
New submission from Rob Dalton : Parsing an unknown optional argument whose leading characters (e.g. '--user') match those of another, known optional argument (e.g. '--userdata') causes the unknown argument to be parsed as the known one. For example - passing the unknown argument '--user' to

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

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests are failed when ran with -Werror. $ ./python -Werror -m test -vuall test_asyncgen ... == ERROR: test_async_gen_asyncio_01 (test.test_asyncgen.AsyncGenAsyncioTest) -

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

2018-10-01 Thread STINNER Victor
STINNER Victor added the comment: > We should raise a DeprecationWarning in Python 3.8 and 3.9 and remove it in > 4.0. On python-committers, it has been said that 3.10 will follow Python 3.9, no? -- nosy: +vstinner ___ Python tracker

[issue31310] semaphore tracker isn't protected against crashes

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests are failed when ran with -Werror. $ ./python -We -m test -vuall test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_spawn ... == ERROR: test_semaphore_track

[issue34865] Incorrect assignment of optional argument when partial match with different argument found.

2018-10-01 Thread Zachary Ware
Zachary Ware added the comment: Would using `allow_abbrev=False` fix this for you? https://docs.python.org/3/library/argparse.html#allow-abbrev -- nosy: +zach.ware ___ Python tracker ___

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

2018-10-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: resolved -> needs patch status: closed -> open ___ Python tracker ___ ___ Python-bugs-list ma

[issue34844] logging.Formatter enhancement - Checking on style and fmt fields

2018-10-01 Thread Luna Chen
Luna Chen added the comment: Thank you Vinay! I think you have some good points! :) I'm going to make the following changes - re-raise the keyError into ValueError in XXXStyle.format - add validate() methods to XXXstyle class, and call them in logging.Formatter Best regards, Luna Chen --

[issue34865] Incorrect assignment of optional argument when partial match with different argument found.

2018-10-01 Thread Rob Dalton
Rob Dalton added the comment: It does. Thanks! I feel dumb for not finding that. Guess I'd just suggest making the default `false`, seems more intuitive to me. On Mon, Oct 1, 2018 at 2:00 PM Robert Dalton wrote: > It does. Thanks! I feel dumb for not finding that. > > Guess I'd just suggest

[issue34866] CGI DOS vulnerability via long post list

2018-10-01 Thread Matthew Belisle
New submission from Matthew Belisle : Copied from email to secur...@python.org: I have been doing memory profiling on a few python web frameworks and I noticed this issue in the cgi.FieldStorage class. $ python example.py Memory used: 523935744 bytes The problem is there is no easy way to li

[issue34866] CGI DOS vulnerability via long post list

2018-10-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +9053 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

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

2018-10-01 Thread Yury Selivanov
Yury Selivanov added the comment: > On python-committers, it has been said that 3.10 will follow Python 3.9, no? Victor, you're looking at an outdated comment on this issue. This is what's in the master branch: https://github.com/python/cpython/blob/d4c76d960b8b286b75c933780416ace9cda682fd/

[issue34863] Idle Mac scrolling only down

2018-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Fixed in 3.7.1rc1, See the Mac downloads at https://www.python.org/downloads/release/python-371rc1/ If no problems, 3.7.1 itself will follow in a week or so. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE:

[issue27643] test_ctypes fails on AIX with xlc

2018-10-01 Thread Michael Felt
Michael Felt added the comment: well, update: the issue34603 merged 16 days ago has broken this PR - that has been waiting for nearly 10 months. Unhappy camper. And, just as a short reminder - there were earlier ¨patches (that I just copied) going back more than 2 years. Please, some attent

[issue34751] Hash collisions for tuples

2018-10-01 Thread Tim Peters
Tim Peters added the comment: >Py_uhash_t t = (Py_uhash_t)y; >x ^= t ^ (t << 1); >x *= (Py_uhash_t)0x6eed0e9da4d94a4fULL; >x ^= (x >> 32) >> (x >> 60); >x *= (Py_uhash_t)0x6eed0e9da4d94a4fULL; Comment out either one of the multiplies, and it still passes all the tests. Co

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

2018-10-01 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +9054 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue34865] Incorrect assignment of optional argument when partial match with different argument found.

2018-10-01 Thread Eric V. Smith
Eric V. Smith added the comment: As much as I agree that allow_abbrev=False would be a much better default, at this point we can't change it. Doing so would break who knows how many existing scripts when they upgraded Python versions. -- nosy: +eric.smith resolution: -> not a bug st

[issue31865] html.unescape does not work as per documentation

2018-10-01 Thread Ezio Melotti
Change by Ezio Melotti : -- assignee: docs@python -> ezio.melotti keywords: +easy stage: -> needs patch ___ Python tracker ___ ___

[issue31865] html.unescape does not work as per documentation

2018-10-01 Thread Ezio Melotti
Change by Ezio Melotti : -- keywords: +patch pull_requests: +9055 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyth

[issue31865] html.unescape does not work as per documentation

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

[issue31865] html.unescape does not work as per documentation

2018-10-01 Thread Ezio Melotti
Ezio Melotti added the comment: New changeset 30534cc7172f36092e0002bb7df482edc0d539ce by Ezio Melotti in branch 'master': bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9662) https://github.com/python/cpython/commit/30534cc7172f36092e0002bb7df482edc0d539ce -- __

[issue31865] html.unescape does not work as per documentation

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

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

2018-10-01 Thread Steven D'Aprano
New submission from Steven D'Aprano : Split off from #34850 by Guido's request. To help catch incorrect use of `is` when `==` is intended, perhaps we should add an interpreter mode that disables the caches for small ints and interned strings. Nathaniel called it "chaos mode" but I don't like

[issue31865] html.unescape does not work as per documentation

2018-10-01 Thread Ezio Melotti
Ezio Melotti added the comment: New changeset 27d7f93f633f0163b96d0a95e312f0eb5615abfd by Ezio Melotti (Miss Islington (bot)) in branch '3.7': bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9663) https://github.com/python/cpython/commit/27d7f93f633f0163b96d0a95e312f0eb5615a

  1   2   >