Re: [Pyobjc-dev] New version of Nib* from Just
Brought to you by:
ronaldoussoren
|
From: Just v. R. <ju...@le...> - 2002-11-17 21:30:12
|
bb...@ma... wrote:
> > (Btw., regarding your recent mistake if subclassing from the
> > NibLoader _module_: I was surprised that that actually _works_...
> > It doesn't in 2.3a, though, although the error message is not
> > exactly clear.)
>
> It didn't work and the error message was not at all clear.
Sorry, I meant that subclassing from a _module_ actually "worked", in that the
subclassing per se didn't raise an exception. _Using_ the class was another
issue of course... Here's what I mean:
Python 2.2 (#1, 07/14/02, 23:25:09)
[GCC Apple cpp-precomp 6.14] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import StringIO
>>> class MyStringIO(StringIO): pass
...
Python 2.3a0 (#2, Nov 17 2002, 18:16:38)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import StringIO
>>> class MyStringIO(StringIO): pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: function takes at most 2 arguments (3 given)
>>>
Just
|