[issue43828] MappingProxyType accepts string

2021-04-13 Thread Andy Maier
Andy Maier added the comment: I accept that the issue was closed, but wanted to document some things: 1. The dict class manages very well to detect that a string is invalid input: >>> d = dict('abc') Traceback (most recent call last): File "", line 1, in ValueError: dictionary update seque

[issue43777] Remove description of "pip search" command from tutorial

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue43777] Remove description of "pip search" command from tutorial

2021-04-13 Thread miss-islington
miss-islington added the comment: New changeset 57873af35aad98c6428b1718aaee4b16a82ea3f5 by Miss Islington (bot) in branch '3.9': bpo-43777: Drop description of "pip search" command from tutorial (GH-25287) https://github.com/python/cpython/commit/57873af35aad98c6428b1718aaee4b16a82ea3f5 --

[issue43777] Remove description of "pip search" command from tutorial

2021-04-13 Thread miss-islington
miss-islington added the comment: New changeset 6ac1ea25a2ba2aae742e191784cf73033b3ab332 by Miss Islington (bot) in branch '3.8': bpo-43777: Drop description of "pip search" command from tutorial (GH-25287) https://github.com/python/cpython/commit/6ac1ea25a2ba2aae742e191784cf73033b3ab332 --

[issue43733] PEP 597: netrc uses locale encoding.

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue43752] [sqlite3] Fetching an empty value from date column raises ValueError

2021-04-13 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue42578] Add tip when encountering UnicodeDecode/EncodeError in open()

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue41098] Deprecating PyUnicodeEncodeError_Create

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue42152] Use PyDict_Contains() and PyDict_SetDefault() instead of PyDict_GetItemWithError()

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: May I close this issue? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue43712] PEP 597: fileinput uses locale encoding

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue43712] PEP 597: fileinput uses locale encoding

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: New changeset 333d10cbb53dd5f28d76f659a49bf0735f8509d8 by Inada Naoki in branch 'master': bpo-43712 : fileinput: Add encoding parameter (GH-25272) https://github.com/python/cpython/commit/333d10cbb53dd5f28d76f659a49bf0735f8509d8 -- ___

[issue43777] Remove description of "pip search" command from tutorial

2021-04-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24131 pull_request: https://github.com/python/cpython/pull/25399 ___ Python tracker ___ __

[issue43777] Remove description of "pip search" command from tutorial

2021-04-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24130 pull_request: https://github.com/python/cpython/pull/25398 ___ Python tracker _

[issue43777] Remove description of "pip search" command from tutorial

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: New changeset 133705b85cc25d1e6684d32f8943ca288fadfda0 by Bob Kline in branch 'master': bpo-43777: Drop description of "pip search" command from tutorial (GH-25287) https://github.com/python/cpython/commit/133705b85cc25d1e6684d32f8943ca288fadfda0 -- _

[issue43837] Operator precedence documentation could be more clear

2021-04-13 Thread Aidan Feldman
New submission from Aidan Feldman : I am teaching a class on Python for people who are new to coding, and I was talking them through the operator precedence table: https://docs.python.org/3/reference/expressions.html#operator-precedence A couple things that confused the students: - "Highest

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2021-04-13 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : -- nosy: +Sergey.Kirpichev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43836] range.index doesn't support start/stop optional arguments

2021-04-13 Thread Kaleb Barrett
New submission from Kaleb Barrett : The range builtin type is a collections.abc.Sequence, which in Python 3.5 added the optional start and stop arguments to the index method of Sequences. However, range.index does not support these optional arguments required by Sequence. I noticed this when

[issue43813] Denial of service on http.server module with large request method.

2021-04-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43829] MappingProxyType cannot hash a hashable underlying mapping

2021-04-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, what do you think? Would it make sense to pass through the underlying hash? I don't think there is much use for this but don't see any particular reason to block it. -- nosy: +rhettinger, serhiy.storchaka priority: normal -> low versions

[issue43828] MappingProxyType accepts string

