Jeremy Hylton
1ba6bada67
It will always be a string, because it is created just before this call.
2001-08-20 19:06:36 +00:00
Guido van Rossum
a92d16aaec
SF patch #452239 by Gordon McMillan, to fix SF bug #451547 .
...
This patch attempts to do to cPickle what Guido did
for pickle.py v 1.50. That is: save_global tries
importing the module, and fetching the name from the
module. If that fails, or the returned object is not
the same one we started with, it raises a
PicklingError. (All this so pickling a lambda will
fail at save time, rather than load time).
2001-08-18 21:22:07 +00:00
Tim Peters
aa32070f4d
Expose the CO_xxx flags via the "new" module (re-solving a problem "the
...
right way"). Fiddle __future__.py to use them.
Jeremy's pyassem.py may also want to use them (by-hand duplication of
magic numbers is brittle), but leaving that to his judgment.
Beef up __future__'s test to verify the exported feature names appear
correct.
2001-08-18 20:18:49 +00:00
Skip Montanaro
95618b5bc9
added warnings about security risk of using tmpnam and tempnam
2001-08-18 18:52:10 +00:00
Martin v. Löwis
339d0f720e
Patch #445762 : Support --disable-unicode
...
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
2001-08-17 18:39:25 +00:00
Tim Peters
4b046c252e
Stop adding 3 to FD_SETSIZE -- it makes no sense. If it turns out it
...
actually does <wink>, perhaps an Insure run will catch it.
Also removed senseless Windows comment.
2001-08-16 21:59:46 +00:00
Barry Warsaw
214a0b1382
init_sre(): Plug a little leak reported by Insure.
2001-08-16 20:33:48 +00:00
Barry Warsaw
2f7045576d
Fixed a couple of minor formatting nits where lines were > 79 columns wide.
2001-08-16 16:55:10 +00:00
Barry Warsaw
b44740f741
select_select(): Closing bug #448351 the easy way, i.e. by changing
...
the "#ifdef MS_WINDOWS" to "#ifdef SELECT_USES_HEAP" and by
setting SELECT_USES_HEAP when FD_SETSIZE > 1024.
The indirection seems useful since this subtly changes the path
that "normal" Windows programs take (where Timmie sez FD_SETSIZE =
512). If that's a problem for Windows, he has only one place to
change.
2001-08-16 16:52:59 +00:00
Fred Drake
7fdc0a1835
Use METH_O where possible (two functions). This does not lead to real
...
performance changes since the affected functions are not expected to be
used frequently, but reduces the volume of code.
2001-08-16 14:11:30 +00:00
Guido van Rossum
83f56cb2db
Change the type names to xxsublist.<name>.
2001-08-16 09:10:42 +00:00
Guido van Rossum
88dcf03068
Add 'state' as a get/set attribute to spamlist. This serves as an
...
example.
2001-08-15 18:18:58 +00:00
Guido van Rossum
e6b90eaea1
Add 'state' as a read-only attribute to spamdict. This serves as an
...
example.
2001-08-15 18:09:11 +00:00
Martin v. Löwis
f95dd0a298
Fix portability problems with glibc 2.0, as reported in #449157 .
2001-08-15 17:14:33 +00:00
Fred Drake
13130bc5b1
Use the abstract object interfaces when digging around in module objects
...
instead of directly manipulating the underlying dictionary.
2001-08-15 16:44:56 +00:00
Jack Jansen
e925faff8e
With WITH_NEXT_FRAMEWORK defined we now also expect a normal Python
...
installation.
If there is no LANDMARK we assume we're a bare framework in the
install directory (again WITH_NEXT_FRAMEWORK only).
2001-08-15 01:14:40 +00:00
Martin v. Löwis
f65b1a175f
Bump size of sprintf buffer. Suggested by Alex Coventry.
2001-08-12 09:28:40 +00:00
Martin v. Löwis
1ba3fd5d51
Autotest for netpacket/packet.h, as it is not available on all Linux versions.
...
Depend AF_PACKET on HAVE_NETPACKET_PACKET_H. Fixes #449157
2001-08-10 20:29:40 +00:00
Martin v. Löwis
c4416d5a2c
_DATE_FMT does not always accompany CODESET.
2001-08-10 19:41:45 +00:00
Neil Schemenauer
17e7be60b4
Remove "referents" structure (it's not needed). Check return value
...
of PyList_Append.
2001-08-10 14:46:47 +00:00
Martin v. Löwis
9b75dca192
Expose nl_langinfo through locale where available.
2001-08-10 13:58:50 +00:00
Fred Drake
428e75fc3e
Add wrappers around the rich-comparison operations.
...
This closes SF patch #428320 .
Add wrappers to expose "floor" and "true" division.
This closes SF feature request #449093 .
2001-08-09 20:14:34 +00:00
Neil Schemenauer
c7c8d8e32d
Add get_objects function. This is a low level function (like
...
get_referents, and is not yet documented in the library manual).
Suggestions for a better name welcome.
2001-08-09 15:58:59 +00:00
Neil Schemenauer
48c7034454
Add get_referents function. Closes SF patch #402925 .
2001-08-09 15:38:31 +00:00
Martin v. Löwis
f9836ba4fe
Put conditional S_ISDIR definition(s) into pyport.h.
2001-08-08 10:28:06 +00:00