Cookies op Tweakers

Tweakers maakt gebruik van cookies, onder andere om de website te analyseren, het gebruiksgemak te vergroten en advertenties te tonen. Door gebruik te maken van deze website, of door op 'Ga verder' te klikken, geef je toestemming voor het gebruik van cookies. Wil je meer informatie over cookies en hoe ze worden gebruikt, bekijk dan ons cookiebeleid.

Meer informatie

Door , , 4 reacties
Bron: Python, submitter: Goofy

Python is een object geörienteerde programmeertaal waarmee simpele tot complexe platform-onafhankelijke applicaties kunnen worden ontwikkeld. Voor een handleiding gericht op beginners kan je op deze pagina terecht. Deze taal wordt door veel bedrijven gebruikt waar onder Industrial Light & Magic, Google en NASA. De ontwikkelaars hebben onlangs de tweede release candidate van Python 2.5 uitgebracht. De lijst met aanpassingen ziet er als volgt uit:

What's New in Python 2.5 release candidate 2?

Core and builtins:
  • Make _PyGILState_NoteThreadState() static, it was not used anywhere outside of pystate.c and should not be necessary.
  • Bug #1551432: Exceptions do not define an explicit __unicode__ method. This allows calling unicode() on exceptions classes directly to succeed.
  • Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack. Also make sure that every exception class has __module__ set to 'exceptions'.
  • Bug #1550983: emit better error messages for erroneous relative imports (if not in package and if beyond toplevel package).
  • Overflow checking code in integer division ran afoul of new gcc optimizations. Changed to be more standard-conforming.
  • Patch #1541585: fix buffer overrun when performing repr() on a unicode string in a build with wide unicode (UCS-4) support.
  • Patch #1546288: fix seg fault in dict_equal due to ref counting bug.
  • The return tuple from str.rpartition(sep) is (tail, sep, head) where head is the original string if sep was not found.
  • Bug #1520864: unpacking singleton tuples in list comprehensions and generator expressions (x for x, in ... ) works again. Fixing this problem required changing the .pyc magic number. This means that .pyc files generated before 2.5c2 will be regenerated.
Library:
  • Reverted patch #1504333 because it introduced an infinite loop.
  • Patch #1553314: Fix the inspect.py slowdown that was hurting IPython & SAGE by adding smarter caching in inspect.getmodule().
  • Fix missing import of the types module in logging.config.
  • Patch #1550886: Fix decimal module context management implementation to match the localcontext() example from PEP 343.
  • Bug #1541863: uuid.uuid1 failed to generate unique identifiers on systems with low clock resolution.
  • Bug #1543303, patch #1543897: remove NUL padding from tarfiles.
  • Bug #1531862: Do not close standard file descriptors in subprocess.
Extension Modules:
  • Fix bugs in ctypes:
    • anonymous structure fields that have a bit-width specified did not work
    • cast function did not accept c_char_p or c_wchar_p instances as first arg
  • Bug #1551427: fix a wrong NULL pointer check in the win32 version of os.urandom().
  • Bug #1548092: fix curses.tparm seg fault on invalid input.
  • Bug #1550714: fix SystemError from itertools.tee on negative value for n.
  • Fixed a few bugs on cjkcodecs:
    • gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly.
    • iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312 codepoints to conform the standard.
    • iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 0213:2 codepoints now.
Tests:
  • Fix bsddb test_basics.test06_Transactions to check the version number properly.
Documentation:
  • Bug #1541682: Fix example in the "Refcount details" API docs. Additionally, remove a faulty example showing PySequence_SetItem applied to a newly created list object and add notes that this isn't a good idea.
Tools:
  • Bug #1546372: Fixed small bugglet in pybench that caused a missing file not to get reported properly.
Build:
  • Patch #1540470, for OpenBSD 4.0.
  • Patch #1545507: Exclude ctypes package in Win64 MSI file.
  • Fix OpenSSL debug build process.
C API:
  • Bug #1542693: remove semi-colon at end of PyImport_ImportModuleEx macro so it can be used as an expression.
[break]De tweede release candidate van Python 2.5 is in de volgende smaken binnen te halen:
* Windows
* Windows x86_64
* Windows IA-64
* Mac OS X
* Source tarball
Versienummer:2.5 RC2
Besturingssystemen:Windows 9x, Windows NT, Windows 2000, Linux, BSD, Windows XP, macOS, Solaris, UNIX, Windows Server 2003, Windows XP x64, Windows XP IA-64, Windows Server 2003 x64, Windows Server 2003 IA-64
Website:Python
Download:http://www.python.org/download/
Licentietype:Voorwaarden (GNU/BSD/etc.)
Moderatie-faq Wijzig weergave

Reacties (4)

Deze taal wordt door veel bedrijven gebruikt waar onder Industrial Light & Magic, Google en NASA.
En niet te vergeten: EvE-Online :)
En niet te vergeten: Blender B-)
En W3C, Feedvalidator, zo zijnen nog wel oneindig veel dingen te verzinnen ;)
Jup, zelfs in Battlefield 2 zijn er Python scriptjes terug te vinden.

Op dit item kan niet meer gereageerd worden.



Apple iOS 10 Google Pixel Apple iPhone 7 Sony PlayStation VR AMD Radeon RX 480 4GB Battlefield 1 Google Android Nougat Watch Dogs 2

© 1998 - 2016 de Persgroep Online Services B.V. Tweakers vormt samen met o.a. Autotrack en Carsom.nl de Persgroep Online Services B.V. Hosting door True