2021-04-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: This isn't a bug because the MappingProxy doesn't promise to do early detection and because it can't really be accomplished cleanly. Perfect detection of non-mappings isn't possible. Some easy, minimal checks are made for early detection using PyMapping_

[issue38530] Offer suggestions on AttributeError and NameError

2021-04-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24129 pull_request: https://github.com/python/cpython/pull/25397 ___ Python tracker ___ ___

[issue38530] Offer suggestions on AttributeError and NameError

2021-04-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: Offer suggestions on AttributeError -> Offer suggestions on AttributeError and NameError ___ Python tracker ___ ___

[issue38530] Offer suggestions on AttributeError

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 37494b441aced0362d7edd2956ab3ea7801e60c8 by Pablo Galindo in branch 'master': bpo-38530: Offer suggestions on AttributeError (#16856) https://github.com/python/cpython/commit/37494b441aced0362d7edd2956ab3ea7801e60c8 --

[issue43680] Deprecate undocumented io.OpenWrapper and _pyio.OpenWrapper

2021-04-13 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Remove undocumented io.OpenWrapper and _pyio.OpenWrapper -> Deprecate undocumented io.OpenWrapper and _pyio.OpenWrapper ___ Python trac

[issue43680] Remove undocumented io.OpenWrapper and _pyio.OpenWrapper

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3bc694d5f3d4eb2e5d2f0b83e498b19662845d4e by Victor Stinner in branch 'master': bpo-43680: Deprecate io.OpenWrapper (GH-25357) https://github.com/python/cpython/commit/3bc694d5f3d4eb2e5d2f0b83e498b19662845d4e -- ___

[issue43680] Remove undocumented io.OpenWrapper and _pyio.OpenWrapper

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24128 pull_request: https://github.com/python/cpython/pull/25395 ___ Python tracker ___ _

[issue43682] Make static methods created by @staticmethod callable

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: Strictly speaking, adding any method is "potential" breaking change because hasattr(obj, "new_method") become from False to True. And since Python is dynamic language, any change is "potential" breaking change. But we don't treat such change as breaking change.

[issue43835] Dataclasses don't call base class __init__

2021-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: > The dataclass doesn't need to know what arguments the parent __init__ > accepts. It should consume the arguments it needs to initialize its instance > attributes, and forward the rest to the parent __init__. The generated __init__() uses every parameter to

[issue43835] Dataclasses don't call base class __init__

2021-04-13 Thread Paul Pinterits
Paul Pinterits added the comment: > dataclasses doesn't know the signature of the base class's __init__, so it > can't know how to call it. The dataclass doesn't need to know what arguments the parent __init__ accepts. It should consume the arguments it needs to initialize its instance attri

[issue43080] pprint for dataclass instances

2021-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for all of the work, LewisGaul. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43080] pprint for dataclass instances

2021-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 11159d2c9d6616497ef4cc62953a5c3cc8454afb by Lewis Gaul in branch 'master': bpo-43080: pprint for dataclass instances (GH-24389) https://github.com/python/cpython/commit/11159d2c9d6616497ef4cc62953a5c3cc8454afb -- __

[issue38755] Long unicode string causes SyntaxError: Non-UTF-8 code starting with '\xe2' in file ..., but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: In 2012, I wrote detect_truncate.patch in bpo-14811. Does someone want to convert it to a PR for Python 3.9? -- ___ Python tracker ___ _

[issue38755] Long unicode string causes SyntaxError: Non-UTF-8 code starting with '\xe2' in file ..., but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: The bpo-14811 issue was fixed in Python 3.10 by bpo-25643, but is not fixed in Python 3.8 and 3.9. -- nosy: +vstinner ___ Python tracker ___

