]>
granicus.if.org Git - python/log
Neal Norwitz [Sun, 18 Dec 2005 04:42:47 +0000 (04:42 +0000)]
Set MemoryError when alloc fails
Neal Norwitz [Sun, 18 Dec 2005 04:12:30 +0000 (04:12 +0000)]
Wrap long lines in the grammar
Neal Norwitz [Sun, 18 Dec 2005 04:10:10 +0000 (04:10 +0000)]
Fix _sys_version() so it works with the new buildno, not sure if it is correct. test_platform passes
Neal Norwitz [Sun, 18 Dec 2005 03:34:22 +0000 (03:34 +0000)]
SF Patch #
1365916 , mmap fails on AMD64
Fix some 64-bit issues due to mismatch format characters w/actual data types
Neal Norwitz [Sun, 18 Dec 2005 03:16:20 +0000 (03:16 +0000)]
Cleanup a bit and make things more consistent.
Don't double check for NULLs and don't initialize if not necessary.
No functional changes.
Neal Norwitz [Sun, 18 Dec 2005 01:36:44 +0000 (01:36 +0000)]
Add versionadded info
Barry Warsaw [Sun, 18 Dec 2005 01:27:35 +0000 (01:27 +0000)]
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.
Neal Norwitz [Sat, 17 Dec 2005 22:24:12 +0000 (22:24 +0000)]
Doc for PEP 341, needs improvement
Georg Brandl [Sat, 17 Dec 2005 21:47:06 +0000 (21:47 +0000)]
Fix leftover word.
Georg Brandl [Sat, 17 Dec 2005 21:45:17 +0000 (21:45 +0000)]
Added PEP 341 to NEWS.
We still need a change in the reference manual to reflect the
new try statement.
Neal Norwitz [Sat, 17 Dec 2005 21:33:47 +0000 (21:33 +0000)]
SF patch #
1355913 , PEP 341 - Unification of try/except and try/finally
Modified since ast-arenas was implemented.
Neal Norwitz [Sat, 17 Dec 2005 20:54:49 +0000 (20:54 +0000)]
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.
Neal Norwitz [Sat, 17 Dec 2005 18:41:15 +0000 (18:41 +0000)]
Add Michael Urman for work on SF patch #
1365916
Georg Brandl [Sat, 17 Dec 2005 17:47:42 +0000 (17:47 +0000)]
Bug #
1373197 : note that os.makedirs does not work with '..'
Georg Brandl [Sat, 17 Dec 2005 17:31:03 +0000 (17:31 +0000)]
Bug #
1343671 : clarify docs for os.removedirs
Georg Brandl [Sat, 17 Dec 2005 17:14:12 +0000 (17:14 +0000)]
Bug #
1106572 : clarify os.makedirs docs wrt umask
Fredrik Lundh [Sat, 17 Dec 2005 08:33:21 +0000 (08:33 +0000)]
Fixed reference counting error when using the entity dictionary
(reported by Chris Olds). Backported from the 1.0.6 development
branch.
Hye-Shik Chang [Sat, 17 Dec 2005 04:38:31 +0000 (04:38 +0000)]
Bug #
1379994 : Fix *unicode_escape codecs to encode r'\' as r'\\'
just like string codecs.
Tim Peters [Fri, 16 Dec 2005 23:13:57 +0000 (23:13 +0000)]
More text about the pragmatic significance of hashlib.
Brett Cannon [Fri, 16 Dec 2005 22:49:23 +0000 (22:49 +0000)]
Add the missing mention of the hashlib module.
Fredrik Lundh [Fri, 16 Dec 2005 22:07:17 +0000 (22:07 +0000)]
added encoding tests to ElementTree/cElementTree tests
Fredrik Lundh [Fri, 16 Dec 2005 22:06:43 +0000 (22:06 +0000)]
updating to cElementTree 1.0.5 (step 3 of 3)
Fredrik Lundh [Fri, 16 Dec 2005 22:06:06 +0000 (22:06 +0000)]
updating to cElementTree 1.0.5 (step 2 of 3)
Fredrik Lundh [Fri, 16 Dec 2005 22:05:40 +0000 (22:05 +0000)]
updating to cElementTree 1.0.5
Georg Brandl [Fri, 16 Dec 2005 19:36:08 +0000 (19:36 +0000)]
Patch #
1360443 : Make SimpleHTTPServer display unencoded directory names.
Georg Brandl [Fri, 16 Dec 2005 19:23:33 +0000 (19:23 +0000)]
Patch #
1377848 : typo in pyexpat docs
Georg Brandl [Fri, 16 Dec 2005 19:21:05 +0000 (19:21 +0000)]
Patch #
1376914 : traceback.format_exc() has no "file" argument
Trent Mick [Thu, 15 Dec 2005 22:16:49 +0000 (22:16 +0000)]
Set props on _elementtree project file as per pyexpat.vcproj.
Trent Mick [Thu, 15 Dec 2005 22:08:46 +0000 (22:08 +0000)]
Add build support for _elementtree on Windows.
Georg Brandl [Thu, 15 Dec 2005 21:59:00 +0000 (21:59 +0000)]
Bug #
1378455 : a problem of urllib using open_local_file
Georg Brandl [Thu, 15 Dec 2005 21:34:29 +0000 (21:34 +0000)]
Remove reference to the "t" open() mode as it is platform dependent.
Walter Dörwald [Thu, 15 Dec 2005 20:17:20 +0000 (20:17 +0000)]
Add two tests for the script interface.
Fredrik Lundh [Thu, 15 Dec 2005 18:41:22 +0000 (18:41 +0000)]
added cElementTree tests
Neal Norwitz [Thu, 15 Dec 2005 06:40:36 +0000 (06:40 +0000)]
Fix an int/long mismatch identified here:
http://www.tortall.net/mu/blog/2005/12/01
Pointed out from SF #
1365916 .
Backport candidate.
Neal Norwitz [Thu, 15 Dec 2005 05:25:09 +0000 (05:25 +0000)]
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.
Walter Dörwald [Wed, 14 Dec 2005 23:32:22 +0000 (23:32 +0000)]
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.
Fredrik Lundh [Wed, 14 Dec 2005 22:30:36 +0000 (22:30 +0000)]
added PSG licensing blurb
Fredrik Lundh [Wed, 14 Dec 2005 22:29:34 +0000 (22:29 +0000)]
added PSF licensing blurbs to relevant files
Fredrik Lundh [Wed, 14 Dec 2005 21:47:54 +0000 (21:47 +0000)]
fixed eol-style
Fredrik Lundh [Wed, 14 Dec 2005 21:46:41 +0000 (21:46 +0000)]
renamed to _elementtree (for Python 2.5)
Fredrik Lundh [Wed, 14 Dec 2005 21:45:58 +0000 (21:45 +0000)]
copied cElementTree 1.0.4 to Modules
Fredrik Lundh [Wed, 14 Dec 2005 18:46:16 +0000 (18:46 +0000)]
added cElementTree/_elementtree build stuff and wrapper module
Armin Rigo [Wed, 14 Dec 2005 18:10:45 +0000 (18:10 +0000)]
Subversion settings:
svn:ignore *.pyc *.pyo
svn:eol-style native
The .py files appear to have been checked in with Windows or inconsistent line
endings. The current check-in disrupts the 'svn blame', but hopefully it is
irrelevant for freshly imported code.
Armin Rigo [Wed, 14 Dec 2005 18:05:44 +0000 (18:05 +0000)]
Added the 'ULL' prefix to the unsigned long long literal constants.
Supresses numerous pages of compiler warnings.
Armin Rigo [Wed, 14 Dec 2005 18:05:14 +0000 (18:05 +0000)]
When regenerating files like Python-ast.h, take care that the generated
comment based on 'sys.args[0]' does not depend on the path. For Python
builds from a remote directory ("/path/to/configure; make") the previous
logic used to include the "/path/to" portion in Python-ast.h. Then svn
would consider this file to be locally modified.
Fredrik Lundh [Wed, 14 Dec 2005 17:36:36 +0000 (17:36 +0000)]
fixed installation of xmlcore libraries (including xmlcore.etree)
Fred Drake [Wed, 14 Dec 2005 06:26:11 +0000 (06:26 +0000)]
- remove leftover directory
- add file I forgot to add in previous commit
Fred Drake [Wed, 14 Dec 2005 06:20:35 +0000 (06:20 +0000)]
move the xml package implementation to xmlcore, and adjust the tests to
test that package, not the xmlcore/PyXML switcheroo fiasco in the xml
module/package
Fredrik Lundh [Tue, 13 Dec 2005 21:55:36 +0000 (21:55 +0000)]
moved magic into structure (mainly to simplify the client code)
added missing API hooks
Fredrik Lundh [Tue, 13 Dec 2005 20:43:04 +0000 (20:43 +0000)]
renamed dispatch -> capi to match other CAPI implementations
(e.g. cStringIO, ucnhash, etc)
Fredrik Lundh [Tue, 13 Dec 2005 19:49:55 +0000 (19:49 +0000)]
added cobject-based expat dispatch mechanism to pyexpat
Hye-Shik Chang [Tue, 13 Dec 2005 17:06:45 +0000 (17:06 +0000)]
Fix test not to fail on FreeBSD. Directories work also as data
files on the platform.
Hye-Shik Chang [Tue, 13 Dec 2005 16:44:02 +0000 (16:44 +0000)]
Add a workaround for file.ftell() to raise IOError for ttys.
ftell(3) on BSD doesn't set errno even for ttys and returns useless
values.
Andrew M. Kuchling [Tue, 13 Dec 2005 15:49:37 +0000 (15:49 +0000)]
From a suggestion on c.l.py: modernize the introduction to the tutorial.
* Remove talk of shell scripting, replacing it by some more current examples
* Mention C++ and Java as well as C
Raymond H., please feel free to rewrite or revert as you see fit.
If the changes are OK, they could be backported to the 2.4-maint branch.
Fredrik Lundh [Mon, 12 Dec 2005 21:59:52 +0000 (21:59 +0000)]
r1077@spiff: Fredrik | 2005-12-12 22:58:44 +0100
make sure xml.etree can be used even if PyXML is present
(solution proposed by Philip J. Eby)
Fredrik Lundh [Mon, 12 Dec 2005 21:59:44 +0000 (21:59 +0000)]
r1076@spiff: Fredrik | 2005-12-12 22:32:28 +0100
added xml.etree documentation stub
Fredrik Lundh [Mon, 12 Dec 2005 20:53:40 +0000 (20:53 +0000)]
skip NIS entries, empty entries, etc
Fredrik Lundh [Mon, 12 Dec 2005 20:46:31 +0000 (20:46 +0000)]
skip nis entries, if not filtered out by getpwall itself
Fredrik Lundh [Mon, 12 Dec 2005 20:19:44 +0000 (20:19 +0000)]
added xml.etree test (enough of the ElementTree selftest to
make sure that all included components work)
Fredrik Lundh [Mon, 12 Dec 2005 18:54:55 +0000 (18:54 +0000)]
r1068@spiff: Fredrik | 2005-12-12 19:50:30 +0100
assorted xml.etree tweaks
Fredrik Lundh [Mon, 12 Dec 2005 15:10:44 +0000 (15:10 +0000)]
added ElementTree core components to xml.etree
Hye-Shik Chang [Mon, 12 Dec 2005 11:48:32 +0000 (11:48 +0000)]
Bug #
1290333 : Added a workaround for cjkcodecs' _codecs_cn module
build problem on AIX.
Andrew M. Kuchling [Mon, 12 Dec 2005 02:02:24 +0000 (02:02 +0000)]
Remove background image
Neal Norwitz [Sun, 11 Dec 2005 21:18:22 +0000 (21:18 +0000)]
SF #
1373150 , diffs in working copy after a build
Strip off leading dots and slash so the generated files are the same regardless
of whether you configure in the checkout directory or build.
If anyone configures in a different directory, we might want a cleaner
approach using os.path.*(). Hopefully this is good enough.
Neal Norwitz [Sun, 11 Dec 2005 20:55:10 +0000 (20:55 +0000)]
en_sit will be freed when en is DECREF'd. Don't double free.
Neal Norwitz [Sun, 11 Dec 2005 20:12:40 +0000 (20:12 +0000)]
SF #
1377897 , Bus error in ast
If a line had multiple semi-colons and ended with a semi-colon, we would
loop too many times and access a NULL node. Exit the loop early if
there are no more children.
Neal Norwitz [Sun, 11 Dec 2005 20:08:33 +0000 (20:08 +0000)]
SF #
1370197 , memory leak - ast_error_finish (in error conditions).
Jeremy Hylton [Sat, 10 Dec 2005 18:50:16 +0000 (18:50 +0000)]
Add const to several API functions that take char *.
In C++, it's an error to pass a string literal to a char* function
without a const_cast(). Rather than require every C++ extension
module to put a cast around string literals, fix the API to state the
const-ness.
I focused on parts of the API where people usually pass literals:
PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
slots, etc. Predictably, there were a large set of functions that
needed to be fixed as a result of these changes. The most pervasive
change was to make the keyword args list passed to
PyArg_ParseTupleAndKewords() to be a const char *kwlist[].
One cast was required as a result of the changes: A type object
mallocs the memory for its tp_doc slot and later frees it.
PyTypeObject says that tp_doc is const char *; but if the type was
created by type_new(), we know it is safe to cast to char *.
Hye-Shik Chang [Sat, 10 Dec 2005 17:44:27 +0000 (17:44 +0000)]
Patch #
1276356 : Implement new resource "urlfetch" for regrtest.
This enables even impatient people to run tests that require remote
files such as test_normalization and test_codecmaps_*.
Andrew M. Kuchling [Thu, 8 Dec 2005 14:54:20 +0000 (14:54 +0000)]
[Bug #
1349316 ] Show how to use XML-RPC through a proxy
Skip Montanaro [Tue, 6 Dec 2005 21:00:47 +0000 (21:00 +0000)]
add common usage example
Armin Rigo [Tue, 6 Dec 2005 18:32:37 +0000 (18:32 +0000)]
Typo in a code example.
Armin Rigo [Tue, 6 Dec 2005 14:07:39 +0000 (14:07 +0000)]
Nobody on python-dev seemed particularly bothered that Hotshot generates half-
meaningless numbers, but I figured out I would fix that bug anyway.
Neal Norwitz [Tue, 6 Dec 2005 07:41:30 +0000 (07:41 +0000)]
Simplify logic for handling import *
Neal Norwitz [Tue, 6 Dec 2005 07:26:02 +0000 (07:26 +0000)]
Reduce scope of feature
Neal Norwitz [Tue, 6 Dec 2005 06:36:36 +0000 (06:36 +0000)]
Remove unused macro, check is done elsewhere
Neal Norwitz [Mon, 5 Dec 2005 07:16:38 +0000 (07:16 +0000)]
Remove unnecessary extern variable
Neal Norwitz [Mon, 5 Dec 2005 01:23:48 +0000 (01:23 +0000)]
mwh spotted a copied error message, make it unique (and correct)
Neal Norwitz [Mon, 5 Dec 2005 01:17:03 +0000 (01:17 +0000)]
Fix SF #
1373161 , r41552 broke test_file on OS X
You apparently can seek(0) on sys.stdin on OS X.
But you can't go backwards, so seek(-1).
Michael W. Hudson [Mon, 5 Dec 2005 00:27:49 +0000 (00:27 +0000)]
Fix bug
[
1346144 ] Segfaults from unaligned loads in floatobject.c
by using memcpy and not just blinding casting char* to double*.
Thanks to Rune Holm for the report.
Andrew M. Kuchling [Sun, 4 Dec 2005 20:25:23 +0000 (20:25 +0000)]
[Patch #
1372995 ] Add \versionadded
Andrew M. Kuchling [Sun, 4 Dec 2005 19:53:45 +0000 (19:53 +0000)]
[Bug #
1281032 ] Pass encoding from the input source to pyexpat's ParserCreate()
Andrew M. Kuchling [Sun, 4 Dec 2005 19:11:17 +0000 (19:11 +0000)]
[Bug #
1164912 ] Ensure Datetime wrapper class .value attribute is an 8-bit string, not a Unicode string
Andrew M. Kuchling [Sun, 4 Dec 2005 17:17:46 +0000 (17:17 +0000)]
[Bug #
1041501 ] Fix example
Andrew M. Kuchling [Sun, 4 Dec 2005 17:13:12 +0000 (17:13 +0000)]
[Patch #
1039083 ] Add 'encoding' parameter to SimpleXMLRPCServer
Andrew M. Kuchling [Sun, 4 Dec 2005 16:45:05 +0000 (16:45 +0000)]
Use boolean name
Andrew M. Kuchling [Sun, 4 Dec 2005 16:34:40 +0000 (16:34 +0000)]
[Patch #893642] Add optional allow_none argument to SimpleXMLRPCServer, CGIXMLRPCRequestHandler
Andrew M. Kuchling [Sun, 4 Dec 2005 16:09:54 +0000 (16:09 +0000)]
[Bug #
1372836 ] Remove unused code
Andrew M. Kuchling [Sun, 4 Dec 2005 16:07:15 +0000 (16:07 +0000)]
Add placeholder section on old and new-style classes
Andrew M. Kuchling [Sun, 4 Dec 2005 15:36:57 +0000 (15:36 +0000)]
[Bug #792570] Under Windows, socket.read() seems to run into trouble when
asked to read tens of megabytes of data. On my Mac, it hits MemoryErrors
when reading around 15Mb in one chunk. The fix is to read the body in several
parts, not as one big piece.
It would be nice to fix the underlying socket.read() problem, too.
2.4 bugfix candidate.
Andrew M. Kuchling [Sun, 4 Dec 2005 15:07:41 +0000 (15:07 +0000)]
[Bug #
1222790 ] Set reuse-address and close-on-exec flags on the HTTP listening socket
Georg Brandl [Fri, 2 Dec 2005 13:43:08 +0000 (13:43 +0000)]
Bug #
1368481 : python.dir refers to whatsnew23
Anthony Baxter [Thu, 1 Dec 2005 02:25:11 +0000 (02:25 +0000)]
set expectations appropriately. ;)
Walter Dörwald [Wed, 30 Nov 2005 20:16:17 +0000 (20:16 +0000)]
Fix typo.
Andrew M. Kuchling [Wed, 30 Nov 2005 01:14:48 +0000 (01:14 +0000)]
Remove sorting HOWTO, after converting it to a wiki page at http://wiki.python.org/moin/HowTo/Sorting
Martin v. Löwis [Tue, 29 Nov 2005 17:09:13 +0000 (17:09 +0000)]
Silence VS2005 warnings about deprecated functions.
Martin v. Löwis [Tue, 29 Nov 2005 17:08:24 +0000 (17:08 +0000)]
Limit x86 machine instructions and Win95 support to _M_IX86.
Walter Dörwald [Tue, 29 Nov 2005 15:45:14 +0000 (15:45 +0000)]
Test another error case in PyFloat_FromString().
Fred Drake [Tue, 29 Nov 2005 12:40:58 +0000 (12:40 +0000)]
fix link
Fredrik Lundh [Tue, 29 Nov 2005 11:22:29 +0000 (11:22 +0000)]
SF#
1368827
bad link in XML-RPC documentation