[issue37852] Pickling doesn't work for name-mangled private methods

2019-08-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread Greg Price
Greg Price added the comment: > I believe that all locale specific things should be in the locale module, not > in the str class. The locale module is all about doing things with the current process-global Unix locale. I don't think that'd be an appropriate interface for this -- if it's

[issue29535] datetime hash is deterministic in some cases

2019-08-14 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: Why is it ok for certain hashes (such as tuples) to be not non-deterministic, while other hashes (such as datetime) need to be non-deterministic? -- ___ Python tracker

[issue37854] [xmlrpc.client.ServerProxy] It does not correctly parse the URL with basic authentication.

2019-08-14 Thread Sanyam Khurana
Sanyam Khurana added the comment: Closed Issue 37853 as a duplicate. Adding Fatih's comment from there for urllib.parse.urlparse - No problem for these: "http://localhost:9100; "http://user:password@localhost:9100; But, these

[issue37853] [urllib.parse.urlparse] It does not correctly parse the URL with basic authentication.

2019-08-14 Thread Sanyam Khurana
Sanyam Khurana added the comment: Duplicate of Issue 37854 Fatih, Thank you for your report. I'm marking this one as a duplicate of another. Request you to not create multiple issues at once for the same thing. Thank you! -- nosy: +CuriousLearner resolution: -> duplicate stage:

[issue37854] [xmlrpc.client.ServerProxy] It does not correctly parse the URL with basic authentication.

2019-08-14 Thread Fatih Sarhan
Fatih Sarhan added the comment: I just changed things and it works. But it's not right. It must be better way.(The 'urllib.parse.urlparse' function's bug should be fixed. ) https://github.com/f9n/cpython/tree/fix-issue-37854 -- ___ Python tracker

[issue19820] docs are missing info about module attributes

2019-08-14 Thread Emmanuel Arias
Emmanuel Arias added the comment: > I can update the docs but I would rely on the comments in Lib/inspect.py on > what to include. Executing inspect.getmembers on a module returns a lot more > attributes than documented in ismodule. I can help too. -- nosy: +eamanu

[issue37854] [xmlrpc.client.ServerProxy] It does not correctly parse the URL with basic authentication.

