- Where Developers Learn, Share, & Build Careers


I need a dummy object that I can input into Python and create attributes through the settings () for programmate I am

I made it into an object but probably for a good reason which was not working.

How can I use for such purposes in Python, do not really define yourself

You can not use Fake = object , instead of just object

  Class duplicate (object): pass fake = mock () setter (fake, 'test', 'whatever')    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -