summaryrefslogtreecommitdiffstats
path: root/www/feature-request.html
Commit message (Expand)AuthorAgeFilesLines
* Minor nits and typosGreg Noel2008-09-141-2/+2
* Document that we no longer accept anonymous ("guest") issue tracker items.Steven Knight2007-11-121-7/+5
* Get rid of the long disaplayed URLs.Steven Knight2006-05-261-4/+16
* Wording and format changes from another editing pass.Steven Knight2006-05-221-3/+3
* Minor cleanups. Add an item to the project highlightsSteven Knight2006-05-211-2/+2
* Initial text for patch and feature pages.Steven Knight2006-05-211-4/+71
* Fix page titles.Steven Knight2006-05-211-2/+2
* Add initial place holder pages for bug/feature/patch submission guidelines,Steven Knight2006-05-211-0/+22
right'>2
-rw-r--r--Lib/inspect.py2
-rwxr-xr-xLib/quopri.py2
-rw-r--r--Lib/repr.py6
-rw-r--r--Lib/rfc822.py2
-rw-r--r--Lib/test/test_audioop.py4
-rw-r--r--Lib/test/test_augassign.py6
-rw-r--r--Lib/test/test_b1.py2
-rwxr-xr-xLib/test/test_binascii.py4
-rw-r--r--Lib/test/test_binop.py4
-rw-r--r--Lib/test/test_compare.py2
-rw-r--r--Lib/test/test_long.py10
-rw-r--r--Lib/test/test_operator.py2
-rw-r--r--Lib/test/test_pty.py2
-rwxr-xr-xLib/test/test_strftime.py4
-rw-r--r--Lib/wave.py8
19 files changed, 38 insertions, 38 deletions
diff --git a/Lib/base64.py b/Lib/base64.py
index 44cd03a..3158fdc 100755
--- a/Lib/base64.py
+++ b/Lib/base64.py
@@ -9,7 +9,7 @@ import binascii
__all__ = ["encode","decode","encodestring","decodestring"]
MAXLINESIZE = 76 # Excluding the CRLF
-MAXBINSIZE = (MAXLINESIZE/4)*3
+MAXBINSIZE = (MAXLINESIZE//4)*3
def encode(input, output):
"""Encode a file."""
diff --git a/Lib/binhex.py b/Lib/binhex.py
index 686f8d9..5700659 100644
--- a/Lib/binhex.py
+++ b/Lib/binhex.py
@@ -128,7 +128,7 @@ class _Hqxcoderengine:
def write(self, data):
self.data = self.data + data
datalen = len(self.data)
- todo = (datalen/3)*3
+ todo = (datalen//3)*3
data = self.data[:todo]
self.data = self.data[todo:]
if not data:
@@ -292,7 +292,7 @@ class _Hqxdecoderengine:
# much to decode: there may be newlines in the incoming data.
while wtd > 0:
if self.eof: return decdata
- wtd = ((wtd+2)/3)*4
+ wtd = ((wtd+2)//3)*4
data = self.ifp.read(wtd)
#
# Next problem: there may not be a complete number of
diff --git a/Lib/bisect.py b/Lib/bisect.py
index d311337..c9e6c60 100644
--- a/Lib/bisect.py
+++ b/Lib/bisect.py
@@ -12,7 +12,7 @@ def insort_right(a, x, lo=0, hi=None):
if hi is None:
hi = len(a)
while lo < hi:
- mid = (lo+hi)/2
+ mid = (lo+hi)//2
if x < a[mid]: hi = mid
else: lo = mid+1
a.insert(lo, x)
@@ -33,7 +33,7 @@ def bisect_right(a, x, lo=0, hi=None):
if hi is None:
hi = len(a)
while lo < hi:
- mid = (lo+hi)/2
+ mid = (lo+hi)//2
if x < a[mid]: hi = mid
else: lo = mid+1
return lo
@@ -52,7 +52,7 @@ def insort_left(a, x, lo=0, hi=None):
if hi is None:
hi = len(a)
while lo < hi:
- mid = (lo+hi)/2
+ mid = (lo+hi)//2
if a[mid] < x: lo = mid+1
else: hi = mid
a.insert(lo, x)
@@ -72,7 +72,7 @@ def bisect_left(a, x, lo=0, hi=None):
if hi is None:
hi = len(a)
while lo < hi:
- mid = (lo+hi)/2
+ mid = (lo+hi)//2
if a[mid] < x: lo = mid+1
else: hi = mid
return lo
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index e508349..287a8a0 100644
--- a/Lib/dumbdbm.py
+++ b/Lib/dumbdbm.py
@@ -87,7 +87,7 @@ class _Database:
## Does not work under MW compiler
## pos = ((pos + _BLOCKSIZE - 1) / _BLOCKSIZE) * _BLOCKSIZE
## f.seek(pos)
- npos = ((pos + _BLOCKSIZE - 1) / _BLOCKSIZE) * _BLOCKSIZE
+ npos = ((pos + _BLOCKSIZE - 1) // _BLOCKSIZE) * _BLOCKSIZE
f.write('\0'*(npos-pos))
pos = npos
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 6183b0e..f57ba37 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -590,7 +590,7 @@ def getframeinfo(frame, context=1):
filename = getsourcefile(frame)
lineno = getlineno(frame)
if context > 0:
- start = lineno - 1 - context/2
+ start = lineno - 1 - context//2
try:
lines, lnum = findsource(frame)
except IOError:
diff --git a/Lib/quopri.py b/Lib/quopri.py
index 575fcd1..f668abf 100755
--- a/Lib/quopri.py
+++ b/Lib/quopri.py
@@ -27,7 +27,7 @@ def needsquoting(c, quotetabs):
def quote(c):
"""Quote a single character."""
i = ord(c)
- return ESCAPE + HEX[i/16] + HEX[i%16]
+ return ESCAPE + HEX[i//16] + HEX[i%16]
diff --git a/Lib/repr.py b/Lib/repr.py
index f418d1a..1b1f4f4 100644
--- a/Lib/repr.py
+++ b/Lib/repr.py
@@ -65,7 +65,7 @@ class Repr:
def repr_str(self, x, level):
s = `x[:self.maxstring]`
if len(s) > self.maxstring:
- i = max(0, (self.maxstring-3)/2)
+ i = max(0, (self.maxstring-3)//2)
j = max(0, self.maxstring-3-i)
s = `x[:i] + x[len(x)-j:]`
s = s[:i] + '...' + s[len(s)-j:]
@@ -73,7 +73,7 @@ class Repr:
def repr_long(self, x, level):
s = `x` # XXX Hope this isn't too slow...
if len(s) > self.maxlong:
- i = max(0, (self.maxlong-3)/2)
+ i = max(0, (self.maxlong-3)//2)
j = max(0, self.maxlong-3-i)
s = s[:i] + '...' + s[len(s)-j:]
return s
@@ -86,7 +86,7 @@ class Repr:
return '<' + x.__class__.__name__ + ' instance at ' + \
hex(id(x))[2:] + '>'
if len(s) > self.maxstring:
- i = max(0, (self.maxstring-3)/2)
+ i = max(0, (self.maxstring-3)//2)
j = max(0, self.maxstring-3-i)
s = s[:i] + '...' + s[len(s)-j:]
return s
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index b3f7fb2..430e637 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -927,7 +927,7 @@ def parsedate_tz(data):
tzoffset = -tzoffset
else:
tzsign = 1
- tzoffset = tzsign * ( (tzoffset/100)*3600 + (tzoffset % 100)*60)
+ tzoffset = tzsign * ( (tzoffset//100)*3600 + (tzoffset % 100)*60)
tuple = (yy, mm, dd, thh, tmm, tss, 0, 0, 0, tzoffset)
return tuple
diff --git a/Lib/test/test_audioop.py b/Lib/test/test_audioop.py
index 495a918..a4e1914 100644
--- a/Lib/test/test_audioop.py
+++ b/Lib/test/test_audioop.py
@@ -116,8 +116,8 @@ def testlin2lin(data):
# too simple: we test only the size
for d1 in data:
for d2 in data:
- got = len(d1)/3
- wtd = len(d2)/3
+ got = len(d1)//3
+ wtd = len(d2)//3
if len(audioop.lin2lin(d1, got, wtd)) != len(d2):
return 0
return 1
diff --git a/Lib/test/test_augassign.py b/Lib/test/test_augassign.py
index e9e5b23..c372b9a 100644
--- a/Lib/test/test_augassign.py
+++ b/Lib/test/test_augassign.py
@@ -5,7 +5,7 @@ x += 1
x *= 2
x **= 2
x -= 8
-x /= 2
+x //= 2
x //= 1
x %= 12
x &= 2
@@ -19,7 +19,7 @@ x[0] += 1
x[0] *= 2
x[0] **= 2
x[0] -= 8
-x[0] /= 2
+x[0] //= 2
x[0] //= 2
x[0] %= 12
x[0] &= 2
@@ -33,7 +33,7 @@ x[0] += 1
x[0] *= 2
x[0] **= 2
x[0] -= 8
-x[0] /= 2
+x[0] //= 2
x[0] //= 1
x[0] %= 12
x[0] &= 2
diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py
index 46a6da0..978f674 100644
--- a/Lib/test/test_b1.py
+++ b/Lib/test/test_b1.py
@@ -413,7 +413,7 @@ else:
# Worked by accident in Windows release build, but failed in debug build.
# Failed in all Linux builds.
x = -1-sys.maxint
-if x >> 1 != x/2:
+if x >> 1 != x//2:
raise TestFailed("x >> 1 != x/2 when x == -1-sys.maxint")
print 'isinstance'
diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py
index f03fc55..cc78ee3 100755
--- a/Lib/test/test_binascii.py
+++ b/Lib/test/test_binascii.py
@@ -54,10 +54,10 @@ for i in range(256):
fillers = fillers + c
def addnoise(line):
noise = fillers
- ratio = len(line) / len(noise)
+ ratio = len(line) // len(noise)
res = ""
while line and noise:
- if len(line) / len(noise) > ratio:
+ if len(line) // len(noise) > ratio:
c, line = line[0], line[1:]
else:
c, noise = noise[0], noise[1:]
diff --git a/Lib/test/test_binop.py b/Lib/test/test_binop.py