Re: failing to create an instance of a class when compiled

Super works fine in cython (Synthizer uses it everywhere), but crossing the cython->Python boundary in that context may be tricky.

But: why not just pyinstaller?  better to have a thing than to have a thing where you're not going to get code theft or whatever and you're probably absolutely nowhere near the point that the additional perf gains are worth it.

Errors almost never fail silently.  You should either get an outright crash or an exception or something going somewhere.  try adding assert statements everywhere.  The conclusion "It fails to create an instance of the class" doesn't logically extend from "there's nothing in the logs anywhere" and also is an empty statement.  Fails how?  "This specific variable is this specific value but should be this other value" or something will go much further here.

Also, if you're not cythonizing more than the main script, you're not gaining anything with respect to code protection or performance either. You need it to cythonize the whole program or at least large chunks of the program, otherwise there's very little point.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ivan_soto via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : cartertemm via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : cartertemm via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector

Reply via email to