Snapshot of python-skeletons @ 983e594

This commit is contained in:
Andrey Vlasovskikh
2014-12-16 18:51:21 +03:00
parent 763cc7a900
commit 10dcabd7a8
2 changed files with 23 additions and 0 deletions
@@ -67,6 +67,7 @@ should import it explicitly. For example, in a skeleton for the `foo` module:
```python
import foo
class C(foo.B):
def bar():
"""Do bar and return Bar.
@@ -144,6 +145,7 @@ class C(object):
pass
```
### Versioning
The recommended way of checking the version of Python is:
@@ -151,10 +153,12 @@ The recommended way of checking the version of Python is:
```python
import sys
if sys.version_info >= (2, 7) and sys.version_info < (3,):
def from_27_until_30():
pass
```
A skeleton should document the most recently released version of a library. Use
deprecation warnings for functions that have been removed from the API.
@@ -214,6 +218,7 @@ the skeletons GitHub repository into your PyCharm/IntelliJ config directory:
cd <config directory>
git clone https://github.com/JetBrains/python-skeletons.git
```
where `<config directory>` is:
* PyCharm
@@ -427,6 +427,24 @@ class int(object):
"""
pass
def __eq__(self, y):
return False
def __ne__(self, y):
return False
def __lt__(self, y):
return False
def __gt__(self, y):
return False
def __le__(self, y):
return False
def __ge__(self, y):
return False
def __add__(self, y):
"""Sum of x and y.