Guido van Rossum
1140cb2b9e
When MAKEFLAGS contains '-s', invoke setup.py with '-q', to silence
...
its normally chatty nature.
(This completes a side project to make "make -s" truly silent unless
errors occur.)
2001-09-12 18:59:25 +00:00
Tim Peters
111f60964e
If interning an instance of a string subclass, intern a real string object
...
with the same value instead. This ensures that a string (or string
subclass) object's ob_sinterned pointer is always a str (or NULL), and
that the dict of interned strings only has strs as keys.
2001-09-12 07:54:51 +00:00
Tim Peters
af90b3e610
str_subtype_new, unicode_subtype_new:
...
+ These were leaving the hash fields at 0, which all string and unicode
routines believe is a legitimate hash code. As a result, hash() applied
to str and unicode subclass instances always returned 0, which in turn
confused dict operations, etc.
+ Changed local names "new"; no point to antagonizing C++ compilers.
2001-09-12 05:18:58 +00:00
Tim Peters
7a29bd5861
More on bug 460020: disable many optimizations of unicode subclasses.
2001-09-12 03:03:31 +00:00
Tim Peters
8fa5dd0601
More bug 460020: lots of string optimizations inhibited for string
...
subclasses, all "the usual" ones (slicing etc), plus replace, translate,
ljust, rjust, center and strip. I don't know how to be sure they've all
been caught.
Question: Should we complain if someone tries to intern an instance of
a string subclass? I hate to slow any code on those paths.
2001-09-12 02:18:30 +00:00
Fred Drake
ee0fe0b743
Add missing "}".
2001-09-12 00:43:13 +00:00
Tim Peters
40c397dd56
long_invert(): tiny speed and space optimization.
2001-09-11 23:24:22 +00:00
Tim Peters
9a9471ca1c
Add info about Windows filesystem limits.
2001-09-11 23:18:51 +00:00
Tim Peters
69c2de3ad6
More bug 460020. Disable a number of long optimizations for long subclasses.
2001-09-11 22:31:33 +00:00
Tim Peters
0280cf79a7
More bug 460020: when F is a subclass of float, disable the unary plus
...
optimization (+F(whatever)).
2001-09-11 21:53:35 +00:00
Tim Peters
73a1dfe367
More bug 460020. When I is a subclass of int, disable the +I(whatever),
...
I(0) << whatever, I(0) >> whatever, I(whatever) << 0 and I(whatever) >> 0
optimizations.
2001-09-11 21:44:14 +00:00
Jack Jansen
95fefc7a7a
These modules now live under the Carbon package.
...
Added a few new toolbox modules.
Noted machine dependencies for some modules.
Moved waste to undoc.tex.
2001-09-11 21:25:10 +00:00
Jack Jansen
945bf5f627
Added applesingle, macresource, Nav and videoreader.
...
Moved icopen to its alphabetical place.
Moved waste here (from toolbox).
2001-09-11 21:24:07 +00:00
Jack Jansen
827713a660
Added a note that these are not available under Carbon (or
...
OSX MachO Python).
2001-09-11 20:18:04 +00:00
Fred Drake
85ddfbc4cb
Another documentation contributor.
2001-09-11 19:58:51 +00:00
Fred Drake
098d7fae39
Document clearly that the only way to retrieve the return code from the
...
child processes is to use the Popen3 and Popen4 classes.
This fixes SF bug #460512 .
2001-09-11 19:56:51 +00:00
Tim Peters
7b07a41e9f
The endless 460020 bug.
...
Disable t[:], t*0, t*1 optimizations when t is of a tuple subclass type.
2001-09-11 19:48:03 +00:00
Jack Jansen
f0b0f680fe
Added Donovan Preston.
2001-09-11 19:12:02 +00:00
Fred Drake
1c66f8965a
Added entry for the hmac module.
2001-09-11 16:59:42 +00:00
Fred Drake
aae8da18fd
Documentation for the new login() method of the smtplib.SMTP class,
...
contributed by Gerhard Häring.
This is part of SF patch #460112 .
2001-09-11 16:58:00 +00:00
Fred Drake
42706803cd
Documentation for the new hmac module, contributed by Gerhard Häring.
...
This is part of SF patch #460112 .
2001-09-11 16:56:09 +00:00
Guido van Rossum
25dfe2c095
Silence parser generator output.
2001-09-11 16:43:16 +00:00
Fred Drake
2732cb4269
Added documentation on the getfirst() and getlist() methods of the
...
cgi.FieldStorage class.
This closes SF patch #453691 .
2001-09-11 16:27:03 +00:00
Guido van Rossum
dea6ef9bfd
Replace a few places where X->ob_type was compared to &PyXXX_Type with
...
calls to PyXXX_CheckExact(X).
2001-09-11 16:13:52 +00:00
Guido van Rossum
ae01046f7b
Add login() method and SMTPAuthenticationError exception. SF patch
...
#460112 by Gerhard Haering.
(With slight layout changes to conform to docstrings guidelines and to
prevent a line longer than 78 characters. Also fixed some docstrings
that Gerhard didn't touch.)
2001-09-11 15:57:46 +00:00
Guido van Rossum
f166994b83
Test for new hmac module.
2001-09-11 15:54:16 +00:00
Guido van Rossum
8ceef4141c
HMAC algorithm as described by RFC 2104, by Gerhard Häring (SF patch
...
#460112 ).
2001-09-11 15:54:00 +00:00
Guido van Rossum
07bff869f0
Another contributor.
2001-09-11 15:52:01 +00:00
Martin v. Löwis
1efbe425f5
Patch #460554 : Properly test for tuples.
2001-09-11 15:11:27 +00:00
Fred Drake
3ae5726625
Updated infomation about libraries for alternate compilers on Windows.
...
This closes SF patch #459441 .
2001-09-11 15:10:42 +00:00
Jack Jansen
127e56e5e8
When frameworks are not enabled don't put an empty target in the Makefile.
...
Older make's can apparently choke on this.
2001-09-11 14:41:54 +00:00
Guido van Rossum
dc795b82aa
Fix the second reincarnation of SF #456395 -- failure on IRIX. This
...
time use .replace() to change all \r\n into \n, not just the last one.
2001-09-11 14:24:35 +00:00
Guido van Rossum
779ce4a73a
Restore the comparisons that I initially put in the test but that Tim
...
XXX'ed out. Turns out that after fixing the constructors, the
comparisons in fact succeed. E.g. int(hexint(12345)) returns an int
with value 12345.
2001-09-11 14:02:22 +00:00
Jack Jansen
998a40a6d4
Mods by Donovan Preston (with changes by me to make them "go with the flow")
...
that will detect an __main__.py or __rawmain__.py in the application bundle.
This file is then exectued as the main script. We now have applets in
MachO Python!!!
The difference between __main__ and __rawmain__ is that the former gets a
complete simulated argv (so you can drop files on the applet and the script
sees them in sys.argv) while the latter skips the argv simulation and the
<option>key dialog. This keeps the AppleEvent that started the app intact,
as well as the funny "-psn_xxxx" argv[1] argument, so the script can do
with these what it wants.
2001-09-11 13:08:10 +00:00
Jack Jansen
0b60772ee9
- Removed the . in the extensions.
...
- Allow any file to be dropped on the interpreter (for file args).
2001-09-11 13:01:07 +00:00
Jack Jansen
be67f8a5bf
removed debug print.
2001-09-11 13:00:16 +00:00
Jack Jansen
408c16fad0
Added a note about making sure the Lac/Lib directory is in sys.path.
2001-09-11 11:30:02 +00:00
Jack Jansen
6438e1d280
Failing to import macfsn is not a fatal error.
2001-09-11 11:29:31 +00:00
Jack Jansen
cf0319326a
Implemented PyMac_GetFullPathname for MacPython.
2001-09-11 09:22:19 +00:00
Tim Peters
78e0fc74bc
Possibly the end of SF [ #460020 ] bug or feature: unicode() and subclasses.
...
Changed unicode(i) to return a true Unicode object when i is an instance of
a unicode subclass. Added PyUnicode_CheckExact macro.
2001-09-11 03:07:38 +00:00
Tim Peters
0ebeb584a4
PyUnicode_FromEncodedObject(): Repair memory leak in an error case.
2001-09-11 02:00:50 +00:00
Tim Peters
c636f565b4
Added another test of str() applied to a string subclass instance,
...
involving embedded null bytes, since it's possible to screw that up w/o
screwing up cases w/o embedded nulls.
2001-09-11 01:52:02 +00:00
Tim Peters
5a49ade70e
More on SF bug [ #460020 ] bug or feature: unicode() and subclasses.
...
Repaired str(i) to return a genuine string when i is an instance of a str
subclass. New PyString_CheckExact() macro.
2001-09-11 01:41:59 +00:00
Tim Peters
8ff70a9606
Fix tortured comment -- I must be on drugs today.
2001-09-10 23:53:53 +00:00
Tim Peters
4c3a0a35cd
More on SF bug [ #460020 ] bug or feature: unicode() and subclasses.
...
tuple(i) repaired to return a true tuple when i is an instance of a
tuple subclass.
Added PyTuple_CheckExact macro.
PySequence_Tuple(): if a tuple-like object isn't exactly a tuple, it's
not safe to return the object as-is -- make a new tuple of it instead.
2001-09-10 23:37:46 +00:00
Tim Peters
caaff8d95d
test_dir(): Add tests for dir(i) where i is a module subclass.
2001-09-10 23:12:14 +00:00
Jack Jansen
7b0494635b
Prototype for PyMac_GetFullPathname().
2001-09-10 22:09:30 +00:00
Jack Jansen
697842f58c
Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'
...
parameter for the return string (as unix pathnames are not limited
by the 255 char pstring limit).
Implemented the function for MachO-Python, where it returns unix pathnames.
2001-09-10 22:00:39 +00:00
Fredrik Lundh
b0e8e9b72f
more xmlrpclib tweaks: fixed repr(Fault()); enable UTF-8 parsing in
...
xmllib (on 2.0 and later)
2001-09-10 21:45:42 +00:00
Tim Peters
7a50f2536e
More for SF bug [ #460020 ] bug or feature: unicode() and subclasses
...
Repair float constructor to return a true float when passed a subclass
instance. New PyFloat_CheckExact macro.
2001-09-10 21:28:20 +00:00