[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...")

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, let's continue the discussion on https://bugs.python.org/issue38755 -- ___ Python tracker ___

[issue43731] PEP 597: logging.fileConfig() uses locale encoding.

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: > Ah, so you want to emit an EncodingWarning when fileConfig(filename) is > called without specifying an encoding, right? Yes, but only when the user uses `PYTHONWARNDEFAULTENCODING`. I already added `export PYTHONWARNDEFAULTENCODING=1` in `.bashrc` in my mac a

[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...")

2021-04-13 Thread Eryk Sun
Eryk Sun added the comment: > So that means we can close the issue, no? This is a bug in 3.8 and 3.9, which need the fix to keep reading until "\n" is seen on the line. I arrived at this issue via bpo-38755 if you think it should be addressed there, but it's the same bug that's reported here

[issue43835] Dataclasses don't call base class __init__

2021-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: dataclasses doesn't know the signature of the base class's __init__, so it can't know how to call it. I realize you've given an example that would accept any parameters, but that isn't typical. What if the base class was: @dataclasses.dataclass class Foo:

[issue43785] Remove RLock from BZ2File

2021-04-13 Thread Inada Naoki
Inada Naoki added the comment: New changeset 695d47b51e3e197de5448a1eb2f618bef6d59ac8 by Inada Naoki in branch 'master': bpo-43785: Update bz2 document (GH-25351) https://github.com/python/cpython/commit/695d47b51e3e197de5448a1eb2f618bef6d59ac8 -- __

[issue43785] Remove RLock from BZ2File

2021-04-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue43810] os.path.abspath returns invalid path (resolves symbolic link)

2021-04-13 Thread Eryk Sun
Eryk Sun added the comment: If realpath() resolves too much, you'll have to resolve manually via os.path.islink() and os.readlink(). If you need strict resolution, use pathlib.Path.resolve(). In strict mode it raises FileNotFoundError if a path component doesn't exist. Also, even in non-stri

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: > I got a false positive on my PR at > https://github.com/python/cpython/pull/25318/checks?check_run_id=2308871807 Oh, this CI failure was on Python 3.8. Since Python 3.9, Python is now built with -fvisibility=hidden to avoid exporting symbols which are not

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24127 pull_request: https://github.com/python/cpython/pull/25394 ___ Python tracker ___ ___

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I am going to revert the 3.9 PR as 3.9+ is hiding symbols by default. -- ___ Python tracker ___ __

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > $ objdump -T /lib64/libpython3.10.so.1.0|grep > _Py_M__importlib_bootstrap_external # empty output This was happening on 3.8 Victor: root@d9c5942e274b:/src# objdump -T libpython3.8.so | grep _Py_M__importlib_bootstrap_external 00335740 g

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > To skip ABI tests? I proposed to ignore ABI changes if they can be ignored > safely. But I don't know right now which changes can be ignored or not. As the situation stands we need to choose on keeping my changes to ignore _Py function changes or re

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: > Ok, then we need to revert by latest 2 PRs and add a new label or something > to skip To skip ABI tests? I proposed to ignore ABI changes if they can be ignored safely. But I don't know right now which changes can be ignored or not. -- __

[issue43835] Dataclasses don't call base class __init__

2021-04-13 Thread Paul Pinterits
New submission from Paul Pinterits : It's documented behavior that @dataclass won't generate an __init__ method if the class already defines one. It's also documented that a dataclass may inherit from another dataclass. But what happens if you inherit from a dataclass that implements a custom

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 25393 to micro-optimize _PyType_GetModuleByDef(). It reduces the overhead from +5.7 ns to +3.4 ns (-2.3 ns). Well, I didn't check in depth if _PyType_GetModuleByDef() is the only change in functools.lru_cache() from Python 3.9 to master. Compare

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: > ./python -m pyperf timeit "from functools import lru_cache; f = > lru_cache(lambda: 42)" "f()" --compare-to ../3.9/python > /home/pablogsal/github/3.9/python: . 2.60 us +- 0.05 us You misused pyperf timeit: the two statements are run at

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2021-04-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24126 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/25393 ___ Python tracker ___ __

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: One thing we could consider as Serhiy proposed on the mailing list is to emit a Syntax Warning. The ambiguous cases are specially scary so I think that makes sense -- ___ Python tracker

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Anthony Sottile
Anthony Sottile added the comment: here's quite a few other cases as well -- I'd love for this to be clarified in PEP8 such that I can rationalize crafting a rule for it in `pycodestyle` -- https://github.com/PyCQA/pycodestyle/issues/371 -- nosy: +Anthony Sottile ___

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread sco1
sco1 added the comment: Appreciate the additional historical context, I also was pointed to this in the documentation: https://docs.python.org/3/reference/lexical_analysis.html#whitespace-between-tokens If a parsing change is undesired from a backwards compatibility standpoint, would it be

[issue43834] Use context manager in StringIO example

2021-04-13 Thread John Hagen
New submission from John Hagen : The example for StringIO currently manually closes the object rather than using a context manager. Since this is likely the first code that a new user encounters and context managers reduce error-prone situations, I think it would be helpful to show usage as a

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Precisely because examples like that changing this is a breaking change. Don't get me wrong: I would love to change it, but I don't know if is worth the risk -- ___ Python tracker

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Better example: >>> [0x1for x in (1,2)] [31] The code is parsed as [0x1f or x in (1,2)] instead of [0x1 for x in (1,2)] as you may expect. -- ___ Python tracker ___

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We tried changing this IIRC and it broke code in the stdlib (now reformatted) so it will break code in the wild. I am not sure the gains are worth it. -- ___ Python tracker

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Hi. I'm totally confused about other keywords but I'm a little concerned about the "and", "or" operator when used on, not only "int" (also known as "long") but also most Python objects other then bool type. Mostly when used on Python built-in objects "and",

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good example! Similar issue was discussed on the mailing list 3 years ago (https://mail.python.org/archives/list/python-...@python.org/thread/D2WPCITHG2LBQAP7DBTC6CY26WQUBAKP/#D2WPCITHG2LBQAP7DBTC6CY26WQUBAKP). Now with new example it perhaps should be recon

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, then we need to revert by latest 2 PRs and add a new label or something to skip -- ___ Python tracker ___ ___

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is know behaviour unfortunately and cannot be changed because of backwards compatibility. -- nosy: +pablogsal ___ Python tracker ___

[issue43811] Run GHA CI with multiple OpenSSL versions

2021-04-13 Thread miss-islington
miss-islington added the comment: New changeset a607815eb07582deb3c5818be881a98abe25a100 by Miss Islington (bot) in branch '3.8': [3.8] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25392) https://github.com/python/cpython/commit/a607815eb07582deb3c5818be881a98abe25a100 --

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: It's not just about keywords. Eg '1x' tokenizes too but then produces a syntax error in the parser. Keywords are only special in that they can be used to write syntactically meaningful things with these concatenated numbers. -- nosy: +Ca

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

2021-04-13 Thread Jordan Borean
Jordan Borean added the comment: Fantastic thanks, I'll keep watching the issue in the background as it sounds like it's under control. -- ___ Python tracker ___

[issue43811] Run GHA CI with multiple OpenSSL versions

2021-04-13 Thread miss-islington
miss-islington added the comment: New changeset 5ce227f3a767e6e44e7c41e0c845a83cfca4 by Miss Islington (bot) in branch '3.9': [3.9] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25391) https://github.com/python/cpython/commit/5ce227f3a767e6e44e7c41e0c845a83cfca4 --

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Alistair Muldal
Alistair Muldal added the comment: Several other keywords seem to be affected, including `if`, `else`, `is`, and `in` -- nosy: +alimuldal ___ Python tracker ___ _

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: In a Python stable version, I would suggest to only ignore an ABI change after a manual validation .Otherwise, we can miss real issues. Well, I expect that at the beginning, we will discover many issues like _Py_M__importlib_bootstrap_external ;-) -

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: > We could ignore all functions that start with _Py. Some symbols starting with _Py are indirectly part of the ABI. Example of Include/cpython/pyctype.h: #define Py_ISLOWER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_LOWER) PyAPI_DATA(const unsigned int) _

