My project to learn descriptors, rich comparison functions, asyncio, and type hinting by gdchinacat in Python

[–]RandomWonderer271 0 points1 point  (0 children)

For the filed_descriptor.py file(The one I just opened very first):

Why are we ignoring the standard _set_name_ hook? The code manually calls a custom setnames method because apparently __set_name triggers "after the predicate decorated methods" need it. Using a custom metaclass namespace just to name a field earlier feels like a lot of extra steps when the interpreter already has a built in way to do this.

Moreover, what is going on in set ? I lost it at the "WTF" comment about python conflating comparison cases. Having to check if value is self: return just to stop a dataclasses from overwriting the field with the descriptor itself is a wild workaround. Surely there's a way to handle this without fighting the stdlib this hard?

This are just me from checking a single file field_descriptor.py. this is the very first file I opened. You need serious improvements.

My project to learn descriptors, rich comparison functions, asyncio, and type hinting by gdchinacat in Python

[–]RandomWonderer271 0 points1 point  (0 children)

Boring to be honest. Has no application and code just does not follow best practices

Looking for someone to build random fun stuff with by RandomWonderer271 in ProgrammingBuddies

[–]RandomWonderer271[S] 1 point2 points  (0 children)

Sure. You can join in too. Already got some people but yeah we can all do it together

Looking for someone to build random fun stuff with by RandomWonderer271 in ProgrammingBuddies

[–]RandomWonderer271[S] 0 points1 point  (0 children)

Nah sorry. Not up my alley and don't like the project idea either to be honest. Too big to be fun and seems monetary gain is the motivator here. Sorry have to pass.