These are chat archives for dropbox/pyston

16th
Apr 2015
Chris Toshok
@toshok
Apr 16 2015 00:30
gdb tip: typing “signal SIGUSR1” will give you a traceback from anywhere you’re stopped at a gdb prompt
Marius Wachtler
@undingen
Apr 16 2015 21:16
ah just because I removed the "unimplemented error" inside PyString_InternInPlace. Am I right in that we don't need this and can just ignore interning?
Kevin Modzelewski
@kmod
Apr 16 2015 21:24
hmm I think we want/need to keep that
because if anyone calls it they can assume that two calls with different-but-equal strings will result in the same PyObject*
and I don't know why someone would call it without wanting that
oh hmm the io module uses it
Kevin Modzelewski
@kmod
Apr 16 2015 21:36
did you run into something that used PyString_InternInPlace?
Marius Wachtler
@undingen
Apr 16 2015 21:37
Yes marshal.loads() uses it
I will try to replicate cpythons interning in this places tomorrow.
Kevin Modzelewski
@kmod
Apr 16 2015 21:45
hmm I added it back and the marshal test still passes...
oh I think you commented out the part that would tell it to intern on the way back in?
ie if it dumps an interned string it will try to intern it when loading it
Marius Wachtler
@undingen
Apr 16 2015 21:51
oh... yeah I probably tried it with a dump generated with cpython on a interned string...
Chris Toshok
@toshok
Apr 16 2015 22:01
oh django...
Marius Wachtler
@undingen
Apr 16 2015 22:10
???
Chris Toshok
@toshok
Apr 16 2015 22:12
it looks like whenever django needs to resolve a url (while rendering a template), it creates an entirely new RegexURLResolver, iterates over all url patterns that have been registered, etc, etc