[issue43725] Create a release branch ABI stability regression test

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: > Oh wow, that's terrible... yet another good reason not to export data values. _Py_M__importlib_bootstrap_external symbol doesn't seem to be exported. Why is it seen as a public symbol? $ objdump -T /lib64/libpython3.10.so.1.0|grep _Py_M__importlib_bootstr

[issue39232] asyncio crashes when tearing down the proactor event loop

2021-04-13 Thread Michael Hall
Change by Michael Hall : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread sco1
sco1 added the comment: Sorry, the bonus, while fun, I don't think is related -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Rich rauenzahn
Change by Rich rauenzahn : -- nosy: +rrauenza ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue43831] sqlite: convert_timestamp raises ValueError for empty columns

2021-04-13 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Hi Lumír, thank you for your report. This is a duplicate of bpo-43752. The bugfix currently is awaiting review, and will be included in python3.10b1 (expected in approx. three weeks). -- nosy: +berker.peksag, erlendaasland __

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread Ned Batchelder
Change by Ned Batchelder : -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue43810] os.path.abspath returns invalid path (resolves symbolic link)

2021-04-13 Thread Rene Visser
Rene Visser added the comment: Thanks Eryk for your fast response. Apparently I somehow skipped the remark about symbolic links in combination with abspath. Thank you for pointing this out and apologies for wasting some of your time!! Best wishes, Rene Visser On Mon, Apr 12, 2021 at 7:40 AM Ery

