Martin v. Löwis
5c97c798d2
Make ssize_t-clean.
2006-02-17 15:49:09 +00:00
Georg Brandl
21dd1afde7
Add NEWS entry to previous checkin.
2006-02-17 13:35:13 +00:00
Georg Brandl
5d076961e2
Patch #1417555 : SimpleHTTPServer now returns Last-Modified headers.
2006-02-17 13:34:16 +00:00
Georg Brandl
bcd548bdb2
Update "undocumented modules" section.
2006-02-17 11:51:41 +00:00
Georg Brandl
b86a54f395
Add deprecation warning to modules deprecated since 2000.
2006-02-17 11:29:04 +00:00
Georg Brandl
b56230b30d
Add deprecation notices to modules deprecated since 2000.
2006-02-17 11:18:58 +00:00
Thomas Wouters
2c98a7bbc6
Fix typo.
2006-02-17 09:59:00 +00:00
Georg Brandl
bd3bc4dc4c
Bug #1430298 : It is now possible to send a mail with an empty
...
return address using smtplib.
2006-02-17 09:52:53 +00:00
Georg Brandl
0e1abe2a07
Add bug number to NEWS entry.
2006-02-17 09:48:14 +00:00
Georg Brandl
501dd0dd9d
The names of lambda functions are now properly displayed in pydoc.
2006-02-17 09:45:40 +00:00
Georg Brandl
1b6726732c
Bug #1432350 : arrayobject should use PyObject_VAR_HEAD
2006-02-17 08:56:33 +00:00
Martin v. Löwis
86d662602d
Patch #1432345 : Make python compile on DragonFly.
2006-02-17 08:40:11 +00:00
Martin v. Löwis
cfe7e0912c
Remove size restrictions.
2006-02-17 06:59:14 +00:00
Tim Peters
f28829577d
mmap_flush_method(): Squash compiler warning about
...
mixing signed and unsigned types in comparison.
2006-02-17 01:07:39 +00:00
Tim Peters
8f9cc29e74
Remove space between function name and left paren
...
in function calls.
2006-02-17 00:00:20 +00:00
Tim Peters
23721ee96c
Removed pointless parens around `return` expressions;
...
deleted some curlies around one-line blocks.
2006-02-16 23:50:16 +00:00
Tim Peters
ec0a5f0add
Trimmed trailing whitespace.
2006-02-16 23:47:20 +00:00
Tim Peters
e564e7f939
new_mmap_object(), Windows flavor.
...
On a box where sizeof(size_t) == 4, C doesn't define
what happens when a size_t value is shifted right by
32 bits, and this caused test_mmap to fail on Windows
in a debug build. So use different code to break
the size apart depending on how large size_t actually
is.
This looks like an illusion, since lots of code in this
module still appears to assume sizes can't be more
than 32 bits (e.g., the internal _GetMapSize() still
returns an int), but at least test_mmap passes again.
2006-02-16 23:46:01 +00:00
Thomas Wouters
dde176593d
More Py_ssize_t format characters.
2006-02-16 21:10:52 +00:00
Tim Peters
2ad8c56e6c
struct_pack(): Repair new assert-fail crash in
...
debug-build test_struct on a box where plain "char"
is signed.
2006-02-16 20:19:46 +00:00
Thomas Wouters
02cbdd3461
Use proper PyArg_Parse format char for Py_ssize_t, instead of 'l', in
...
buffer_new(). Probably fixes a bug in 'buffer("", 10, 10)' on platforms
where sizeof(Py_ssize_t) != sizeof(long) (Win64?)
2006-02-16 19:44:46 +00:00
Thomas Wouters
de01774dae
Use correct PyArg_Parse format char for Py_ssize_t in unicode.center().
...
Fixes:
>>> u"".center(10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
MemoryError
on 64-bit systems.
2006-02-16 19:34:37 +00:00
Thomas Wouters
13870b18f2
Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter over
...
lists and call Py_ssize_t-using helpers. All other code in this module was
already adapted to Py_ssize_t.
2006-02-16 19:21:53 +00:00
Thomas Wouters
ed6254acf2
Use 'n' format for Py_ssize_t variables to PyArg_ParseTuple(). Py_ssize_t
...
has been applied fairly arbitrarily in this module (nsmallest uses
Py_ssize_t, nlargest does not) and it probably deserves a more complete
review. Fixes heapq.nsmallest() always returning the empty list (on
platforms with 64-bit ssize_t/long)
2006-02-16 17:32:54 +00:00
Thomas Wouters
7a2f83b706
Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple().
2006-02-16 17:07:41 +00:00
Thomas Wouters
977485d888
Use Py_ssize_t in helper function between Py_ssize_t-using functions.
2006-02-16 15:59:12 +00:00
Thomas Wouters
f4de69e34d
Add encoding-test datafiles to svn:ignore:
...
EUC-CN.TXT
CP936.TXT
BIG5HKSCS.TXT
CP932.TXT
EUC-JP.TXT
SHIFTJIS.TXT
EUC-JISX0213.TXT
SHIFT_JISX0213.TXT
CP949.TXT
EUC-KR.TXT
JOHAB.TXT
BIG5.TXT
CP950.TXT
NormalizationTest-3.2.0.txt
2006-02-16 15:41:34 +00:00
Martin v. Löwis
345d6c6e8c
Drop vsextcomp_verbose
2006-02-16 14:57:52 +00:00
Thomas Wouters
bbdf6078f6
Fix broken example of csv.reader use (it returns an iterator, which isn't
...
indexable) by using the same 'for' construct as all other examples. (Also
emphasizes that reading from a random iterable is no different than reading
from a file.)
2006-02-16 14:57:05 +00:00
Martin v. Löwis
41290685f9
Change _PyObject_GC_Resize to expect Py_ssize_t.
2006-02-16 14:56:14 +00:00
Martin v. Löwis
df40ce3646
Fix typo
2006-02-16 14:38:30 +00:00
Martin v. Löwis
67baee6287
Move cast to suppress warning.
2006-02-16 14:37:48 +00:00
Martin v. Löwis
d96ee90993
Use Py_ssize_t to count the
2006-02-16 14:37:16 +00:00
Martin v. Löwis
f5adf1eb72
Use Py_ssize_t to count the length.
2006-02-16 14:35:38 +00:00
Martin v. Löwis
eb079f1c25
Use Py_ssize_t for counts and sizes.
...
Convert Py_ssize_t using PyInt_FromSsize_t
2006-02-16 14:32:27 +00:00
Martin v. Löwis
ad0a4629be
Use Py_ssize_t for counts and sizes.
2006-02-16 14:30:23 +00:00
Martin v. Löwis
97c65a8068
Use Py_ssize_t for field sizes and offsets.
2006-02-16 14:24:38 +00:00
Martin v. Löwis
44e379d573
Allow for ssize_t field offsets.
2006-02-16 14:23:19 +00:00
Neal Norwitz
3eaf2b5044
Update comment and make accurate.
2006-02-16 08:08:54 +00:00
Neal Norwitz
82c5a86d7c
Oops, this is supposed to be disabled by default.
2006-02-16 07:30:11 +00:00
Martin v. Löwis
720ddb625b
Use PyString_FromFormat for formatting error messages.
2006-02-16 07:11:33 +00:00
Martin v. Löwis
e0e89f7920
Revert 42400.
2006-02-16 06:59:22 +00:00
Martin v. Löwis
2c95cc6d72
Support %zd in PyErr_Format and PyString_FromFormat.
2006-02-16 06:54:25 +00:00
Neal Norwitz
26efe402c2
Get rid of compiler warnings (gcc 3.3.4 on x86)
2006-02-16 06:21:57 +00:00
Tim Peters
15231548d2
doubletounicode(), longtounicode():
...
Py_SAFE_DOWNCAST can evaluate its first argument multiple
times in a debug build. This caused two distinct assert-
failures in test_unicode run under a debug build. Rewrote
the code in trivial ways so that multiple evaluation of the
first argument doesn't hurt.
2006-02-16 01:08:01 +00:00
Tim Peters
c7f6cf6247
getpythonregpath(): Squash compiler warning about
...
mixing signed and unsigned types in comparison.
Relatedly, `dataSize` is declared as DWORD, not as
int, so change relevant cast from (int) to (DWORD).
2006-02-16 00:35:06 +00:00
Thomas Wouters
4701af5bf5
Remove two unused Py_ssize_t variables (merge glitches, looks like.)
2006-02-15 23:10:32 +00:00
Thomas Wouters
b1410fb433
Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalize
...
whitespace.
2006-02-15 23:08:56 +00:00
Vinay Sajip
55aafab04f
Added some more versionchanged markup.
2006-02-15 21:47:32 +00:00
Martin v. Löwis
a87c445177
Remove C99ism.
2006-02-15 19:56:18 +00:00