From 8d7b66df027a6de61423261d7c1816d05c889c88 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Sun, 19 Feb 2017 14:41:23 -0600 Subject: [PATCH 01/10] Update readme.html --- readme.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.html b/readme.html index 91cd98c..f46f856 100644 --- a/readme.html +++ b/readme.html @@ -133,14 +133,14 @@

Python for .NET

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 CPython - engine with the .NET or Mono runtime. This approach allows you to use use + engine with the .NET or Mono runtime. This approach allows you to 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.7, 3.3, 3.4, and 3.5. +

Python for .NET is currently compatible and tested with Python releases 2.7, 3.3, 3.4, 3.5, and 3.6. Current releases are available at the Python for .NET website . To subscribe to the Python for .NET mailing list or read the From 70fc29eb5b8584e822676127f695023b57639aa2 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Sun, 19 Feb 2017 14:42:54 -0600 Subject: [PATCH 02/10] Update index.html --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a731010..b82f427 100644 --- a/index.html +++ b/index.html @@ -114,13 +114,13 @@

Python for .NET

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 CPython - engine with the .NET or Mono runtime. This approach allows you to use use + engine with the .NET or Mono runtime. This approach allows you to use CLR services and continue to use existing Python code and C-based 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.7, 3.3, 3.4, and 3.5. +

Python for .NET is currently compatible with Python releases 2.7, 3.3, 3.4, 3.5 and 3.6. To subscribe to the Python for .NET mailing list or read the online archives of the list, see the From 42a5bdb75e7d3ff9975291a31ccac536a41cfb38 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Sun, 19 Feb 2017 14:49:38 -0600 Subject: [PATCH 03/10] Update readme.html --- readme.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.html b/readme.html index f46f856..0419fc4 100644 --- a/readme.html +++ b/readme.html @@ -161,8 +161,8 @@

Installation

Once you start up Python or IPython interpreter in this directory or append this directory to sys.path, then after import clr statement .NET assemblies can be used. - You can also run npython.exe to check how python can be embedded - in console .NET application. + You can also run nPython.exe (Mono nPython.exe on *nix) + to check how python can be embedded in console .NET application. 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 7e1e4897d3c4bf58568bb2b7e47e357e40f1a1e3 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Tue, 21 Feb 2017 20:56:09 -0600 Subject: [PATCH 04/10] Update readme.html --- readme.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.html b/readme.html index 0419fc4..75002e4 100644 --- a/readme.html +++ b/readme.html @@ -161,7 +161,7 @@

Installation

Once you start up Python or IPython interpreter in this directory or append this directory to sys.path, then after import clr statement .NET assemblies can be used. - You can also run nPython.exe (Mono nPython.exe on *nix) + You can also run nPython.exe (mono nPython.exe on *nix) to check how python can be embedded in console .NET application. 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 @@ -339,7 +339,7 @@

Using Methods

    from System import Environment
 
-    print Environment.GetFolderPath.__doc__
+    print(Environment.GetFolderPath.__doc__)
 
     help(Environment)
 
@@ -375,7 +375,7 @@

Delegates And Events

callable when it is called:

    def my_handler(source, args):
-        print 'my_handler called!'
+        print('my_handler called!')
 
     # instantiate a delegate
     d = AssemblyLoadEventHandler(my_handler)
@@ -401,7 +401,7 @@ 

Delegates And Events

way very similar to the C# idiom:

    def handler(source, args):
-        print 'my_handler called!'
+        print('my_handler called!')
 
     # register event handler
     object.SomeEvent += handler
@@ -422,8 +422,8 @@ 

Exception Handling

try: raise NullReferenceException("aiieee!") except NullReferenceException, e: - print e.Message - print e.Source + print(e.Message) + print(e.Source)

From 5f678343f09ce0a7378d929b44cab05c1404f6df Mon Sep 17 00:00:00 2001 From: denfromufa Date: Tue, 21 Feb 2017 21:56:30 -0600 Subject: [PATCH 05/10] Update readme.html --- readme.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/readme.html b/readme.html index 75002e4..9c8f219 100644 --- a/readme.html +++ b/readme.html @@ -115,7 +115,7 @@

