[issue34867] Add mode to disable small integer and interned string caches

2018-11-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steven, thank you for splitting this off for proper discussion. To me, the base issue is that CPython is both the language reference implementation and, as yet, the main production implementation. As the latter, it has unintended and unwanted bugs and

[issue34867] Add mode to disable small integer and interned string caches

2018-10-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: The intent is to use only enable this during testing / continuous integration. -- ___ Python tracker ___

[issue34867] Add mode to disable small integer and interned string caches

2018-10-04 Thread Neil Schemenauer
Neil Schemenauer added the comment: Woudn't turning these off hurt performance a lot? If so, I don't know if people would actually use such a mode. Then it becomes pretty useless. Could we combine this idea with the PYTHONDEVMODE flag? If PYTHONDEVMODE is turned on, we could do a check

[issue34867] Add mode to disable small integer and interned string caches

2018-10-02 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34867] Add mode to disable small integer and interned string caches

2018-10-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think this option will be of any value. For it to work, the code would need to have this particular bug, have test cases that triggered those bugs, and a user sophisticated enough to run the tests but unsophisticated enough to make beginner

[issue34867] Add mode to disable small integer and interned string caches

2018-10-01 Thread Ammar Askar
Ammar Askar added the comment: Aah sorry, I misinterpreted what you meant. The original ticket proposes it as a compile time flag as well. -- ___ Python tracker ___

[issue34867] Add mode to disable small integer and interned string caches

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't worry about the performance when caches are disabled. An additional check will hit the performance in normal execution. -- ___ Python tracker

[issue34867] Add mode to disable small integer and interned string caches

2018-10-01 Thread Ammar Askar
Ammar Askar added the comment: Serhiy, take a look at the linked ticket. The idea is that something like pytest or libregrtest will use this to bring underlying bugs to the surface. It isn't intended to be used in normal execution. -- ___ Python

[issue34867] Add mode to disable small integer and interned string caches

2018-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Adding a runtime option will hit a performance of normal execution. And it is impossible to disable interning strings completely. Some core code depends on this. I have also concerns about disabling caching an empty string. There are also other caches on

[issue34867] Add mode to disable small integer and interned string caches

2018-10-01 Thread Ammar Askar
Ammar Askar added the comment: Maybe something more akin to UndefinedBehaviorSanitizer? Since its supposed to be catching implementation specific quirks. It wouldn't really be sanitizing though, more just making the bugs more likely to appear. -- nosy: +ammar2

[issue34867] Add mode to disable small integer and interned string caches

2018-10-01 Thread Steven D'Aprano
New submission from Steven D'Aprano : Split off from #34850 by Guido's request. To help catch incorrect use of `is` when `==` is intended, perhaps we should add an interpreter mode that disables the caches for small ints and interned strings. Nathaniel called it "chaos mode" but I don't