Python Archives - TechGoing https://www.techgoing.com/tag/python/ Technology News and Reviews Fri, 06 Oct 2023 19:40:19 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 Python 3.12 is now available, overall performance is up 5% https://www.techgoing.com/python-3-12-is-now-available-overall-performance-is-up-5/ Fri, 06 Oct 2023 19:40:18 +0000 https://www.techgoing.com/?p=139659 Python 3.12 official version has been launched, improving many existing features, including f-string parsing improvements, Buffer Protocol (Buffer Protocol), etc., but also improved the error message, so that developers can be more clear about the reasons for the error, in addition, the development team has also carried out a series of performance improvements, claiming that […]

The post Python 3.12 is now available, overall performance is up 5% appeared first on TechGoing.

]]>
Python 3.12 official version has been launched, improving many existing features, including f-string parsing improvements, Buffer Protocol (Buffer Protocol), etc., but also improved the error message, so that developers can be more clear about the reasons for the error, in addition, the development team has also carried out a series of performance improvements, claiming that In addition, the development team has made a number of performance improvements, claiming that “the overall performance of this release has been improved by about 5%.”

▲ Source Python website

In Python 3.12, f-string parsing is said to be more flexible, and many previously disallowed operations are further relaxed in this version.

In 3.11, f-string expressions that reused the same quotes as an external f-string would result in a syntax error, which is now allowed in 3.12; in the previous version, f-string expressions themselves could span multiple lines, but still had to be defined on a single line, whereas in 3.12 developers can use multi-line expressions. Previously, the f-string could not contain any backslash symbols “\”, which are now allowed in the new version, so the f-string can now also contain Escape Sequences.

Python developers in the new version can more easily use Buffer Protocol (Buffer Protocol), which is a lightweight and efficient structured data storage format, when dealing with a large number of data files, the use of related protocols, can improve performance and save storage space.

Python 3.12 introduces a new approach to address the problem of the Buffer Protocol, which has been used primarily in Python’s C API and has not been friendly to Python-only developers, allowing developers to manipulate the functionality more directly in Python, rather than through C or other methods.

Python 3.12 also improves error messages, making it easier to identify the cause of an error and to fix it. When a developer incorrectly uses the import syntax, the correct usage is suggested, and when an instance property is used in a category method that is not referenced correctly, the error message now points to the correct property name in the project itself.

Python 3.12 also features a number of performance improvements. Unicode has been streamlined in this release to make it lighter and less space-intensive, and Python uses the BOLT binary tool to improve performance in scenarios by 1 to 5% when building environments.

The post Python 3.12 is now available, overall performance is up 5% appeared first on TechGoing.

]]>
Developers launch EdgeGPT, use Python to call Bing Chat for free https://www.techgoing.com/developers-launch-edgegpt-use-python-to-call-bing-chat-for-free/ Wed, 15 Mar 2023 04:12:52 +0000 https://www.techgoing.com/?p=79586 Users who want to use Bing Chat can only access it through Microsoft’s official desktop and mobile apps. But developer acheong08 has reverse-engineered a way to rely on Python to give users access to Bing Chat in a terminal environment. The project, called EdgeGPT, is now hosted on GitHub, it is built in Python and […]

The post Developers launch EdgeGPT, use Python to call Bing Chat for free appeared first on TechGoing.

]]>
Users who want to use Bing Chat can only access it through Microsoft’s official desktop and mobile apps. But developer acheong08 has reverse-engineered a way to rely on Python to give users access to Bing Chat in a terminal environment.

The project, called EdgeGPT, is now hosted on GitHub, it is built in Python and can access Bing Chat on Windows, Mac, and Linux. The project still requires the user to enter a Microsoft account to access Bing Chat, but it needs to be invoked through cookies.

The post Developers launch EdgeGPT, use Python to call Bing Chat for free appeared first on TechGoing.

]]>
Python 3.12 Alpha 6 released: improved error message https://www.techgoing.com/python-3-12-alpha-6-released-improved-error-message/ Thu, 09 Mar 2023 14:27:50 +0000 https://www.techgoing.com/?p=77874 Python 3.12 Alpha 6 was released on Tuesday, March 9. Python 3.11 was released a few months ago and has greatly improved performance, but the development team hasn’t stopped moving forward and is moving quickly with the next update to 3.12. The changelog that Python 3.12 mainly improves error messages, supports the Linux perf parser, […]

The post Python 3.12 Alpha 6 released: improved error message appeared first on TechGoing.

]]>
Python 3.12 Alpha 6 was released on Tuesday, March 9. Python 3.11 was released a few months ago and has greatly improved performance, but the development team hasn’t stopped moving forward and is moving quickly with the next update to 3.12.

The changelog that Python 3.12 mainly improves error messages, supports the Linux perf parser, removes several old/broken/deprecated functions, and changes the internal representation of integers in preparation for subsequent performance optimizations.

Python 3.12 is scheduled for another alpha release next month, followed by a beta release starting in early May, which means a feature freeze. after four betas and two release candidates, the stable version of Python 3.12 is expected to go live in early October.

The post Python 3.12 Alpha 6 released: improved error message appeared first on TechGoing.

]]>