A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-February/013093.html below:

[Python-Dev] Those import related syntax errors again...

[Python-Dev] Those import related syntax errors again... [Python-Dev] Those import related syntax errors again...Guido van Rossum guido@digicool.com
Wed, 21 Feb 2001 20:46:35 -0500
> For the record, the only reason I had to use exec in that case was because
> the "new" module is not capable creating a new method.  Trying to compile a
> block of code with a "return" statement but no function decl (to create a
> code object suitable for a method) fails at compile time.

I don't understand.  Methods do have a function declaration:

  class C:

      def meth(self):
          pass

Or am I misunderstanding?

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4