[issue28984] json.dump + indent creates trailing extra spaces

2016-12-15 Thread Knut
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&q

[issue28984] json.dump + indent creates trailing extra spaces

2016-12-16 Thread Knut
Knut added the comment: sorry, I missed that point in the docs. -- ___ Python tracker <http://bugs.python.org/issue28984> ___ ___ Python-bugs-list mailin

[issue8055] Sleeping after acquiring RLock causes acquire to block in other thread

2010-03-04 Thread Knut Eldhuset
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