Python html doc cosmetic tweaks
[skip ci]
This commit is contained in:
parent
76d813f321
commit
7c2ed7eae5
1 changed files with 15 additions and 15 deletions
|
|
@ -2169,15 +2169,15 @@ for Python 2.2):
|
||||||
import _example
|
import _example
|
||||||
|
|
||||||
class Foo(object):
|
class Foo(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.this = _example.new_Foo()
|
self.this = _example.new_Foo()
|
||||||
self.thisown = 1
|
self.thisown = 1
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
if self.thisown:
|
if self.thisown:
|
||||||
_example.delete_Foo(self.this)
|
_example.delete_Foo(self.this)
|
||||||
def spam(self,arg1):
|
def spam(self,arg1):
|
||||||
return _example.Foo_spam(self.this,arg1)
|
return _example.Foo_spam(self.this,arg1)
|
||||||
x = property(_example.Foo_x_get, _example.Foo_x_set)
|
x = property(_example.Foo_x_get, _example.Foo_x_set)
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -2219,9 +2219,9 @@ like in a proxy class:
|
||||||
<div class="targetlang">
|
<div class="targetlang">
|
||||||
<pre>
|
<pre>
|
||||||
class Foo(object):
|
class Foo(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.this = _example.new_Foo()
|
self.this = _example.new_Foo()
|
||||||
self.thisown = 1
|
self.thisown = 1
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -2313,11 +2313,11 @@ private:
|
||||||
|
|
||||||
<div class="targetlang">
|
<div class="targetlang">
|
||||||
<pre>
|
<pre>
|
||||||
class MyPyException (Exception) :
|
class MyPyException(Exception):
|
||||||
def __init__(self, msg, *args) :
|
def __init__(self, msg, *args):
|
||||||
Exception.__init__(self, *args)
|
Exception.__init__(self, *args)
|
||||||
self.myexc = MyException(msg)
|
self.myexc = MyException(msg)
|
||||||
def what (self) :
|
def what(self):
|
||||||
return self.myexc.what()
|
return self.myexc.what()
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue