clarete / forbiddenfruit

Patch built-in python objects
https://clarete.li/forbiddenfruit/
GNU General Public License v3.0
817 stars 52 forks source link

how to use reverse with existing attributes #67

Open 1Mark opened 2 years ago

1Mark commented 2 years ago
Beware: reverse() only deletes attributes. If you curse()'d to replace a pre-existing attribute, reverse() won't re-install the existing attribute.

Any workarounds for this?

mentalisttraceur commented 2 years ago

Save the existing attribute in a variable before cursing, use curse again after reversing to install it? Just a guess from someone passing through.

1Mark commented 2 years ago

Save the existing attribute in a variable before cursing, use curse again after reversing to install it? Just a guess from someone passing through.

I tried that and it didn't work. sorry should've been clearer.