Change by Ethan Furman :
--
pull_requests: +23861
pull_request: https://github.com/python/cpython/pull/25116
___
Python tracker
<https://bugs.python.org/issue40
Change by Ethan Furman :
--
pull_requests: +23862
pull_request: https://github.com/python/cpython/pull/25118
___
Python tracker
<https://bugs.python.org/issue40
Ethan Furman added the comment:
New changeset b775106d940e3d77c8af7967545bb9a5b7b162df by Ethan Furman in
branch 'master':
bpo-40066: Enum: modify `repr()` and `str()` (GH-22392)
https://github.com/python/cpython/commit/b775106d940e3d77c8af7967545bb9a5b7b162df
Change by Ethan Furman :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Ethan Furman added the comment:
You're welcome. Thank you for pushing the issue! :-)
--
___
Python tracker
<https://bugs.python.org/issue43162>
___
___
Pytho
Ethan Furman added the comment:
DeprecationWarning will be active in 3.10 and 3.11 with removal in 3.12.
--
___
Python tracker
<https://bugs.python.org/issue43
Ethan Furman added the comment:
New changeset 44e580f448016b86807465a186d03d9074e2b589 by Ethan Furman in
branch 'master':
bpo-43162: [Enum] update docs, renable doc tests (GH-24487)
https://github.com/python/cpython/commit/44e580f448016b86807465a186d03d9074e2b589
Change by Ethan Furman :
--
assignee: -> ethan.furman
___
Python tracker
<https://bugs.python.org/issue43430>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Ethan Furman :
--
assignee: -> ethan.furman
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue43098>
___
___
Python-bugs-list mai
Change by Ethan Furman :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Ethan Furman :
--
keywords: +patch
pull_requests: +24021
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/25285
___
Python tracker
<https://bugs.python.org/issu
Ethan Furman added the comment:
Mark, it looks like the consensus is your proposal:
"The implementation is allowed to skip any boolean test of a value, when it has
*no* effect on the flow of the program and *at least one test* has already been
performed on that value.&
Ethan Furman added the comment:
I think the best solution, albeit slightly backwards incompatible, is to change
NamedTemporaryFile such that if (and only if) it is being used as a context
manager, the underlying file is not closed until the context manager ends.
This should be the default
Ethan Furman added the comment:
It should not be an error at all, but a False result. PR created.
--
assignee: -> ethan.furman
___
Python tracker
<https://bugs.python.org/issu
Change by Ethan Furman :
--
keywords: +patch
pull_requests: +24085
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25350
___
Python tracker
<https://bugs.python.org/issu
Change by Ethan Furman :
--
keywords: +patch
pull_requests: +24084
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25349
___
Python tracker
<https://bugs.python.org/issu
Ethan Furman added the comment:
On 4/11/2021 3:51 PM, Jason R. Coombs wrote:
> Jason R. Coombs added the comment:
>
> At least I and Ethan and Martin have expressed a desire for the
default, preferred usage work well in a portable environment. Requiring
`delete_on_close=False`
Change by Ethan Furman :
--
assignee: docs@python -> ethan.furman
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python
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 ec09973f5b21d33550c834ddc89606b0e1c70ffd by Ethan Furman in
branch 'master':
bpo-43744: [Enum] fix ``_is_private`` (GH-25349)
https://github.com/python/cpython/commit/ec09973f5b21d33550c834ddc89606b0e1c70ffd
Change by Ethan Furman :
--
assignee: -> ethan.furman
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
type: enhancement -> behavior
versions: +Python 3.10, Python 3.9
___
Python tracker
<https
Ethan Furman added the comment:
New changeset 8c14f5a787b21d5a1eae5d5ee981431d1c0e055f by Ethan Furman in
branch 'master':
bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released
(GH-25350)
https://github.com/python/cpython/commit/8c14f5a787b21d5a1eae5d5ee981431d1c0e055f
Change by Ethan Furman :
--
pull_requests: +24102
pull_request: https://github.com/python/cpython/pull/25369
___
Python tracker
<https://bugs.python.org/issue42
Ethan Furman added the comment:
New changeset f396a1a940f8608a4be2a9ac4ef82e37c198ecd3 by Ethan Furman in
branch '3.8':
[3.8] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released
(GH-25350). (GH-25369)
https://github.com/python/cpython/commit
Ethan Furman added the comment:
Eryk, I'm not sure if you are agreeing or disagreeing with me. :)
On Windows it sounds like O_TEMPORARY buys us guaranteed file deletion, but
costs us easy sharing of file resources and a difference in semantics between
Windows and non-Windows
Change by Ethan Furman :
--
pull_requests: +24103
pull_request: https://github.com/python/cpython/pull/25370
___
Python tracker
<https://bugs.python.org/issue42
Ethan Furman added the comment:
Paul,
If "rescuing" (i.e. "fixing" ;) NamedTemporaryFile was arduous, complicated,
or had serious backwards-compatibility issues then I would completely agree
with you. However, the fix is simple, the only backwards-compatible issue is
Ethan Furman added the comment:
Hey, you agree with me now, so it's not noise. ;-)
--
___
Python tracker
<https://bugs.python.org/issue14243>
___
___
Python-bug
Ethan Furman added the comment:
New changeset 6379924ecd51e346b42b0293da0f4442a0f67707 by Ethan Furman in
branch '3.9':
[3.9] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released
(GH-25350). (GH-25370)
https://github.com/python/cpython/commit
Change by Ethan Furman :
--
pull_requests: +24202
pull_request: https://github.com/python/cpython/pull/25476
___
Python tracker
<https://bugs.python.org/issue38
Ethan Furman added the comment:
New changeset dbac8f40e81eb0a29dc833e6409a1abf47467da6 by Ethan Furman in
branch 'master':
bpo-38659: [Enum] add _simple_enum decorator (GH-25285)
https://github.com/python/cpython/commit/dbac8f40e81eb0a29dc833e6409a1abf47467da6
Ethan Furman added the comment:
I'm getting this error:
test test_ssl failed -- Traceback (most recent call last):
File "/source/python/cpython/Lib/test/test_ssl.py", line 1061, in
test_read_write_zero
self.assertEqual(s.send(b""), 0)
File "/source/python/
Ethan Furman added the comment:
New changeset 503cdc7c124cebbd777008bdf7bd9aa666b25f07 by Ethan Furman in
branch 'master':
Revert "bpo-38659: [Enum] add _simple_enum decorator (GH-25285)" (GH-25476)
https://github.com/python/cpython/commit/503cdc7c124cebbd777008bdf7bd9a
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
Ethan Furman added the comment:
IIUC, the issue is that
urlencode( {'cert_reqs': ssl.CERT_NONE} )
no longer produces
'cert_reqs=0'
?
--
___
Python tracker
<https://bugs.python.org/issue33
Ethan Furman added the comment:
Actually, I think it uses str(). An easy fix would be to use format() for all
non-bytes objects instead -- the question then becomes how many objects
(besides Enums with mixed-in data types) have a different str() vs format()
display
Ethan Furman added the comment:
That sounds more like the way it is intended to be used: make you base enum
with all the changes you want, then use that base enum either by inheriting
from it or as a function call:
class MyBaseEnum(Enum, metaclass=...):
... custom stuff
Change by Ethan Furman :
--
Removed message: https://bugs.python.org/msg391419
___
Python tracker
<https://bugs.python.org/issue42854>
___
___
Python-bugs-list m
Ethan Furman added the comment:
False alarm, sorry. Still getting used to merging, rebasing, etc.
Current tests run fine.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
Change by Ethan Furman :
--
versions: +Python 3.10 -Python 3.9
___
Python tracker
<https://bugs.python.org/issue38659>
___
___
Python-bugs-list mailing list
Unsub
Change by Ethan Furman :
--
pull_requests: +24219
pull_request: https://github.com/python/cpython/pull/25497
___
Python tracker
<https://bugs.python.org/issue38
Ethan Furman added the comment:
Looking at your example I see that you are using an enum as the `type`
parameter -- the purpose of `type` is to provide a mixin data type, such as
`int` or `str`, not another enum.
What is your use-case? Typically, subclassing EnumMeta is not needed
Change by Ethan Furman :
--
stage: patch review -> needs patch
versions: +Python 3.10 -Python 3.9
___
Python tracker
<https://bugs.python.org/issue39102>
___
_
Change by Ethan Furman :
--
keywords: +patch
pull_requests: +24108
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25376
___
Python tracker
<https://bugs.python.org/issu
Ethan Furman added the comment:
`_create_pseudo_member_` was an implementation detail and has been removed. I
did update the doc string which was migrated to `_missing_`.
--
___
Python tracker
<https://bugs.python.org/issue40
Ethan Furman added the comment:
New changeset a02cb474f9c097c83cd444a47e9fb5f99b4aaf45 by Ethan Furman in
branch 'master':
bpo-38659: [Enum] add _simple_enum decorator (GH-25497)
https://github.com/python/cpython/commit/a02cb474f9c097c83cd444a47e9fb5f99b4aaf45
Change by Ethan Furman :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Ethan Furman added the comment:
`format` issue resolved, but not the refleak issue.
--
___
Python tracker
<https://bugs.python.org/issue38659>
___
___
Python-bug
Ethan Furman added the comment:
New changeset 37b173c5231b7b202859af97c17bc3d04b1e4c75 by Ammar Askar in branch
'master':
bpo-38659: Properly re-intialize module variables in test_enum (GH-25516)
https://github.com/python/cpython/commit/37b173c5231b7b202859af97c17bc3d04b1e4c75
Ethan Furman added the comment:
Actually, I think that fixed the refleak issue as well.
Thanks, Ammar!
--
___
Python tracker
<https://bugs.python.org/issue38
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:
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:
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:
New changeset 24da544014f78e6f1440d5ce5c2d14794a020340 by Pablo Galindo Salgado
in branch 'main':
bpo-44929: [Enum] Fix global repr (GH-27789)
https://github.com/python/cpython/commit/24da544014f78e6f1440d5ce5c2d14794a020340
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:
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
Ethan Furman added the comment:
Putting an enum in the ctypes module is a decent idea.
--
___
Python tracker
<https://bugs.python.org/issue44993>
___
___
Pytho
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 :
--
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/issue40506>
___
___
Python-bugs-list mailing list
Unsubscribe:
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/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:
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 small
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:
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/issue45
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/7c4d96103c4e16161e9aed9a584c9857d0674099
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/2a9ab75af32b1ee9f210ae2a0718990687d0f79d
Change by Ethan Furman :
--
pull_requests: +27393
pull_request: https://github.com/python/cpython/pull/29117
___
Python tracker
<https://bugs.python.org/issue44
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
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/9733c9651afad84ab2f010e9e68b7c03976ea9f3
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/828722aca4ccba893f6b2e8c1d41fd74fd6e208d
Change by Ethan Furman :
--
pull_requests: +27404
pull_request: https://github.com/python/cpython/pull/29128
___
Python tracker
<https://bugs.python.org/issue44
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/e628700dbf2c3376502cbb5a9bff2d58d1102e16
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 :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue45517>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 heard
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/b2af211e229df941d9b404f69547a264115156b5
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:
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
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:
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:
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
Change by Ethan Furman :
--
assignee: -> ethan.furman
nosy: +ethan.furman
versions: +Python 3.11 -Python 3.9
___
Python tracker
<https://bugs.python.org/issu
Ethan Furman added the comment:
Thanks, test added. I also updated the title.
Code updated to treat any __repr__s as affecting the display of the member
value instead of the member itself (i.e. the "<...: %r>" portion). if a user
actually wants to change the member repr
Change by Ethan Furman :
--
assignee: -> ethan.furman
___
Python tracker
<https://bugs.python.org/issue46132>
___
___
Python-bugs-list mailing list
Unsubscrib
Ethan Furman added the comment:
Some testing reveals that `__slots__` is not a good option for Enum -- it makes
it impossible to mix in in other types such as `int`.
--
___
Python tracker
<https://bugs.python.org/issue46
Change by Ethan Furman :
--
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue23952>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Ethan Furman :
--
assignee: -> ethan.furman
nosy: +ethan.furman
___
Python tracker
<https://bugs.python.org/issue46262>
___
___
Python-bugs-list mai
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 91bc6f9615eabb10090e2e4f0fe5913885a29c8c by Nikita Sobolev in
branch 'main':
bpo-46262: [Enum] test error path in `Flag._missing_` (GH-30408)
https://github.com/python/cpython/commit/91bc6f9615eabb10090e2e4f0fe5913885a29c8c
Ethan Furman added the comment:
New changeset 817a6bc9f7b802511c4d42273a621c556a48870b by Nikita Sobolev in
branch 'main':
bpo-46269: [Enum] remove special-casing of `__new__` in `EnumType.__dir__`
(GH-30421)
https://github.com/python/cpython/commit/817a6bc9f7b802511c4d42273a621c556a48870b
1001 - 1100 of 1854 matches
Mail list logo