Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ed27d3

Browse files
committed
Note that readframes() returns data in linear format, even if the original
is encoded in u-LAW format. Based on suggestion from Anthony Baxter <[email protected]>. This closes bug #122273.
1 parent aa126e1 commit 2ed27d3

8 files changed

Lines changed: 101 additions & 10 deletions

File tree

Doc/ACKS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Oliver Andrich
2222
Daniel Barclay
2323
Chris Barker
2424
Don Bashford
25+
Anthony Baxter
2526
Bennett Benson
2627
Jonathan Black
2728
Robin Boerdijk
@@ -30,6 +31,7 @@ Aaron Brancotti
3031
Keith Briggs
3132
Lorenzo M. Catucci
3233
Mauro Cicognini
34+
Gilles Civario
3335
Steve Clift
3436
Andrew Dalke
3537
Ben Darnell
@@ -126,6 +128,7 @@ Nick Russo
126128
Constantina S.
127129
Hugh Sasse
128130
Bob Savage
131+
Scott Schram
129132
Neil Schemenauer
130133
Barry Scott
131134
Joakim Sernbrant

Doc/lib/liblocale.tex

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,40 @@ \section{\module{locale} ---
6161
Returns the database of of the local conventions as a dictionary.
6262
This dictionary has the following strings as keys:
6363

64+
\begin{tableiii}{l|l|l}{code}{Key}{Category}{Meaning}
65+
\lineiii{'decimal_point'}{\constant{LC_NUMERIC}}
66+
{Decimal point character.}
67+
\lineiii{'grouping'}{\constant{LC_NUMERIC}}
68+
{Sequence of numbers specifying which relative positions
69+
the \code{'thousands_sep'} is expected. If the sequence is
70+
terminated with \constant{CHAR_MAX}, no further grouping
71+
is performed. If the sequence terminates with a \code{0},
72+
the last group size is repeatedly used.}
73+
\lineiii{'thousands_sep'}{\constant{LC_NUMERIC}}
74+
{Character used between groups.}\hline
75+
\lineiii{'int_curr_symbol'}{\constant{LC_MONETARY}}
76+
{International currency symbol.}
77+
\lineiii{'currency_symbol'}{\constant{LC_MONETARY}}
78+
{Local currency symbol.}
79+
\lineiii{'mon_decimal_point'}{\constant{LC_MONETARY}}
80+
{Decimal point used for monetary values.}
81+
\lineiii{'mon_thousands_sep'}{\constant{LC_MONETARY}}
82+
{Group separator used for monetary values.}
83+
\lineiii{'mon_grouping'}{\constant{LC_MONETARY}}
84+
{Equivalent to \code{'grouping'}, used for monetary
85+
values.}
86+
\lineiii{'positive_sign'}{\constant{LC_MONETARY}}
87+
{Symbol used to annotate a positive monetary value.}
88+
\lineiii{'negative_sign'}{\constant{LC_MONETARY}}
89+
{Symbol used to annotate a nnegative monetary value.}
90+
\lineiii{'frac_digits'}{\constant{LC_MONETARY}}
91+
{Number of fractional digits used in local formatting
92+
of monetary values.}
93+
\lineiii{'int_frac_digits'}{\constant{LC_MONETARY}}
94+
{Number of fractional digits used in international
95+
formatting of monetary values.}
96+
\end{tableiii}
97+
6498
\begin{itemize}
6599
\item
66100
\code{'decimal_point'} specifies the decimal point used in floating

Doc/lib/libsunau.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ \subsection{AU_read Objects \label{au-read-objects}}
127127
\end{methoddesc}
128128

129129
\begin{methoddesc}[AU_read]{readframes}{n}
130-
Reads and returns at most \var{n} frames of audio, as a string of bytes.
130+
Reads and returns at most \var{n} frames of audio, as a string of
131+
bytes. The data will be returned in linear format. If the original
132+
data is in u-LAW format, it will be converted.
131133
\end{methoddesc}
132134

133135
\begin{methoddesc}[AU_read]{rewind}{}

Doc/ref/ref2.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,12 @@ \subsection{String literal concatenation\label{string-catenation}}
395395
concatenation can use different quoting styles for each component
396396
(even mixing raw strings and triple quoted strings).
397397

398+
399+
\subsection{Unicode literals \label{unicode}}
400+
401+
XXX explain more here...
402+
403+
398404
\subsection{Numeric literals\label{numbers}}
399405

400406
There are four types of numeric literals: plain integers, long

Doc/texinputs/boilerplate.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
E-mail: \email{[email protected]}
66
}
77

8-
\date{October 16, 2000} % XXX update before release!
8+
\date{\today} % XXX update before release!
99
\release{2.0} % software release, not documentation
1010
\setshortversion{2.0} % major.minor only for software

Doc/texinputs/howto.cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
\ProvidesClass{howto}
77
[1998/02/25 Document class (Python HOWTO)]
88

9+
\RequirePackage{pypaper}
910

1011
% Change the options here to get a different set of basic options, This
1112
% is where to add things like "a4paper" or "10pt".

Doc/tools/listmodules

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,24 @@
88

99
"""%(program)s - list modules in the Python standard library
1010
11-
-a, --annotate Annotate the module names with the subdirectory they live in
11+
-a, --annotate Annotate the module names with the subdirectory they
12+
live in
1213
-c, --categorize Group the modules by subdirectory
1314
-i <file>,
14-
--ignore-from <file> Ignore the modules listed in <file>. <file> may contain
15-
a list of module names or a module index file as produced
16-
when formatting the Python documentation (.idx flavor).
1715
18-
If neither -a nor -c are given, the modules are listed in alphabetical order.
16+
--ignore-from <file> Ignore the modules listed in <file>. <file> may
17+
contain a list of module names or a module index file
18+
as produced when formatting the Python documentation
19+
(.idx or .html flavor).
20+
21+
If neither -a nor -c are given, the modules are listed in alphabetical
22+
order.
1923
2024
Note that -a and -c are mutually exclusive.
2125
22-
Limitation: Modules loadable as shared objects are not listed.
26+
Limitation: Modules loadable as shared objects may not be listed,
27+
though this script attempts to locate such modules.
28+
2329
"""
2430

2531
__version__ = '$Revision$'
@@ -32,7 +38,8 @@ import string
3238
import sys
3339

3440

35-
REMOVE_DIRS = ["dos-8x3", "lib-old", "lib-stdwin", "test"]
41+
REMOVE_DIRS = ["dos-8x3", "encodings", "distutils",
42+
"lib-old", "lib-stdwin", "test"]
3643

3744

3845
def main():
@@ -86,7 +93,7 @@ def main():
8693
if not ignore(name):
8794
modules_by_name[name] = "<built-in>"
8895
l.append(name)
89-
rx = re.compile("Lib/plat-[a-z0-9]*/", re.IGNORECASE)
96+
rx = re.compile("Lib/plat-[a-zA-Z0-9]*/")
9097
fp = os.popen("find Lib -name \*.py -print", "r")
9198
while 1:
9299
line = fp.readline()

Doc/tools/sgmlconv/conversion.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
<macro name="optional">
7979
<content/>
8080
</macro>
81+
<macro name="unspecified"/>
82+
<macro name="moreargs"/>
8183
<environment name="classdesc">
8284
<attribute name="name"/>
8385
<child name="args"/>
@@ -409,6 +411,15 @@
409411
</text>
410412
<child name="entry"/>
411413
</environment>
414+
<environment name="longtableii" outputname="table">
415+
<attribute name="cols">2</attribute>
416+
<attribute name="colspec"/>
417+
<attribute name="style"/>
418+
<child name="entry"/>
419+
<text>
420+
</text>
421+
<child name="entry"/>
422+
</environment>
412423
<macro name="lineii" outputname="row">
413424
<child name="entry"/>
414425
<text>
@@ -428,6 +439,18 @@
428439
</text>
429440
<child name="entry"/>
430441
</environment>
442+
<environment name="longtableiii" outputname="table">
443+
<attribute name="cols">3</attribute>
444+
<attribute name="colspec"/>
445+
<attribute name="style"/>
446+
<child name="entry"/>
447+
<text>
448+
</text>
449+
<child name="entry"/>
450+
<text>
451+
</text>
452+
<child name="entry"/>
453+
</environment>
431454
<macro name="lineiii" outputname="row">
432455
<child name="entry"/>
433456
<text>
@@ -453,6 +476,21 @@
453476
</text>
454477
<child name="entry"/>
455478
</environment>
479+
<environment name="longtableiv" outputname="table">
480+
<attribute name="cols">4</attribute>
481+
<attribute name="colspec"/>
482+
<attribute name="style"/>
483+
<child name="entry"/>
484+
<text>
485+
</text>
486+
<child name="entry"/>
487+
<text>
488+
</text>
489+
<child name="entry"/>
490+
<text>
491+
</text>
492+
<child name="entry"/>
493+
</environment>
456494
<macro name="lineiv" outputname="row">
457495
<child name="entry"/>
458496
<text>

0 commit comments

Comments
 (0)