[issue40597] generated email message exceeds RFC-mandated limit of 998 characters

2020-07-08 Thread miss-islington
miss-islington added the comment: New changeset e68978978f49cfc489fa0f888281ce84460818c0 by Miss Islington (bot) in branch '3.9': bpo-40597: Allow email.contextmanager set_content() to set a null string. (GH-20542) https://github.com/python/cpython/commit/e68978978f49cfc489fa0f888281ce844608

[issue41247] asyncio.set_running_loop() cache running loop holder

2020-07-08 Thread Tony
Change by Tony : -- pull_requests: +20555 pull_request: https://github.com/python/cpython/pull/21406 ___ Python tracker ___ ___ Pyth

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2020-07-08 Thread Cooper Lees
Cooper Lees added the comment: Another bump since I've waiting over a year. Any plans for this? Will it make 3.10? Anything I can do? -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___

[issue41194] Python 3.9.0b3 crash on compile() in PyAST_Check() when the _ast module is loaded more than once

2020-07-08 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: "Short" reproducer: repro.py: ``` import sys from os import getcwd, chdir from runpy import run_path def smoke_test(script, *args): old_argv = list(sys.argv) del sys.argv[:] sys.argv.append(script) sys.argv.extend(args) old_modules = d

[issue41194] Python 3.9.0b3 crash on compile() in PyAST_Check() when the _ast module is loaded more than once

2020-07-08 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: $ PYTHONWARNINGS=ignore gdb --args /home/arcivanov/Documents/src/arcivanov/pybuilder/target/venv/test/cpython-3.9.0.beta.4/bin/python ./repro.py GNU gdb (GDB) Fedora 9.1-5.fc32 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-07-08 Thread Andy Lester
Change by Andy Lester : -- nosy: -petdance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes

2020-07-08 Thread Marco Paolini
Marco Paolini added the comment: hello Thomas, do you need any help fixing the conflicts in your PR? even if Lib/warnings.py changed a little in the last 2 years, your PR is still good! -- nosy: +mpaolini ___ Python tracker

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2020-07-08 Thread Yury Selivanov
Yury Selivanov added the comment: Looks like https://github.com/python/cpython/pull/17975 was forgotten and was never committed to 3.9. So it's 3.10 now. Best bet for you is to use uvloop which should support the feature. -- ___ Python tracker

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2020-07-08 Thread Cooper Lees
Change by Cooper Lees : -- keywords: +patch pull_requests: +20556 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17975 ___ Python tracker ___

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2020-07-08 Thread Keith Blaha
New submission from Keith Blaha : Copied from https://github.com/python/typing/issues/737 I came across this issue while using inheritance to express required keys in a TypedDict, as is recommended by the docs. It's most easily explained by a minimal example I cooked up. Let's say we have a

[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2020-07-08 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41206] behaviour change with EmailMessage.set_content

2020-07-08 Thread Abhilash Raj
Abhilash Raj added the comment: I have merged https://github.com/python/cpython/pull/20542 and backported to 3.8 and 3.9 branches (https://github.com/python/cpython/pull/21404 & https://github.com/python/cpython/pull/21405). Closing this issue. -- resolution: -> fixed stage: patch

[issue40597] generated email message exceeds RFC-mandated limit of 998 characters

2020-07-08 Thread Abhilash Raj
Abhilash Raj added the comment: Closing this since the PRs for the behavior change reported by Mike and BPO-41206 is now merged too. -- nosy: +maxking stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40597] generated email message exceeds RFC-mandated limit of 998 characters

2020-07-08 Thread Abhilash Raj
Abhilash Raj added the comment: Thanks Mark! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2020-07-08 Thread Cooper Lees
Cooper Lees added the comment: Yury, only problem with that is aiohttp hard blocks HTTPS proxies period. The aiohttp issue says they won't fix this until asyncio supports it. Kinda understand that. [cooper:~]$ ./aioclient.par HTTPS proxies https://fwdproxy:8082 are not supported, ignoring ^C

[issue37765] IDLE: Include keywords in module-level autocomplete list

2020-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, I suggested the compromise because of your original objection. Since you think half is worse than all, I will revert the change. It did get me to do a needed rewrite of the Completions section of the IDLE doc. -- title: IDLE: Include longer ke

[issue41239] SSL Certificate verify failed in Python3.6/3.7

2020-07-08 Thread Wu Wenyan
Wu Wenyan added the comment: OK. Thanks for your suggestion. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41250] Number separators in different places

2020-07-08 Thread wyz23x2
New submission from wyz23x2 : The current syntax is this for thousand separators: f'{var:,}' It will return this when var is 1234567: '1,234,567' But sometimes we need a way to insert them in other places. For example: 123456789 → '1,2345,6789' (4) 62938757312 → '6,29387,57312' (5) This could be

[issue41250] Number separators in different places

2020-07-08 Thread wyz23x2
wyz23x2 added the comment: Q: Why not use f"{var:,}".replace(',', sepchar) for the sepchar parameter? A: It is very complicated in the case below: num = 1234567 text = 'Hello, world!' print(f"{num:,}{text}").replace(',', ' ') # Becomes '1 234 567Hello world!' print(f"{f'{num:,}'.replace(',', '

[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-08 Thread wyz23x2
New submission from wyz23x2 : __future__.barry_as_FLUFL turns x!=y into x<>y. But the doc by help() says: Help on _Feature in module __future__ object:

[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-08 Thread wyz23x2
Change by wyz23x2 : -- components: +Library (Lib) versions: +Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-08 Thread wyz23x2
wyz23x2 added the comment: Help on _Feature in module __future__ object: class _Featur

[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-08 Thread wyz23x2
Change by wyz23x2 : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue41252] Incorrect reference counting in _ssl.c's _servername_callback()

2020-07-08 Thread Zackery Spytz
New submission from Zackery Spytz : In _servername_callback(), servername_bytes will be used after being decrefed if PyUnicode_FromEncodedObject() fails. -- assignee: christian.heimes components: Extension Modules, SSL messages: 373371 nosy: ZackerySpytz, christian.heimes priority: norm

[issue41252] Incorrect reference counting in _ssl.c's _servername_callback()

2020-07-08 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +20557 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21407 ___ Python tracker ___ __

[issue41250] Number separators in different places

2020-07-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue41253] unittest -h shows a flag -s but it doesn't work

2020-07-08 Thread Faris Chugthai
New submission from Faris Chugthai : I'm not 100% sure what's happening here but running: `python -m unittest -h` shows a flag `-s` as does `python -m unittest discover -h`. When run as: `python -m unittest discover -s test` the command runs correctly but when run as `python -m unittest -