2019-08-14 Thread Fatih Sarhan
New submission from Fatih Sarhan : Same problem here. (https://bugs.python.org/issue37853) -- components: Library (Lib) messages: 349726 nosy: f9n priority: normal severity: normal status: open title: [xmlrpc.client.ServerProxy] It does not correctly parse the URL with basic

[issue37775] update doc of compileall

2019-08-14 Thread Sanyam Khurana
Sanyam Khurana added the comment: I've checked and approved this PR. This needs a core-review now. Thanks, Hai for your contribution. -- nosy: +CuriousLearner, Mariatta ___ Python tracker

[issue37831] bool(~True) == True

2019-08-14 Thread Guido van Rossum
Guido van Rossum added the comment: s/book/bool/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Trac 1.3.6 Released

2019-08-14 Thread Ryan Ollos
Trac 1.3.6, the latest development release leading up to Trac 1.4, is available. You will find this release at the usual places: https://trac.edgewall.org/wiki/TracDownload#LatestDevRelease You can find the detailed release notes for 1.3.6 on the following pages:

[issue37831] bool(~True) == True

2019-08-14 Thread Guido van Rossum
Guido van Rossum added the comment: > > Because bool is embedded in int, it's okay to return a bool value *that > > compares equal to the int from the corresponding int operation*. > Agreed that it's okay, but I'd like to understand why it's considered > *desirable*. What use-cases benefit

[issue37853] [urllib.parse.urlparse] It does not correctly parse the URL with basic authentication.

2019-08-14 Thread Fatih Sarhan
New submission from Fatih Sarhan : No problem for these: "http://localhost:9100; "http://user:password@localhost:9100; But, these are problematic: "http://use#r:password@localhost:9100; "http://user:pass#word@localhost:9100; ``` from urllib.parse import urlparse url =

[issue37849] IDLE: Completion window misplaced when shown above current line

2019-08-14 Thread miss-islington
miss-islington added the comment: New changeset 88cce7b59fa503616295ca1a25bce6251f9cd317 by Miss Islington (bot) in branch '3.7': bpo-37849: IDLE: fix completion window positioning above line (GH-15267) https://github.com/python/cpython/commit/88cce7b59fa503616295ca1a25bce6251f9cd317

[issue12178] csv writer doesn't escape escapechar

2019-08-14 Thread Brad MacGregor
Brad MacGregor added the comment: I needed this patch for a project, so I compiled python with the patch applied, and tested my specific use case, and it worked. Thanks for the patch! -- nosy: +avatarofhope ___ Python tracker

[issue37849] IDLE: Completion window misplaced when shown above current line

2019-08-14 Thread miss-islington
miss-islington added the comment: New changeset 557802dc17498557e481f2ad3d4a83ece469e489 by Miss Islington (bot) in branch '3.8': bpo-37849: IDLE: fix completion window positioning above line (GH-15267) https://github.com/python/cpython/commit/557802dc17498557e481f2ad3d4a83ece469e489

[issue19820] docs are missing info about module attributes

2019-08-14 Thread Eric Snow
Eric Snow added the comment: The relevant module attributes are described in the importlib docs: https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module -- versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.3, Python 3.4

[issue37849] IDLE: Completion window misplaced when shown above current line

2019-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +15007 pull_request: https://github.com/python/cpython/pull/15283 ___ Python tracker ___

[issue37849] IDLE: Completion window misplaced when shown above current line

2019-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 71662dc2f12a7e77e5e1dfe64ec87c1b459c3f59 by Terry Jan Reedy (Tal Einat) in branch 'master': bpo-37849: IDLE: fix completion window positioning above line (GH-15267)

[issue37849] IDLE: Completion window misplaced when shown above current line

2019-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +15006 pull_request: https://github.com/python/cpython/pull/15282 ___ Python tracker ___

[issue37852] Pickling doesn't work for name-mangled private methods

2019-08-14 Thread Josh Rosenberg
New submission from Josh Rosenberg : Inspired by this Stack Overflow question, where it prevented using multiprocessing.Pool.map with a private method: https://stackoverflow.com/q/57497370/364696 The __name__ of a private method remains the unmangled form, even though only the mangled form

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread Bennet Fauber
Bennet Fauber added the comment: I updated the versions affected to include 3.6 and 3.7, both of which are affected. I am a bit concerned that the conversation might get fragmented, so I will put in the full URL to the newly created PR at GitHub here.

Re: fopen() and open() in cpython

2019-08-14 Thread eryk sun
On 8/13/19, Windson Yang wrote: > After my investigation, I found Since Python maintains its own buffer when > read/write files, the build-in python open() function will call the open() > system call instead of calling standard io fopen() for caching. So when we > read/write a file in Python, it

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2019-08-14 Thread Michael Anckaert
Michael Anckaert added the comment: This issue is still present on Python 3.7 and above. As David suggested set_charset could be turned into a no-op on MIMEMultipart. I traced set_charset back to inheritance from email.message.Message, would overriding set_charset (and possibly raising a

[issue37845] SLCertVerificationError: Unable to handle SAN names (from Certifications) published with white spaces at start

2019-08-14 Thread David K.
David K. added the comment: OK, I see your point :) Modification of the original certificiation is legally problematic. Much thanks for the patience and time to explain, D.K On Wed, Aug 14, 2019, 17:23 Christian Heimes wrote: > > Christian Heimes added the comment: > > On 14/08/2019

[issue19820] docs are missing info about module attributes

2019-08-14 Thread Michael Anckaert
Michael Anckaert added the comment: As far as I can tell there is at least some information missing from the 'Types and members' section. Not all attributes are listed in the table. For example the attribute __cached__ is missing from the module type but it is documented in the inspect

Re: How to plot a data including date and time?

2019-08-14 Thread George Fischhof
Elliott Roper ezt írta (időpont: 2019. aug. 14., Sze 15:56): > On 14 Aug 2019, Elliott Roper wrote > (in article<0001hw.23044901039e772c7ca97...@news.giganews.com>): > > > On 14 Aug 2019, amirrezaheidary...@gmail.com wrote > > (in

[issue37823] Telnet documentation: fix the link to open()

2019-08-14 Thread Michael Anckaert
Michael Anckaert added the comment: I created a PR for this issue (PR 15281). If any changes are required I'm more than happy to make them. -- nosy: +michaelanckaert ___ Python tracker

[issue37823] Telnet documentation: fix the link to open()

2019-08-14 Thread Michael Anckaert
Change by Michael Anckaert : -- keywords: +patch pull_requests: +15005 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15281 ___ Python tracker

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread Peter Edwards
Peter Edwards added the comment: On Wed, 14 Aug 2019 at 14:46, STINNER Victor wrote: > > STINNER Victor added the comment: > > "On a 64-bit system, consuming 8M of address space is a drop in the ocean." > > Let me disagree here. Python always allocates faulthandler stack, even if >

[issue37831] bool(~True) == True

2019-08-14 Thread Mark Dickinson
Mark Dickinson added the comment: > Because bool is embedded in int, it's okay to return a bool value *that > compares equal to the int from the corresponding int operation*. Agreed that it's okay, but I'd like to understand why it's considered *desirable*. What use-cases benefit from

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-14 Thread STINNER Victor
Change by STINNER Victor : -- components: +Tests resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks Joannah! That's a nice enhancement which should help to stabilize buildbots even more. The next step is bpo-37711: "regrtest: re-run failed tests in subprocesses". -- ___ Python tracker

[issue37831] bool(~True) == True

2019-08-14 Thread Guido van Rossum
Guido van Rossum added the comment: It never occurred to me that making b an b|b return bool would be considered a bad thing just because ~b is not a bool. That's like complaining that 1+1 returns an int rather than a float for consistency with 1/2 returning a float. Because bool is

ANN: NumExpr 2.7.0 Release

2019-08-14 Thread Robert McLeod
= Announcing Numexpr 2.7.0 = Hi everyone, This is a minor version bump for NumExpr. We would like to highlight the changes made in 2.6.9 (which in retrospect should have been a minor version bump), where the maximum number of threads spawned can

[issue37850] Console: holding right arrow key reproduces entire previous input

2019-08-14 Thread Eryk Sun
Eryk Sun added the comment: > I did not observe this behaviour on WSL, which is why I think > this is a bug. WSL uses a low-level console interface in virtual-terminal mode. Python's console REPL in Windows is using the standard high-level console editing that's provided by the console

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset d85c5670ff1611202a25c9e0967148e72c114de9 by Victor Stinner in branch '3.8': [3.8] bpo-37531: Fix regrtest timeout for subprocesses (GH-15072) (GH-15279) https://github.com/python/cpython/commit/d85c5670ff1611202a25c9e0967148e72c114de9

[issue36511] Add Windows ARM32 buildbot

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset d85c5670ff1611202a25c9e0967148e72c114de9 by Victor Stinner in branch '3.8': [3.8] bpo-37531: Fix regrtest timeout for subprocesses (GH-15072) (GH-15279) https://github.com/python/cpython/commit/d85c5670ff1611202a25c9e0967148e72c114de9

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 93bee6a8d878ff952e245614c567c7c6bb7a0398 by Victor Stinner in branch '3.7': [3.7] bpo-37531: Fix regrtest timeout for subprocesses (GH-15072) (GH-15280) https://github.com/python/cpython/commit/93bee6a8d878ff952e245614c567c7c6bb7a0398

[issue37845] SLCertVerificationError: Unable to handle SAN names (from Certifications) published with white spaces at start

2019-08-14 Thread Christian Heimes
Christian Heimes added the comment: On 14/08/2019 15.37, David K. wrote: > > David K. added the comment: > > Hi, > > Judging by your comment, I think there is a an unfortnate misunderstanding. > > If you'd be kind enough, please let me explain: > > 1. The issue I had was indeed on Python

[issue36030] add internal API function to create tuple without items array initialization

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4fa10dde40356d7c71e5524233bafc221d9e2deb by Victor Stinner (Sergey Fedoseev) in branch 'master': bpo-36030: Improve performance of some tuple operations (GH-12052)

[issue36030] add internal API function to create tuple without items array initialization

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Well done Sergey Fedoseev: I merged your last PR for this issue ;-) I'm not sure if it's worth it to document these tuple micro-optimizations in What's New in Python 3.8 / 3.9. In the meanwhile, I close the issue. -- resolution: -> fixed stage:

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15004 pull_request: https://github.com/python/cpython/pull/15280 ___ Python tracker ___

[issue36511] Add Windows ARM32 buildbot

2019-08-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15003 pull_request: https://github.com/python/cpython/pull/15279 ___ Python tracker ___

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15002 pull_request: https://github.com/python/cpython/pull/15279 ___ Python tracker ___

Re: How to plot a data including date and time?

2019-08-14 Thread Elliott Roper
On 14 Aug 2019, Elliott Roper wrote (in article<0001hw.23044901039e772c7ca97...@news.giganews.com>): > On 14 Aug 2019, amirrezaheidary...@gmail.com wrote > (in article<23d45668-fa47-4640-832a-5a5c64600...@googlegroups.com>): > > > On Tuesday, August 13, 2019 at 11:47:28 PM UTC+2,

[issue37256] urllib.request.Request documentation erroneously refers to the "final two"

2019-08-14 Thread miss-islington
miss-islington added the comment: New changeset 3e1f135b26cf5fb3583d7e75d39b7b7a9edb472c by Miss Islington (bot) in branch '3.7': bpo-37256: Wording in Request class docs (GH-14792) https://github.com/python/cpython/commit/3e1f135b26cf5fb3583d7e75d39b7b7a9edb472c -- nosy:

Re: How to plot a data including date and time?

2019-08-14 Thread Elliott Roper
On 14 Aug 2019, amirrezaheidary...@gmail.com wrote (in article<23d45668-fa47-4640-832a-5a5c64600...@googlegroups.com>): > On Tuesday, August 13, 2019 at 11:47:28 PM UTC+2, amirrezah...@gmail.com > wrote: > > I have a .csv file, in first column I have date and hour, and in the second > > column I

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: "On a 64-bit system, consuming 8M of address space is a drop in the ocean." Let me disagree here. Python always allocates faulthandler stack, even if faulthandler is not used. Even when faulthandler is used, I would prefer to not waste memory if 8 KiB is

[issue37851] faulthandler: only allocate the signal handler stack when faulthandler is used

2019-08-14 Thread STINNER Victor
New submission from STINNER Victor : Currently at startup, Python always call _PyFaulthandler_Init() which allocates a stack of SIGSTKSZ bytes, even if faulthandler is never used. That's a waste of memory: the stack should be allocated the first time faulthandler is used. bpo-21131 requires

[issue37256] urllib.request.Request documentation erroneously refers to the "final two"

2019-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +15000 pull_request: https://github.com/python/cpython/pull/15277 ___ Python tracker ___

[issue37256] urllib.request.Request documentation erroneously refers to the "final two"

2019-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +15001 pull_request: https://github.com/python/cpython/pull/15278 ___ Python tracker ___

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14999 pull_request: https://github.com/python/cpython/pull/15276 ___ Python tracker ___

[issue37845] SLCertVerificationError: Unable to handle SAN names (from Certifications) published with white spaces at start

2019-08-14 Thread David K.
David K. added the comment: Hi, Judging by your comment, I think there is a an unfortnate misunderstanding. If you'd be kind enough, please let me explain: 1. The issue I had was indeed on Python 3.7, using the highly used "requests" library. Also my change was -not- applied on the

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread Peter Edwards
Peter Edwards added the comment: The patch I originally proposed here ( https://bugs.python.org/file48353/sigaltstack-stacksize.patch ) is a pretty minimal fix that uses the pthread stack size where available, with a hard-coded lower bound of 1M. @Victor : if you want a minimal diff, I can

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread Bennet Fauber
Bennet Fauber added the comment: I just tested the proposed change in Aha, that's interesting: SIGSTKSZ should be enough for 1 signal handler, but test_register_chain calls 2 signal handlers using the same stack. Can you please try the following patch? ``` diff --git

[issue37830] continue and break in finally with return in try results with segfault

2019-08-14 Thread Nick Coghlan
Nick Coghlan added the comment: Even though it doesn't fully resolve this crash, I'd still like us to consider reverting the change to allow "continue" in try/finally blocks. It doesn't seem to have a compelling practical motivation behind it (beyond the fact that it's nice not to impose

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread Peter Edwards
Peter Edwards added the comment: Hi Victor, thanks for the comments. Responses inline below. On Wed, 14 Aug 2019 at 12:25, STINNER Victor wrote: > > STINNER Victor added the comment: > > I dislike PR 13649 because it touch the thread module, only to fix a > faulthandler unit test. My

[issue37645] Replace PyEval_GetFuncName/PyEval_GetFuncDesc

2019-08-14 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Maybe repr(func) should be left unchanged, but str(func) can be enhanced? Yes, that is what I meant. -- ___ Python tracker ___

Re: Create multiple sqlite tables, many-to-many design

2019-08-14 Thread Rich Shepard
On Wed, 14 Aug 2019, Chris Angelico wrote: I prefer to say "Trails" for the table, and "Trail" would then refer to a single row from that table. +1 Rich -- https://mail.python.org/mailman/listinfo/python-list

[issue37645] Replace PyEval_GetFuncName/PyEval_GetFuncDesc

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Maybe repr(func) should be left unchanged, but str(func) can be enhanced? -- ___ Python tracker ___

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0c8369c603633f445ccbb5ca7a8742145ff9eec by Victor Stinner in branch 'master': bpo-37531: Fix regrtest timeout for subprocesses (GH-15072) https://github.com/python/cpython/commit/b0c8369c603633f445ccbb5ca7a8742145ff9eec --

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Ah, I found the recent change about XSAVE: it is a fix for CVE-2018-3665 vulnerability. "The software mitigation for this is to switch to an "eager" / immediate FPU state save and restore, in both kernels and hypervisors." "On Intel and AMD x86 processors,

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Ah, the cpuid command tells me "bytes required by XSAVE/XRSTOR area = 1088": CPU 0: vendor_id = "GenuineIntel" version information (1/eax): processor type = primary processor (0) family = Intel Pentium Pro/II/III/Celeron/Core/Core

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Attached altstack.c mimicks faulthandler unit test test_register_chain(), except that faulthandler_user() uses almost no stack memory. This test should check if SIGSTKSZ is big enough to call a second signal handler from a first signal handler. Example of

[issue37774] Micro-optimize vectorcall using PY_LIKELY

2019-08-14 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > My question is if it is safe to let developers "abuse" it. If these macros > are misused, they can lead to a performance regression. I expect people using these macros and PR reviewers to use good judgement when to use these macros. There are many cases

[issue33731] string formatting that produces floats with preset precision while respecting locale

2019-08-14 Thread Cédric Krier
Cédric Krier added the comment: I think PR-15275 will solves this issue also as you could use: >>> locale.setlocale(locale.LC_ALL, 'fr_FR') >>> locale.localize('{:.2f}'.format(1.891)) '1,89' -- nosy: +ced ___ Python tracker

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2019-08-14 Thread Cédric Krier
Cédric Krier added the comment: I think we can solve this issue like I solved issue13918 by providing a locale.localize() method which does the formatting as locale.format_string does but using the already formatted string. I created PR-15275 which implements it and also use the new format

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2019-08-14 Thread Cédric Krier
Change by Cédric Krier : -- pull_requests: +14997 pull_request: https://github.com/python/cpython/pull/15275 ___ Python tracker ___

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: I dislike PR 13649 because it touch the thread module, only to fix a faulthandler unit test. The relationship between thread stack size and faulthandler is not obvious to me. Currently, faulthandler uses SIGSTKSZ, not the thread stack size. faulthandler

[issue37850] Console: holding right arrow key reproduces entire previous input

2019-08-14 Thread Paul Moore
Paul Moore added the comment: This is normal behaviour of the Windows console command line editing. Python simply inherits the standard console behaviour. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: Create multiple sqlite tables, many-to-many design

2019-08-14 Thread Chris Angelico
On Wed, Aug 14, 2019 at 9:06 PM Gregory Ewing wrote: > > MRAB wrote: > > Another thing you might want to avoid is naming something with what it > > is, e.g. "Trails_Table" (why not just "Trails"). > > Or possibly just "Trail", since any table potentially contains > multiple rows, so making all

[issue36502] str.isspace() for U+00A0 and U+202F differs from document

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6bccbe7dfb998af862a183f2c36f0d4603af2c29 by Victor Stinner (Greg Price) in branch 'master': bpo-36502: Correct documentation of str.isspace() (GH-15019) https://github.com/python/cpython/commit/6bccbe7dfb998af862a183f2c36f0d4603af2c29

Re: Create multiple sqlite tables, many-to-many design

2019-08-14 Thread Gregory Ewing
MRAB wrote: Another thing you might want to avoid is naming something with what it is, e.g. "Trails_Table" (why not just "Trails"). Or possibly just "Trail", since any table potentially contains multiple rows, so making all your table names plural doesn't add any information. -- Greg --

[issue37850] Console: holding right arrow key reproduces entire previous input

2019-08-14 Thread Matthijs Blom
New submission from Matthijs Blom : To reproduce (on Windows): On the console, enter some input: >>> "Ozewiezewoze wiezewalla kristalla" "Ozewiezewoze wiezewalla kristalla" Next, hold the right arrow key, obtaining: >>> "Ozewiezewoze wiezewalla kristalla" One can subsequently

[issue37738] curses.addch('a', curses.color_pair(1)) ignores the color information

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: I fixed the bug in 3.7, 3.8 and master (future 3.9) branches. Thanks Marius Gedminas for the bug report. In the meanwhile, you have to pass bytes strings to addch() :-( -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue37738] curses.addch('a', curses.color_pair(1)) ignores the color information

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7eef81ee766c8df23e522b4e46a930cc1d360ad7 by Victor Stinner in branch '3.7': bpo-37738: Fix curses addch(str, color_pair) (GH-15071) (GH-15273) https://github.com/python/cpython/commit/7eef81ee766c8df23e522b4e46a930cc1d360ad7 --

[issue37681] warning: ‘no_sanitize_thread’

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks Hai Shi for the bug report and the fix. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37738] curses.addch('a', curses.color_pair(1)) ignores the color information

2019-08-14 Thread miss-islington
miss-islington added the comment: New changeset 984226962bc35254551d92771b5c8fb074507903 by Miss Islington (bot) in branch '3.8': bpo-37738: Fix curses addch(str, color_pair) (GH-15071) https://github.com/python/cpython/commit/984226962bc35254551d92771b5c8fb074507903 -- nosy:

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14996 pull_request: https://github.com/python/cpython/pull/15072 ___ Python tracker ___

[issue37738] curses.addch('a', curses.color_pair(1)) ignores the color information

2019-08-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14995 pull_request: https://github.com/python/cpython/pull/15273 ___ Python tracker ___

[issue37738] curses.addch('a', curses.color_pair(1)) ignores the color information

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: On my Fedora 30 with libncursesw, A_COLOR = 0xff00. After my change, _curses uses: static inline short attr_to_color_pair(int attr) { return (short)((attr & A_COLOR) >> 8); } ... setcchar(, wstr, attr,

[issue37838] typing.get_type_hints not working with forward-declaration and decorated functions

2019-08-14 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +newcomer friendly ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37738] curses.addch('a', curses.color_pair(1)) ignores the color information

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 077af8c2c93dd71086e2c5e5ff1e634b6da8f214 by Victor Stinner in branch 'master': bpo-37738: Fix curses addch(str, color_pair) (GH-15071) https://github.com/python/cpython/commit/077af8c2c93dd71086e2c5e5ff1e634b6da8f214 --

[issue37738] curses.addch('a', curses.color_pair(1)) ignores the color information

2019-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14994 pull_request: https://github.com/python/cpython/pull/15272 ___ Python tracker ___

[issue37760] Refactor makeunicodedata.py: dedupe parsing, use dataclass

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: > From my perspective, the main problem with using type annotations is that > there's nothing checking them in CI. Even if unchecked, type annotations can serve as builtin documentation, as docstrings (even when docstrings are not checked ;-)). Well, I

[issue32771] merge the underlying data stores of unicodedata and the str type

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Note: On Debian and Ubuntu, the unicodedata is a built-in module. It's not built as a dynamic library. About the RSS memory, I'm not sure how Linux accounts the Unicode databases before they are accessed. Is it like read-only memory loaded on demand when

[issue37848] More fully implement Unicode's case mappings

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Handling locales correctly is a pain. Each platform uses different locale names (different Linux distributions, Windows, FreeBSD, macOS, etc.). For example, en_US.UTF-8 vs en_US.utf8. For example, there are tons of bugs related to locale.getdefaultlocale()

[issue37681] warning: ‘no_sanitize_thread’

2019-08-14 Thread miss-islington
miss-islington added the comment: New changeset 15b6d0a712c08557a605f49034f8ad392985144c by Miss Islington (bot) in branch '3.7': bpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096) https://github.com/python/cpython/commit/15b6d0a712c08557a605f49034f8ad392985144c --

