[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2021-11-30 Thread Eric V. Smith


Eric V. Smith  added the comment:

I'm closing this as "won't fix" for the negative indexing functionality. If 
someone wants to open an new documentation issue (and ideally provide a PR), 
that would be welcome.

--
resolution:  -> wont fix
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue7951>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44674] dataclasses should allow frozendict default value

2021-11-30 Thread Eric V. Smith


Change by Eric V. Smith :


--
keywords: +patch
pull_requests: +28093
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29867

___
Python tracker 
<https://bugs.python.org/issue44674>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-11-29 Thread Eric V. Smith


Change by Eric V. Smith :


--
assignee:  -> eric.smith

___
Python tracker 
<https://bugs.python.org/issue45524>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45931] Directory.Build.props/targets leaks from folders above the repo

2021-11-29 Thread Eric V. Smith


Change by Eric V. Smith :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 
<https://bugs.python.org/issue45931>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43905] dataclasses.astuple (and .asdict) do deepcopy on all fields

2021-11-29 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks, @andrei.avk!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue43905>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45930] Lambda function bug

2021-11-29 Thread Eric V. Smith


Change by Eric V. Smith :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue45930>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45912] [argparse] Print texts starting with capital letters and finish with dot for more formality

2021-11-29 Thread Eric V. Smith


Eric V. Smith  added the comment:

I agree with @iritkatriel. Also, such a change to argparse would be too 
disruptive. So, I'm going to close this.

--
components: +Library (Lib) -Parser
nosy: +eric.smith
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 
<https://bugs.python.org/issue45912>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43905] dataclasses.astuple (and .asdict) do deepcopy on all fields

2021-11-28 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think it's find to address both of these here.

--
components: +Documentation -Library (Lib)
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue43905>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45739] The Python implementation of Decimal does not support the "N" format

2021-11-28 Thread Eric V. Smith


Eric V. Smith  added the comment:

While I'd prefer -1 overall, I would also prefer 3 over 2. If we were adding 
the feature from scratch, we wouldn't have decimal differ from int, float, and 
complex.

And I'm not in favor of an uppercase converter, no matter what we do here. The 
other converters work like:

f'{obj!s}' -> format(str(obj))
f'{obj!r}' -> format(repr(obj))

but the proposed !u would be

f'{obj!u}' -> format(obj).upper()

That is, it operates on the result of __format__, not its input.

--

___
Python tracker 
<https://bugs.python.org/issue45739>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45739] The Python implementation of Decimal does not support the "N" format

2021-11-28 Thread Eric V. Smith


Eric V. Smith  added the comment:

I'd support -1.

--

___
Python tracker 
<https://bugs.python.org/issue45739>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45911] SystemError occured while running an extention

2021-11-28 Thread Eric V. Smith


Eric V. Smith  added the comment:

At first glance, it looks like:
if(!(PyArg_ParseTuple(args,"s",s))) return NULL;
should be:
if(!(PyArg_ParseTuple(args,"s",))) return NULL;

The docs say: "A pointer to an existing string is stored in the character 
pointer variable whose address you pass."

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45911>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Eric V. Smith


Eric V. Smith  added the comment:

Given that the normal sort() machinery wouldn't use this code, I don't think 
there's any advantage to adding .sort() methods to bytes and bytesarray. The 
downside to adding these methods is the increased complexity in the stdlib.

I think the better approach is to put bytes_sort on PyPI.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45902>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45897] Frozen dataclasses with slots raise TypeError

2021-11-25 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think the error should be AttributeError, which is what you'd get if the 
class weren't frozen.

--

___
Python tracker 
<https://bugs.python.org/issue45897>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45897] Frozen dataclasses with slots raise TypeError

2021-11-24 Thread Eric V. Smith


Change by Eric V. Smith :


--
versions: +Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45897>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45897] Frozen dataclasses with slots raise TypeError

2021-11-24 Thread Eric V. Smith


Change by Eric V. Smith :


--
assignee:  -> eric.smith

___
Python tracker 
<https://bugs.python.org/issue45897>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45892] Improve REPL with the underscore separators for int/float

2021-11-24 Thread Eric V. Smith


Eric V. Smith  added the comment:

