<cfbolz>
will look in more detail later, need to do uni stuff today
fotis has quit [Ping timeout: 272 seconds]
fotis has joined #pypy
karel has quit [Quit: Konversation terminated!]
fotis has quit [Ping timeout: 244 seconds]
<mattip>
I can't figure out a way to to say "this optional kwarg was not specified"
<cfbolz>
It's possible that you really can't
<cfbolz>
mattip: because the default value would be exposed via some func attribute
<cfbolz>
So you can't use None
<cfbolz>
So we need to revert part of what I did and re-add the manual argument parsing :-(
fotis has joined #pypy
[Arfrever] has joined #pypy
dustinm- has quit [Quit: Leaving]
dustinm has joined #pypy
fotis has quit [Ping timeout: 272 seconds]
leshaste has joined #pypy
<leshaste>
hi
fotis has joined #pypy
fotis has quit [Ping timeout: 264 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 252 seconds]
[Arfrever] has quit [Ping timeout: 272 seconds]
[Arfrever] has joined #pypy
fotis has joined #pypy
mattip has quit [Ping timeout: 268 seconds]
fotis has quit [Ping timeout: 272 seconds]
leshaste has quit [Quit: Leaving]
mattip has joined #pypy
daubers has quit [Ping timeout: 244 seconds]
jryans has quit [Read error: Connection reset by peer]
daubers has joined #pypy
jryans has joined #pypy
Dejan has joined #pypy
samth has joined #pypy
fotis has joined #pypy
<mattip>
there is a segfault when importing scipy.stats.qmc, when calling PyErr_Format(PyExc_NameError, "name '%U' is not defined", name);
<mattip>
it seems name does not have obj->wstr set, which hits an assert in PyUnicode_GET_SIZE(obj)
<mattip>
but that macro is depracated since python3.3, and the whole PyUnicode_FromFormatV has been rewritten to use a "new" _PyUnicodeWriter
<mattip>
we cargo-cult copied PyUnicode_FromFormatV from cpython, so now what do we do?
<mattip>
- fix our outdated copy or
<mattip>
- update it to CPython's version which means copying the whole _PyUnicodeWriter c-code
<mattip>
- port PyErr_Format into rpython, which would require handling c-level va_list args
<arigato>
probably "2". if it means that in order to be as compatible as possible we need a whole bunch of logic that can be easily bulk-copied, then so be it
<mattip>
ok, I will try. In any case this is a relatively big change