On Wed, Aug 31, 2016 at 10:25:17AM +1000, Steven D'Aprano wrote:
> (4) Are you sure that SOMFactory actually exists? I don't see it in any
> of the five notebooks here:
>
> https://github.com/sevamoo/SOMPY
>
> although maybe I've missed something.
I may have... there's a sixth notepad here:
h
On Tue, Aug 30, 2016 at 11:25:44AM +0200, fa306...@skynet.be wrote:
> Hello,
> I use python 3.5.1 and try to import sompy and get the following error:
>
> File "C:\Anaconda3\lib\site-packages\sompy-1.0-py3.5.egg\sompy\__init__.py",
> line 30, in from sompy import SOMFactory
>
> ImportError:
On 30/08/16 22:08, monik...@netzero.net wrote:
OK so somebodys remark that there is a default __init__ provided was not
correct.
It depends on how you interpret default.
In so far as object is the default superclass (in v3)
and it provides an init then there is a default, but
its not part of
OK so somebodys remark that there is a default __init__ provided was not
correct.
What about old style classes? When we have a class that has no parent. and it
does not inherit from object since it is old class - and this class has no
__init__, does __new__ call __init__?
-- Original M
On 30/08/16 17:59, monik...@netzero.net wrote:
Assume you have a child class with no init, but it has empty,
> default __init__ provided by pathon
It inherits the empty init from object.
and the same for its parent class. When instantiating child class,
> child class's __new__ calls its __
On 30/08/16 10:25, fa306...@skynet.be wrote:
Hello,
I use python 3.5.1 and try to import sompy and get the following error:
File "C:\Anaconda3\lib\site-packages\sompy-1.0-py3.5.egg\sompy\__init__.py",
line 30, in from sompy import SOMFactory
ImportError: cannot import name 'SOMFactory'
Wh
On 30/08/16 12:50, eryksun wrote:
On Tue, Aug 30, 2016 at 9:09 AM, Alan Gauld via Tutor wrote:
new() that sets up the memory then calls init(). So init is
only used to initialise the object after it has been
constructed.
__new__ and __init__ are called by the metaclass __call__ method.
__init
Hello,
I use python 3.5.1 and try to import sompy and get the following error:
File "C:\Anaconda3\lib\site-packages\sompy-1.0-py3.5.egg\sompy\__init__.py",
line 30, in from sompy import SOMFactory
ImportError: cannot import name 'SOMFactory'
What could cause such an error? Thanks in advance
Thank you all for your answers.
The below seems contradicting to me:
" in that case there is no __init__ to call.
The top level class object has an empty __init__() which
does nothing, so it will be called by __new__()"
"It is new() that sets up the memory then calls init(). So init is
only used t
On Tue, Aug 30, 2016 at 9:09 AM, Alan Gauld via Tutor wrote:
> new() that sets up the memory then calls init(). So init is
> only used to initialise the object after it has been
> constructed.
__new__ and __init__ are called by the metaclass __call__ method.
__init_ is called if __new__ returns a
On 29/08/16 23:52, monik...@netzero.net wrote:
I cannot really try it.
If I have a class without __init__ and the class does not
> inherit from a class that has init there is really no place
> for me to put print statement.
Fair enough but in that case there is no __init__ to call.
The top l
On 30/08/16 03:22, Matthew Lehmberg wrote:
I've been getting this error over and over and was wondering if someone
could help me fix it. [image: Inline image 1]
This is a text mailing list so attachments dont get through.
Plese repost with your error message cut n paste into the message.
Alan
I cannot really try it. If I have a class without __init__ and the class does
not inherit from a class that has init there is really no place for me to put
print statement. IN Java if you do not have a constructor specified java calls
a default constructor behind the scenes setting up memory. Do
I've been getting this error over and over and was wondering if someone
could help me fix it. [image: Inline image 1]
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
14 matches
Mail list logo