Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
parsimonious.tests.test_expressions.SlotsTests Class Reference
Inheritance diagram for parsimonious.tests.test_expressions.SlotsTests:
Inheritance graph
[legend]
Collaboration diagram for parsimonious.tests.test_expressions.SlotsTests:
Collaboration graph
[legend]

Public Member Functions

 test_subclassing (self)
 

Public Attributes

 smoo
 

Detailed Description

Tests to do with __slots__

Member Function Documentation

◆ test_subclassing()

parsimonious.tests.test_expressions.SlotsTests.test_subclassing (   self)
Make sure a subclass of a __slots__-less class can introduce new
slots itself.

This isn't supposed to work, according to the language docs:

    When inheriting from a class without __slots__, the __dict__
    attribute of that class will always be accessible, so a __slots__
    definition in the subclass is meaningless.

But it does.

The documentation for this class was generated from the following file: