_whitelogger has joined #nmigen
Degi has quit [Ping timeout: 258 seconds]
Degi has joined #nmigen
____ has joined #nmigen
____ is now known as Guest30583
jeanthom has joined #nmigen
Asu has joined #nmigen
Guest30583 has joined #nmigen
proteus-guy has joined #nmigen
chipmuenk has joined #nmigen
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
proteus-guy has quit [Ping timeout: 260 seconds]
futarisIRCcloud has joined #nmigen
jeanthom has quit [Ping timeout: 260 seconds]
jeanthom has joined #nmigen
jeanthom has quit [Ping timeout: 265 seconds]
jeanthom has joined #nmigen
FFY00 has quit [Remote host closed the connection]
FFY00 has joined #nmigen
FFY00 has quit [Read error: Connection reset by peer]
FFY00 has joined #nmigen
<
Sarayan>
Hey python wizards, can one define a class over multiple files
<
Sarayan>
(technically, what I actually want to do is to have half defined in C++ and half in python)
<
ZirconiumX>
No, as far as I can tell
<
ZirconiumX>
Unfortunately I am not a Python wizard
<
tpw_rules>
i mean you could define a pile of C functions and just be like class Q: cool_func = _my_secret_c_module.cool_func
<
tpw_rules>
and assuming cool_func took a Q as its first argument then it would work
<
tpw_rules>
actually uh i'm... not sure if that would cause self to be passed implicitly
<
tpw_rules>
just checked, it does
<
Sarayan>
_my_secret_c_module is what I wanted to avoid
<
Sarayan>
otoh, Zorg.method = staticmethod(Zorg.method) exists
<
tpw_rules>
how does that help you?
<
Sarayan>
I'm not sure
<
Sarayan>
but that means one can change a class method after the fact
<
tpw_rules>
yes. classes are mostly just dicts
<
Sarayan>
in my case the class is a C++ type
<
tpw_rules>
Zorg is?
<
Sarayan>
the associated type object is dict-ish
<
Sarayan>
I haven't tried yet
<
tpw_rules>
i'm not sure if it works by default because C classes don't have
__dict__
<
Sarayan>
I guess I can just magic some inheritance
FFY00 has quit [Remote host closed the connection]
FFY00 has joined #nmigen
pinknok has joined #nmigen
jeanthom has quit [Read error: Connection reset by peer]
pinknok has quit [Ping timeout: 246 seconds]
pinknok has joined #nmigen
proteus-guy has joined #nmigen
pinknok has quit [Ping timeout: 260 seconds]
pinknok has joined #nmigen
FFY00 has quit [Read error: Connection reset by peer]
Asu has quit [Ping timeout: 256 seconds]
pinknok has quit [Ping timeout: 260 seconds]
pinknok has joined #nmigen
chipmuenk1 has joined #nmigen
chipmuenk has quit [Ping timeout: 260 seconds]
chipmuenk1 has quit [Ping timeout: 272 seconds]
chipmuenk has joined #nmigen
pinknok has quit [Ping timeout: 256 seconds]
chipmuenk has quit [Quit: chipmuenk]