Python for .NET

  • Exception Handling
  • Using Arrays
  • Using Collections
  • -
  • COM Components
  • +
  • COM Componefnts
  • Type Conversion
  • Embedding Python
  • License
  • @@ -577,12 +577,15 @@

    Embedding Python

    The Python runtime assembly defines a number of public classes that provide a subset of the functionality provided by the Python - C API. + C-API.

    -

    These classes include PyObject, PyList, PyDict, etc. The source - and the unit tests are currently the only API documentation.. The - rhythym is very similar to using Python C++ wrapper solutions such - as CXX. +

    These classes include PyObject, PyList, PyDict, PyTuple, etc. + You can review the nPython.exe source code in in "Console.csproj" project + for example of embedding CPython in console .NET app. + Please refer to this README GitHub page for new simplified embedding API: + + https://github.com/pythonnet/pythonnet/blob/master/README.md +

    At a very high level, to embed Python in your application you will need to: @@ -607,7 +610,7 @@

    Embedding Python

    free-threaded and uses a global interpreter lock to allow multi-threaded applications to interact safely with the Python interpreter. Much more information about this is available in the - Python C API documentation on the www.python.org Website. + Python C-API documentation on the www.python.org Website.

    When embedding Python in a managed application, you have to manage the GIL in just the same way you would when embedding From 2bac7a173b926ba4b3dac2883fc97a072ab3fe08 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Tue, 21 Feb 2017 21:59:37 -0600 Subject: [PATCH 06/10] Update readme.html --- readme.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.html b/readme.html index 9c8f219..b3ffa10 100644 --- a/readme.html +++ b/readme.html @@ -584,7 +584,8 @@

    Embedding Python

    for example of embedding CPython in console .NET app. Please refer to this README GitHub page for new simplified embedding API: - https://github.com/pythonnet/pythonnet/blob/master/README.md + README.md +

    At a very high level, to embed Python in your application you From d4c0dcd1594f334ead875dfa17c52760c8e1876b Mon Sep 17 00:00:00 2001 From: denfromufa Date: Tue, 21 Feb 2017 22:01:40 -0600 Subject: [PATCH 07/10] Update readme.html --- readme.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/readme.html b/readme.html index b3ffa10..3614b1c 100644 --- a/readme.html +++ b/readme.html @@ -583,11 +583,10 @@

    Embedding Python

    You can review the nPython.exe source code in in "Console.csproj" project for example of embedding CPython in console .NET app. Please refer to this README GitHub page for new simplified embedding API: - +

    + README.md - -

    At a very high level, to embed Python in your application you will need to:

    From d500de8a35baa4f60a5b42940517115c0ba8c39f Mon Sep 17 00:00:00 2001 From: denfromufa Date: Tue, 21 Feb 2017 22:07:00 -0600 Subject: [PATCH 08/10] Update readme.html --- readme.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.html b/readme.html index 3614b1c..b161509 100644 --- a/readme.html +++ b/readme.html @@ -584,9 +584,9 @@

    Embedding Python

    for example of embedding CPython in console .NET app. Please refer to this README GitHub page for new simplified embedding API:

    - +

    README.md - +

    At a very high level, to embed Python in your application you will need to:

    From 4596a854465c621866f6af5b1ed083366ecd81d9 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Tue, 21 Feb 2017 22:17:13 -0600 Subject: [PATCH 09/10] Update readme.html --- readme.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.html b/readme.html index b161509..564b794 100644 --- a/readme.html +++ b/readme.html @@ -115,7 +115,7 @@

    Python for .NET

  • Exception Handling
  • Using Arrays
  • Using Collections
  • -
  • COM Componefnts
  • +
  • COM Components
  • Type Conversion
  • Embedding Python
  • License
  • From 3a88dcc952802c91e2137f3ab03a107899489053 Mon Sep 17 00:00:00 2001 From: denfromufa Date: Tue, 21 Feb 2017 22:19:47 -0600 Subject: [PATCH 10/10] Update readme.html --- readme.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.html b/readme.html index 564b794..b9ffe54 100644 --- a/readme.html +++ b/readme.html @@ -421,7 +421,7 @@

    Exception Handling

    try: raise NullReferenceException("aiieee!") - except NullReferenceException, e: + except NullReferenceException as e: print(e.Message) print(e.Source)
    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy