New submission from CliffM:

Is the assignment __objclass__ = enum_class  in enum.py(149) needed ?

I cannot find any other reference to it (even Google) and it seems that 
__class__ is already set to enum_class :


enum_member.__objclass__ = enum_class     < not sure what this is doing >

I have attached a patch that forces the assignment, but would rather understand 
what is intended here -- and test for that.

----------
components: Tests
files: enum.patch
keywords: patch
messages: 199964
nosy: CliffM, ethan.furman
priority: normal
severity: normal
status: open
title: enum.py : Enum.__new__(). __objclass__
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file32126/enum.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19263>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to