Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can i use all standard Python libraries with IronPython or

... does it requires some sort of wrappers?

I was under expression that IronPython is a .NET implementation of the Python which somehow magically enables applications built with IronPython to use standard Python libraries (which I believe either a raw .py sources or .py source packaged into the eggs), but when I was reading http://www.doughellmann.com/PyMOTW/hashlib/index.html at the bottom of the page I spotted: "A wrapper for hashlib that works with IronPython." which immediately put me on guard...

like image 740
Andrew Avatar asked Jul 28 '11 07:07

Andrew


People also ask

What is IPython library?

iPython Python Library has an architecture that facilitates parallel and distributed computing. With it, you can develop, execute, debug, and monitor parallel applications. Python Library – iPython 16.

What is the Python library like?

Python’s standard library is very extensive, offering a wide range of facilities as indicated by the long table of contents listed below.

What is Python 3 standard library?

3. Python Standard Library. The Python Standard Library is a collection of exact syntax, token, and semantics of Python. It comes bundled with core Python distribution. We mentioned this when we began with an introduction. It is written in C, and handles functionality like I/O and other core modules.

What is the difference between Python language reference and library reference?

While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It also describes some of the optional components that are commonly included in Python distributions.


2 Answers

It depends:

  • If a library module is implemented in pure python, it is likely to work.
  • A library module that is implemented in C will not work. The ironclad project aims to allow IronPython to import and use compiled Python C extensions.
like image 113
codeape Avatar answered Nov 04 '22 13:11

codeape


No - you can't use all standard libraries. And even all existing IronPython standard libraries are not the same as in python - all of them are new implementation - for example you can use datetime python module but it doesn't have strptime implementation as in pure python and so on.

You can read more here and Does IronPython implement python standard library?

In general IronPython 2.6 is an implementation of Python 2.6 but not all standard python modules were migrated into the IronPython.

Also you can read the following IronPython vs. Python .NET

like image 36
Artsiom Rudzenka Avatar answered Nov 04 '22 12:11

Artsiom Rudzenka