<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Python 3.7.7 will be in the next release of Cinema 4D]]></title><description><![CDATA[<p dir="auto">For those who didn't see the announcement this morning, the next release of Cinema 4D is moving to Python 3.7.7<br />
<a href="https://www.maxon.net/en-us/news/maxon-blog/article/celebrating-10-years-of-python-in-cinema-4d-with-a-major-milestone/" target="_blank" rel="noopener noreferrer nofollow ugc">CELEBRATING 10 YEARS OF PYTHON IN CINEMA 4D WITH A MAJOR MILESTONE</a></p>
<p dir="auto"><img src="https://developers.maxon.net/forum/assets/uploads/files/1595347615324-3d-motion-show-siggraph-2020-day-1-23-3-screenshot.png" alt="3D Motion Show - Siggraph 2020 - Day 1 23-3 screenshot.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://developers.maxon.net/forum/topic/12759/python-3-7-7-will-be-in-the-next-release-of-cinema-4d</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 09:13:40 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/12759.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Jul 2020 15:58:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Python 3.7.7 will be in the next release of Cinema 4D on Tue, 21 Jul 2020 19:12:56 GMT]]></title><description><![CDATA[<p dir="auto">I have been looking at my plugins and my biggest question so far is how to handle <code>urllib2</code> in a way that will work with both Python 2.7 and 3.7.7. Everything else just seems to be adding parentheses to <code>print</code> functions.</p>
<p dir="auto">I found this Cheat Sheet: <a href="https://python-future.org/compatible_idioms.html" target="_blank" rel="noopener noreferrer nofollow ugc">Writing Python 2-3 compatible code</a> that suggests:</p>
<pre><code># Python 2 and 3: easiest option
from future.standard_library import install_aliases
install_aliases()

from urllib.parse import urlparse, urlencode
from urllib.request import urlopen, Request
from urllib.error import HTTPError
</code></pre>
<p dir="auto">However, trying that in Cinema 4D threw this error:</p>
<pre><code>ImportError: No module named future.standard_library
</code></pre>
<p dir="auto">Fortunately, there are some alternatives to try, like</p>
<pre><code># Python 2 and 3: alternative 4
try:
    from urllib.parse import urlparse, urlencode
    from urllib.request import urlopen, Request
    from urllib.error import HTTPError
except ImportError:
    from urlparse import urlparse
    from urllib import urlencode
    from urllib2 import urlopen, Request, HTTPError
</code></pre>
<p dir="auto">From that article: "<code>urllib</code> is the hardest module to use from Python 2/3 compatible code."</p>
]]></description><link>http://developers.maxon.net/forum/post/63761</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/63761</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 21 Jul 2020 19:12:56 GMT</pubDate></item><item><title><![CDATA[Reply to Python 3.7.7 will be in the next release of Cinema 4D on Tue, 21 Jul 2020 18:23:43 GMT]]></title><description><![CDATA[<p dir="auto">I think users are having S22 now and will be R22 with py2.7. But showed S22.9XX build. So we will get R23 with python 3.7x but need 3.8(3.9) in the end of 2021</p>
]]></description><link>http://developers.maxon.net/forum/post/63760</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/63760</guid><dc:creator><![CDATA[iluxa7k]]></dc:creator><pubDate>Tue, 21 Jul 2020 18:23:43 GMT</pubDate></item><item><title><![CDATA[Reply to Python 3.7.7 will be in the next release of Cinema 4D on Tue, 21 Jul 2020 17:16:30 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://developers.maxon.net/forum/assets/uploads/files/1595351787865-60e6de04-49c8-4a16-b486-1c00d75146e1-image.png" alt="60e6de04-49c8-4a16-b486-1c00d75146e1-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://developers.maxon.net/forum/post/63758</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/63758</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 21 Jul 2020 17:16:30 GMT</pubDate></item><item><title><![CDATA[Reply to Python 3.7.7 will be in the next release of Cinema 4D on Tue, 21 Jul 2020 17:24:06 GMT]]></title><description><![CDATA[<p dir="auto">"If developers have predominately used Cinema 4D's API the changes should be minor, and most changes can be made in a backwards-compatible way so there's no need to maintain a separate code base to continue supporting older Cinema 4D releases. In fact, the 2to3 tool included in every Python distribution makes it easy to identify compatibility issues and can directly patch your code."</p>
<p dir="auto">Will there be an example of how to do this in the SDK examples on GitHub?</p>
]]></description><link>http://developers.maxon.net/forum/post/63757</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/63757</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 21 Jul 2020 17:24:06 GMT</pubDate></item><item><title><![CDATA[Reply to Python 3.7.7 will be in the next release of Cinema 4D on Tue, 21 Jul 2020 16:23:53 GMT]]></title><description><![CDATA[<p dir="auto">Finally<br />
Will continue to port taichi to c4d</p>
]]></description><link>http://developers.maxon.net/forum/post/63756</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/63756</guid><dc:creator><![CDATA[iluxa7k]]></dc:creator><pubDate>Tue, 21 Jul 2020 16:23:53 GMT</pubDate></item></channel></rss>