Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix issue #1590864, multiple threads and fork() can cause deadlocks, by | Thomas Wouters | 2009-09-16 | 5 | -22/+108 |
| | | | | | | | | | | | | | | | | | | | | | | acquiring the import lock around fork() calls. This prevents other threads from having that lock while the fork happens, and is the recommended way of dealing with such issues. There are two other locks we care about, the GIL and the Thread Local Storage lock. The GIL is obviously held when calling Python functions like os.fork(), and the TLS lock is explicitly reallocated instead, while also deleting now-orphaned TLS data. This only fixes calls to os.fork(), not extension modules or embedding programs calling C's fork() directly. Solving that requires a new set of API functions, and possibly a rewrite of the Python/thread_*.c mess. Add a warning explaining the problem to the documentation in the mean time. This also changes behaviour a little on AIX. Before, AIX (but only AIX) was getting the import lock reallocated, seemingly to avoid this very same problem. This is not the right approach, because the import lock is a re-entrant one, and reallocating would do the wrong thing when forking while holding the import lock. Will backport to 2.6, minus the tiny AIX behaviour change. | ||||
* | Make the pdb displayhook compatible with the standard displayhook: do not ↵ | Georg Brandl | 2009-09-16 | 2 | -2/+36 |
| | | | | print Nones. Add a test for that. | ||||
* | Remove some more boilerplate from the actual tests in test_pdb. | Georg Brandl | 2009-09-16 | 1 | -27/+34 |
| | |||||
* | Rewrap long lines. | Georg Brandl | 2009-09-16 | 1 | -257/+246 |
| | |||||
* | #6879 - fix misstatement about exceptions | Ezio Melotti | 2009-09-16 | 1 | -5/+3 |
| | |||||
* | #6892: fix optparse example involving help option. | Georg Brandl | 2009-09-16 | 1 | -1/+4 |
| | |||||
* | Remove strange trailing commas. | Georg Brandl | 2009-09-16 | 1 | -3/+3 |
| | |||||
* | #5621: refactor description of how class/instance attributes interact on ↵ | Georg Brandl | 2009-09-16 | 1 | -13/+24 |
| | | | | a.x=a.x+1 or augassign. | ||||
* | #6891: comment out dead link to Unicode article. | Georg Brandl | 2009-09-16 | 1 | -5/+6 |
| | |||||
* | #6876: fix base class constructor invocation in example. | Georg Brandl | 2009-09-16 | 1 | -2/+1 |
| | |||||
* | #6880: add reference to classes section in exceptions section, which comes ↵ | Georg Brandl | 2009-09-16 | 1 | -3/+4 |
| | | | | earlier. | ||||
* | Make deprecation notices as visible as warnings are right now. | Georg Brandl | 2009-09-16 | 2 | -10/+21 |
| | |||||
* | Update distutils.util tests after my changes | Ronald Oussoren | 2009-09-15 | 1 | -1/+21 |
| | | | | to --with-universal-archs | ||||
* | Add Armin Ronacher. | Georg Brandl | 2009-09-15 | 1 | -0/+4 |
| | |||||
* | Finish support for --with-universal-archs=intel | Ronald Oussoren | 2009-09-15 | 2 | -6/+26 |
| | | | | and --with-universal-archs=3-way (issue6245) | ||||
* | #6917 - typo in method name | Ezio Melotti | 2009-09-15 | 1 | -1/+1 |
| | |||||
* | MacOSX: detect the architectures supported by | Ronald Oussoren | 2009-09-15 | 1 | -13/+11 |
| | | | | | | | | | Tk.framework and build _tkinter only for those architectures. This replaces the hardcoded solution that is no longer valid now that 64-bit capable versions of Tk are available on OSX. | ||||
* | Py_SetPythonHome uses static storage #6913 | Benjamin Peterson | 2009-09-15 | 1 | -0/+4 |
| | |||||
* | #6908: fix association of hashlib hash attributes. | Georg Brandl | 2009-09-14 | 1 | -2/+2 |
| | |||||
* | #6574: list the future features in a table. | Georg Brandl | 2009-09-14 | 1 | -4/+31 |
| | |||||
* | #6904 - fix broken link | Ezio Melotti | 2009-09-14 | 1 | -1/+1 |
| | |||||
* | Remove an extraneous space in unittest documentation. | Michael Foord | 2009-09-13 | 1 | -1/+1 |
| | |||||
* | Test discovery in unittest will only attempt to import modules that are ↵ | Michael Foord | 2009-09-13 | 4 | -46/+85 |
| | | | | importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568. | ||||
* | Typo fix. | Georg Brandl | 2009-09-13 | 1 | -1/+1 |
| | |||||
* | unittest.TestLoader.loadTestsFromName honors the loader suiteClass ↵ | Michael Foord | 2009-09-13 | 3 | -2/+46 |
| | | | | attribute. Issue 6866. | ||||
* | Tutorial tweaks. Issue 6849. | Michael Foord | 2009-09-13 | 1 | -12/+10 |
| | |||||
* | Note that sys._getframe is not guaranteed to exist in all implementations of ↵ | Michael Foord | 2009-09-13 | 2 | -1/+7 |
| | | | | Python, and a corresponding note in inspect.currentframe. Issue 6712. | ||||
* | Objects that compare equal automatically pass or fail assertAlmostEqual and ↵ | Michael Foord | 2009-09-13 | 4 | -1/+24 |
| | | | | assertNotAlmostEqual tests on unittest.TestCase. Issue 6567. | ||||
* | Change to tutorial wording for reading text / binary files on Windows. Issue ↵ | Michael Foord | 2009-09-13 | 1 | -2/+2 |
| | | | | #6301. | ||||
* | Issue #6635: Fix profiler printing usage message. | Matthias Klose | 2009-09-13 | 2 | -2/+4 |
| | |||||
* | Fix potential signed-overflow bug in _PyLong_Format; also fix | Mark Dickinson | 2009-09-13 | 1 | -9/+11 |
| | | | | a couple of whitespace issues. | ||||
* | update urls | Benjamin Peterson | 2009-09-13 | 1 | -4/+2 |
| | |||||
* | #6026 - fix tests that failed without zlib | Ezio Melotti | 2009-09-12 | 7 | -6/+51 |
| | |||||
* | Issue #6856: Add a filter keyword argument to TarFile.add(). | Lars Gustäbel | 2009-09-12 | 4 | -8/+76 |
| | | | | | | | | | The filter argument must be a function that takes a TarInfo object argument, changes it and returns it again. If the function returns None the TarInfo object will be excluded from the archive. The exclude argument is deprecated from now on, because it does something similar but is not as flexible. | ||||
* | Move function back to its section. | Georg Brandl | 2009-09-11 | 1 | -7/+9 |
| | |||||
* | Properly document copy and deepcopy as functions. | Georg Brandl | 2009-09-09 | 1 | -10/+13 |
| | |||||
* | revert unintended changes | Benjamin Peterson | 2009-09-09 | 2 | -130/+8 |
| | |||||
* | tabbify | Benjamin Peterson | 2009-09-09 | 3 | -9/+131 |
| | |||||
* | Issue #6163: Fixed HP-UX runtime library dir options in distutils.unixcompiler | Tarek Ziadé | 2009-09-09 | 3 | -2/+24 |
| | |||||
* | #6865 fix ref counting in initialization of pwd module | Benjamin Peterson | 2009-09-08 | 2 | -0/+4 |
| | |||||
* | Issue #6857: Fix Decimal formatting to be consistent with existing float | Mark Dickinson | 2009-09-08 | 3 | -2/+9 |
| | | | | formatting: both are now right-aligned by default. | ||||
* | Make ctypes compile again with older Python versions. | Thomas Heller | 2009-09-08 | 1 | -0/+49 |
| | |||||
* | This is an update to r74701. How hard can it be to get a configure test right. | Ronald Oussoren | 2009-09-08 | 2 | -1/+3 |
| | | | | | This patch has already been backported as part of the backport of r74701, which is how I found this problem. | ||||
* | #Issue 6795: Fix infinite recursion in long(Decimal('nan')); change ↵ | Mark Dickinson | 2009-09-07 | 3 | -3/+16 |
| | | | | int(Decimal('nan')) to raise ValueError instead of either returning NaN or raising InvalidContext. | ||||
* | Issue #6850: Fix bug in Decimal._parse_format_specifier for formats | Mark Dickinson | 2009-09-07 | 3 | -1/+7 |
| | | | | with no type specifier. | ||||
* | revert r74699 since it loses useful error information | Benjamin Peterson | 2009-09-07 | 1 | -2/+13 |
| | |||||
* | Fix typo in configure.in | Ronald Oussoren | 2009-09-07 | 2 | -9/+43 |
| | |||||
* | PyObject_GetIter can set an error for its self just fine | Benjamin Peterson | 2009-09-06 | 1 | -13/+2 |
| | |||||
* | Issue #6848: Fix curses module build failure on OS X 10.6. | Mark Dickinson | 2009-09-06 | 2 | -1/+8 |
| | |||||
* | Remove redundant assignment | Mark Dickinson | 2009-09-06 | 1 | -1/+0 |
| |