We stand with Ukraine to help keep people safe. Join us
EN
When you purchase through links on our site, we may earn an affiliate commission

Python for Mac

Object-oriented programming language.

Free
In English
4.5
Based on 11 user rates

Python overview

Python is an extremely versatile, dynamic, interpreted, and general-purpose language. It is one of the most popular and in-demand languages today. Python supports multiple programming techniques, including procedural, object-oriented, and functional programming.

Features:
  • Python is an excellent option for beginner-level developers.
  • Python programming on Mac is easy. Since it is based on a high-level language, you don't need to remember the system architecture, nor to manage the memory.
  • Python for Mac is developer-friendly. It uses an elegant and simple syntax that is easy-to-code and easy-to-read.
  • You can enjoy smooth programming on your Macbook with a Python's interactive mode that allows you to easily test short snippets of code and interact with the interpreter directly to write your programs.
  • Python is a dynamically typed language. It means that you don't need to declare the type of variable because it is decided at run time, not in advance.

What's new in version 3.14.6

Security
  • gh-151159: Update Android and iOS installers to use OpenSSL 3.5.7.
  • gh-150599: Fix a possible stack buffer overflow in bz2 when a bz2.BZ2Decompressor is reused after a decompression error. The decompressor now becomes unusable after libbz2 reports an error.
  • gh-149835: shutil.move() now resolves symlinks via os.path.realpath() when checking whether the destination is inside the source directory, preventing a symlink-based bypass of that guard.
  • gh-149698: Update bundled libexpat to version 2.8.1 for the fix for CVE 2026-45186.
  • gh-87451: The ftplib module’s undocumented ftpcp function no longer trusts the IPv4 address value returned from the source server in response to the PASV command by default, completing the fix for CVE-2021-4189. As with ftplib.FTP, the former behavior can be re-enabled by setting the trust_server_pasv_ipv4_address attribute on the source ftplib.FTP instance to True. Thanks to Qi Deng at Aurascape AI for the report.
  • gh-149486: tarfile.data_filter() now validates link targets using the same normalised value that is written to disk, strips trailing separators from the member name when resolving a symlink’s directory, and rejects link members that would replace the destination directory itself. This closes several path-traversal bypasses of the data extraction filter.
  • gh-149079: Fix a potential denial of service in unicodedata.normalize(). The canonical ordering step of Unicode normalization used a quadratic-time insertion sort for reordering combining characters, which could be exploited with crafted input containing many combining characters in non-canonical order. Replaced with a linear-time counting sort for long runs.
  • gh-149018: Improved protection against XML hash-flooding attacks in xml.parsers.expat and xml.etree.ElementTree when Python is compiled with libExpat 2.8.0 or later.
Core and Builtins
  • gh-151112: Fix a crash in the compiler that could occur when running out of memory.
  • gh-151126: Fix a crash, when there’s no memory left on a device, which happened in:
    • code compilation - _winapi.CreateProcess()
  • Now these places raise proper MemoryError errors.
  • gh-150700: Fix a SystemError when compiling a class-scope comprehension containing a lambda that references __class__, __classdict__, or __conditional_annotations__. Patch by Bartosz Sławecki.
  • gh-150633: Fix the frozen importer accepting module names with embedded null bytes, which caused it to bypass the sys.modules cache and create duplicate module objects.
  • gh-148613: Fix a data race in the free-threaded build between gc.set_threshold() and garbage collection scheduling during object allocation.
  • gh-149156: Fix an intermittent crash after os.fork() when perf trampoline profiling is enabled and the child returns through trampoline frames inherited from the parent process.
  • gh-149449: Fix a use-after-free crash when the unicodedata module was removed from sys.modules and garbage-collected between calls that decode \N{...} escapes or use the namereplace codec error handler.
  • gh-150207: Fix a crash when a memory allocation fails during tokenizer initialization. A proper MemoryError is now raised instead.
  • gh-150107: asyncio: sendfile() and sock_sendfile() event loop methods now call file.seek(offset) if file has a seek() method, even if offset is 0 (default value).
  • gh-150146: Fix a crash on a complex type variable substitution.
  • from typing import TypeVar; memoryview[TypeVar("")][*typing.Mapping[..., ...]] used to fail due to missing NULL check on _unpack_args C function call.
  • gh-149590: Fix crash when faulthandler is imported more than once.
  • gh-149816: Fix a race condition in _PyBytes_FromList in free-threading mode.
  • gh-149816: Fix a race condition in memoryview with free-threading.
  • gh-149805: Fix a SystemError when compiling a compiling __classdict__ class annotation. Found by OSS-Fuzz in #512907042.
  • gh-149738: sqlite3: Disallow removing row_factory and text_factory attributes of a connection to prevent a crash on a query.
  • gh-139808: Add branch protections for AArch64 (BTI/PAC) in assembly code used by -X perf_jit (Linux perf profiler integration).
  • gh-148450: Fix abc.register() so it invalidates type version tags for registered classes.
Library
  • gh-151039: Fix a crash when static datetime types outlive the _datetime module.
  • gh-150913: Fix sqlite3.Blob slice assignment to raise TypeError and IndexError for type and size mismatches respectively, even when the target slice is empty.
  • gh-143008: Fix race conditions when re-initializing a io.TextIOWrapper object.
  • gh-150750: Fix a race condition in collections.deque.index() with free-threading.
  • gh-150685: Update bundled pip to 26.1.2
  • gh-150406: Fix a possible crash occurring during socket module initialization when the system is out of memory on platforms without a reentrant gethostbyname.
  • gh-150372: readline: Fix a potential crash during tab completion caused by an out-of-memory error during module initialization.
  • gh-150157: Fix a crash in free-threaded builds that occurs when pickling by name objects without a __module__ attribute while sys.modules is concurrently being modified.
  • gh-150175: Fix race condition in unittest.mock.ThreadingMock where concurrent calls could lose increments to call_count and other attributes due to a missing lock in _increment_mock_call.
  • gh-84353: Preserve non-UTF-8 encoded filenames when appending to a zipfile.ZipFile. Previously, non-ASCII names stored in a legacy encoding (without the UTF-8 flag bit set) could be corrupted when the central directory was rewritten: they were decoded as cp437 and then re-stored as UTF-8.
  • gh-149816: Fix race condition in ssl.SSLContext.sni_callback
  • gh-149995: Update various docstrings in typing.
  • gh-88726: The email package now uses standard MIME charset names “gb2312” and “big5” instead of non-standard names “eucgb2312_cn” and “big5_tw”.
  • gh-149571: Fix the C implementation of xml.etree.ElementTree.Element.itertext(): it no longer emits text for comments and processing instructions.
  • gh-149921: Fix reference leaks in error paths of the _interpchannels and _interpqueues extension modules.
  • gh-149816: Fix a race condition in _random.Random.__init__ method in free-threading mode.
  • gh-149801: Add IANA registered names and aliases with leading zeros before number (like IBM00858, CP00858, IBM01140, CP01140) for corresponding codecs.
  • gh-149701: Fix bad return code from Lib/venv/bin/activate if hashing is disabled
  • gh-112821: In the REPL, autocompletion might run arbitrary code in the getter of a descriptor. If that getter raised an exception, autocompletion would fail to present any options for the entire object. Autocompletion now works as expected for these objects.
  • gh-149489: Fix ElementTree serialization to HTML. The content of elements “xmp”, “iframe”, “noembed”, “noframes”, and “plaintext” is no longer escaped. The “plaintext” element no longer have the closing tag.
  • gh-149231: In tomllib, the number of parts in TOML keys is now limited.
  • gh-149046: io: Fix io.StringIO serialization: no longer call str(obj) on str subclasses. Patch by Thomas Kowalski.
  • gh-148954: Fix XML injection vulnerability in xmlrpc.client.dumps() where the methodname was not being escaped before interpolation into the XML body.
  • gh-148441: xml.parsers.expat: prevent a crash in CharacterDataHandler() when the character data size exceeds the parser’s buffer size.
  • gh-146452: Fix segfault in pickle when pickling a dictionary concurrently mutated by another thread in the free-threaded build.
  • gh-142831: Fix a crash in the json module where a use-after-free could occur if the object being encoded is modified during serialization.
  • gh-90949: Add SetBillionLaughsAttackProtectionActivationThreshold() and SetBillionLaughsAttackProtectionMaximumAmplification() to xmlparser objects to tune protections against billion laughs attacks. Patch by Bénédikt Tran.
  • gh-134261: zip: On reproducible builds, ZipFile uses UTC instead of the local time when writing file datetimes to avoid underflows.
  • gh-128110: Fix bug in the parsing of email address headers that could result in extraneous spaces in the decoded text when using a modern email policy. Space between pairs of adjacent RFC 2047 encoded-words is now ignored, per section 6.2 (and consistent with existing parsing of unstructured headers like Subject).
  • gh-107398: Fix tarfile stream mode exception when process the file with the gzip extra field.
  • gh-123853: Update the table of Windows language code identifiers (LCIDs) used by locale.getdefaultlocale() on Windows to protocol version 16.0 (2024-04-23).
  • gh-91099: imaplib.IMAP4.login() now raises exceptions with str instead of bytes. Patch by Florian Best.
