Closed GoogleCodeExporter closed 8 years ago
thanks for reporting!
I'm afraid it's a bit tricky to deal with this like cpython does, and it's just
how shedskin works at the moment. if 'Init' is not called, LoggerFile is always
None, gets a type of 'void *', and this doesn't have a 'write' method. you'll
have to puzzle a bit to get to work. for example if you're always under UNIX
you could use open('/dev/null'). or perhaps nicer, always call Init, and in
there do something like this:
Logger.LoggerFile = open(..) if loggerFileName else None
Original comment by mark.duf...@gmail.com
on 15 Jun 2011 at 9:25
I think THE LoggerFile should be set to file*, because file* can accomondate
None(NULL). Otherwise can't.
Right?
Jason
Original comment by jason.mi...@gmail.com
on 15 Jun 2011 at 9:48
its type should be file* yes, otherwise LoggerFile.write will not be accepted
by the C++ compiler. and it's fine to assign None(NULL) to file* or any
pointer-type.
Original comment by mark.duf...@gmail.com
on 15 Jun 2011 at 10:02
Original issue reported on code.google.com by
jason.mi...@gmail.com
on 15 Jun 2011 at 2:52