Ethan Furman added the comment:
Ah. Well, in that case closing seems like the best idea.
Thank you, Jonathan, for getting the CLA signed and providing perspective.
Thank you, Mike, for moving this issue forward.
--
resolution: -> rejected
stage: patch review -> resolved
Ethan Furman added the comment:
Glen, which version of Python is your fork using?
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue10
Ethan Furman added the comment:
I would like to have the issue fixed instead of just closed.
Jonathan, you say there is no practical method to verify that the block
transmission mode exists -- so it's only useful if the user knows that it
exists? If the user tries it and the server
Ethan Furman added the comment:
If you're familiar with git and GitHub, can you create a PR? Otherwise, an
updated patch here and we'll work on getting it merged.
--
___
Python tracker
<https://bugs.python.
Change by Ethan Furman :
--
assignee: ethan.furman
nosy: ethan.furman
priority: normal
severity: normal
status: open
title: Enum: improve generics support
type: enhancement
versions: Python 3.11
___
Python tracker
<https://bugs.python.
Ethan Furman added the comment:
Enums have had a custom dir() from the beginning, partly because they are not
standard objects and do not follow standard rules.
The question posed by this issue is whether Enums with mixed-in data types
should show the inherited methods, and if yes, should
Change by Ethan Furman :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue45649>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ethan Furman added the comment:
We don't have a CLA from jbell. I've sent an email asking him to do so...
we'll see what happens.
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.py
Change by Ethan Furman :
--
assignee: -> ethan.furman
versions: -Python 3.9
___
Python tracker
<https://bugs.python.org/issue45535>
___
___
Python-bugs-lis
Ethan Furman added the comment:
Looks interesting, thank you for the patch.
--
___
Python tracker
<https://bugs.python.org/issue45535>
___
___
Python-bugs-list m
Change by Ethan Furman :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Ethan Furman added the comment:
New changeset e628700dbf2c3376502cbb5a9bff2d58d1102e16 by Ethan Furman in
branch '3.9':
[3.9] bpo-44174: [Enum] add name-mangling reference (GH-29128)
https://github.com/python/cpython/commit/e628700dbf2c3376502cbb5a9bff2d
Change by Ethan Furman :
--
pull_requests: +27404
pull_request: https://github.com/python/cpython/pull/29128
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
New changeset 828722aca4ccba893f6b2e8c1d41fd74fd6e208d by Ethan Furman in
branch '3.10':
[3.10] bpo-44174: [Enum] add reference to name mangling (GH-29117)
https://github.com/python/cpython/commit/828722aca4ccba893f6b2e8c1d41fd
Change by Ethan Furman :
--
pull_requests: +27393
pull_request: https://github.com/python/cpython/pull/29117
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
New changeset 7c4d96103c4e16161e9aed9a584c9857d0674099 by Ethan Furman in
branch 'main':
bpo-44174: [Enum] add reference to name mangling (GH-29116)
https://github.com/python/cpython/commit/7c4d96103c4e16161e9aed9a584c98
Change by Ethan Furman :
--
keywords: +patch
pull_requests: +27392
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/29116
___
Python tracker
<https://bugs.python.org/issu
Ethan Furman added the comment:
New changeset 2a9ab75af32b1ee9f210ae2a0718990687d0f79d by Ethan Furman in
branch '3.10':
bpo-44559: [Enum] restore fixes lost in 3.9 reversion (GH-29114)
https://github.com/python/cpython/commit/2a9ab75af32b1ee9f210ae2a071899
Ethan Furman added the comment:
I'm confused -- your initial report talks about pickling fields, but your tests
are pickling the entire class... what am I missing?
--
___
Python tracker
<https://bugs.python.org/is
Change by Ethan Furman :
--
pull_requests: +27385
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29114
___
Python tracker
<https://bugs.python.org/issu
Ethan Furman added the comment:
New changeset 9733c9651afad84ab2f010e9e68b7c03976ea9f3 by Ethan Furman in
branch '3.9':
[3.9] bpo-42517: [ENUM] update docs for changes coming in 3.11 (GH-29113)
https://github.com/python/cpython/commit/9733c9651afad84ab2f010e9e68b7c
Change by Ethan Furman :
--
pull_requests: +27380
pull_request: https://github.com/python/cpython/pull/29113
___
Python tracker
<https://bugs.python.org/issue42
Ethan Furman added the comment:
It has been moved to the tutorial (links are at the top of the Enum page).
--
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
Enum was reverted at the last minute for 3.10. I would like to keep the
changes in 3.11 so they get more exposure.
I have asked the SC a few times for thoughts about PEP 663, including whether
an information PEP needs formal approval, but still haven't
Change by Ethan Furman :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue45517>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Ethan Furman :
--
assignee: -> ethan.furman
stage: patch review -> backport needed
versions: -Python 3.9
___
Python tracker
<https://bugs.python.org/i
Ethan Furman added the comment:
> Are there any other names that you would contemplate besides `from_name` and
> `from_value`?
No.
> My reading of your response indicates that you are fundamentally opposed to
> the addition of class methods, since they would limit the space
Ethan Furman added the comment:
The problem with adding methods is that those names are then unavailable for
member names -- at least not without possible confusion.
Also, unlike the `name` and `value` instance attributes which do not hide class
attributes (aka members) of the same name
Ethan Furman added the comment:
New changeset b2af211e229df941d9b404f69547a264115156b5 by Carl Friedrich
Bolz-Tereick in branch 'main':
bpo-45417: [Enum] fix quadratic behavior during creation (GH-28907)
https://github.com/python/cpython/commit/b2af211e229df941d9b404f69547a2
Change by Ethan Furman :
--
assignee: -> ethan.furman
nosy: +ethan.furman
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue45473>
___
_
Ethan Furman added the comment:
Going back through the various bug fixes that got cut from 3.10 to re-add to
3.10.1.
--
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
Going back through the various bug fixes that got cut from 3.10 to re-add to
3.10.1.
--
___
Python tracker
<https://bugs.python.org/issue42
Ethan Furman added the comment:
The reason for that quadratic behavior is that for each new member (aka
attribute), all the previous members must be checked to see if the new member
is a duplicate.
In practice I wouldn't expect this to be a problem as most enums should be
fairly
Change by Ethan Furman :
--
assignee: -> ethan.furman
nosy: +ethan.furman
versions: +Python 3.11 -Python 3.9
___
Python tracker
<https://bugs.python.org/issu
Change by Ethan Furman :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue45185>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Ethan Furman :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue45155>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Ethan Furman :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue45133>
___
___
Python-bugs-list
Change by Ethan Furman :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue40563>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ethan Furman added the comment:
The problem with using `str()` on a path argument is that the argument may not
be a str, nor a pathlib object, but `str()` will still create a string out of
it, leading to difficult bugs.
The documentation for pathlib also predates the addition of `os.fspath
Change by Ethan Furman :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue32562>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Ethan Furman :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue40506>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ethan Furman added the comment:
David, I added a PR for the Enum handling/creation in the ics library. Syncing
values with external libraries is definitely *not* what `auto` is intended for.
As for why enum members evaluate as True: most objects in Python evaluate to
True, unless they
New submission from Ethan Furman :
In issue44993 it was suggested to add a cEnum whose main purpose would be to
start counting at 0 instead of 1.
Issues to consider:
- should such an enum subclass `int`, or a C type?
- should there be an enum for each C type?
- will mixing Enum and c_types
Ethan Furman added the comment:
Putting an enum in the ctypes module is a decent idea.
--
___
Python tracker
<https://bugs.python.org/issue44993>
___
___
Pytho
Ethan Furman added the comment:
New changeset 24da544014f78e6f1440d5ce5c2d14794a020340 by Pablo Galindo Salgado
in branch 'main':
bpo-44929: [Enum] Fix global repr (GH-27789)
https://github.com/python/cpython/commit/24da544014f78e6f1440d5ce5c2d14
Ethan Furman added the comment:
David, what is the actual use-case that tripped you up? There are a few ways
to create Enums from other systems (json files, cpp files, etc.).
--
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
My apologies for my apologies -- for some reason I thought this was first
posted in August of 2020.
--
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
Firstly (or Zeroithly ;) my apologies for not noticing this earlier.
In the functional API section:
--
The reason for defaulting to 1 as the starting number and not 0 is that 0 is
False in a boolean sense, but enum members all
Ethan Furman added the comment:
`_name_` is only None if the entire enum value is outside any named member and
`_boundary_` is `KEEP` -- so
class Example(Flag, boundary=KEEP):
first = auto()
second = auto()
third = auto()
>>> Example(0)
module.
Change by Ethan Furman :
--
nosy: +ethan.furman
versions: +Python 3.11 -Python 3.7
___
Python tracker
<https://bugs.python.org/issue44899>
___
___
Python-bug
Ethan Furman added the comment:
New changeset 2f54fbafa6481fb10528cb1d3d6b517ca2a4647f by Steffen Zeile in
branch 'main':
bpo-44559: [Enum] correct `versionadded` to 3.11 for new features (GH-27388)
https://github.com/python/cpython/commit/2f54fbafa6481fb10528cb1d3d6b51
Change by Ethan Furman :
--
pull_requests: +25647
pull_request: https://github.com/python/cpython/pull/27099
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
Andrei, which code did you try? I'm still seeing the failure (i.e. the class
being created) in 3.8 and forward.
--
versions: +Python 3.11, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.py
Change by Ethan Furman :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Ethan Furman added the comment:
New changeset 9bf7c2d638a582af2444bc864feba13ab8957b68 by Ethan Furman in
branch '3.10':
[3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010)
https://github.com/python/cpython/commit/9bf7c2d638a582af2444bc864feba1
Change by Ethan Furman :
--
keywords: +patch
pull_requests: +25570
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27010
___
Python tracker
<https://bugs.python.org/issu
New submission from Ethan Furman :
>From the SC (was Re: Enum -- last call for comments on 3.10 changes)
> The Steering Council discussed this topic at our meeting yesterday. We have
> some
> discomfort about th
Change by Ethan Furman :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
type: -> behavior
___
Python tracker
<https://bugs.python
Ethan Furman added the comment:
Here is the test, reduced and in a single script:
--- 8<
import multiprocessing.managers, os, sys, time
if __name__ == '__main__':
address = ("127.0.0.1", 54321)
Change by Ethan Furman :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue29158>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ethan Furman :
Finish the work started in issue43945 -- in 3.12 `format()` now uses the enum
member itself instead of its `value`; e.g.:
>>> class Color(int, Enum):
... RED = 1
>>> f"{Color.RED}"
'RED
Change by Ethan Furman :
--
status: open -> pending
___
Python tracker
<https://bugs.python.org/issue44457>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Ethan Furman :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Ethan Furman added the comment:
New changeset 1b4addf3cbd0ef424939681ee67c802328d567ba by Ethan Furman in
branch '3.10':
[3.10] bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752)
https://github.com/python/cpython/commit/1b4addf3cbd0ef424939681ee67c80
Ethan Furman added the comment:
Michael Boon wrote:
---
> The [above] issue is pretty serious and it is preventing me from using a
> system I wrote on a larger scale.
That statement suggests you were able to get this working on a small scale --
is that correct? What do
Change by Ethan Furman :
--
pull_requests: +25375
pull_request: https://github.com/python/cpython/pull/26791
___
Python tracker
<https://bugs.python.org/issue43
Ethan Furman added the comment:
New changeset f60b07ab6c943fce084772c3c7731ab3bbd213ff by Ethan Furman in
branch 'main':
bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752)
https://github.com/python/cpython/commit/f60b07ab6c943fce084772c3c7731a
Change by Ethan Furman :
--
pull_requests: +25337
pull_request: https://github.com/python/cpython/pull/26752
___
Python tracker
<https://bugs.python.org/issue43
Ethan Furman added the comment:
Thinking about this some more I am partially reversing course. The idea behind
`IntEnum` and `IntFlag` is to be, as close as possible, drop-in replacements
for existing integer-based constants. If the format() of those two change then
they become much less
Ethan Furman added the comment:
New changeset 41c2a4a727d3d559632598759433e0ec1bf594f5 by Ethan Furman in
branch '3.10':
[3.10] bpo-44342: [Enum] improve test, add andrei kulakov to ACKS (GH-26726)
https://github.com/python/cpython/commit/41c2a4a727d3d559632598759433e0
Ethan Furman added the comment:
New changeset 741b8ae1cfc507902eb57e20f003487af13e40c0 by Ethan Furman in
branch 'main':
bpo-44342: [Enum] sync current docs to 3.10 (GH-26750)
https://github.com/python/cpython/commit/741b8ae1cfc507902eb57e20f00348
Change by Ethan Furman :
--
pull_requests: +25335
pull_request: https://github.com/python/cpython/pull/26750
___
Python tracker
<https://bugs.python.org/issue44
Change by Ethan Furman :
--
pull_requests: +25332
pull_request: https://github.com/python/cpython/pull/26747
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
New changeset 0f99324f61d5a2edd8729be5eed6f172c892af24 by Miss Islington (bot)
in branch '3.10':
bpo-44342: [Enum] fix data type search (GH-26667)
https://github.com/python/cpython/commit/0f99324f61d5a2edd8729be5eed6f1
Change by Ethan Furman :
--
pull_requests: +25316
pull_request: https://github.com/python/cpython/pull/26726
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
Yup, just had to get back from the weekend. :-)
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Ethan Furman added the comment:
New changeset 0a186b1ec1fd094d825f08a4eb39fa83ef57067a by Miss Islington (bot)
in branch '3.10':
bpo-44242: [Enum] improve error messages (GH-26669)
https://github.com/python/cpython/commit/0a186b1ec1fd094d825f08a4eb39fa
Ethan Furman added the comment:
New changeset c956734d7af83ad31f847d31d0d26df087add9a4 by Ethan Furman in
branch 'main':
bpo-44242: [Enum] improve error messages (GH-26669)
https://github.com/python/cpython/commit/c956734d7af83ad31f847d31d0d26d
Change by Ethan Furman :
--
pull_requests: +25256
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26669
___
Python tracker
<https://bugs.python.org/issu
Ethan Furman added the comment:
Also changing error reporting to be less susceptible to DOS attacks.
--
resolution: fixed ->
stage: resolved ->
status: closed -> open
___
Python tracker
<https://bugs.python.or
Ethan Furman added the comment:
Also fixing the search for the data type so that in
A -> B -> C
the data type is C and not B.
--
___
Python tracker
<https://bugs.python.org/i
Ethan Furman added the comment:
New changeset 3a7cccfd6cd3693e1a2ab65ee05d7f45f8501dfa by Ethan Furman in
branch 'main':
bpo-44342: [Enum] fix data type search (GH-26667)
https://github.com/python/cpython/commit/3a7cccfd6cd3693e1a2ab65ee05d7f
Ethan Furman added the comment:
Glad you like it!
Please don't change the title back. :-)
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
title: Abstract enum mixins not allowed -> Multiple enum mixins not allowed
even when t
Change by Ethan Furman :
--
pull_requests: +25254
pull_request: https://github.com/python/cpython/pull/26667
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
Changing `__reduce_ex__` is too big a change for 3.9, so making the search for
pickle support more robust there.
--
___
Python tracker
<https://bugs.python.org/issue44
Change by Ethan Furman :
--
pull_requests: +25253
pull_request: https://github.com/python/cpython/pull/2
___
Python tracker
<https://bugs.python.org/issue44
Ethan Furman added the comment:
New changeset b613132861839b6d05b67138842b579e1af29f9c by Miss Islington (bot)
in branch '3.10':
bpo-44342: [Enum] changed pickling from by-value to by-name (GH-26658)
(GH-26660)
https://github.com/python/cpyt
Ethan Furman added the comment:
New changeset 62f1d2b3d7dda99598d053e10b785c463fdcf591 by Ethan Furman in
branch 'main':
bpo-44342: [Enum] changed pickling from by-value to by-name (GH-26658)
https://github.com/python/cpython/commit/62f1d2b3d7dda99598d053e10b785c
Change by Ethan Furman :
--
keywords: +patch
pull_requests: +25244
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26658
___
Python tracker
<https://bugs.python.org/issu
Ethan Furman added the comment:
New changeset 304ec53b53021ceddf62a38e66a06aed37e2ac41 by Miss Islington (bot)
in branch '3.9':
bpo-44356: [Enum] allow multiple data-type mixins if they are all the same
(GH-26649) (GH-26652)
https://github.com/python/cpyt
Ethan Furman added the comment:
New changeset 01286017c3345e2b8a0af2bd48f6eb2087693a82 by Miss Islington (bot)
in branch '3.10':
bpo-44356: [Enum] allow multiple data-type mixins if they are all the same
(GH-26649) (GH-26653)
https://github.com/python/cpyt
Ethan Furman added the comment:
Looking into this I think the root of the problem is the way `reduce` is
handled -- currently, Enum's `__reduce_ex__` works by returning the class, and
the value to use to lookup the member. Because that lookup can fail with
complex enums, EnumType
Ethan Furman added the comment:
Thank you everyone for your help.
--
priority: release blocker ->
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11
___
Python tracker
<https://
Ethan Furman added the comment:
New changeset 8a4f0850d75747af8c96ca0e7eef1f5c1abfba25 by Ethan Furman in
branch 'main':
bpo-44356: [Enum] allow multiple data-type mixins if they are all the same
(GH-26649)
https://github.com/python/cpython/commit/8a4f0850d75747af8c96ca0e7eef1f
Change by Ethan Furman :
--
priority: normal -> high
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue44342>
___
___
Python-bugs-lis
Change by Ethan Furman :
--
title: Abstract enum mixins not allowed -> Multiple enum mixins not allowed
even when they have the same datatype
___
Python tracker
<https://bugs.python.org/issu
Change by Ethan Furman :
--
keywords: +patch
pull_requests: +25235
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26649
___
Python tracker
<https://bugs.python.org/issu
Ethan Furman added the comment:
Since I like puzzles, here is a working LenientStrEnum:
class LenientStrEnum(str, Enum):
#
def __init__(self, *args):
self._valid = True
#
@classmethod
def _missing_(cls, value):
logger.warning
Ethan Furman added the comment:
New changeset 749648609de89f14581190ea34b9c0968787a701 by Ethan Furman in
branch '3.10':
[3.10] bpo-44242: [Enum] remove missing bits test from Flag creation (GH-26586)
(GH-26635)
https://github.com/python/cpyt
Change by Ethan Furman :
--
pull_requests: +25221
pull_request: https://github.com/python/cpython/pull/26635
___
Python tracker
<https://bugs.python.org/issue44
101 - 200 of 1868 matches
Mail list logo