parent
9f79dbfd4a
commit
b184ae860e
|
@ -23,7 +23,7 @@ zone, daylight saving time, or other kind of algorithmic or political
|
|||
time adjustment. Whether a naive \class{datetime} object represents
|
||||
Coordinated Universal Time (UTC), local time, or time in some other
|
||||
timezone is purely up to the program, just like it's up to the program
|
||||
whether a particular number represents meters, miles, or mass. Naive
|
||||
whether a particular number represents metres, miles, or mass. Naive
|
||||
\class{datetime} objects are easy to understand and to work with, at
|
||||
the cost of ignoring some aspects of reality.
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ mapping. The initial memory values for all three access types are
|
|||
taken from the specified file. Assignment to an
|
||||
\constant{ACCESS_READ} memory map raises a \exception{TypeError}
|
||||
exception. Assignment to an \constant{ACCESS_WRITE} memory map
|
||||
affects both memory and the underlying file. Assigment to an
|
||||
affects both memory and the underlying file. Assignment to an
|
||||
\constant{ACCESS_COPY} memory map affects memory but does not update
|
||||
the underlying file.
|
||||
|
||||
|
|
|
@ -639,7 +639,7 @@ Availability: Windows.
|
|||
\begin{datadesc}{SEEK_SET}
|
||||
\dataline{SEEK_CUR}
|
||||
\dataline{SEEK_END}
|
||||
Parameteters to the \function{lseek()} function.
|
||||
Parameters to the \function{lseek()} function.
|
||||
Their values are 0, 1, and 2, respectively.
|
||||
Availability: Windows, Macintosh, \UNIX.
|
||||
\versionadded{2.5}
|
||||
|
|
|
@ -114,7 +114,7 @@ Return the screen size in pixels.
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{getscrmm}{}
|
||||
Return the screen size in millimeters.
|
||||
Return the screen size in millimetres.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{fetchcolor}{colorname}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
\moduleauthor{Fredrik Lundh}{fredrik@pythonware.com}
|
||||
\sectionauthor{Eric S. Raymond}{esr@snark.thyrsus.com}
|
||||
|
||||
% Not everyting is documented yet. It might be good to describe
|
||||
% Not everything is documented yet. It might be good to describe
|
||||
% Marshaller, Unmarshaller, getparser, dumps, loads, and Transport.
|
||||
|
||||
\versionadded{2.2}
|
||||
|
|
|
@ -731,7 +731,7 @@ Ousterhout's book.
|
|||
Screen distances can be specified in either pixels or absolute
|
||||
distances. Pixels are given as numbers and absolute distances as
|
||||
strings, with the trailing character denoting units: \code{c}
|
||||
for centimeters, \code{i} for inches, \code{m} for millimeters,
|
||||
for centimetres, \code{i} for inches, \code{m} for millimetres,
|
||||
\code{p} for printer's points. For example, 3.5 inches is expressed
|
||||
as \code{"3.5i"}.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
\chapter{MacPython OSA Modules \label{scripting}}
|
||||
|
||||
Python has a fairly complete implementation of the Open Scripting
|
||||
Architecure (OSA, also commonly referred to as AppleScript), allowing
|
||||
Architecture (OSA, also commonly referred to as AppleScript), allowing
|
||||
you to control scriptable applications from your Python program,
|
||||
and with a fairly pythonic interface.
|
||||
|
||||
|
|
|
@ -960,7 +960,7 @@ The set membership test has traditionally been bound to sequences; an
|
|||
object is a member of a set if the set is a sequence and contains an
|
||||
element equal to that object. However, it is possible for an object
|
||||
to support membership tests without being a sequence. In particular,
|
||||
dictionaries support memership testing as a nicer way of spelling
|
||||
dictionaries support membership testing as a nicer way of spelling
|
||||
\code{\var{key} in \var{dict}}; other mapping types may follow suit.
|
||||
|
||||
For the list and tuple types, \code{\var{x} in \var{y}} is true if and
|
||||
|
|
Loading…
Reference in New Issue