And you can probably use sitecustomize.py to import this.

Since I don't see any action item here, I'm going to close this issue.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45892>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-24 Thread Eric V. Smith


Change by Eric V. Smith :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 3.11 -Python 3.8

___
Python tracker 
<https://bugs.python.org/issue45693>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-24 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks for the PR, @jcristharif.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45693>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-24 Thread Eric V. Smith


Eric V. Smith  added the comment:


New changeset 151c9bf649a049f52df388a8f2390988949abf59 by Miss Islington (bot) 
in branch '3.9':
bpo-45693: Document `port` parameter to `loop.create_server` (GH-29760) 
(GH-29763)
https://github.com/python/cpython/commit/151c9bf649a049f52df388a8f2390988949abf59


--

___
Python tracker 
<https://bugs.python.org/issue45693>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-24 Thread Eric V. Smith


Eric V. Smith  added the comment:


New changeset 8cabcde8d66bfd8abc98b862c93c66946f8514a1 by Miss Islington (bot) 
in branch '3.10':
bpo-45693: Document `port` parameter to `loop.create_server` (GH-29760) 
(GH-29762)
https://github.com/python/cpython/commit/8cabcde8d66bfd8abc98b862c93c66946f8514a1


--

___
Python tracker 
<https://bugs.python.org/issue45693>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45892] Improve REPL with the underscore separators for int/float

2021-11-24 Thread Eric V. Smith


Eric V. Smith  added the comment:

Oops, the float example should be:

>>> 123123.9
123_123.9

--

___
Python tracker 
<https://bugs.python.org/issue45892>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45892] Improve REPL with the underscore separators for int/float

2021-11-24 Thread Eric V. Smith


Eric V. Smith  added the comment:

We can't change the repr of int/float.

However, you can use sys.displayhook to achieve what you want:

import sys

def displayhook(o):
if o is None:
return
__builtins__._ = None
if isinstance(o, (int, float)):
print(format(o, '_'))
else:
print(repr(o))
__builtins__._ = o

sys.displayhook = displayhook

Then:

>>> 12312312
12_312_312
>>> 123123e123
1.23123e+128
>>> None
>>> 'test'
'test'

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45892>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45879] Access violation

2021-11-23 Thread Eric V. Smith


Eric V. Smith  added the comment:

Please provide the code you used to trigger this error, so that we can 
reproduce it.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45879>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-22 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks for the bug report!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue44649>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-22 Thread Eric V. Smith


Eric V. Smith  added the comment:


New changeset d3062f672c92855b7e9e962ad4bf1a67abd4589b by Eric V. Smith in 
branch 'main':
bpo-44649: Fix dataclasses(slots=True) with a field with a default, but 
init=False (GH-29692)
https://github.com/python/cpython/commit/d3062f672c92855b7e9e962ad4bf1a67abd4589b


--

___
Python tracker 
<https://bugs.python.org/issue44649>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45865] Old syntax in unittest

2021-11-22 Thread Eric V. Smith


Eric V. Smith  added the comment:

As a general rule, we don't accept large patches with changes like this. The 
chance for breakage somewhere in the 27 files is too high.

I could see maybe dropping inheriting from object, since that's relatively safe.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45865>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-21 Thread Eric V. Smith


Change by Eric V. Smith :


--
versions: +Python 3.11

___
Python tracker 
<https://bugs.python.org/issue44649>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44649] dataclasses slots with init=False field raises AttributeException

2021-11-21 Thread Eric V. Smith


Change by Eric V. Smith :


--
keywords: +patch
pull_requests: +27930
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29692

___
Python tracker 
<https://bugs.python.org/issue44649>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45857] PEP 604 Union syntax does not support forward references

2021-11-21 Thread Eric V. Smith


Eric V. Smith  added the comment:

Presumably the correct way to do this is:

def __init__(self, tmp: "Foo|int"):

That is, the entire type hint is a string.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45857>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45803] make_dataclass is missing the documented kw_only argument

2021-11-20 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks for the bug report!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45803>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45803] make_dataclass is missing the documented kw_only argument

2021-11-20 Thread Eric V. Smith


Change by Eric V. Smith :


--
keywords: +patch
pull_requests: +27920
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29679

