Honeycombs/Python: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 54:
The Base constructor REQUIRES keyword arguments when used.
You can get around this using a factory function to wrap
object construction. See(Because exampleit is, in doctest:my opinion, also
ridiculous to write the keywords over and over when you
have many of the same objects/function to create/call.)
See example in doctest:
 
>>> Base(a=3) # support doctest with command $ python3 -m doctest -v this.file
Anonymous user