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

2018-10-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 81574b80e92554adf75c13fa42415beb8be383cb by Benjamin Peterson (William Orr) in branch 'master': closes bpo-34862: Guard definition of convert_sched_param with POSIX_SPAWN_SETSCHEDULER. (GH-9658)

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread miss-islington
miss-islington added the comment: New changeset 7455bf46a222780805fd0375328f5732e5bbb684 by Miss Islington (bot) in branch '3.6': closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666)

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread miss-islington
miss-islington added the comment: New changeset cd4dd9374d0fc65b070a61871801d306090f8375 by Miss Islington (bot) in branch '3.7': closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666)

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +9060 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset cbda8fc5d76b10bcbb92d927537576c229143836 by Benjamin Peterson in branch 'master': closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666)

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +9061 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34869] remove LDLAST

2018-10-01 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +9059 stage: -> patch review ___ Python tracker ___ ___

[issue34869] remove LDLAST

2018-10-01 Thread Benjamin Peterson
New submission from Benjamin Peterson : The last thing setting LDLAST in configure seems to have been OSF/1. Support for OSF/1 was removed in 736e7fc0f6d1242b58ee91708873d14ed7856b77. So, I think we can kill LDLAST, too. -- components: Build messages: 326855 nosy: benjamin.peterson

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

2018-10-01 Thread Ammar Askar
Ammar Askar added the comment: Aah sorry, I misinterpreted what you meant. The original ticket proposes it as a compile time flag as well. -- ___ Python tracker ___

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

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't worry about the performance when caches are disabled. An additional check will hit the performance in normal execution. -- ___ Python tracker

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +9058 stage: -> patch review ___ Python tracker ___ ___

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

2018-10-01 Thread Ammar Askar
Ammar Askar added the comment: Serhiy, take a look at the linked ticket. The idea is that something like pytest or libregrtest will use this to bring underlying bugs to the surface. It isn't intended to be used in normal execution. -- ___ Python

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue31780. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing

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

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Adding a runtime option will hit a performance of normal execution. And it is impossible to disable interning strings completely. Some core code depends on this. I have also concerns about disabling caching an empty string. There are also other caches on

[issue34858] MappingProxy objects should JSON serialize just like a dictionary

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Using the default method or argument is a proper way of serializing custom types to JSON. There are a number of issues fr adding support for serializing different types by default. I work on a patch that will allow to make different types serializable in

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread Benjamin Peterson
New submission from Benjamin Peterson : >>> format(34, '_n') Traceback (most recent call last): File "", line 1, in ValueError: Cannot specify ',' with 'n'. Why is it talking about ","? -- components: Interpreter Core messages: 326848 nosy: benjamin.peterson priority: normal

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

2018-10-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm going to formally reject this, since GCC removed -fmpx support. -- nosy: +benjamin.peterson resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

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

2018-10-01 Thread Andy Harrington
Andy Harrington added the comment: This appears to be a system settings option in Mac OS Sierra set under the Dock, "prefer tabs when opening documents". With that choice, when there is the tab bar in an Idle edit window (more than one window superimposed, with tabs) the the whole bottom

[issue34858] MappingProxy objects should JSON serialize just like a dictionary

2018-10-01 Thread Michael Smith
Michael Smith added the comment: OK, I appreciate the response. The MappingProxy objects I am working with are in a nested data structure, so accessing them to coerce them directly isn't feasible. I created class MappingProxyEncoder(JSONEncoder): def default(self, obj): if

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

2018-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not see this 64-bit 3.7.1rc1 (see #34863) on 10.13.6 with, I believe, default settings. Are you reporting multiple tabs as a bug, or a feature resulting from intentional settings? If the latter, this may be something the tcl/tk does not support

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

2018-10-01 Thread Ammar Askar
Ammar Askar added the comment: Maybe something more akin to UndefinedBehaviorSanitizer? Since its supposed to be catching implementation specific quirks. It wouldn't really be sanitizing though, more just making the bugs more likely to appear. -- nosy: +ammar2

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

2018-10-01 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- keywords: -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker

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

2018-10-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Please move the "chaos" discussion to #34867 -- ___ Python tracker ___ ___ Python-bugs-list

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

2018-10-01 Thread Ezio Melotti
Ezio Melotti added the comment: New changeset 56c102596f01ecbbe5cca6339d2ae16695b083ff by Ezio Melotti (Miss Islington (bot)) in branch '3.6': bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9664)

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

[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

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

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

[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 Ezio Melotti
Change by Ezio Melotti : -- keywords: +patch pull_requests: +9055 stage: needs patch -> patch review ___ Python tracker ___ ___

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

[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

[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

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

[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

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

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

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

[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

[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

[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

[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

[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

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

[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

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

[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

[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

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

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

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

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

[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

[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

[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

[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

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

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

[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

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

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

[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

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

[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

[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

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

[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

[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

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

[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

[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

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

[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

[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

[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

[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

[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

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

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

[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

[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

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

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

[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

[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

[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

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

[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

[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

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

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

[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

[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

[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

[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

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

[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"},

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

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

  1   2   >