___
Python tracker 
<https://bugs.python.org/issue45803>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45803] make_dataclass is missing the documented kw_only argument

2021-11-20 Thread Eric V. Smith


Change by Eric V. Smith :


--
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue45803>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45839] python3 executable is able to install pandas

2021-11-18 Thread Eric V. Smith

Eric V. Smith  added the comment:

Please provide information about the system you’re running on. Also, tell us 
how Python was installed. 

I assume the title should be “… is unable to install …”.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45839>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45832] Misleading membersip expression documentation

2021-11-17 Thread Eric V. Smith

Eric V. Smith  added the comment:

I don’t think repeating the hash invariant in multiple places adds anything, I 
think it would just add clutter. I also think the existing docs are easier to 
understand than the version with the hashing containers split out.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45832>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45824] CSV module document does not include how to append files

2021-11-17 Thread Eric V. Smith


Eric V. Smith  added the comment:

I agree with Raymond.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45824>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45650] cgitb does not emit CGI headers when format='text'

2021-11-14 Thread Eric V. Smith


Change by Eric V. Smith :


--
status: open -> pending

___
Python tracker 
<https://bugs.python.org/issue45650>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45650] cgitb does not emit CGI headers when format='text'

2021-11-14 Thread Eric V. Smith


Eric V. Smith  added the comment:

I would think the use case for 'text' is to not print the output to a web page, 
so you wouldn't want the headers. The documentation says that cgitb was 
generalized to not only produce output for web pages. The 'text' format 
provides this generalization.

Changing to an enhancement request for 3.11. We can't change the 'text' format 
because it would break existing code. so this is really an enhancement request 
for a new format. But I don't see what the use case would be, so I don't think 
it would be accepted.

What's the case where you need this functionality? How is the 'html' format 
unacceptable?

--
nosy: +eric.smith
type: behavior -> enhancement
versions:  -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue45650>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45799] Fix confusing wording in Doc/library/__main__.rst

2021-11-13 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks for your contribution!

--
nosy: +eric.smith
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45799>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45803] make_dataclass is missing the documented kw_only argument

2021-11-13 Thread Eric V. Smith


Change by Eric V. Smith :


--
assignee:  -> eric.smith
components: +Library (Lib) -ctypes
nosy: +eric.smith
versions: +Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45803>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45777] Issue in reading files with a path longer than 256 letters after latest update

2021-11-10 Thread Eric V. Smith


Change by Eric V. Smith :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 
<https://bugs.python.org/issue45777>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45741] entry points singular?

2021-11-07 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks for your contribution!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45741>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45741] entry points singular?

2021-11-07 Thread Eric V. Smith


Eric V. Smith  added the comment:


New changeset 77afb76942ea7067d74d9c07fb4da6f5f23ad2f5 by Miss Islington (bot) 
in branch '3.10':
bpo-45741: docs: fix plural (GH-29461) (GH-29463)
https://github.com/python/cpython/commit/77afb76942ea7067d74d9c07fb4da6f5f23ad2f5


--

___
Python tracker 
<https://bugs.python.org/issue45741>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45746] ftplib please revisit retrlines('RETR as it produces files without newlines

2021-11-07 Thread Eric V. Smith


Eric V. Smith  added the comment:

Please tell us:

- What the file contains, and what you're expecting it to contain.
- What system are you running on?

crap2.txt (the source file) is a single line, so I'm not sure what you're 
expecting to happen.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45746>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-07 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think your option 2 makes the most sense.

--

___
Python tracker 
<https://bugs.python.org/issue45708>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45741] entry points singular?

2021-11-07 Thread Eric V. Smith

Eric V. Smith  added the comment:

I think “provide” would be better.

--
keywords: +easy
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45741>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45739] The Python implementation of Decimal does not support the "N" format

2021-11-07 Thread Eric V. Smith

Eric V. Smith  added the comment:

I don’t think “N” should be supported. It was never the intention to have it 
work.

--

___
Python tracker 
<https://bugs.python.org/issue45739>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45736] 2to3 does not support integer division fixing

2021-11-06 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think knowing that that's integer division is beyond what 2to3 can 
accomplish. Plus, with lib2to3 being deprecated, I don't think anyone's going 
to put any effort into this.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45736>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45730] ERROR: PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl is not a supported wheel on this platform

