ansasaki / abimap

A helper for library maintainers to use symbol versioning
MIT License
7 stars 1 forks source link

direct use of magic methods #11

Closed tomato42 closed 6 years ago

tomato42 commented 6 years ago

https://github.com/ansasaki/symbol_version/blob/f441d3446bcb325df9a3ae440313d30da2646952/scripts/symbol_version.py#L1231-L1241

magic methods like __str__ in general should not be called directly, in this case either

sys.stdout.write(str(new_map))

or even

print(new_map)

should be sufficient