clanner / cocdp

Clash of Clans Documentation Project
216 stars 64 forks source link

Remove dumpobj sorting #4

Closed clugh closed 9 years ago

clugh commented 9 years ago

Python isn't my primary programming language, and a quick Google search didn't yield anything useful, but there has to be a better way to do this. As far as I can tell, Python doesn't keep up with the order attributes are added to an object, at least not when using setattr.

Also, this would ideally be handled with a function argument, as both ways have their uses.

Any thoughts on a better way to handle it?

clanner commented 9 years ago

Thanks, this looks good.

About the ordering: i had just ignored it, but what you implemented would be one way to do it.