1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
This project has been archived by its maintainers, and is no longer receiving any updates.
=====
.. image:: https://travis-ci.org/kirbyfan64/PyExt.png
:target: https://travis-ci.org/kirbyfan64/PyExt
Several simple extensions that add some nifty features to Python.
NEWS: There is now a PyExt newsgroup on Google Groups. See https://groups.google.com/forum/#!forum/pyext.
Some features:
- Function overloading
- Switch statement
- Runtime module creation
- Tail recursion removal
- Python 2 function annotations
- Python 2 safe tuple unpacking
Examples:
Function overloading::
@overload.argc(1)
def f(a): print 'Function 1 called'
@overload.argc(2)
def f(a, b): print 'Function 2 called'
f(1)
f(1, 2)
Switch statement::
with switch(1):
if case(0): print 'Awkward...'; case.quit() # case.quit() is the same as break
if case(2): print '???'
if case(1): print 'Phew! It works!'
if case.default(): print 'Ummmm...'
Function annotations::
@fannotate('Return annotation', a=1, b=2)
def x(a, b):
return 0
TODO:
- Add some more tests
.. note:: Please ignore this project's messy commit history(several commits under invalid_email_address, about 20 commits labeled Initial). I was trying to use hg-git and kept goofing stuff up.
Release files for pyext 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| pyext-0.7.tar.gz | 7.8 kB | Details | |
| pyext-0.6.tar.gz | 7.3 kB | Details |
Release files / pyext-0.7.tar.gz
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pyext-0.7.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e618a635be4e8c4a84b443cc27186601ad052efe35f01839815f2a2cf3947cdf
|
|
BLAKE2b-256 checksum How to use checksums |
b0be9b6005ac644aaef022527ce49617263379e49dbdbd433d1d3dd66d71f570
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyext-0.6.tar.gz
| Download URL | pyext-0.6.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c406cf71b991e1fc5a7f963d3a289525bce5e7ad1c43b697d9f5223185fcaef
|
|
BLAKE2b-256 checksum How to use checksums |
9c8e75e816409b51bce77ec0b99073b462f028509c65a26bfdc87ed88f712dc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |