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
Fredrik Lundh
0c53bfd374
copied cElementTree 1.0.4 to Modules
2005-12-14 21:45:58 +00:00
Fredrik Lundh
4c86ec651e
added cElementTree/_elementtree build stuff and wrapper module
2005-12-14 18:46:16 +00:00
Armin Rigo
9ed7306031
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.
2005-12-14 18:10:45 +00:00
Armin Rigo
5c8cc2543b
Added the 'ULL' prefix to the unsigned long long literal constants.
...
Supresses numerous pages of compiler warnings.
2005-12-14 18:05:44 +00:00
Armin Rigo
6b1793ff88
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.
2005-12-14 18:05:14 +00:00
Fredrik Lundh
d39683396b
fixed installation of xmlcore libraries (including xmlcore.etree)
2005-12-14 17:36:36 +00:00
Fred Drake
7316ad224d
- remove leftover directory
...
- add file I forgot to add in previous commit
2005-12-14 06:26:11 +00:00
Fred Drake
c6730e1772
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
2005-12-14 06:20:35 +00:00
Fredrik Lundh
cc117dbb9d
moved magic into structure (mainly to simplify the client code)
...
added missing API hooks
2005-12-13 21:55:36 +00:00
Fredrik Lundh
d7a42881db
renamed dispatch -> capi to match other CAPI implementations
...
(e.g. cStringIO, ucnhash, etc)
2005-12-13 20:43:04 +00:00
Fredrik Lundh
c3345040df
added cobject-based expat dispatch mechanism to pyexpat
2005-12-13 19:49:55 +00:00
Hye-Shik Chang
e2f8e3c14f
Fix test not to fail on FreeBSD. Directories work also as data
...
files on the platform.
2005-12-13 17:06:45 +00:00
Hye-Shik Chang
e237d50390
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.
2005-12-13 16:44:02 +00:00
Andrew M. Kuchling
50f8169fb6
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.
2005-12-13 15:49:37 +00:00
Fredrik Lundh
af57fa13f4
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)
2005-12-12 21:59:52 +00:00
Fredrik Lundh
245c619e86
r1076@spiff: Fredrik | 2005-12-12 22:32:28 +0100
...
added xml.etree documentation stub
2005-12-12 21:59:44 +00:00
Fredrik Lundh
0e664e15ef
skip NIS entries, empty entries, etc
2005-12-12 20:53:40 +00:00
Fredrik Lundh
80768f8635
skip nis entries, if not filtered out by getpwall itself
2005-12-12 20:46:31 +00:00
Fredrik Lundh
2a60d9ac2d
added xml.etree test (enough of the ElementTree selftest to
...
make sure that all included components work)
2005-12-12 20:19:44 +00:00
Fredrik Lundh
7e0aef0e75
r1068@spiff: Fredrik | 2005-12-12 19:50:30 +0100
...
assorted xml.etree tweaks
2005-12-12 18:54:55 +00:00
Fredrik Lundh
075854fcc5
added ElementTree core components to xml.etree
2005-12-12 15:10:44 +00:00
Hye-Shik Chang
c5c57e6d98
Bug #1290333 : Added a workaround for cjkcodecs' _codecs_cn module
...
build problem on AIX.
2005-12-12 11:48:32 +00:00
Andrew M. Kuchling
e569fb5d71
Remove background image
2005-12-12 02:02:24 +00:00
Neal Norwitz
897ff817d5
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.
2005-12-11 21:18:22 +00:00
Neal Norwitz
ba2fa637d6
en_sit will be freed when en is DECREF'd. Don't double free.
2005-12-11 20:55:10 +00:00
Neal Norwitz
f8d403dd97
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.
2005-12-11 20:12:40 +00:00
Neal Norwitz
8ad64aaacc
SF #1370197 , memory leak - ast_error_finish (in error conditions).
2005-12-11 20:08:33 +00:00
Jeremy Hylton
af68c874a6
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 *.
2005-12-10 18:50:16 +00:00
Hye-Shik Chang
aaa2f1dea7
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_*.
2005-12-10 17:44:27 +00:00
Andrew M. Kuchling
432be36056
[Bug #1349316 ] Show how to use XML-RPC through a proxy
2005-12-08 14:54:20 +00:00
Skip Montanaro
ef1b50de6c
add common usage example
2005-12-06 21:00:47 +00:00
Armin Rigo
5ed262b7de
Typo in a code example.
2005-12-06 18:32:37 +00:00
Armin Rigo
de5f05f3b1
Nobody on python-dev seemed particularly bothered that Hotshot generates half-
...
meaningless numbers, but I figured out I would fix that bug anyway.
2005-12-06 14:07:39 +00:00
Neal Norwitz
28b32ac6bc
Simplify logic for handling import *
2005-12-06 07:41:30 +00:00
Neal Norwitz
b15ec09343
Reduce scope of feature
2005-12-06 07:26:02 +00:00
Neal Norwitz
c1f213ebdc
Remove unused macro, check is done elsewhere
2005-12-06 06:36:36 +00:00
Neal Norwitz
e536892541
Remove unnecessary extern variable
2005-12-05 07:16:38 +00:00
Neal Norwitz
ec77645df9
mwh spotted a copied error message, make it unique (and correct)
2005-12-05 01:23:48 +00:00
Neal Norwitz
a6fc397a80
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).
2005-12-05 01:17:03 +00:00