[issue43833] Unexpected Parsing of Numeric Literals Concatenated with Boolean Operators

2021-04-13 Thread sco1
New submission from sco1 : Came across this riddle today: >>> [0x_for x in (1, 2, 3)] [15] Initially I thought this was related to PEP 515 but the unexpected behavior extends to simpler examples as well, such as: >>> x = 5 >>> 123or x 123 >>> 123and x 5 I'm not familiar enough with C to und

[issue43811] Run GHA CI with multiple OpenSSL versions

2021-04-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24125 pull_request: https://github.com/python/cpython/pull/25392 ___ Python tracker ___ __

[issue43811] Run GHA CI with multiple OpenSSL versions

2021-04-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +24124 pull_request: https://github.com/python/cpython/pull/25391 ___ Python tracker ___ __

[issue43811] Run GHA CI with multiple OpenSSL versions

2021-04-13 Thread miss-islington
miss-islington added the comment: New changeset 8fa1489365e7af8b90286c97db55a2dc60a05cde by Christian Heimes in branch 'master': bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) https://github.com/python/cpython/commit/8fa1489365e7af8b90286c97db55a2dc60a05cde -- nosy: +mi

[issue41515] typing.get_type_hints generates KeyError

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: I see that all PRs are merged, and the CI issue is fixed as well. I close the issue. commit eb77133564d74eb09ed63872a69b9827d4841b49 Author: Karthikeyan Singaravelan Date: Tue Apr 13 19:24:23 2021 +0530 bpo41515: Fix assert in test which throws Syntax

