Skip to content

A python class that does everything while doing nothing.

License

Notifications You must be signed in to change notification settings

ssangervasi/enon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enon

A Python object that does everything while doing nothing.

Usage

from enon import Enon, enon

with enon.open() as enon:
    enon.append(enon['horse'])
    enon_items = enon[1:5]
    zero = len(enon_items)
    enon.zero = zero
    if enon.zero is zero:
        raise Enon('Attribute assignment does nothing!')
    elif enon.zero is enon:
        # But this is correct.
        enon.write(str(enon))

other_enon = Enon('Init ignores...', all='Arguments')
if enon is other_enon:
    raise Enon('Not possible! They are not the same Enon!')
elif other_enon == enon:
    same_enon = other_enon('Enon is callable.',
                           more='It always returns itself.')
    assert other_enon is same_enon

Best practices

No thank you.

About

A python class that does everything while doing nothing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages