repo.or.cz
/
python.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
Handle 0-tuples which can be singletons.
2008-03-02
raymond
.
hettinger
H
a
ndle 0-tuples which ca
n
be singletons
.
commit
|
commitdiff
|
tree
2008-03-02
r
aymond
.
hettinger
Sim
p
lify
code for itert
o
ols
.
p
roduct()
.
commit
|
commitdiff
|
tree
2008-03-02
ra
y
mond
.
hettinger
Tigh
t
e
n ex
a
mple co
d
e
.
commit
|
commitdiff
|
tree
2008-03-02
r
aymond
.
he
t
tinger
Finish-up d
o
cs for combina
t
ion
s
() and pe
r
mutations
.
.
.
commit
|
commitdiff
|
tree
2008-02-29
raymo
n
d
.
h
etti
n
ger
Hand
l
e the
repeat keyword argument for
iter
t
ools
.
product()
.
commit
|
commitdiff
|
tree
2008-02-28
raymo
n
d
.
hettinger
A
d
d
alternate
cons
t
ructor for itertools
.
chain()
.
commit
|
commitdiff
|
tree
2008-02-28
raymond
.
hettinger
Have i
t
ertool
s
.
c
h
a
i
n() con
s
ume its inputs lazily instead
.
.
.
commit
|
commitdiff
|
tree
2008-02-28
raym
o
nd
.
he
t
tinger
Document
imp
e
ndi
n
g updates to itertools
.
commit
|
commitdiff
|
tree
2008-02-28
raymond
.
h
ettinger
A
dd rep
e
at ke
y
wor
d
ar
g
umen
t
t
o
ite
r
tools
.
product()
.
commit
|
commitdiff
|
tree
2008-02-27
raymond
.
h
ett
i
n
ger
S
imply the s
a
mple code for combinations()
.
commit
|
commitdiff
|
tree
2008-02-27
raymo
n
d
.
hettinger
L
a
rge
r
test rang
e
commit
|
commitdiff
|
tree
2008-02-27
r
aymond
.
hettinger
One too many decre
f
s
.
commit
|
commitdiff
|
tree
2008-02-26
raymond
.
h
e
ttinger
Add iterto
o
ls
.
combinations(
)
.
commit
|
commitdiff
|
tree
2008-02-26
raymond
.
he
t
tinger
Docs for itertool
s
.
combinations
(
)
.
Implem
e
ntati
o
n
.
.
.
commit
|
commitdiff
|
tree
2008-02-25
raymond
.
hettinger
Revert part of r60927
which made invalid assumptions
.
.
.
commit
|
commitdiff
|
tree
2008-02-25
r
aymond
.
hettinge
r
M
a
k
e
sure the itertools
f
i
lter functions give the same
.
.
.
commit
|
commitdiff
|
tree
2008-02-23
raym
o
nd
.
hett
i
nger
Add recip
e
using itertools
.
p
roduct()
.
commit
|
commitdiff
|
tree
2008-02-23
r
a
ymond
.
hettinger
A
dd more comments
commit
|
commitdiff
|
tree
2008-02-23
r
a
ym
o
n
d
.
he
t
tinger
Improve the implemen
t
ation of
itertools
.
p
roduct()
commit
|
commitdiff
|
tree
2008-02-22
r
a
ymond
.
h
ettinger
D
ocument itertools
.
product()
.
commit
|
commitdiff
|
tree
2008-02-22
raymo
n
d
.
hetti
n
g
e
r
Fir
s
t draft for
i
terto
o
ls
.
pr
o
duct()
.
Do
c
s
and other
.
.
.
commit
|
commitdiff
|
tree
2008-02-21
raym
o
nd
.
hettinger
Upda
t
e more in
s
t
a
nces of has_key()
.
commit
|
commitdiff
|
tree
2008-02-16
r
aymond
.
hettinger
Add __all__ t
o
lo
g
gi
n
g
m
od
u
l
e
.
commit
|
commitdiff
|
tree
2008-02-15
ray
m
ond
.
hetting
e
r
U
p
date exampl
e
to m
a
tch the cu
r
r
e
n
t
syn
t
ax
.
commit
|
commitdiff
|
tree
2008-02-14
raymond
.
hettinger
No need to register subcla
s
s
o
f ABCs
.
commit
|
commitdiff
|
tree
2008-02-14
raymond
.
h
e
tti
n
ger
Fi
x
markup
commit
|
commitdiff
|
tree
2008-02-14
raymond
.
hettinger
Simplify m
o
n
e
yfmt() recipe
.
commit
|
commitdiff
|
tree
2008-02-14
raymond
.
het
t
inger
Fix
mark
u
p
.
commit
|
commitdiff
|
tree
2008-02-14
r
a
ymond
.
he
t
tinger
Show how
t
o r
e
move exponents
.
commit
|
commitdiff
|
tree
2008-02-14
raymo
n
d
.
h
ettinger
Imp
r
ove rst markup
commit
|
commitdiff
|
tree
2008-02-14
raymond
.
hettinger
Add fixed-poin
t
e
x
ampl
e
s t
o
the decimal FAQ
commit
|
commitdiff
|
tree
2008-02-14
ra
y
mo
n
d
.
hetting
e
r
Add d
i
a
gnos
t
ic m
e
ssage to h
e
lp figure
-
o
ut why Soc
k
etServer
.
.
.
commit
|
commitdiff
|
tree
2008-02-14
raym
o
nd
.
hettinger
F
ix
d
e
cimal repr which
sho
u
ld have used sin
g
l
e
q
uotes
.
.
.
commit
|
commitdiff
|
tree
2008-02-14
raymond
.
hettinger
Up
d
ate notes on D
e
c
i
mal
.
commit
|
commitdiff
|
tree
2008-02-12
raymond
.
hetting
e
r
d
ict
.
c
o
py(
)
r
i
ses fro
m
t
h
e a
s
h
es
.
R
evert r60687
.
commit
|
commitdiff
|
tree
2008-02-12
raymo
n
d
.
hettinger
Bring
decima
l
a
b
it closer to the
spec
f
or Reals
.
commit
|
commitdiff
|
tree
2008-02-12
raymon
d
.
hettinger
F
ix
typo
i
n comment
s
commit
|
commitdiff
|
tree
2008-02-12
r
aymond
.
he
t
tinger
Restore fr
a
ctions
.
r
s
t
t
o
the
d
o
c
ument tree
.
commit
|
commitdiff
|
tree
2008-02-11
raymo
n
d
.
hettinger
Bac
k
port ABC docs
commit
|
commitdiff
|
tree
2008-02-11
r
aym
o
nd
.
hettinger
Fix markup
commit
|
commitdiff
|
tree
2008-02-11
r
aym
o
nd
.
hetting
e
r
Add
notes
o
n
h
ow de
c
i
m
al fits
into the
m
odel
.
commit
|
commitdiff
|
tree
2008-02-11
ray
m
o
n
d
.
hettinger
Add tests for pickletools
.
optimize()
.
commit
|
commitdiff
|
tree
2008-02-11
raymond
.
hett
i
nger
No n
e
ed
to re
g
ister
classes that already inher
i
t
from
.
.
.
commit
|
commitdiff
|
tree
2008-02-10
raymond
.
hettinger
Complete an ope
n
todo
on pickletools --
a
dd a pickle
.
.
.
commit
|
commitdiff
|
tree
2008-02-10
r
a
ymon
d
.
hett
i
n
g
er
Cl
a
rify t
h
at deci
m
al
also s
u
pport
s
fixed-po
i
nt arithme
t
i
c
.
commit
|
commitdiff
|
tree
2008-02-09
raym
o
nd
.
hettinger
T
e
mporaril
y
d
isable this t
e
st
.
I
t
's been broken for
.
.
.
commit
|
commitdiff
|
tree
2008-02-09
raymond
.
hettinger
M
etaclass declaration is in
h
er
i
ted
commit
|
commitdiff
|
tree
2008-02-09
raym
o
nd
.
he
t
tinger
Add
-3 warn
i
ngs that set
.
copy(), dict
.
copy(), and defaultdic
.
.
.
commit
|
commitdiff
|
tree
2008-02-09
raymond
.
hetti
n
ger
M
erge with r60683
.
commit
|
commitdiff
|
tree
2008-02-09
raymond
.
hettinge
r
Mak
e
A
B
C con
t
ai
n
e
r
s inhe
r
it as doc
u
mented
.
commit
|
commitdiff
|
tree
2008-02-08
raymond
.
hetting
e
r
Add
a
d
v
ice o
n
c
h
oosing be
t
ween Dic
t
M
i
x
i
n an
d
Mut
a
bleMapping
commit
|
commitdiff
|
tree
2008-02-08
ray
m
ond
.
h
e
ttinger
Fi
l
l-
i
n miss
i
ng Set comparisons
commit
|
commitdiff
|
tree
2008-02-08
raymo
n
d
.
hettinger
Speed-up __iter__() mixin
m
ethod
.
commit
|
commitdiff
|
tree
2008-02-08
raymond
.
hettinger
R
emove u
n
nece
s
sary m
o
dul
o
di
v
ision
.
commit
|
commitdiff
|
tree
2008-02-07
r
a
y
mond
.
hetti
n
ger
Fix typo
commit
|
commitdiff
|
tree
2008-02-07
raymo
n
d
.
hettin
g
er
The float conversion rec
i
p
e
is s
i
mpler
i
n Py2
.
6
commit
|
commitdiff
|
tree
2008-02-07
raymond
.
hett
i
nger
Merge r60628, r6063
1
, and r606
3
3
.
R
egister UserList
.
.
.
commit
|
commitdiff
|
tree
2008-02-07
r
a
ymond
.
h
e
t
t
i
nger
Merge 60627
.
commit
|
commitdiff
|
tree
2008-02-07
raymond
.
hettin
g
er
Ret
u
r
n i
n
ts inst
e
ad of
longs
for tuple
.
count()
a
n
d
.
.
.
commit
|
commitdiff
|
tree
2008-02-07
raymon
d
.
hettinger
Issue
2
025: Add tuple
.
count() and tuple
.
index() to
.
.
.
commit
|
commitdiff
|
tree
2008-02-06
r
a
ymond
.
h
ettinger
Sync-up with Py3k work
.
commit
|
commitdiff
|
tree
2008-02-02
ray
m
ond
.
hettin
g
er
Neaten-up
a
bit
.
commit
|
commitdiff
|
tree
2008-02-02
r
a
ymond
.
hettinger
Simpler solu
t
io
n
to handling non-IEE
E
754
e
n
vironm
e
nts
.
commit
|
commitdiff
|
tree
2008-02-01
raymond
.
hettinger
Add prot
e
ction from wei
r
dness
w
hile scaling t
h
e man
t
issa
.
.
.
commit
|
commitdiff
|
tree
2008-02-01
raymond
.
hettinger
Fix i
n
t/long typecase
.
Ad
d
check for
n
on-binary
f
lo
a
t
ing
.
.
.
commit
|
commitdiff
|
tree
2008-02-01
raymo
n
d
.
het
t
inger
T
est ro
u
nd-
t
rip on flo
a
t
.
as_integer_rati
o
() and float
.
.
.
commit
|
commitdiff
|
tree
2008-02-01
raymond
.
hettinge
r
labs()
takes a long fo
r
a
n inpu
t
.
commit
|
commitdiff
|
tree
2008-02-01
raymond
.
hettinge
r
In
t
eger ratio sho
u
ld retu
r
n ints ins
t
ead of lon
g
s w
h
ereev
e
r
.
.
.
commit
|
commitdiff
|
tree
2008-02-01
raymond
.
hettinge
r
Is
s
ue
#
1996: fl
o
at
.
as_integer_ratio() shoul
d
ret
u
rn
.
.
.
commit
|
commitdiff
|
tree
2008-01-31
raym
o
nd
.
hettinger
Mino
r
wordsmi
t
hing
o
n docs
t
rin
g
commit
|
commitdiff
|
tree
2008-01-31
raymond
.
hettinger
Missing retur
n
commit
|
commitdiff
|
tree
2008-01-31
raym
o
nd
.
hettinger
Fix de
f
ect in __ixor__
which would get the wrong
commit
|
commitdiff
|
tree
2008-01-30
raymond
.
hettinger
Update iter
t
ool recipes
commit
|
commitdiff
|
tree
2008-01-30
raymond
.
hettin
g
e
r
Demonstrat
e
new exce
p
t
/
as sy
n
tax
.
commit
|
commitdiff
|
tree
2008-01-30
raymond
.
hettinger
Mut
a
bleSets
s
u
pport a
r
emove(
)
method
.
commit
|
commitdiff
|
tree
2008-01-30
raymond
.
hettinger
Add isdisjoin
t
()
to the Set/Mut
a
bleSet ABCs
.
commit
|
commitdiff
|
tree
2008-01-29
ray
m
ond
.
het
t
i
nger
CallM
e
t
h
od is faster with a NU
L
L
third-argument than
.
.
.
commit
|
commitdiff
|
tree
2008-01-28
r
a
ymond
.
he
t
tinger
Re
m
oved unnecessary conditional (spott
e
d by Neal
N
orwitz)
.
commit
|
commitdiff
|
tree
2008-01-28
raymond
.
hettinge
r
Fac
t
or-out common c
o
de with a
n
e
w
m
acro
commit
|
commitdiff
|
tree
2008-01-28
raymond
.
hettinger
Factor-out common code with a new m
a
cr
o
commit
|
commitdiff
|
tree
2008-01-28
r
a
y
m
o
n
d
.
hettinger
Let marshal
built-up sets
a
nd fro
z
ensets
o
ne eleme
n
t
.
.
.
commit
|
commitdiff
|
tree
2008-01-28
ra
y
mo
n
d
.
hetti
n
ger
Make PySe
t
_Add
(
) work
with fr
o
zensets
.
commit
|
commitdiff
|
tree
2008-01-27
raymond
.
h
ettinger
Removed an unnece
s
sary an
d
conf
u
sing para
g
raph
f
rom
.
.
.
commit
|
commitdiff
|
tree
2008-01-27
raymon
d
.
h
e
ttinge
r
D
ocstrin
g
n
it
commit
|
commitdiff
|
tree
2008-01-26
raymond
.
hetti
n
ger
Revert PySet
_
Add() cha
n
g
es
.
commit
|
commitdiff
|
tree
2008-01-26
raymond
.
hetting
e
r
Update tes
t
code for
ch
a
nge
to PySet_Add
(
)
.
commit
|
commitdiff
|
tree
2008-01-26
raymond
.
hettinger
Let mar
s
h
a
l
build-up sets and
f
rozensets one
element
.
.
.
commit
|
commitdiff
|
tree
2008-01-26
ra
y
mond
.
hettin
g
e
r
Make
P
yS
e
t_Add() work with
frozensets
.
Wo
r
ks
l
ike
.
.
.
commit
|
commitdiff
|
tree
2008-01-25
raymond
.
hettinge
r
Chan
g
es 54857
and
5
4840 broke code an
d
were
rev
e
rted
.
.
.
commit
|
commitdiff
|
tree
2008-01-25
raymond
.
hettinger
More design notes
commit
|
commitdiff
|
tree
2008-01-25
ra
y
mond
.
hettinger
Fix-u
p
signat
u
re for approximation
.
commit
|
commitdiff
|
tree
2008-01-25
ra
y
mond
.
h
e
ttinger
Ad
d
one other re
v
i
ew c
o
mm
e
nt
.
commit
|
commitdiff
|
tree
2008-01-25
raymond
.
hetti
n
ger
Mark todos and rev
i
ew
comments
.
commit
|
commitdiff
|
tree
2008-01-25
raymond
.
h
e
t
t
inge
r
A
dd
s
u
p
port
f
or copy, d
e
epcopy, and pick
l
e
.
commit
|
commitdiff
|
tree
2008-01-24
raym
o
nd
.
he
t
ting
e
r
More cod
e
cleanup
.
Remove unnecessary
indirection
.
.
.
commit
|
commitdiff
|
tree
2008-01-24
raymond
.
hettinger
Shorter pp
r
i
n
t's for emp
t
y sets
and froz
e
n
s
ets
.
Fix
.
.
.
commit
|
commitdiff
|
tree
2008-01-24
raymond
.
hettinger
Expan
d
tests to includ
e
nested g
r
aph
s
tructures
.
commit
|
commitdiff
|
tree
2008-01-24
r
a
ymond
.
he
t
ti
n
ger
Add support
f
or int
(
r) just like the other nume
r
ic
.
.
.
commit
|
commitdiff
|
tree
2008-01-24
raymond
.
he
t
tinger
A
dd
su
p
port f
o
r
t
runc
(
)
.
commit
|
commitdiff
|
tree
2008-01-24
ra
y
mond
.
hetting
e
r
Revert 601
8
9 and restor
e
perfo
r
man
c
e
.
commit
|
commitdiff
|
tree
next