Documentation
  • gh-150319: Generic builtin and standard library types now document the meaning of their type parameters.
  • gh-109503: Fix documentation for shutil.move() on usage of os.rename() since nonatomic move might be used even if the files are on the same filesystem. Patch by Fang Li
Tests
  • gh-151130: Add more tests for PyWeakref_* C API.
  • gh-149776: Fix test_socket on Linux kernel 7.1 and newer: skip UDP Lite tests if it’s not supported. Patch by Victor Stinner.
Build
  • gh-148294: Corrected the use of AC_PATH_TOOL in configure.ac to allow a C++ compiler to be found on PATH.
Windows
  • gh-151159: Updated bundled version of OpenSSL to 3.5.7.
macOS
  • gh-151159: Update macOS installer to use OpenSSL 3.5.7.
  • gh-150644: When system logging is enabled (with config.use_system_logger, messages are now tagged as public. This allows the macOS 26 system logger to view messages without special configuration.
  • gh-115119: Update macOS installer to use libmpdecimal 4.0.1.
IDLE
  • bpo-6699: Warn the user if a file will be overwritten when saving.
C API
  • gh-150907: Fix dynamic_annotations.h header file when built with C++ and Valgrind: add extern "C++" scope for the C++ template. Patch by Victor Stinner.
  • gh-145235: Made PyDict_AddWatcher(), PyDict_ClearWatcher(), PyDict_Watch(), and PyDict_Unwatch() thread-safe on the free threaded build.
View older Python versions

Python for Mac

Free
In English
Version 3.14.6
Write a detailed review about Python

Write your thoughts in our old-fashioned comment

MacUpdate Comment Policy. We strongly recommend leaving comments, however comments with abusive words, bullying, personal attacks of any type will be moderated.
4.5

(6 Reviews of Python)

  • Comments

  • User Ratings

umaromc
umaromc
Sep 30, 2012
3.30
0.0
Sep 30, 2012
0.0
Version: 3.30
Link is for 32/64-bit Intel Only, OS X 10.6+ 32-bit Intel/PPC Build, OS X 10.3-10.6 http://www.python.org/ftp/python/3.3.0/python-3.3.0-macosx10.5.dmg
Iliketrash
Iliketrash
Mar 20, 2012
3.2.3rc2
0.0
Mar 20, 2012
0.0
Version: 3.2.3rc2
>>> range(3,7) [3, 4, 5, 6] WTF? How stupid can a language get?
SickTeddyBear
SickTeddyBear
Feb 21, 2011
3.2.0
0.0
Feb 21, 2011
0.0
Version: 3.2.0
FYI, there are universal installers for Intel/PPC and 10.3->10.6: http://www.python.org/download/
Trashie
Trashie
Oct 24, 2010
3.1.2
0.0
Oct 24, 2010
0.0
Version: 3.1.2
Indentation thing is not a big deal - how else will the interpreter be able to work. For all the brace lovers maybe they should implement 2 modes I dunno...but once you get into it not having braces all over the place makes for some tidy reading code! I would take this as an overhead to have no braces any day of the week.
Millenniumx
Millenniumx
Apr 3, 2006
2.4.3
0.0
Apr 3, 2006
0.0
Version: 2.4.3
"One of the worst "features" of Python is that indentation is part of the syntax." So, do you indent your code in other languages? Of course you do; it's one of the first things any decent programmer learns to do. Given that, what's the problem? All it does is help keep the code readable.
iAziz
iAziz
Sep 6, 2021
3.9.7
5.0
Sep 6, 2021
5.0
Version: 3.9.7
Rob85
Rob85
Nov 16, 2018
5.0
Nov 16, 2018
5.0
Version: null
Cyzor
Cyzor
Jun 21, 2014
5.0
Jun 21, 2014
5.0
Version: null
Quiiick
Quiiick
Apr 25, 2014
4.0
Apr 25, 2014
4.0
Version: null
Ededed
Ededed
Apr 22, 2014
2.5
Apr 22, 2014
2.5
Version: null
Ingerj
Ingerj
Apr 1, 2014
4.0
Apr 1, 2014
4.0
Version: null
Talking28
Talking28
Jul 12, 2011
4.5
Jul 12, 2011
4.5
Version: null
Pneshati
Pneshati
Dec 17, 2010
5.0
Dec 17, 2010
5.0
Version: null
John-E
John-E
Dec 8, 2010
4.0
Dec 8, 2010
4.0
Version: null
cheeseinspector
cheeseinspector
Dec 8, 2010
5.0
Dec 8, 2010
5.0
Version: null
Guest
Guest
Apr 3, 2005
5.0
Apr 3, 2005
5.0
Version: null