- Example Usage
A pointless class, for sanity-checking of docstring testing.
Methods:
square()
get()
>>> _TestClass(13).get() + _TestClass(-12).get()
1
>>> hex(_TestClass(13).square().get())
'0xa9'
def setuptools.tests.doctest._TestClass.__init__ |
( |
|
self, |
|
|
|
val |
|
) |
| |
val -> _TestClass object with associated value val.
>>> t = _TestClass(123)
>>> print t.get()
123
def setuptools.tests.doctest._TestClass.get |
( |
|
self | ) |
|
get() -> return TestClass's associated value.
>>> x = _TestClass(-42)
>>> print x.get()
-42
def setuptools.tests.doctest._TestClass.square |
( |
|
self | ) |
|
square() -> square TestClass's associated value
>>> _TestClass(13).square().get()
169
setuptools.tests.doctest._TestClass.val |
The documentation for this class was generated from the following file:
- orbits/lib/python2.7/site-packages/setuptools/tests/doctest.py
Copyright 2014 Google Inc. All rights reserved.