<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/pythonnet/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/pythonnet/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 26 Sep 2013 18:15:27 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pythonnet/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Add better support for conversion to native Python types in public API</title><link>https://sourceforge.net/p/pythonnet/patches/25/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The attached patch improves support for converting managed values (reference or boxed values) to the corresponding Python types.&lt;/p&gt;
&lt;p&gt;This support had previously been partly implemented in Converter.ToPython() but it was not exposed in the public interface of PyObject (if I'm not mistaken), which made it hard for me to call Python functions from managed code in an embedding scenario. My patch makes the following changes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;adds PyObject.FromManagedValue() which tries to convert a given managed object to an appropriate builtin Python type&lt;/li&gt;
&lt;li&gt;adds Converter.ToPythonValue() which does the same thing as Converter.ToPython() except that it converts managed arrays to Python lists where appropriate&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Being not very familiar with the Python for .NET codebase, I didn't have the heart to build my array support directly into Converter.ToPython(). However I'd be happy if the array handling code could go to Converter.ToPython() in order to avoid having two similarly-named functions (.ToPython() and .ToPythonValue()) which differ in a non-obvious way, so if that is considered appropriate, please move it there.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Moritz Beutel</dc:creator><pubDate>Thu, 26 Sep 2013 18:15:27 -0000</pubDate><guid>https://sourceforge.netc3d944a324cafe03e2a6baaeec74ef0083d46715</guid></item><item><title>Backslash In TestDottedName SetUp Fails on OSX</title><link>https://sourceforge.net/p/pythonnet/patches/24/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The patch attached to this uses System.IO.Path.DirectorySeparatorChar to build the path correctly to the PyImportTest module.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Curtis Schlak</dc:creator><pubDate>Sat, 14 Jan 2012 21:03:19 -0000</pubDate><guid>https://sourceforge.netc8ac7a3b67f0caf26ee1726c0e62bd80eec0a448</guid></item><item><title>Mono (2.8.1) on Ubuntu 10.10 throws on Type.GetMethod</title><link>https://sourceforge.net/p/pythonnet/patches/23/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Mono (2.8.1) on Ubuntu 10.10 throws on Type.GetMethod("Invoke")&lt;br /&gt;
when the method doesn't exist. This was the case when the ClassManager tried to create a DelegateObject in response to&lt;br /&gt;
type.IsSubclassOf(dtype) where dtype = typeof(System.Delegate)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barton Cline</dc:creator><pubDate>Fri, 04 Mar 2011 09:51:16 -0000</pubDate><guid>https://sourceforge.net7bc22a18c90c607899d476ed92badce165df2f57</guid></item><item><title>pyansistring.cs added it to the Python.Runtime namespace</title><link>https://sourceforge.net/p/pythonnet/patches/22/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;* pystring.cs  claims:&lt;br /&gt;
/// &amp;lt;summary&amp;gt;&lt;br /&gt;
/// Represents a Python (ansi) string object. See the documentation at&lt;br /&gt;
/// &lt;a href="http://www.python.org/doc/current/api/stringObjects.html" rel="nofollow"&gt;http://www.python.org/doc/current/api/stringObjects.html&lt;/a&gt; for details.&lt;br /&gt;
/// &amp;lt;/summary&amp;gt;&lt;br /&gt;
So why in the world does the string constructor call PyUnicode_FromUnicode()???&lt;/p&gt;
&lt;p&gt;* User contribution pyansistring.cs didn't build. I added it to the namespace with the using System reference.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barton Cline</dc:creator><pubDate>Sun, 30 Jan 2011 09:42:31 -0000</pubDate><guid>https://sourceforge.net2d793cfda19f6f9d308febe380bbd72cc11cd431</guid></item><item><title>Incref the ConstructorBinding before return</title><link>https://sourceforge.net/p/pythonnet/patches/21/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Re-enable the Incref() call on ConstructorBinding.tp_descr_get()&lt;br /&gt;
For now, it seems, the sole reason for the Descriptor __get__ is to return AN INCREF()ed reference to the wrapped instance.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barton Cline</dc:creator><pubDate>Mon, 24 Jan 2011 09:01:10 -0000</pubDate><guid>https://sourceforge.net12bcb86d6374a462a7c1334ede6e5d43c24030a1</guid></item><item><title>Select Type Constructs using Type.Overloads[]</title><link>https://sourceforge.net/p/pythonnet/patches/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Implements the .Overloads[PyOrCsType, ...] syntax on class objects as described in the docs.  __overloads__[...] is a valid alias in the sort term, but deprecation is planned for the near future.  It works very much like MethodObject __overloads__ (which was also aliased as "Overloads" in an earlier update). These new names support the current state of IronPython.&lt;/p&gt;
&lt;p&gt;When used like a property .Overloads returns a __doc__-like string from its __repr__ method.&lt;br /&gt;
GetItem() returns a bound constructor that also has a pretty cool __repr__ method.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barton Cline</dc:creator><pubDate>Mon, 10 Jan 2011 06:03:48 -0000</pubDate><guid>https://sourceforge.net1512dee863424cec9ce67da5b1526dcfc74acd4d</guid></item><item><title>Select Type Constructs using Type.Overloads[]</title><link>https://sourceforge.net/p/pythonnet/patches/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Implements the .Overloads[PyOrCsType, ...] syntax on class objects as described in the docs.  __overloads__[...] is a valid alias in the sort term, but deprecation is planned for the near future.  It works very much like MethodObject __overloads__ (which was also aliased as "Overloads" in an earlier update). These new names support the current state of IronPython.&lt;/p&gt;
&lt;p&gt;When used like a property .Overloads returns a __doc__-like string from its __repr__ method.&lt;br /&gt;
GetItem() returns a bound constructor that also has a pretty cool __repr__ method.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barton Cline</dc:creator><pubDate>Mon, 10 Jan 2011 05:38:36 -0000</pubDate><guid>https://sourceforge.netffd4889eb576d482f78cb832bd3f5186ae9a0de3</guid></item><item><title>unittest test_ClrAddReference update</title><link>https://sourceforge.net/p/pythonnet/patches/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;test_module.test_ClrAddReference() now expects an assembly instead of a python module (like my branch does).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barton Cline</dc:creator><pubDate>Mon, 03 Jan 2011 05:02:03 -0000</pubDate><guid>https://sourceforge.net08b4445f884568f2ed5cfa90f5c68145bcdf2784</guid></item><item><title>unittest test_ClrAddReference update</title><link>https://sourceforge.net/p/pythonnet/patches/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;test_module.test_ClrAddReference() now expects an assembly instead of a python module (like my branch does).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barton Cline</dc:creator><pubDate>Mon, 03 Jan 2011 04:25:11 -0000</pubDate><guid>https://sourceforge.net45ea1a9cf699c10de29ce0291d59ccf03bfa1731</guid></item><item><title>Convert.ToPrimitive() uses Marshal.Copy() for unicode chrs</title><link>https://sourceforge.net/p/pythonnet/patches/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In Convert.ToPrimitive(), Marshal the newly created unicode buffer pointer as a character array because the cast&lt;br /&gt;
result = (char)Marshal.ReadInt16(op);&lt;br /&gt;
throws an OverflowException on negative numbers.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Barton Cline</dc:creator><pubDate>Mon, 03 Jan 2011 02:45:20 -0000</pubDate><guid>https://sourceforge.netd8aa0b3955f8d2ec7003a37708e83a71c60959cf</guid></item></channel></rss>