[issue34122] inspect.getmembers does not retrive dataclass's __dataclass_fields__ properly

2018-07-15 Thread Dong-hee Na
Dong-hee Na added the comment: @xtreak Yeah... It looks like intended. Closing this issue! -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34122] inspect.getmembers does not retrive dataclass's __dataclass_fields__ properly

2018-07-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think there is some note about this on the doc as below : https://docs.python.org/3/library/dataclasses.html#dataclasses.field . Relevant commit : 98d50cb8f57eb227c373cb94b8680b12ec8aade5 If the default value of a field is specified by a call to

[issue34122] inspect.getmembers does not retrive dataclass's __dataclass_fields__ properly

2018-07-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34122] inspect.getmembers does not retrive dataclass's __dataclass_fields__ properly

2018-07-15 Thread Dong-hee Na
New submission from Dong-hee Na : When I execute this script. import inspect from dataclasses import * import enum @dataclass class SimpleDataObject(object): field_a: int = field() field_b: str = "asdad" print([a[0] for a in inspect.getmembers(SimpleDataObject)]) I expected ['__ann