dan-da / py2php

py2php is a utility that will auto-translate python code into PHP code.
GNU General Public License v2.0
99 stars 32 forks source link

Class extending #8

Closed gareth-ib closed 6 years ago

gareth-ib commented 6 years ago
class BinFactory(object):

converts to

class BinFactory extends object {

which definitely is some sort of issue, object would have to be an existing class. I think it has to do with class overriding or something? Not sure, I don't code python :)

gareth-ib commented 6 years ago

nevermind, I see what's going on.. maybe omit the system objects? I dunno

dan-da commented 6 years ago

Fixed in b5874b8b1d919a0957fbd9cbc7d6d1a4518302af. Now it translates object to stdClass when inheriting.