Commit graph

32783 commits

Author SHA1 Message Date
Georg Brandl
c0b24734e0 Bug #649974: make docstrings for url2pathname consistent 2005-12-26 22:53:56 +00:00
Armin Rigo
ddddd2f7e6 Updating the short blob about old/new-style classes to reflect (IMHO) more
precisely the motivation and the differences.

Added links to www.python.org/doc/newstyle.html and a footnote to warn against
the statement "x[i] is equivalent to x.__getitem__(i)", which already caused
many invalid bug reports on SF.
2005-12-26 18:06:17 +00:00
Tim Peters
07cf5d4bb7 As reported on c.l.py, the _elementtree project
should depend on the pythoncore project.
2005-12-26 16:53:15 +00:00
Tim Peters
536cf99536 Whitespace normalization. 2005-12-25 23:18:31 +00:00
Tim Peters
83a8c393b0 test_bug_1333982(): This one must fail under -O.
All the --all test pass using -O on WinXP now.
2005-12-25 22:52:32 +00:00
Tim Peters
903a9444a8 Repair longstanding damage introduced by the AST merge:
- Get rid of pgen.c and tokenizer_pgen.c.

- Include tokenizer.c.

All the -uall tests pass on my WinXP VC7.1 box now.
2005-12-25 16:28:48 +00:00
Fredrik Lundh
bb2bf2c45a fixed one more typo 2005-12-25 12:05:42 +00:00
Fredrik Lundh
c3389997d4 SF#1389809
cast first PyUnicode_Decode argument to proper type (why is
"char *" used for encoded byte streams, btw?  shouldn't that
be "void *" or, if necessary, "unsigned char *"?)
2005-12-25 11:40:19 +00:00
Fredrik Lundh
428b413aaa fixed two typos in pprint reference page 2005-12-25 11:36:43 +00:00
Tim Peters
35c3f4f249 do_mkvalue(), 'I' and 'k' cases: squash legitimate
compiler warnings about mixing signed and unsigned types
in comparisons.
2005-12-24 06:23:41 +00:00
Tim Peters
c3d12ac88c const poisoning, spreading to fix new const warnings
in _winreg.c.
2005-12-24 06:03:06 +00:00
Neal Norwitz
dc297b4ef4 Ignore pyc files for building doc 2005-12-24 01:48:56 +00:00
Neal Norwitz
ab86f8eef5 Patch #1157027, cookielib mis-handles RFC 2109 cookies in Netscape mode 2005-12-23 21:44:36 +00:00
Neal Norwitz
71dad72ebe SF patch #1157027, cookielib mis-handles RFC 2109 cookies in Netscape mode 2005-12-23 21:43:48 +00:00
Neal Norwitz
a2c110b13a Add missing dep for cookielib doc 2005-12-23 21:42:39 +00:00
Neal Norwitz
338e7866e6 Patch #1117398: fix cookielib LoadError 2005-12-23 21:27:46 +00:00
Neal Norwitz
3e7de59bd2 Fix SF #1117398, cookielib LWPCookieJar and MozillaCookieJar exceptions
cookielib.LWPCookieJar and .MozillaCookieJar are documented to raise
cookielib.LoadError on attempt to load an invalid cookies file, but
raise IOError instead.  Compromise by having LoadError subclass IOError.
2005-12-23 21:24:35 +00:00
Andrew M. Kuchling
b164dafebb [Patch #1375417] Massive rearrangement of the Library Reference.
Fred approved just checking it in; he may make further fixes.

The change shrinks the 'Generic OS' and other OS chapters, which had become
something of a dumping ground for random modules.  It differs from the
last version of the patch: 1) I've added introductions for the new chapters (still missing a few -- search for 'intro')
2) a few modules have been rearranged slightly from the version in the patch
2005-12-22 20:34:09 +00:00
Andrew M. Kuchling
a0b25e955f Add more chapter intros 2005-12-22 20:27:43 +00:00
Andrew M. Kuchling
974730108a Add markup 2005-12-22 20:12:54 +00:00
Andrew M. Kuchling
affd42dc50 Add some chapter introductions (not linked into the LibRef yet) 2005-12-22 20:12:39 +00:00
Andrew M. Kuchling
755c268600 Update text 2005-12-22 19:38:57 +00:00
Andrew M. Kuchling
509a41da9c Typo fix 2005-12-22 19:31:21 +00:00
Andrew M. Kuchling
20be3c8a94 Typo fix 2005-12-22 18:55:43 +00:00
Georg Brandl
5e8d8f930d [ 1388141 ] Minor error in md5 docs 2005-12-22 16:15:00 +00:00
Thomas Heller
7a9d1327db Add Python\pyarena.c to the VC project file.
Fix the definition of BUILD in the VC project settings.
2005-12-21 15:46:29 +00:00
Barry Warsaw
ce3a9131c3 Revert most of r41765. Don't use $Revision$ in Py_GetBuildNumber(). Keep the
use of $(srcdir) in Makefile.pre.in so builds outside the source dir still
work.
2005-12-19 14:43:44 +00:00
Neal Norwitz
4ac13dfc3a Remove extra parens 2005-12-19 06:10:07 +00:00
Neal Norwitz
9dbc7dd6f2 Remove extra parens 2005-12-19 06:08:59 +00:00
Neal Norwitz
c10978f43c Bug #1072182, fix some potential problems if characters are signed. 2005-12-19 06:07:16 +00:00
Neal Norwitz
30b5c5d011 Fix SF bug #1072182, problems with signed characters.
Most of these can be backported.
2005-12-19 06:05:18 +00:00
Neal Norwitz
5d0ad50f5a Bug #889500, fix line number on SyntaxWarning for global declarations. 2005-12-19 04:27:42 +00:00
Barry Warsaw
a3bdc2c2a5 Handle a couple of use cases discussed in python-dev w.r.t. calculating the
Subversion revision number.

First, in an svn export, there will be no .svn directory, so use an in-file
$Revision$ keyword string with the keyword chrome stripped off.

Also, use $(srcdir) in the Makefile.pre.in to handle the case where Python is
build outside the source tree.
2005-12-18 22:46:35 +00:00
Neal Norwitz
d24499dc53 Jack said we don't need the Mac/Python/ directory any more. 2005-12-18 21:36:39 +00:00
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