[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-09-14 Thread Kevin Mills
Change by Kevin Mills : -- nosy: +Zeturic ___ Python tracker <https://bugs.python.org/issue43574> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45054] json module should issue warning about duplicate keys

2021-08-31 Thread Kevin Mills
Kevin Mills added the comment: Sorry to the people I'm pinging, but I just noticed the initial dictionary in my example code is wrong. I figured I should fix it before anybody tested it and got confused about it not matching up with my description of the results. It should've bee

[issue45054] json module should issue warning about duplicate keys

2021-08-30 Thread Kevin Mills
New submission from Kevin Mills : The json module will allow the following without complaint: import json d1 = {1: "fromstring", "1": "fromnumber"} string = json.dumps(d1) print(string) d2 = json.loads(string) print(d2) And it prints: {"1": "from

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-07 Thread Kevin Mills
New submission from Kevin Mills : Sorry for the vague title. I'm not sure how to succinctly describe this issue. The following code: ``` with open("data.bin", "rb") as f: data = f.read() base = 15403807 * b'\xff' longer = base + b'\xff'

[issue29671] Add function to gc module to check if any reference cycles have been reclaimed.

2017-02-27 Thread Kevin Mills
Kevin Mills added the comment: gc.disable() at the beginning and then analyzing the results of gc.collect() actually does do what I was wanting, thank you. Reference cycles in and of themselves aren't the problem. It's only a problem if garbage contains reference cycles. In a norm

[issue29671] Add function to gc module to check if any reference cycles have been reclaimed.

2017-02-27 Thread Kevin Mills
New submission from Kevin Mills: The intro paragraph for the gc module's documentation says: > Since the collector supplements the reference counting already used in > Python, you can disable the collector if you are sure your program does not > create reference cycles. How wou