2021-11-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

This is really a question for pip, which is a third party product (despite a 
version of it shipping with core python). You can find their issue tracker at 
https://pip.pypa.io/en/stable/

When reporting the bug there, you'll need to provide information about which 
python you're using, how you installed it, and which version of pip you're 
using. And probably also the verbose output from pip.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45730>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45704] string.Formatter.parse does not handle auto-numbered positional fields

2021-11-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

That is, return field_name as an int if it's an int, otherwise as a string.

--

___
Python tracker 
<https://bugs.python.org/issue45704>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45704] string.Formatter.parse does not handle auto-numbered positional fields

2021-11-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think your code is rational. But since string.Formatter gets such little use, 
I'm not sure it's worth adding this to the stdlib. On the other hand, it could 
be used internal to string.Formatter.

We'd need to pick a better name, though. And maybe it should return the 
field_name as an int.

--

___
Python tracker 
<https://bugs.python.org/issue45704>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45724] Segmentation fault

2021-11-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

I assume this is a problem with the third party library, not with Python 
itself. If so, you'll have to contact the authors of OneForAll.

But if you can create a small program that demonstrates the problem, maybe 
someone here could take a look at it. As it is, you've given us no way to 
duplicate the problem, so we can't help.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45724>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45704] string.Formatter.parse does not handle auto-numbered positional fields

2021-11-04 Thread Eric V. Smith


Eric V. Smith  added the comment:

The more I think about this, the more I think it's not .parse's job to fill in 
the field numbers, it's the job of whoever is calling it.

Just as it's not .parse's job to give you an error if you switch back and forth 
between numbered and un-numbered fields.

It's literally just telling you what's in the string as it breaks it apart, not 
assigning any further meaning to the parts. I guess I should have called it 
.lex, not .parse.

--

___
Python tracker 
<https://bugs.python.org/issue45704>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45716] Confusing parsing error message when trying to use True as keyword argument

2021-11-04 Thread Eric V. Smith


Change by Eric V. Smith :


--
components: +Parser
nosy: +lys.nikolaou, pablogsal

___
Python tracker 
<https://bugs.python.org/issue45716>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-04 Thread Eric V. Smith


Eric V. Smith  added the comment:

I agree with Mark.

Also, if we're going to change the C implementation, the Python implementation 
should agree with it.

--

___
Python tracker 
<https://bugs.python.org/issue45708>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45704] string.Formatter.parse does not handle auto-numbered positional fields

2021-11-03 Thread Eric V. Smith


Eric V. Smith  added the comment:

> Side note: It's a somewhat weird that `.get_field` expects a string while 
> `.get_value` expects an int for positional arguments.

.parse is just concerned with parsing, so it works on and returns strings. 
.get_field takes strings because it is the thing that's trying to determine 
whether or not a field name looks like an integer or not. At least that's how I 
remember it.

--

___
Python tracker 
<https://bugs.python.org/issue45704>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45704] string.Formatter.parse does not handle auto-numbered positional fields

2021-11-03 Thread Eric V. Smith


Eric V. Smith  added the comment:

For reference, the documentation is at 
https://docs.python.org/3/library/string.html#custom-string-formatting

I guess in your example it should return:
[('hello ', '0', '', None)]

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45704>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45698] Error on importing getopt

2021-11-03 Thread Eric V. Smith


Eric V. Smith  added the comment:

I'm going to close this, since I don't think it's a bug in python, but rather 
in the user's setup.

--
resolution:  -> works for me
stage:  -> resolved
status: open -> closed
type: crash -> behavior

___
Python tracker 
<https://bugs.python.org/issue45698>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44496] string.Formatter class not allowing {.field}

2021-11-03 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think this is a dupe of issue 27307.

--

___
Python tracker 
<https://bugs.python.org/issue44496>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45698] Error on importing getopt

2021-11-03 Thread Eric V. Smith


Eric V. Smith  added the comment:

I'm guessing the first line of getopt.py got deleted somehow.

@rizqirizqi23: what do the first 10 lines of 
/home/mgsrizqi/.pyenv/versions/3.10.0/lib/python3.10/getopt.py look like?

