| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This closes SF patch #428320.
Add wrappers to expose "floor" and "true" division.
This closes SF feature request #449093.
|
|
|
|
| |
uninstantiable. All is well now.
|
|
|
|
|
| |
inherited unless *both*: (a) the base type is 'object', and (b) the
subtype is not a "heap" type.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bit. For one, this class:
class C(object):
def __new__(myclass, ...): ...
would have no way to call the __new__ method of its base class, and
the workaround (to create an intermediate base class whose __new__ you
can call) is ugly.
So, I've come up with a better solution that restores object.__new__,
but still solves the original problem, which is that built-in and
extension types shouldn't inherit object.__new__. The solution is
simple: only "heap types" inherit tp_new. Simpler, less code,
perfect!
|
|
|
|
| |
repr(type(x)).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, f.read() and f.readlines() checked for
errors on their file object and possibly raised an
IOError, but f.readline() didn't. This patch makes
f.readline() behave like the others.
Note that I've added a call to clearerr() since the other calls to
ferror() include that too.
I have no way to test this code. :-)
|
|
|
|
| |
Look specific to Windows. Don't know whether it works.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For local files urllib.py doesn't return the MIME
headers that the documentation says it does:
http://www.python.org/doc/current/lib/module-
urllib.html#l2h-2187 states that "When the method is
local-file, returned headers will include a Date
representing the file's last-modified time, a Content-
Length giving file size, and a Content-Type containing
a guess at the file's type"
But in Python 2.1 the only header that gets returned
is the Content-Type:
>>> import urllib
>>> f = urllib.urlopen("gurk.txt")
>>> f.info().headers
['Content-Type: text/plain\n']
|
|
|
|
| |
string.join() on each invocation of _bind.
|
| |
|
|
|
|
|
|
|
|
|
| |
Python's logolike module turtle.py did not display
the turtle except when actually drawing lines.
This patch changes the turtle.py module so that
it displays the turtle at all times when tracing is
on. This is similar to the the way that logo works.
When tracing is off the turtle will not be displayed.
|
|
|
|
| |
asking to print the references.
|
| |
|
|
|
|
|
| |
get_referents, and is not yet documented in the library manual).
Suggestions for a better name welcome.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
If multiple header files are processed simultaneously which include each
other, the corresponding modules mport each other. Specifically, if h2py
is invoked with sys/types.h first, later header files won't contain the
complete contents of TYPES.py.
|
|
|
|
| |
Recognize Solaris IPv6 by checking /etc/netconfig.
|
|
|
|
| |
Also move up AC_AIX and AC_MINIX further up.
|
|
|
|
|
| |
config.h (anymore). People will still have to delete config.h from their
source trees manually :)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(This file could stand some reorganization -- it's hard to tell the
open items apart from those that are done or nearly done.)
|
| |
|
|
|
|
| |
class.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
division. The basic binary operators now all correctly call the
__rxxx__ variant when they should.
In type_new(), I now make the new type a new-style number unless it
inherits from an old-style number that has numeric methods.
By way of cosmetics, I've changed the signatures of the SLOT<i> macros
to take actual function names and operator names as strings, rather
than rely on C preprocessor symbol manipulations. This makes the
calls slightly more verbose, but greatly helps simple searches through
the file: you can now find out where "__radd__" is used or where the
function slot_nb_power() is defined and where it is used.
|
|
|
|
|
| |
eventually be generated so version numbers and such are automatically
correct, but they do the job for now.
|
| |
|
|
|
|
|
|
|
|
|
| |
LettError, Erik van Blokland, http://www.letterror.com/
the Python Windows installer finally has an attractive Pythonic bitmap
to delight the senses and dampen the fears of the millions and millions of
eager new Windows users anticipating their first Python programming joy.
Always knew Mac users secretly wanted to switch to Windows <wink>.
|
| |
|
|
|
|
|
|
| |
In the Wise installer's "Advanced Options" dialog, substitute in the
actual name of "the system directory" -- this is clearer, and especially
for people reading this dialog who aren't me <wink>.
|
|
|
|
|
|
|
| |
PyInterpreterState_*Head(), PyInterpreterState_Next(), and
PyThreadState_Next().
Wrapped some long lines, added some others.
|
| |
|
|
|
|
| |
PyNumber_*TrueDivide().
|
|
|
|
| |
pre-release limits.h".
|
| |
|
| |
|
|
|
|
| |
warnings in the MetroWerks compiler.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Give a warning if you're on a case-insensitive filesystem and have
not specified --with-suffix.
- Don't require --with-dyld, it is now default for OSX/Darwin (suggested
by Martin v. Loewis)
- Don't define _POSIX_THREADS on Darwin, it's done by standard headers already
(fix by Tony Lownds)
- Don't use the Mac subtree anymore, the routines relevant to OSX/Darwin
have moved to a new file Python/mactoolboxglue.c.
|