[issue41253] unittest -h shows a flag -s but it doesn't work

2020-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Where do you see option -s? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-l

[issue41250] Number separators in different places

2020-07-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: This was considered in PEP 378 — Format Specifier for Thousands Separator.¹ The decision was to keep it simple and only support groups of three digits using a comma as the separator. FWIW, the decimal documentation has a formatting recipe that could be ad

[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was not officially dropped. It was kept as a joke. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue41253] unittest -h shows a flag -s but it doesn't work

2020-07-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The -s option shown in `python3 -m unittest -h` is grouped under help for discover. Options for a discover command don't necessarily apply to the unittest command itself. $ python3 -m unittest -h usage: python3 -m unittest [-h] [-v] [-q] [--locals]

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-08 Thread Wansoo Kim
Wansoo Kim added the comment: May I solve this issue? -- nosy: +ys19991 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-08 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: Please go ahead and create a PR. -- nosy: +thatiparthy ___ Python tracker ___ _

[issue41250] Number separators in different places

2020-07-08 Thread Eric V. Smith
Eric V. Smith added the comment: The formatting specification language is already complicated enough without adding even more to it. As PEP 378 says "It is not the goal to replace the locale module, to perform internationalization tasks, or accommodate every possible convention." Your best

[issue41254] Add to/from string methods to datetime.timedelta

2020-07-08 Thread Miki Tebeka
New submission from Miki Tebeka : I suggest adding datetime.timedelta methods that convert to/from str. The reason is that I have several places where configuration contains various timeouts. I'd like to write '50ms' and not 0.05 which is more human readable. See https://golang.org/pkg/time/#

<    1   2