How did you install python?

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45698>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-02 Thread Eric V. Smith


Eric V. Smith  added the comment:

What do you do if a port is bound for IPv4, but is in use for IPv6?

--

___
Python tracker 
<https://bugs.python.org/issue45693>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45693] `loop.create_server` with port=0 uses different ports for ipv4 & ipv6

2021-11-02 Thread Eric V. Smith


Eric V. Smith  added the comment:

Is there an OS interface to ensure the same port on both stacks? I don't know 
of one (although of course one might exist), in which case I don't know how 
you'd ensure they're both the same.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45693>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45466] Simple curl/wget-like download functionality in urllib (like http offers server)

2021-11-01 Thread Eric V. Smith


Eric V. Smith  added the comment:

The core devs have decided to reject this. Basically for a few reasons:

- the possibility of introducing security vulnerabilities
- the ongoing maintenance burden

--
nosy: +eric.smith
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45466>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-10-27 Thread Eric V. Smith


Eric V. Smith  added the comment:

The link on the doc page also works for me, sending me to 
http://www.lahey.com/float.htm.

I think the problem is with @hanhantw's browser or ISP, or similar. I'm going 
to close this.

--
nosy: +eric.smith
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45620>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45605] Return False from __contains__ method if object not hashable for set and dict

2021-10-25 Thread Eric V. Smith


Eric V. Smith  added the comment:

I don't have any code that would care, but if there's one thing I've learned in 
15 years of python core development, it's that this will break someone's code.

If you want more feedback, you should probably bring this up for discussion on 
the python-ideas mailing list.

--

___
Python tracker 
<https://bugs.python.org/issue45605>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45605] Return False from __contains__ method if object not hashable for set and dict

2021-10-25 Thread Eric V. Smith


Eric V. Smith  added the comment:

That seems like a pretty big change that could break a lot of existing code. I 
suggest writing a wrapper around "in" if you want this behavior.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45605>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45566] dataclasses’s `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-24 Thread Eric V. Smith


Change by Eric V. Smith :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45566>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45566] dataclasses’s `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-22 Thread Eric V. Smith

Change by Eric V. Smith :


--
title: dataclasses `test_frozen_pickle` does not use all possible `pickle` 
protocols -> dataclasses’s `test_frozen_pickle` does not use all possible 
`pickle` protocols

___
Python tracker 
<https://bugs.python.org/issue45566>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45566] dataclasses `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-22 Thread Eric V. Smith


Change by Eric V. Smith :


--
title: `test_frozen_pickle` does not use all possible `pickle` protocols -> 
dataclasses `test_frozen_pickle` does not use all possible `pickle` protocols

___
Python tracker 
<https://bugs.python.org/issue45566>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45531] field "mro" behaves strangely in dataclass

2021-10-22 Thread Eric V. Smith


Eric V. Smith  added the comment:

The problem is that dataclasses is looking for a default value for a field by 
looking at getattr(cls, fieldname), which returns a value when fieldname is 
"mro".

I think the best thing to do, at least for now, is prohibit a field named "mro".

Ultimately I'd like to see cls.mro go away (maybe being replaced by a builtin), 
but I realize that's not likely to happen.

--

___
Python tracker 
<https://bugs.python.org/issue45531>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45559] pprint tests do not test pprint.pprint()

2021-10-21 Thread Eric V. Smith


Change by Eric V. Smith :


--
title: pprint module does not test pprint.pprint() -> pprint tests do not test 
pprint.pprint()

___
Python tracker 
<https://bugs.python.org/issue45559>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45557] pprint -> underscore_numbers argument not working

2021-10-21 Thread Eric V. Smith


Change by Eric V. Smith :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45557>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45557] pprint -> underscore_numbers argument not working

2021-10-21 Thread Eric V. Smith


Eric V. Smith  added the comment:


New changeset 087f089e5e04d5b132ffbff0576667d591f13219 by Eric V. Smith in 
branch 'main':
bpo-45557: Fix underscore_numbers in pprint.pprint(). (GH-29129)
https://github.com/python/cpython/commit/087f089e5e04d5b132ffbff0576667d591f13219


--

