DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Coding
  3. Languages
  4. Python 3.3 Offers Improved Performance, Bug Fixes, and New Features Galore

Python 3.3 Offers Improved Performance, Bug Fixes, and New Features Galore

Chris Smith user avatar by
Chris Smith
·
Mar. 05, 12 · Interview
Like (0)
Save
Tweet
Share
5.84K Views

Join the DZone community and get the full member experience.

Join For Free
Python 3.3 alpha 1 is here, and as you would expect, this latest update offers bug fixes and new features galore.  Previously a source of great frustration for many developers, Python users will be happy to hear that Python 3.3 offers a new memoryview implementation, featuring a PEP-3118 compliant getbufferproc():


The new memoryview implementation comprehensively fixes all ownership and lifetime issues of dynamically allocated fields in the Py_buffer struct that led to multiple crash reports.  Additionally, several functions that crashed or returned incorrect results for non-contiguous or multi-dimensional input have been fixed.

-- Python.org


There are also some major performance improvements, thanks to PEP 393, which changed the Unicode string type to support multiple internal representations, allowing for space-efficient representation in most cases, while still providing access to full UCS-4 on all systems.


Other changes thanks to PEP 393 include:

  • Provides full support of all Unicode code points, including non-BMP ones.
  • Eliminates narrow builds, even in Windows, and thereby eliminates narrow build-specific problems.

The following features are also new to Python 3.3:

  • All native single character format specifiers in struct module syntax (optionally prefixed with '@') are now supported.
  • Multi-dimensional list representations are supported for any array type.
  • All array types are hash able if the exporting object is hash able and the view is read-only.
  • API Changes
    • The maximum number of dimensions is officially limited to 64.
    • The representation of empty shape, strides, and sub offsets is now an empty tuple instead of None.
-- Python.org


Other interesting improvements:

PEP 3151: Reworking the OS and IO Exception Hierarchy - exception types have been condensed down to one: OSError, while other exceptions have been kept as aliases for compatibility reasons.

PEP 409: Suppressing Exception Context - disables the display of the chained exception context, providing better error messages.


There is also a long list of New and Improved Modules for Python 3.3 you can browse through here.
Python (language)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Solving the Kubernetes Security Puzzle
  • Top 5 Data Streaming Trends for 2023
  • Microservices Testing
  • Assessment of Scalability Constraints (and Solutions)

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: