]> granicus.if.org Git - python/commitdiff
Note that readframes() returns data in linear format, even if the original
authorFred Drake <fdrake@acm.org>
Fri, 17 Nov 2000 19:05:12 +0000 (19:05 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 17 Nov 2000 19:05:12 +0000 (19:05 +0000)
is encoded in u-LAW format.  Based on suggestion from Anthony Baxter
<anthony_baxter@users.sourceforge.net>.

This closes bug #122273.

Doc/ACKS
Doc/lib/liblocale.tex
Doc/lib/libsunau.tex
Doc/ref/ref2.tex
Doc/texinputs/boilerplate.tex
Doc/texinputs/howto.cls
Doc/tools/listmodules
Doc/tools/sgmlconv/conversion.xml

index 5f4e57dc1a734a7ea9dfe6175d250b49b7576c91..ac84349b6bf9668edb4381b30ff83fa8d8ae74af 100644 (file)
--- a/Doc/ACKS
+++ b/Doc/ACKS
@@ -22,6 +22,7 @@ Oliver Andrich
 Daniel Barclay
 Chris Barker
 Don Bashford
+Anthony Baxter
 Bennett Benson
 Jonathan Black
 Robin Boerdijk
@@ -30,6 +31,7 @@ Aaron Brancotti
 Keith Briggs
 Lorenzo M. Catucci
 Mauro Cicognini
+Gilles Civario
 Steve Clift
 Andrew Dalke
 Ben Darnell
@@ -126,6 +128,7 @@ Nick Russo
 Constantina S.
 Hugh Sasse
 Bob Savage
+Scott Schram
 Neil Schemenauer
 Barry Scott
 Joakim Sernbrant
index 7f40f069de7465fbdebf5266f18878e1bebb2f88..4cb726b987c37a84d6a654573f52a74427bb220e 100644 (file)
@@ -61,6 +61,40 @@ locale.setlocale(locale.LC_ALL,"")
   Returns the database of of the local conventions as a dictionary.
   This dictionary has the following strings as keys:
 
+  \begin{tableiii}{l|l|l}{code}{Key}{Category}{Meaning}
+    \lineiii{'decimal_point'}{\constant{LC_NUMERIC}}
+            {Decimal point character.}
+    \lineiii{'grouping'}{\constant{LC_NUMERIC}}
+            {Sequence of numbers specifying which relative positions
+             the \code{'thousands_sep'} is expected.  If the sequence is
+             terminated with \constant{CHAR_MAX}, no further grouping
+             is performed. If the sequence terminates with a \code{0}, 
+             the last group size is repeatedly used.}
+    \lineiii{'thousands_sep'}{\constant{LC_NUMERIC}}
+            {Character used between groups.}\hline
+    \lineiii{'int_curr_symbol'}{\constant{LC_MONETARY}}
+            {International currency symbol.}
+    \lineiii{'currency_symbol'}{\constant{LC_MONETARY}}
+            {Local currency symbol.}
+    \lineiii{'mon_decimal_point'}{\constant{LC_MONETARY}}
+            {Decimal point used for monetary values.}
+    \lineiii{'mon_thousands_sep'}{\constant{LC_MONETARY}}
+            {Group separator used for monetary values.}
+    \lineiii{'mon_grouping'}{\constant{LC_MONETARY}}
+            {Equivalent to \code{'grouping'}, used for monetary
+             values.}
+    \lineiii{'positive_sign'}{\constant{LC_MONETARY}}
+            {Symbol used to annotate a positive monetary value.}
+    \lineiii{'negative_sign'}{\constant{LC_MONETARY}}
+            {Symbol used to annotate a nnegative monetary value.}
+    \lineiii{'frac_digits'}{\constant{LC_MONETARY}}
+            {Number of fractional digits used in local formatting
+             of monetary values.}
+    \lineiii{'int_frac_digits'}{\constant{LC_MONETARY}}
+            {Number of fractional digits used in international
+             formatting of monetary values.}
+  \end{tableiii}
+
   \begin{itemize}
     \item
     \code{'decimal_point'} specifies the decimal point used in floating
index e0db04d684e6cb0a37929454de1cec0205b866e3..58aa460db9028dd1b0d767b135525442463efa7d 100644 (file)
@@ -127,7 +127,9 @@ equivalent to output of the \method{get*()} methods.
 \end{methoddesc}
 
 \begin{methoddesc}[AU_read]{readframes}{n}
-Reads and returns at most \var{n} frames of audio, as a string of bytes.
+Reads and returns at most \var{n} frames of audio, as a string of
+bytes.  The data will be returned in linear format.  If the original
+data is in u-LAW format, it will be converted.
 \end{methoddesc}
 
 \begin{methoddesc}[AU_read]{rewind}{}
index 64853fb9bf3f6f60b3be01ed16a41f474d490b63..8ff448df11f5827c60ae8de76bab82e472b87f2c 100644 (file)
@@ -395,6 +395,12 @@ concatenate string expressions at run time.  Also note that literal
 concatenation can use different quoting styles for each component
 (even mixing raw strings and triple quoted strings).
 
+
+\subsection{Unicode literals \label{unicode}}
+
+XXX explain more here...
+
+
 \subsection{Numeric literals\label{numbers}}
 
 There are four types of numeric literals: plain integers, long
index 31be09618ba47329eda3cfe0baeb498d57819573..45bf1a9d98d52dbf21de25bf4b0d669094839b90 100644 (file)
@@ -5,6 +5,6 @@
        E-mail: \email{python-docs@python.org}
 }
 
