ITADN

Truncated stringified object (ellipses), how to DISABLE IT????

#308Openhadjiprocopis 创建于 2025-11-15
H
hadjiprocopiscommented
After a lot of harassment over at SO, someone there (https://stackoverflow.com/questions/79820156/how-to-get-non-truncated-output-printing-a-python-object) discovered that this is not a Python problem but pyosmium's. How can I disable this behaviour? I want to print the whole object. Let me decide how much my eyes, brain and terminal can handle. Currently you have hardcoded a limit of 47 chars before truncating the object. Proper programmers could have used 42? I am sorry for my tone but I spent 2 days trying to debug this, I keep away from Python as much as possible for exactly this sort of reasons, but now I need to filter some OSM data and I have to use this, otherwise, useful tool. The culprit, thank you [jonrsharpe](https://stackoverflow.com/users/3001761/jonrsharpe), is in file src/osmium/osm/types.py line 34. The function `_list_elipse()`.
0 条评论