Re: Simulating simple electric circuits



Bjoern Schliessmann wrote:

class Source(object):

Little bug: The __init__ method of class Source should look like
this.

def __init__(self, ID, neighbour = None):
self.connections = []
self.ID = ID
if neighbour: self.connections.append(neighbour)

Regards,


Björn

--
BOFH excuse #102:

Power company testing new voltage spike (creation) equipment

.



Relevant Pages

  • Re: Alte Lichtsignale
    ... Power company testing new voltage spike (creation) equipment ...
    (de.etc.bahn.eisenbahntechnik)
  • Re: The Beaver
    ... Or have you been employed by _Creation Ex Nihilo_ as their official ... equipment could not have evolved over time by chance and selection. ... I seem to recall reading somewhere that all mammals can swim if necessary, ...
    (talk.origins)
  • Re: The Beaver
    ... Or have you been employed by _Creation Ex Nihilo_ as their official ... equipment could not have evolved over time by chance and selection. ... Can bats swim, and why would they have too? ...
    (talk.origins)
  • Re: The Beaver
    ... Or have you been employed by _Creation Ex Nihilo_ as their official ... equipment could not have evolved over time by chance and selection. ... of the beaver. ...
    (talk.origins)