<?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[Quick Question: what Python version for Pythonscript does everyone use?]]></title><description><![CDATA[<p dir="auto">I’m writing a Pythonscript to share with the community, and I need to know what version to code it in.</p>
<p dir="auto">If I understand it correctly, the Pythonscript plugin can provide v2.7 support, but if you have a newer version installed on your system, it can use that. Is this right?</p>
<p dir="auto">If so, should I be coding for v2.7 or for a more modern version?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26972/quick-question-what-python-version-for-pythonscript-does-everyone-use</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 11:09:48 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26972.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Jun 2025 20:13:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Quick Question: what Python version for Pythonscript does everyone use? on Sun, 29 Jun 2025 08:58:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9968">@pbarney</a></p>
<p dir="auto">I only use the pre-release version, PS3,<br />
as I only work with utf8 encoding, which I think everyone should do.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/102308</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102308</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sun, 29 Jun 2025 08:58:57 GMT</pubDate></item><item><title><![CDATA[Reply to Quick Question: what Python version for Pythonscript does everyone use? on Sat, 28 Jun 2025 20:35:58 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">If I understand it correctly, the Pythonscript plugin can provide v2.7 support, but if you have a newer version installed on your system, it can use that. Is this right?</p>
</blockquote>
<p dir="auto">No, you have conflated two ideas for the plugin: plugin’s Python version and plugin’s library location.</p>
<ul>
<li>
<p dir="auto"><strong>Version</strong>: The version of Python is 100% dependent on the plugin: you can either install</p>
<ul>
<li>PythonScript plugin <a href="https://github.com/bruderstein/PythonScript/releases/tag/v2.1.0" rel="nofollow ugc">v2.1</a> from the PluginsAdmin menu or from its <a href="https://github.com/bruderstein/PythonScript/releases/tag/v2.1.0" rel="nofollow ugc">release page</a>, and that will come with Python 2.7.</li>
<li>An alpha version of the PythonScript 3 plugin: pick the most recent from the <a href="https://github.com/bruderstein/PythonScript/releases" rel="nofollow ugc">releases page</a>, which is currently <a href="https://github.com/bruderstein/PythonScript/releases/tag/v3.0.22" rel="nofollow ugc">v3.0.22</a>, which comes with Python 3.12.9.  (Still in Alpha because it only supports UTF-8-encoded files in Notepad++; if you are using ANSI character-set files, you will not want to pick PS3)</li>
</ul>
</li>
<li>
<p dir="auto"><strong>Library location</strong>: In <strong>Plugins &gt; PythonScript &gt; Configuration…</strong>, there is a checkbox for <code>Prefer installed python libraries</code>: if you have a standalone Python 2.7 (for plugin version 2.1) or 3.12 (for plugin 3.0.22-alpha) installed, then you can tell the plugin to look for python libraries in the installed location before looking in the plugin’s library-directory – this makes it easier to install  a module with pip, and have it available to one of the scripts for PythonScript (though it blurs the lines between the separation of concerns: things for PythonScript are primarily for <em>automating</em> Notepad++ itself; if you just want to write a normal Python program using all your installed python libraries, don’t run it with the PythonScript plugin).</p>
</li>
</ul>
<blockquote>
<p dir="auto">If so, should I be coding for v2.7 or for a more modern version?</p>
</blockquote>
<p dir="auto">If you are aiming the script at newbies – people who just want Notepad++ to do feature XYZ that isn’t in the main app – then stick with 2.7, because asking them to install the alpha plugin is asking for trouble.  If you are aiming the script at power users or people who already know/use python, then you can require the alpha plugin which allows modern Python 3.12 syntax.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/102306</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/102306</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 28 Jun 2025 20:35:58 GMT</pubDate></item></channel></rss>