[issue37681] warning: ‘no_sanitize_thread’

2019-08-14 Thread miss-islington
miss-islington added the comment: New changeset 364a1d3125af6c0ff0a4bd2c8afe70fd38f30456 by Miss Islington (bot) in branch '3.8': bpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096) https://github.com/python/cpython/commit/364a1d3125af6c0ff0a4bd2c8afe70fd38f30456 -- nosy:

[issue37583] Got a 113 error when running the test_socket

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks Hai Shi for the bug report and the fix. It's now fixd in 3.7, 3.8 and master branches. First I understood that you wanted to modify transient_internet() which is used in many places. Fixing support.get_socket_conn_refused_errs() is fine, it's only

[issue37583] Got a 113 error when running the test_socket

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset fbb0c032e89c42ab44f5372df40fffb34a91b575 by Victor Stinner (Hai Shi) in branch '3.7': bpo-37583: Add err 113 to support.get_socket_conn_refused_errs() (GH-15259) https://github.com/python/cpython/commit/fbb0c032e89c42ab44f5372df40fffb34a91b575

[issue37681] warning: ‘no_sanitize_thread’

2019-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14992 pull_request: https://github.com/python/cpython/pull/15270 ___ Python tracker ___

[issue37681] warning: ‘no_sanitize_thread’

