dataclasses icon indicating copy to clipboard operation
dataclasses copied to clipboard

bpo-34363: dataclasses.asdict() and .astuple() for namedtuples

Open cliffxuan opened this issue 6 years ago • 7 comments

bpo-34363: dataclasses.asdict() and .astuple() now handle fields which are namedtuples

https://github.com/python/cpython/commit/9b9d97dd139a799d28ff8bc90d118b1cac190b03

cliffxuan avatar Feb 02 '19 21:02 cliffxuan

@ericvsmith what's your plan for this repository? are you still maintaining it? thanks.

cliffxuan avatar Feb 16 '19 17:02 cliffxuan

Sorry for not responding earlier. This repo is only for backporting dataclasses to 3.6. For new features, please open an issue on bugs.python.org. I'm going to close this issue, and if you open a new issue on bpo I'll comment there.

ericvsmith avatar Feb 16 '19 17:02 ericvsmith

@ericvsmith my change is exactly that -- backporting dataclasses to 3.6. it picked up one of the latest changes on dataclasses in 3.7 for namedtuples and added it to 3.6.

cliffxuan avatar Feb 16 '19 19:02 cliffxuan

Ah, I didn't notice that.

My plan us to just wholesale copy the 3.8 version back here, once I fix a few more problems in the stdlib code.

ericvsmith avatar Feb 17 '19 01:02 ericvsmith

OK. That'll be good. When do you expect this to happen?

cliffxuan avatar Feb 17 '19 21:02 cliffxuan

I wonder why this patch was never backported in the end?

anthrotype avatar Jun 01 '21 17:06 anthrotype

I wonder why this patch was never backported in the end?

Mostly because I never had the time to verify that it was the identical behavior as in 3.8, or I guess now 3.10.

ericvsmith avatar Jun 01 '21 17:06 ericvsmith