Commit Graph

32949 Commits

Author SHA1 Message Date
Fredrik Lundh e515293567 added TerminateProcess support to _subprocess driver 2005-12-18 21:06:46 +00:00
Fredrik Lundh 118be0c6ca SF#1383115
added refcount information for PyObject_Call
2005-12-18 19:39:59 +00:00
Fredrik Lundh 93d69a7948 fixed compilation with an ordinary C89 compiler 2005-12-18 15:44:21 +00:00
Fredrik Lundh 0149e3a090 Fixed None reference leaks in TreeBuilder class (reported by Neal
Norwitz)
2005-12-18 13:58:25 +00:00
Neal Norwitz 7c460740ed Check return result for error 2005-12-18 08:02:38 +00:00
Neal Norwitz 51abbc7b4a Fix Armin's bug 1333982. He found it, he didn't created it :-)
This code generated a C assertion:
        assert 1, ([s for s in x] +
                   [s for s in x])
        pass

assert was completely broken, it needed to use the proper block.
compiler_use_block() is now no longer used, so remove it.
2005-12-18 07:06:23 +00:00
Neal Norwitz 0e7a0ed335 Fix compiler warnings 2005-12-18 05:37:36 +00:00
Neal Norwitz 4e6bf49a5e Handle more error conditions with SystemError 2005-12-18 05:32:41 +00:00
Neal Norwitz db83eb3170 Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.
Needs backport.
2005-12-18 05:29:30 +00:00
Neal Norwitz e7214a130b Get float() to be more portable across platforms. Disable hex strings. 2005-12-18 05:03:17 +00:00
Neal Norwitz 87b801cc2d Set MemoryError when alloc fails 2005-12-18 04:42:47 +00:00
Neal Norwitz 3c52c5a888 Wrap long lines in the grammar 2005-12-18 04:12:30 +00:00
Neal Norwitz 3dafaabfb5 Fix _sys_version() so it works with the new buildno, not sure if it is correct. test_platform passes 2005-12-18 04:10:10 +00:00
Neal Norwitz 8856fb750b SF Patch #1365916, mmap fails on AMD64
Fix some 64-bit issues due to mismatch format characters w/actual data types
2005-12-18 03:34:22 +00:00
Neal Norwitz 84456bdab3 Cleanup a bit and make things more consistent.
Don't double check for NULLs and don't initialize if not necessary.
No functional changes.
2005-12-18 03:16:20 +00:00
Neal Norwitz b04747fc50 Add versionadded info 2005-12-18 01:36:44 +00:00
Barry Warsaw 2a38a86c1c Expose Subversion revision number (calculated via "svnversion .") to Python.
Add C API function Py_GetBuildNumber(), add it to the interactive prompt
banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number
attribute.  The build number is a string instead of an int because it may
contain a trailing 'M' if there are local modifications.
2005-12-18 01:27:35 +00:00
Neal Norwitz 11ca77e6de Doc for PEP 341, needs improvement 2005-12-17 22:24:12 +00:00
Georg Brandl 58f46b6565 Fix leftover word. 2005-12-17 21:47:06 +00:00
Georg Brandl fa16668c9b Added PEP 341 to NEWS.
We still need a change in the reference manual to reflect the
new try statement.
2005-12-17 21:45:17 +00:00
Neal Norwitz f599f424a2 SF patch #1355913, PEP 341 - Unification of try/except and try/finally
Modified since ast-arenas was implemented.
2005-12-17 21:33:47 +00:00
Neal Norwitz adb69fcdff Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,
simplifies a lot of error handling code, and fixes many memory leaks.
2005-12-17 20:54:49 +00:00
Neal Norwitz 23a6958910 Add Michael Urman for work on SF patch #1365916 2005-12-17 18:41:15 +00:00
Georg Brandl 852a542279 Bug #1373197: note that os.makedirs does not work with '..' 2005-12-17 17:47:42 +00:00
Georg Brandl 69cb3cde1a Bug #1343671: clarify docs for os.removedirs 2005-12-17 17:31:03 +00:00
Georg Brandl c1d2f7b6ad Bug #1106572: clarify os.makedirs docs wrt umask 2005-12-17 17:14:12 +00:00
Fredrik Lundh b80775ecf1 Fixed reference counting error when using the entity dictionary
(reported by Chris Olds).  Backported from the 1.0.6 development
branch.
2005-12-17 08:33:21 +00:00
Hye-Shik Chang 835b243c71 Bug #1379994: Fix *unicode_escape codecs to encode r'\' as r'\\'
just like string codecs.
2005-12-17 04:38:31 +00:00
Tim Peters e3547fd2f7 More text about the pragmatic significance of hashlib. 2005-12-16 23:13:57 +00:00
Brett Cannon 3cbd0380f3 Add the missing mention of the hashlib module. 2005-12-16 22:49:23 +00:00
Fredrik Lundh 8911ca3d70 added encoding tests to ElementTree/cElementTree tests 2005-12-16 22:07:17 +00:00
Fredrik Lundh 6d52b55c56 updating to cElementTree 1.0.5 (step 3 of 3) 2005-12-16 22:06:43 +00:00
Fredrik Lundh 8c8836b406 updating to cElementTree 1.0.5 (step 2 of 3) 2005-12-16 22:06:06 +00:00
Fredrik Lundh 7cfe6eee0d updating to cElementTree 1.0.5 2005-12-16 22:05:40 +00:00
Georg Brandl 6ee6952eb2 Patch #1360443: Make SimpleHTTPServer display unencoded directory names. 2005-12-16 19:36:08 +00:00
Georg Brandl 08caadcce3 Patch #1377848: typo in pyexpat docs 2005-12-16 19:23:33 +00:00
Georg Brandl 071ae4cfca Patch #1376914: traceback.format_exc() has no "file" argument 2005-12-16 19:21:05 +00:00
Trent Mick ea2625be0f Set props on _elementtree project file as per pyexpat.vcproj. 2005-12-15 22:16:49 +00:00
Trent Mick e97e5a7227 Add build support for _elementtree on Windows. 2005-12-15 22:08:46 +00:00
Georg Brandl 07f159de86 Bug #1378455: a problem of urllib using open_local_file 2005-12-15 21:59:00 +00:00
Georg Brandl 6ee339109f Remove reference to the "t" open() mode as it is platform dependent. 2005-12-15 21:34:29 +00:00
Walter Dörwald 3b287702dd Add two tests for the script interface. 2005-12-15 20:17:20 +00:00
Fredrik Lundh 9235ea4f26 added cElementTree tests 2005-12-15 18:41:22 +00:00
Neal Norwitz 6f0d479c78 Fix an int/long mismatch identified here:
http://www.tortall.net/mu/blog/2005/12/01

Pointed out from SF #1365916.

Backport candidate.
2005-12-15 06:40:36 +00:00
Neal Norwitz a716eabca7 Revert r41662 and the part of 41552 that originally caused the problem
(calling ftell(stdin) doesn't seem defined).  So we won't test errors
from ftell unless we can do it portably.
2005-12-15 05:25:09 +00:00
Walter Dörwald b197543680 If quopri uses the implementations from binascii do the tests a second time
using the Python implementations of the functions. This imcreases code
coverage and makes sure that both implementations do the same thing.
2005-12-14 23:32:22 +00:00
Fredrik Lundh c97ba7064e added PSG licensing blurb 2005-12-14 22:30:36 +00:00
Fredrik Lundh 63168a52f4 added PSF licensing blurbs to relevant files 2005-12-14 22:29:34 +00:00
Fredrik Lundh 16fd9026d9 fixed eol-style 2005-12-14 21:47:54 +00:00
Fredrik Lundh 14b4feac6a renamed to _elementtree (for Python 2.5) 2005-12-14 21:46:41 +00:00