Greg Ewing wrote: > Paul Moore wrote: >> What the sentence you quote >> is trying to say is that if there's a need to compile source, the >> get_code method must do this on behalf of the caller - it can't return >> None and expect the caller to try get_source and compile it manually. > > Why not simply say that it must return a code object? > All the rest follows from that.
The method is allowed to return None if a code object genuinely isn't available (which happens when the module is a builtin or extension module). Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com