PyDotnet 1.4.2 (Python 3.9)
·
49 commits
to main
since this release
What's new
- Python 3.9 support
This is a release for Python 3.9 (amd64).
Support Python 2.7 and 3.6 exists in earlier release 1.3.1. There is no significant code changes between 1.4.2 and 1.3.1 other than Python 3.9 is now supported.
There is no Linux version. PyDotnet is available exclusively on Windows.
Installation
pip install dotnet
Usage
example 1.
import dotnet.seamless
hello = Tuple2[String, Int32]('Hello', 123)
print('{} - {}'format(hello.Item1, hello.Item2))
output 1.
Hello - 123
example 2.
from System.Collections.Generic import List
stuff = List[Dictionary[String, Object]]([
{'name':'Bob', 'age':40},
{'name':'Marry', 'age':28}
])
for entry in stuff:
print('%(name)s is %(age)s years old' % entry)
output 2.
Bob is 40 years old
Marry is 28 years old