- 09 Aug, 2002 27 commits
-
-
Guido van Rossum authored
Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
-
Guido van Rossum authored
Fred, please review!
-
Guido van Rossum authored
rewrite, by Zack Weinberg). This replaces most code in tempfile.py (please review!!!) and adds extensive unit tests for it. This will cause some warnings in the test suite; I'll check those in soon, and also the docs.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
it does for 8-bit strings.
-
Neil Schemenauer authored
example of where this changes behavior is when a new-style instance defines '__mul__' and '__rmul__' and is multiplied by an int. Before the change the '__rmul__' method is never called, even if the int is the left operand.
-
Fred Drake authored
PyXML 0.8.
-
Jack Jansen authored
symlink and remove it.
-
Jack Jansen authored
- Pre-cache .rsrc files in Mac subtree after installing - Fixed nameclash in Make variables
-
Jack Jansen authored
the applesingle file. - Added optional verbose option for cachersrc tool.
-
Jack Jansen authored
similar to compileall.py.
-
Sjoerd Mullender authored
-
Sjoerd Mullender authored
flag is given (to mimic native Windows).
-
Jack Jansen authored
standard lib.
-
Jack Jansen authored
in the directories given.
-
Steve Purcell authored
versions, since 'repr(new_style_class) != repr(classic_class)'. Suggested by Jeremy Hylton.
-
Jack Jansen authored
-
Jack Jansen authored
-
Tim Peters authored
-
Neal Norwitz authored
-
Fred Drake authored
-
Guido van Rossum authored
trampolining going on with the tp_new descriptor, where the inherited PyType_GenericNew was overwritten with the much slower slot_tp_new which would end up calling tp_new_wrapper which would eventually call PyType_GenericNew. Add a special case for this to update_one_slot(). XXX Hope there isn't a loophole in this. I'll buy the first person to point out a bug in the reasoning a beer. Backport candidate (but I won't do it).
-
Raymond Hettinger authored
Closes SF Bug #592573 where inplace add mutated a UserString. Added unittests to verify the bug is cleared.
-
Raymond Hettinger authored
tupleobject.c. Makes the code in iterobject.c cleaner and speeds-up the general case by not checking for tuples everytime. SF Patch #592065.
-
Raymond Hettinger authored
rather than vereq(). While it was effectively testing regular strings, it ignored the test() function argument when called by test_userstring.py.
-
Jack Jansen authored
the framework, the MacOSX apps and the unix tools. Most of the hard work is done by Mac/OSX/Makefile. Also, it should now be possible to install in a different directory, such as /tmp/dist/Library/Frameworks, for building binary installers. The fink crowd wanted this.
-
- 08 Aug, 2002 13 commits
-
-
Guido van Rossum authored
intern the string "__new__" so we can call PyObject_GetAttr() rather than PyObject_GetAttrString(). (Though it's a mystery why slot_tp_new is being called when a class doesn't define __new__. I'll look into that tomorrow.) 2.2 backport candidate (but I won't do it).
-
Jack Jansen authored
Good thing, too: some of the characters had been mangled by OS9->CVS->OSX roundtrips.
-
Guido van Rossum authored
a lot of work: it had to save and restore the current exception around a call to lookup_maybe(), because that could fail in rare cases, and most objects don't have a __del__ method, so the whole exercise was usually a waste of time. Changed this to cache the __del__ method in the type object just like all other special methods, in a new slot tp_del. So now subtype_dealloc() can test whether tp_del is NULL and skip the whole exercise if it is. The new slot doesn't need a new flag bit: subtype_dealloc() is only called if the type was dynamically allocated by type_new(), so it's guaranteed to have all current slots. Types defined in C cannot fill in tp_del with a function of their own, so there's no corresponding "wrapper". (That functionality is already available through tp_dealloc.)
-
Guido van Rossum authored
MacIntyre. At least on OS/2, a subsequent connect() on a nonblocking socket returns errno==EISCONN to indicate success. This seems harmless on Unix.
-
Guido van Rossum authored
value; others were inconsistent in what to name the argument or return value; a few module-global functions had "socket." in front of their name, against convention.
-
Guido van Rossum authored
least on OS/2 (see note on SF patch 555085 by A I MacIntyre) but looks like the test *could* fail on any other platform too -- there's no guarantee that recv() reads all data.
-
Tim Peters authored
-
Tim Peters authored
-
Jason Tishler authored
YA Cygwin module patch very similar to other patches that I have submitted. I tested under Cygwin and Red Hat Linux 7.1.
-
Guido van Rossum authored
to delete the reference to self._sock, and the regular destructor will do that just fine. This made some hacks in close() unnecessary. The _fileobject class still has a __del__ method, because it must flush.
-
Guido van Rossum authored
This is important IMO because httplib reads the headers this way.
-
Guido van Rossum authored
observation that _rbuf could never have more than one string in it. So make _rbuf a string. The code branches for size<0 and size>=0 are completely separate now, both in read() and in readline(). I checked for tabs this time. :-)
-
Guido van Rossum authored
-