[issue28984] json.dump + indent creates trailing extra spaces
New submission from Knut: module json python 2.7.12 json.dump(..., indent=4, sort_keys=True) gives me: { "size": { "total": 19106,X "code": 18614,X "data": 492 },X "next_item": 10 } The "X" mark extra trailing space characters which are needless. -- components: Library (Lib) messages: 283354 nosy: voxspox priority: normal severity: normal status: open title: json.dump + indent creates trailing extra spaces type: resource usage versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue28984> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28984] json.dump + indent creates trailing extra spaces
Knut added the comment: sorry, I missed that point in the docs. -- ___ Python tracker <http://bugs.python.org/issue28984> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8055] Sleeping after acquiring RLock causes acquire to block in other thread
New submission from Knut Eldhuset : In essence I have the following loop running in thread A: while True: with self.lock: time.sleep(0.1) I then try to acquire the lock in thread B. This blocks forever on Linux, but runs fine on Windows XP. The following modification makes the code behave as expected on Linux: while True: time.sleep(0.001) with self.lock: time.sleep(0.1) See the attached file for the full example. Python versions are: Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 and Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 -- components: Library (Lib) files: threadtest.py messages: 100383 nosy: knutel severity: normal status: open title: Sleeping after acquiring RLock causes acquire to block in other thread versions: Python 2.6 Added file: http://bugs.python.org/file16430/threadtest.py ___ Python tracker <http://bugs.python.org/issue8055> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com