___
Python tracker 
<https://bugs.python.org/issue45557>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45559] pprint module does not test pprint.pprint()

2021-10-21 Thread Eric V. Smith


New submission from Eric V. Smith :

For example, see issue 45557, where pprint.pformat(underscore_numbers=True) 
worked, but pprint.pprint(underscore_numbers=True) did not.

Testing of pprint.pprint() should be added.

--
components: Library (Lib)
messages: 404647
nosy: eric.smith
priority: normal
severity: normal
status: open
title: pprint module does not test pprint.pprint()
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue45559>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45557] pprint -> underscore_numbers argument not working

2021-10-21 Thread Eric V. Smith


Change by Eric V. Smith :


--
keywords: +patch
pull_requests: +27405
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29129

___
Python tracker 
<https://bugs.python.org/issue45557>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45557] pprint -> underscore_numbers argument not working

2021-10-21 Thread Eric V. Smith


Eric V. Smith  added the comment:

It's a bug in pprint.py. PR to follow shortly.

--

___
Python tracker 
<https://bugs.python.org/issue45557>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45557] pprint -> underscore_numbers argument not working

2021-10-21 Thread Eric V. Smith


Eric V. Smith  added the comment:

Please do not post screen shots. They don't work for people with vision 
impairments, and we can't copy and past from them, so it makes it harder for us 
to help you.

It looks like it works with pformat, and not pprint:

>>> pprint.pformat(1, underscore_numbers=True)
'10_000'
>>> pprint.pprint(1, underscore_numbers=True)
1

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45557>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45549] Seek in file object didn't treat all paths of exceptions

2021-10-21 Thread Eric V. Smith


Eric V. Smith  added the comment:

That's behavior we can't change without breaking code.

And it's documented as working this way, at least on Linux: 
https://linux.die.net/man/2/lseek

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45549>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45546] Unable to pickle enum with nested frozen dataclass?

2021-10-20 Thread Eric V. Smith


Change by Eric V. Smith :


--
nosy: +ethan.furman

___
Python tracker 
<https://bugs.python.org/issue45546>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45546] Unable to pickle enum with nested frozen dataclass?

2021-10-20 Thread Eric V. Smith


Eric V. Smith  added the comment:

I get an error with 3.8.10, but not on the main branch (3.11). I don't have 
other versions handy to test.

Removing 3.6, as it's no longer getting bug fixes, and this doesn't look like a 
security issue.

--
nosy: +eric.smith
versions:  -Python 3.6

___
Python tracker 
<https://bugs.python.org/issue45546>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45531] field "mro" behaves strangely in dataclass

2021-10-20 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think the only other thing that could be done is to have a special test for 
"default is type.mro", and if so, don't assume it's a default value. Which 
means that you could never actually use:

@dataclass
class A:
   mro: object = type.mro

But it's probably best to just disallow a field named "mro". Which is 
unfortunate, but such is life. It's a shame mro isn't a builtin, so we could do 
mro(A) instead of A.mro().

--

___
Python tracker 
<https://bugs.python.org/issue45531>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45531] field "mro" behaves strangely in dataclass

2021-10-19 Thread Eric V. Smith


Eric V. Smith  added the comment:

I agree on your analysis. You'll get the same error on any name that type 
defines (like __class__), but "mro" looks like the only one without dunders.

I'm not sure the best way to fix this. I'll give it some thought.

Another problem is that assigning a default value breaks the .mro() call:

@dataclass
class A:
mro: object = 3

>>> A.mro()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'int' object is not callable

--

___
Python tracker 
<https://bugs.python.org/issue45531>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45531] field "mro" behaves strangely in dataclass

2021-10-19 Thread Eric V. Smith


Change by Eric V. Smith :


--
assignee:  -> eric.smith
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45531>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45497] Argparse: Refactor '%' interpolation to f-strings

2021-10-16 Thread Eric V. Smith

Eric V. Smith  added the comment:

As a rule, we don’t accept such wholesale changes. If there’s a performance 
problem, or a bug, then we’d look at individual cases.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45497>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-16 Thread Eric V. Smith


Change by Eric V. Smith :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45485>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

It sounds like you're using python 2.7, which is unsupported.