2019-08-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +14993 pull_request: https://github.com/python/cpython/pull/15271 ___ Python tracker ___

[issue37681] warning: ‘no_sanitize_thread’

2019-08-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7e479c82218450255572e3f5fa1549dc283901ea by Victor Stinner (Hai Shi) in branch 'master': bpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096) https://github.com/python/cpython/commit/7e479c82218450255572e3f5fa1549dc283901ea

[issue23885] urllib.quote horribly mishandles unicode as second parameter

2019-08-14 Thread Michael Sander
Michael Sander added the comment: Couldn't this be fixed in a backwards compatible way by clearing the cache when this type of error occurs? We can do this by wrapping the offending line with a try/except, then checking to see if the cache is corrupted. If it is, then we clear the cache and

[issue29535] datetime hash is deterministic in some cases

2019-08-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29535] datetime hash is deterministic in some cases

2019-08-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +14991 pull_request: https://github.com/python/cpython/pull/15269 ___ Python tracker ___

[issue37849] IDLE: Completion window misplaced when shown above current line

2019-08-14 Thread Tal Einat
Tal Einat added the comment: > Unless you say differently, I will add idlelib/NEWS.txt item tomorrow and > merge. I've added an idlelib/NEWS.txt entry to the PR. Feel free to merge. -- ___ Python tracker

[issue37831] bool(~True) == True

2019-08-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Does anyone know what the rationale was for having & and | on bools return > bools in the first place? Besides the fact that they can be defined on bool in compatible way and these operators often are used for booleans? It was in the initial version of

<    1   2   3   >