From 30eccd83d4f880d837198c66fa41c0e5f877ee68 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Thu, 30 Jun 2016 07:03:27 -0500 Subject: [PATCH 1/9] Update readme.html --- readme.html | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/readme.html b/readme.html index f1c49de..2cbf491 100644 --- a/readme.html +++ b/readme.html @@ -124,23 +124,22 @@

Python for .NET

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime - (CLR) and provides a powerful application scripting tool for .NET + (CLR) and Mono and provides a powerful application scripting tool for .NET developers. Using this package you can script .NET applications or build entire applications in Python, using .NET services and - components written in any language that targets the CLR (Managed - C++, C#, VB, JScript). + components written in any language that targets the CLR (C#, VB.NET, F#, C++/CLI).

Note that this package does not implement Python as a first-class CLR language - it does not produce managed code (IL) - from Python code. Rather, it is an integration of the C Python - engine with the .NET runtime. This approach allows you to use use - CLR services and continue to use existing Python code and C-based + from Python code. Rather, it is an integration of the CPython + engine with the .NET or Mono runtime. This approach allows you to use use + CLR services and continue to use existing Python code and C-API extensions while maintaining native execution speeds for Python code. If you are interested in a pure managed-code implementation of the Python language, you should check out the IronPython project, which is in active development.

-

Python for .NET is currently compatible with Python releases 2.3 +

Python for .NET is currently compatible with Python releases 2.6 and greater. Current releases are available at the Python for .NET website . To subscribe to the Python for .NET mailing list or read the @@ -164,17 +163,15 @@

Installation

to have installed Python on your machine before using the source release.

-

Running on Linux/Mono: preliminary testing +

Running on Linux/Mono: Unit testing shows that PythonNet will run under Mono, - though the Mono runtime is not yet complete so there still may be - problems. The Python for .NET integration layer is 100% managed - code, so there should be no long-term issues under Mono - it - should work better and better as the Mono platform matures. + though the Mono runtime is less supported so there still may be + problems.

Note that if you are running under Mono on a *nix system, you will need to have a compatible version of Python installed. You will also need to create a symbolic link to the copy of - libpython2.x.so (in your existing Python installation) in the + libpython[v].x.so (in your existing Python installation) in the PythonNet directory. This is needed to ensure that the mono interop dll loader will find it by name. For example:

@@ -186,7 +183,7 @@

Getting Started

"work just the way you'd expect in Python", except for cases that are .NET specific (in which case the goal is to work "just the way you'd expect in C#"). In addition, with the IronPython project - gaining traction, it is my goal that code written for IronPython + having established a community, it is my goal that code written for IronPython run without modification under Python for .NET.

If you already know Python, you can probably finish this readme From e89b5a7740c7891120379e38465b9571cf9587d9 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Mon, 12 Sep 2016 21:38:09 -0500 Subject: [PATCH 2/9] Update readme.html mono info about symbolic link and specific python version is outdated --- readme.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/readme.html b/readme.html index 2cbf491..e4af3f1 100644 --- a/readme.html +++ b/readme.html @@ -139,7 +139,7 @@

Python for .NET

of the Python language, you should check out the IronPython project, which is in active development.

-

Python for .NET is currently compatible with Python releases 2.6 +

Python for .NET is currently compatible with Python releases 2.7 and greater. Current releases are available at the Python for .NET website . To subscribe to the Python for .NET mailing list or read the @@ -168,15 +168,6 @@

Installation

though the Mono runtime is less supported so there still may be problems.

-

Note that if you are running under Mono on a *nix system, you - will need to have a compatible version of Python installed. You - will also need to create a symbolic link to the copy of - libpython[v].x.so (in your existing Python installation) in the - PythonNet directory. This is needed to ensure that the mono - interop dll loader will find it by name. For example: -

-
    ln -s /usr/lib/libpython2.4.so ./python24.so
-

Getting Started

A key goal for this project has been that Python for .NET should From 47b3e9caf9e5c492ad8cafbbce582843376c19f2 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Mon, 12 Sep 2016 21:51:45 -0500 Subject: [PATCH 3/9] Update readme.html --- readme.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/readme.html b/readme.html index e4af3f1..1ab96b9 100644 --- a/readme.html +++ b/readme.html @@ -122,9 +122,10 @@

Python for .NET

-

Python for .NET is a package that gives Python programmers - nearly seamless integration with the .NET Common Language Runtime - (CLR) and Mono and provides a powerful application scripting tool for .NET +

Python for .NET (pythonnet) is a package that gives Python programmers + nearly seamless integration with the .NET 4.0+ Common Language Runtime + (CLR) on Windows and Mono runtime on Linux and OSX. + Python for .NET provides a powerful application scripting tool for .NET developers. Using this package you can script .NET applications or build entire applications in Python, using .NET services and components written in any language that targets the CLR (C#, VB.NET, F#, C++/CLI). @@ -139,8 +140,8 @@

Python for .NET

of the Python language, you should check out the IronPython project, which is in active development.

-

Python for .NET is currently compatible with Python releases 2.7 - and greater. Current releases are available at the +

Python for .NET is currently compatible with Python releases 2.7, 3.3, 3.4, and 3.5. + Current releases are available at the Python for .NET website . To subscribe to the Python for .NET mailing list or read the online archives of the list, see the @@ -148,17 +149,18 @@

Python for .NET

Installation

Python for .NET is available as a source release and as a - Windows installer for various versions of Python and the common - language runtime from the - Python for .NET website . On Windows platforms, you can + binary wheel distribution for all supported versions of Python + and the common language runtime from the + Python for .NET website . On Windows platforms, you can choose to install .NET-awareness into an existing Python installation as well as install Python for .NET as a standalone package.

The source release is a self-contained "private" assembly. Just - unzip the package wherever you want it, cd to that directory and - run python.exe to start using it. Note that the source release + unzip the package wherever you want it, cd to that directory, + build the solution python setup.py build_ext --inplace, + and run npython.exe to start using it. Note that the source release does not include a copy of the CPython runtime, so you will need to have installed Python on your machine before using the source release. From b2f686f252bf317ad9855e5070f0be0a476f58b5 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Mon, 12 Sep 2016 22:05:11 -0500 Subject: [PATCH 4/9] Update readme.html --- readme.html | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/readme.html b/readme.html index 1ab96b9..b08c449 100644 --- a/readme.html +++ b/readme.html @@ -148,13 +148,11 @@

Python for .NET

mailing list information page.

Installation

-

Python for .NET is available as a source release and as a - binary wheel distribution for all supported versions of Python - and the common language runtime from the - Python for .NET website . On Windows platforms, you can - choose to install .NET-awareness into an existing Python - installation as well as install Python for .NET as a standalone - package. +

Python for .NET is available as a source release on + GitHub + and as a binary wheel distribution for all supported versions of Python + and the common language runtime from the + Python Package Index .

The source release is a self-contained "private" assembly. Just @@ -210,7 +208,7 @@

Importing Modules

Note that earlier releases of Python for .NET required you to import modules through a special top-level package named CLR. This is no longer required if you are starting python from the - managed python.exe from this distribution.
+ managed npython.exe from this distribution.
CLR has been deprecated in favor of the more pythonic clr, though the syntax is still supported for backward compatibility. @@ -266,8 +264,7 @@

Using Classes

Using Generics

-

When running under versions of the .NET runtime greater than - 2.0, you can use generic types. A generic type must be bound to +

Pythonnet also supports generic types. A generic type must be bound to create a concrete type before it can be instantiated. Generic types support the subscript syntax to create bound types:

From 38a1d66f649fc47ce57d6c9221a2eaf81b4c30b6 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Mon, 12 Sep 2016 22:14:20 -0500 Subject: [PATCH 5/9] Update index.html --- index.html | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 0170f55..10fc77f 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@