You've not even shown us what line produces the error you're seeing. I don't 
see "type(a[0])" anywhere in the code you posted.

Lacking a way to reproduce this on our own with python 3.x, I'm going to have 
to close this issue.

--

___
Python tracker 
<https://bugs.python.org/issue45485>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

If you want us to check if there's a bug in Python here, please reduce this to 
5 or 10 lines, with no external dependencies. As it is, we cannot run this code.

You also need to show how you run the program, what version of Python you're 
using, and what system you're running this on.

--

___
Python tracker 
<https://bugs.python.org/issue45485>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

Thanks for the correction, Ned!

--

___
Python tracker 
<https://bugs.python.org/issue45480>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

Please provide a code snippet we can run that demonstrates the problem.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45485>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45481] gc is disabled without explict calling gc.disable()

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

Sorry, but since this is a 2.7 issue, I'm going to close it here. I know this 
isn't the answer you wanted, but this is really the wrong venue.

I suggest you ask on StackOverflow or the python-list mailing list 
(https://mail.python.org/mailman/listinfo/python-list).

Good luck!

--
nosy: +eric.smith
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45481>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Eric V. Smith


Eric V. Smith  added the comment:

I think https://github.com/python/pythondotorg/issues is the correct place to 
report issues with the web site.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45480>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45468] Add support for preloading a Python script

2021-10-14 Thread Eric V. Smith


Eric V. Smith  added the comment:

Can you accomplish what you want with .pth files?

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45468>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45446] Add a way to hide fields in dataclasses

2021-10-13 Thread Eric V. Smith


Eric V. Smith  added the comment:

"hide" is not a good name for this.

Does attrs have anything equivalent? This seems like a pretty niche usage, so 
I'm not inclined to include it without evidence of a wide-spread need for it.

--
assignee:  -> eric.smith

___
Python tracker 
<https://bugs.python.org/issue45446>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45448] PIP package installation failure for multiple packages

2021-10-12 Thread Eric V. Smith


Eric V. Smith  added the comment:

You should report these problems to the numpy and tensorflow projects. I'm 
assuming they don't support 3.10 yet.

--
nosy: +eric.smith
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45448>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Eric V. Smith


New submission from Eric V. Smith :

Please explain what "hiding" does.

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45446>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45427] importlib.readers.MultiplexedPath

2021-10-11 Thread Eric V. Smith


Eric V. Smith  added the comment:

Can you provide a short code snippet that we can run that demonstrates the 
problem?

Looking at the code, and not knowing much about it, maybe iterating over the 
paths with .iterdir() is what you want?

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45427>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-11 Thread Eric V. Smith


Change by Eric V. Smith :


--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45426>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-11 Thread Eric V. Smith


Eric V. Smith  added the comment:

Please report this on the pandas bug tracker: 
https://github.com/pandas-dev/pandas/issues

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45426>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-09 Thread Eric V. Smith


Eric V. Smith  added the comment:

I was waiting for someone smarter than me to chime in on one of the discussions.

I wouldn't worry about whether it's a bug or feature, at this point. Assuming 
buy-in from type checkers, I'd probably call it a bug, but I can be reasoned 
with.

One thing I don't understand is what you mean by:

"""
There is at least one edge case that would need to be handled where someone 
might want to explicitly mark a dataclass field Final, which could be allowed 
as a field:
a: Final[int] = dataclasses.field(init=False, default=10)
"""

I assume we'd want to treat it like a ClassVar, whatever that does. What's your 
thought? Are you saying ClassVar works incorrectly in this instance.

--

___
Python tracker 
<https://bugs.python.org/issue45384>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45351] List all sockets in TCP echo server using streams

2021-10-07 Thread Eric V. Smith


Eric V. Smith  added the comment:

I'm not clear why you're suggesting this change. Is this additional 
functionality, or is the current example broken? Is the text wrong, or just the 
code?

--
nosy: +eric.smith

___
Python tracker 
<https://bugs.python.org/issue45351>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45377] Default python 3 docs still pointing to 3.9.7

2021-10-05 Thread Eric V. Smith


Eric V. Smith  added the comment:

You should report this at https://github.com/python/pythondotorg/issues

--
nosy: +eric.smith
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue45377>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   6   7   8   9   10   >