[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...")

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: With https://bugs.python.org/issue14811#msg160706 I get a SyntaxError on Python 3.7, 3.8, 3.9 and 3.10.0a6. But I don't get an error on the master branch (Python 3.10.0a7+). Eryk: > The latest alpha release, 3.10a7, includes your rewrite of the tokenizer, an

[issue43797] Improve syntax error for invalid comparisons

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 30ed93bfec5dfa7ee05982e2df8fd810f3f49305 by Pablo Galindo in branch 'master': bpo-43797: Handle correctly invalid assignments inside function calls and generators (GH-25390) https://github.com/python/cpython/commit/30ed93bfec5dfa7ee05982

[issue40066] Enum: modify __repr__, __str__; update docs

2021-04-13 Thread Ethan Furman
Ethan Furman added the comment: Thank you for the feedback. The new str() and repr() make more sense for Flag-based enumerations, and I'm hesitant to have different formats for Enum- vs Flag-based enums. Would it be helpful to have another base Enum class to derive from that maintained th

[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...")

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > no longer fails in Windows. So that means we can close the issue, no? -- ___ Python tracker ___ ___

[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...")

2021-04-13 Thread Eryk Sun
Eryk Sun added the comment: > I don't get any error executing the t33a.py script The second line in t33a.py is 1618 bytes. The standard I/O BUFSIZ in Linux is 8192 bytes, but it's only 512 bytes in Windows. The latest alpha release, 3.10a7, includes your rewrite of the tokenizer, and in that

[issue43797] Improve syntax error for invalid comparisons

2021-04-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +24123 pull_request: https://github.com/python/cpython/pull/25390 ___ Python tracker ___ ___

[issue43832] asyncio + multiprocessing = core dump in sem_trywait

2021-04-13 Thread Andrei Pozolotin
Change by Andrei Pozolotin : Added file: https://bugs.python.org/file49957/dump_core.txt ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43832] asyncio + multiprocessing = core dump in sem_trywait

2021-04-13 Thread Andrei Pozolotin
New submission from Andrei Pozolotin : every attempt to touch multiprocessing.Event.is_set() from asyncio.run() results in reproducible core dump in sem_trywait system: Linux 5.11.8 Linux work3 5.11.8-arch1-1 #1 SMP PREEMPT Sun, 21 Mar 2021 01:55:51 + x86_64 GNU/Linux Python: 3.9.2 http

[issue3451] Asymptotically faster divmod and str(long)

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: Python has a reasonable efficiency up to 1000 decimal digits (according to benchmark) which is already really great! Operations with more than 1000 decimal digits is an uncommon. IMO you should use a dedicated library like GMP for that. I would prefer to ke

[issue3451] Asymptotically faster divmod and str(long)

2021-04-13 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: yes, that sounds fair. In PyPy we improve things occasionally if somebody feels like working on it, but in general competing against GMP is a fools errand. -- ___ Python tracker

[issue40432] Pegen regenerate project for Windows not working

2021-04-13 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 2.0 -> 3.0 pull_requests: +24122 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/25389 ___ Python tracker

[issue3451] Asymptotically faster divmod and str(long)

2021-04-13 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue40432] Pegen regenerate project for Windows not working

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Seems that the regeneration script is not detecting correctly that needs Python3.8+ for regenerating pegen. Check for instance: https://buildbot.python.org/all/#/builders/596/builds/2/steps/2/logs/stdio -- resolution: fixed -> status: closed

[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...")

2021-04-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I don't get any error executing the t33a.py script -- ___ Python tracker ___ ___ Python-bu

[issue3451] Asymptotically faster divmod and str(long)

2021-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: FWIW, I think we should close this; the same comments as in issue 26256 apply. See msg259408 onwards in that discussion. -- ___ Python tracker __

[issue14811] decoding_fgets() truncates long lines and fails with a SyntaxError("Non-UTF-8 code starting with...")

2021-04-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +BTaskaya, lys.nikolaou, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue43731] PEP 597: logging.fileConfig() uses locale encoding.

2021-04-13 Thread STINNER Victor
STINNER Victor added the comment: Ah, so you want to emit an EncodingWarning when fileConfig(filename) is called without specifying an encoding, right? -- ___ Python tracker

[issue3451] Asymptotically faster divmod and str(long)

2021-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: > we have implemented a faster algorithm for divmod for big numbers using > Mark's fast_div.py in PyPy Urk! I hope your implementation included a healthy dose of validation, testing and cleanup. :-) (I have no doubts that it did.) I'd consider fast_div.py t

[issue43830] (-1) ** 0.5 returns (6.123233995736766e-17+1j) instead of 1j

2021-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: FWIW, if you're specifically interested in complex square roots rather than powers in general, I'd recommend using `cmath.sqrt(value)` rather than `value**0.5` - there are fewer intermediate steps involved in computing `cmath.sqrt`, and the returned value wi

  1   2   >