-\date{October 16, 2000}                % XXX update before release!
+\date{\today}          % XXX update before release!
 \release{2.0}                  % software release, not documentation
 \setshortversion{2.0}          % major.minor only for software
index 33db125ff206dc1e9944af1dd25ff4eacafef00e..899b4ae67d4ed33c72dcfae865e970ce3b083c4c 100644 (file)
@@ -6,6 +6,7 @@
 \ProvidesClass{howto}
              [1998/02/25 Document class (Python HOWTO)]
 
+\RequirePackage{pypaper}
 
 % Change the options here to get a different set of basic options,  This
 % is where to add things like "a4paper" or "10pt".
index 7751a9e64a41aea17abad7a4f0f06ccc59fa3038..03e7b5dc0843b96c5fd14b06294da519e74efd12 100755 (executable)
@@ -8,18 +8,24 @@
 
 """%(program)s - list modules in the Python standard library
 
--a, --annotate   Annotate the module names with the subdirectory they live in
+-a, --annotate   Annotate the module names with the subdirectory they
+                  live in
 -c, --categorize  Group the modules by subdirectory
 -i <file>,
---ignore-from <file>  Ignore the modules listed in <file>.  <file> may contain
-                 a list of module names or a module index file as produced
-                  when formatting the Python documentation (.idx flavor).
 
-If neither -a nor -c are given, the modules are listed in alphabetical order.
+--ignore-from <file>   Ignore the modules listed in <file>.  <file> may
+                  contain a list of module names or a module index file
+                  as produced when formatting the Python documentation
+                  (.idx or .html flavor).
+
+If neither -a nor -c are given, the modules are listed in alphabetical
+order.
 
 Note that -a and -c are mutually exclusive.
 
-Limitation:  Modules loadable as shared objects are not listed.
+Limitation: Modules loadable as shared objects may not be listed,
+though this script attempts to locate such modules.
+
 """
 
 __version__ = '$Revision$'
@@ -32,7 +38,8 @@ import string
 import sys
 
 
-REMOVE_DIRS = ["dos-8x3", "lib-old", "lib-stdwin", "test"]
+REMOVE_DIRS = ["dos-8x3", "encodings", "distutils",
+               "lib-old", "lib-stdwin", "test"]
 
 
 def main():
@@ -86,7 +93,7 @@ def main():
             if not ignore(name):
                 modules_by_name[name] = "<built-in>"
                 l.append(name)
-    rx = re.compile("Lib/plat-[a-z0-9]*/", re.IGNORECASE)
+    rx = re.compile("Lib/plat-[a-zA-Z0-9]*/")
     fp = os.popen("find Lib -name \*.py -print", "r")
     while 1:
         line = fp.readline()
index e80485d62d2cf09e1b32e81b3e895bf2139448b4..244c824c31e7fe72158c8a584e29d535f8e6665b 100644 (file)
@@ -78,6 +78,8 @@
   <macro name="optional">
     <content/>
     </macro>
+  <macro name="unspecified"/>
+  <macro name="moreargs"/>
   <environment name="classdesc">
     <attribute name="name"/>
     <child name="args"/>
          </text>
     <child name="entry"/>
     </environment>
+  <environment name="longtableii" outputname="table">
+    <attribute name="cols">2</attribute>
+    <attribute name="colspec"/>
+    <attribute name="style"/>
+    <child name="entry"/>
+    <text>
+         </text>
+    <child name="entry"/>
+    </environment>
   <macro name="lineii" outputname="row">
     <child name="entry"/>
     <text>
          </text>
     <child name="entry"/>
     </environment>
+  <environment name="longtableiii" outputname="table">
+    <attribute name="cols">3</attribute>
+    <attribute name="colspec"/>
+    <attribute name="style"/>
+    <child name="entry"/>
+    <text>
+         </text>
+    <child name="entry"/>
+    <text>
+         </text>
+    <child name="entry"/>
+    </environment>
   <macro name="lineiii" outputname="row">
     <child name="entry"/>
     <text>
          </text>
     <child name="entry"/>
     </environment>
+  <environment name="longtableiv" outputname="table">
+    <attribute name="cols">4</attribute>
+    <attribute name="colspec"/>
+    <attribute name="style"/>
+    <child name="entry"/>
+    <text>
+         </text>
+    <child name="entry"/>
+    <text>
+         </text>
+    <child name="entry"/>
+    <text>
+         </text>
+    <child name="entry"/>
+    </environment>
   <macro name="lineiv" outputname="row">
     <child name="entry"/>
     <text>