Nov
DEC
Jan
23
2021
2022
2023
About this capture
T h e W a y b a c k M a c h i n e - h t t p : / / w e b . a r c h i v e . o r g / w e b / 2 0 2 2 1 2 2 3 1 2 2 3 0 1 / h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n
S k i p t o c o n t e n t
n
S i g n up
●
A c t i o n s
A u t o m a t e a n y w o r k f l o w
P a c k a g e s
H o s t a n d m a n a g e p a c k a g e s
S e c u r i t y
F i n d a n d f i x v u l n e r a b i l i t i e s
C o d e s p a c e s
I n s t a n t d e v e n v i r o n m e n t s
C o p i l o t
W r i t e b e t t e r c o d e w i t h A I
C o d e r e v i e w
M a n a g e c o d e c h a n g e s
I s s u e s
P l a n a n d t r a c k w o r k
D i s c u s s i o n s
C o l l a b o r a t e o u t s i d e o f c o d e
● E x p l o r e
●
●
●
●
●
● F o r
●
●
●
●
● B y S o l u t i o n
●
●
●
● C a s e S t u d i e s
●
●
●
G i t H u b S p o n s o r s
F u n d o p e n s o u r c e d e v e l o p e r s
T h e R e a d M E P r o j e c t
G i t H u b c o m m u n i t y a r t i c l e s
● R e p o s i t o r i e s
●
●
●
●
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
{ { m e s s a g e } }
p y t h o n
/
c p y t h o n
P u b l i c
●
N o t i f i c a t i o n s
●
F o r k
2 5 . 3 k
S t a r
4 9 . 6 k
T h e P y t h o n p r o g r a m m i n g l a n g u a g e
w w w . p y t h o n . o r g /
L i c e n s e
V i e w l i c e n s e
4 9 . 6 k
s t a r s
2 5 . 3 k
f o r k s
S t a r
N o t i f i c a t i o n s
●
C o d e
●
I s s u e s
5 k +
●
P u l l r e q u e s t s
1 . 4 k
●
A c t i o n s
●
P r o j e c t s
27
●
S e c u r i t y
●
I n s i g h t s
M o r e
●
C o d e
●
I s s u e s
●
P u l l r e q u e s t s
●
A c t i o n s
●
P r o j e c t s
●
S e c u r i t y
●
I n s i g h t s
p y t h o n / c p y t h o n
T h i s c o m m i t d o e s n o t b e l o n g t o a n y b r a n c h o n t h i s r e p o s i t o r y , a n d m a y b e l o n g t o a f o r k o u t s i d e o f t h e r e p o s i t o r y .
C o u l d n o t l o a d b r a n c h e s
N o t h i n g t o s h o w
r a n c h e s
C o u l d n o t l o a d t a g s
N o t h i n g t o s h o w
A t a g a l r e a d y e x i s t s w i t h t h e p r o v i d e d b r a n c h n a m e . M a n y G i t c o m m a n d s a c c e p t b o t h t a g a n d b r a n c h n a m e s , s o c r e a t i n g t h i s b r a n c h m a y c a u s e u n e x p e c t e d b e h a v i o r . A r e y o u s u r e y o u w a n t t o c r e a t e t h i s b r a n c h ?
6
b r a n c h e s
5 3 2
t a g s
C o d e
●
L o c a l
●
C o d e s p a c e s
C l o n e
H T T P S
G i t H u b C L I
U s e G i t o r c h e c k o u t w i t h S V N u s i n g t h e w e b U R L .
W o r k f a s t w i t h o u r o f f i c i a l C L I .
L e a r n m o r e .
●
O p e n w i t h G i t H u b D e s k t o p
●
D o w n l o a d Z I P
S i g n I n R e q u i r e d
P l e a s e
s i g n i n
t o u s e C o d e s p a c e s .
L a u n c h i n g G i t H u b D e s k t o p
I f n o t h i n g h a p p e n s , d o w n l o a d G i t H u b D e s k t o p a n d t r y a g a i n .
L a u n c h i n g G i t H u b D e s k t o p
I f n o t h i n g h a p p e n s , d o w n l o a d G i t H u b D e s k t o p a n d t r y a g a i n .
L a u n c h i n g X c o d e
I f n o t h i n g h a p p e n s , d o w n l o a d X c o d e a n d t r y a g a i n .
L a u n c h i n g V i s u a l S t u d i o C o d e
Y o u r c o d e s p a c e w i l l o p e n o n c e r e a d y .
T h e r e w a s a p r o b l e m p r e p a r i n g y o u r c o d e s p a c e , p l e a s e t r y a g a i n .
L a t e s t c o m m i t
e r i c - w i e s e r
g h - 7 6 9 6 3 : P E P 3 1 1 8 i t e m s i z e o f a n e m p t y c t y p e s a r r a y s h o u l d n o t b e 0 ( G …
…
8 4 b c 6 a 4
D e c 2 3 , 2 0 2 2
g h - 7 6 9 6 3 : P E P 3 1 1 8 i t e m s i z e o f a n e m p t y c t y p e s a r r a y s h o u l d n o t b e 0 ( G …
…H-5576 )
The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero.
8 4 b c 6 a 4
G i t s t a t s
●
1 1 5 , 5 9 0
c o m m i t s
F i l e s
P e r m a l i n k
F a i l e d t o l o a d l a t e s t c o m m i t i n f o r m a t i o n .
T y p e
N a m e
L a t e s t c o m m i t m e s s a g e
C o m m i t t i m e
. a z u r e - p i p e l i n e s
g h - 9 7 6 6 9 : C r e a t e T o o l s / p a t c h c h e c k / d i r e c t o r y ( # 9 8 1 8 6 )
O c t 1 2 , 2 0 2 2
. g i t h u b
D o c s : D o n ' t u p l o a d C I a r t i f a c t s ( # 1 0 0 3 3 0 )
D e c 1 9 , 2 0 2 2
D o c
F i x t y p o i n 3 . 1 2 W h a t ' s N e w ( # 1 0 0 4 4 9 )
D e c 2 3 , 2 0 2 2
G r a m m a r
g h - 9 0 9 9 4 : I m p r o v e e r r o r m e s s a g e s u p o n c a l l a r g u m e n t s s y n t a x e r r o r s ( G …
N o v 2 0 , 2 0 2 2
I n c l u d e
g h - 9 9 7 6 1 : A d d _ P y L o n g _ I s P o s i t i v e S i n g l e D i g i t f u n c t i o n t o c h e c k f o r s …
D e c 2 2 , 2 0 2 2
L i b
g h - 7 6 9 6 3 : P E P 3 1 1 8 i t e m s i z e o f a n e m p t y c t y p e s a r r a y s h o u l d n o t b e 0 ( G …
D e c 2 3 , 2 0 2 2
M a c
G H - 9 5 2 8 3 : A d d n o t e a b o u t c o m p i l e r s i n M a c / R E A D M E . t x t ( # 9 9 5 0 6 )
N o v 2 3 , 2 0 2 2
M i s c
g h - 7 6 9 6 3 : P E P 3 1 1 8 i t e m s i z e o f a n e m p t y c t y p e s a r r a y s h o u l d n o t b e 0 ( G …
D e c 2 3 , 2 0 2 2
M o d u l e s
g h - 7 6 9 6 3 : P E P 3 1 1 8 i t e m s i z e o f a n e m p t y c t y p e s a r r a y s h o u l d n o t b e 0 ( G …
D e c 2 3 , 2 0 2 2
O b j e c t s
g h - 9 9 5 4 0 : C o n s t a n t h a s h f o r _ P y N o n e _ T y p e t o a i d r e p r o d u c i b i l i t y ( G H - 9 …
D e c 1 6 , 2 0 2 2
PC
g h - 7 9 2 1 8 : D e f i n e M S _ W I N 6 4 m a c r o f o r M i n g w - w 6 4 6 4 b i t o n W i n d o w s ( G H - …
D e c 1 2 , 2 0 2 2
P C b u i l d
g h - 8 1 0 5 7 : M o v e f a u l t h a n d l e r G l o b a l s t o _ P y R u n t i m e S t a t e ( g h - 1 0 0 1 5 2 )
D e c 1 2 , 2 0 2 2
P a r s e r
g h - 8 1 0 5 7 : M o v e t h e C a c h e d P a r s e r D u m m y N a m e t o _ P y R u n t i m e S t a t e ( # 1 0 0 2 7 7 )
D e c 1 6 , 2 0 2 2
P r o g r a m s
G H - 9 9 5 5 4 : P a c k l o c a t i o n t a b l e s m o r e e f f e c t i v e l y ( G H - 9 9 5 5 6 )
D e c 2 2 , 2 0 2 2
P y t h o n
G H - 9 9 5 5 4 : T r i m t r a i l i n g w h i t e s p a c e ( G H - 1 0 0 4 3 5 )
D e c 2 2 , 2 0 2 2
T o o l s
G H - 9 9 7 7 0 : M a k e t h e c o r r e c t c a l l s p e c i a l i z a t i o n f a i l k i n d s h o w u p i n t …
D e c 2 2 , 2 0 2 2
. e d i t o r c o n f i g
b p o - 4 4 8 5 4 : A d d . e d i t o r c o n f i g f i l e t o h e l p e n f o r c e m a k e p a t c h c h e c k ( G …
A u g 1 0 , 2 0 2 1
. g i t a t t r i b u t e s
g h - 9 0 8 6 8 : A d j u s t t h e G e n e r a t e d O b j e c t s ( g h - 9 9 2 2 3 )
N o v 8 , 2 0 2 2
. g i t i g n o r e
g h - 9 2 5 8 4 : R e m o v e t h e d i s t u t i l s p a c k a g e ( # 9 9 0 6 1 )
N o v 3 , 2 0 2 2
L I C E N S E
g h - 9 7 5 1 9 : S y n c h r o n i z e l i n k s i n o t h e r c o p i e s o f H I S T O R Y O F T H E S O F T W A R E (
S e p 2 5 , 2 0 2 2
M a k e f i l e . p r e . i n
g h - 8 1 0 5 7 : M o v e f a u l t h a n d l e r G l o b a l s t o _ P y R u n t i m e S t a t e ( g h - 1 0 0 1 5 2 )
D e c 1 2 , 2 0 2 2
R E A D M E . r s t
P y t h o n 3 . 1 2 . 0 a 3
D e c 6 , 2 0 2 2
a c l o c a l . m 4
b p o - 4 5 5 7 3 " c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 2 1 2 2 3 1 2 2 3 0 1 / h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n / c o m m i t / 2 5 e c c 0 4 0 d 0 0 7 a 5 5 e 4 b 5 c 3 0 f a 7 3 9 0 5 4 b 5 2 c 1 a a c a c " > : I n t r o d u c e e x t e n s i o n m o d u l e f l a g s i n M a k e f i l e ( G H - 2 9 5 9 4 " c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 2 1 2 2 3 1 2 2 3 0 1 / h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n / c o m m i t / 2 5 e c c 0 4 0 d 0 0 7 a 5 5 e 4 b 5 c 3 0 f a 7 3 9 0 5 4 b 5 2 c 1 a a c a c " > )
N o v 1 8 , 2 0 2 1
c o n f i g . g u e s s
b p o - 3 3 3 9 3 : U p d a t e c o n f i g . g u e s s a n d c o n f i g . s u b ( G H - 2 9 7 8 1 )
N o v 2 5 , 2 0 2 1
c o n f i g . s u b
b p o - 3 3 3 9 3 : U p d a t e c o n f i g . g u e s s a n d c o n f i g . s u b ( G H - 2 9 7 8 1 )
N o v 2 5 , 2 0 2 1
c o n f i g u r e
g h - 9 9 0 8 6 : F i x - W s t r i c t - p r o t o t y p e s , - W i m p l i c i t - f u n c t i o n - d e c l a r a t i o n w a …
N o v 2 6 , 2 0 2 2
c o n f i g u r e . a c
g h - 9 9 0 8 6 : F i x - W s t r i c t - p r o t o t y p e s , - W i m p l i c i t - f u n c t i o n - d e c l a r a t i o n w a …
N o v 2 6 , 2 0 2 2
i n s t a l l - s h
m a i n r e n a m e ( G H - 2 5 8 6 0 ) " c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 2 1 2 2 3 1 2 2 3 0 1 / h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n / c o m m i t / 2 f c 8 5 7 a 5 7 2 1 a 5 b 4 2 b c b 6 9 6 c 9 c a e 1 b b c c 8 2 a 9 1 b 1 7 " > U p d a t e C I f i l e s t o a c c o u n t f o r t h e m a s t e r - > m a i n r e n a m e ( G H - 2 5 8 6 0 m a i n r e n a m e ( G H - 2 5 8 6 0 ) " c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 2 1 2 2 3 1 2 2 3 0 1 / h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n / c o m m i t / 2 f c 8 5 7 a 5 7 2 1 a 5 b 4 2 b c b 6 9 6 c 9 c a e 1 b b c c 8 2 a 9 1 b 1 7 " > )
M a y 3 , 2 0 2 1
n e t l i f y . t o m l
g h - 1 0 0 0 7 2 " c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 2 1 2 2 3 1 2 2 3 0 1 / h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n / c o m m i t / d 9 2 4 0 7 e d 4 9 7 e 3 f c 5 a c a c b 0 2 9 4 a b 6 0 9 5 0 1 3 e 6 0 0 f 4 " > : o n l y t r i g g e r n e t l i f y b u i l d s f o r d o c c h a n g e s ( # 1 0 0 0 7 4 " c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 2 1 2 2 3 1 2 2 3 0 1 / h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n / c o m m i t / d 9 2 4 0 7 e d 4 9 7 e 3 f c 5 a c a c b 0 2 9 4 a b 6 0 9 5 0 1 3 e 6 0 0 f 4 " > )
D e c 7 , 2 0 2 2
p y c o n f i g . h . i n
g h - 9 5 3 8 9
C o - a u t h o r e d - b y : C A M G e r l a c h " c l a s s = " L i n k - - s e c o n d a r y " h r e f = " / w e b / 2 0 2 2 1 2 2 3 1 2 2 3 0 1 / h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n / c o m m i t / 8 0 c 0 8 d 1 c d 6 7 a f d d 1 3 3 6 c 6 5 b a 2 3 a 0 4 4 b 6 a c 4 9 0 f 3 3 " > : e x p o s e p o p u l a r E T H E R T Y P E _ * c o n s t a n t s i n t h e s o c k e t m o d u l e ( # …
N o v 7 , 2 0 2 2
V i e w c o d e
T h i s i s P y t h o n v e r s i o n 3 . 1 2 . 0 a l p h a 3
C o p y r i g h t © 2 0 0 1 - 2 0 2 2 P y t h o n S o f t w a r e F o u n d a t i o n . A l l r i g h t s r e s e r v e d .
S e e t h e e n d o f t h i s f i l e f o r f u r t h e r c o p y r i g h t a n d l i c e n s e i n f o r m a t i o n .
C o n t e n t s
● G e n e r a l I n f o r m a t i o n
● C o n t r i b u t i n g t o C P y t h o n
● U s i n g P y t h o n
● B u i l d I n s t r u c t i o n s
● P r o f i l e G u i d e d O p t i m i z a t i o n
● L i n k T i m e O p t i m i z a t i o n
● W h a t ' s N e w
● D o c u m e n t a t i o n
● C o n v e r t i n g F r o m P y t h o n 2 . x t o 3 . x
● T e s t i n g
● I n s t a l l i n g m u l t i p l e v e r s i o n s
● I s s u e T r a c k e r a n d M a i l i n g L i s t
● P r o p o s a l s f o r e n h a n c e m e n t
● R e l e a s e S c h e d u l e
● C o p y r i g h t a n d L i c e n s e I n f o r m a t i o n
● W e b s i t e : h t t p s : / / w w w . p y t h o n . o r g
● S o u r c e c o d e : h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n
● I s s u e t r a c k e r : h t t p s : / / g i t h u b . c o m / p y t h o n / c p y t h o n / i s s u e s
● D o c u m e n t a t i o n : h t t p s : / / d o c s . p y t h o n . o r g
● D e v e l o p e r ' s G u i d e : h t t p s : / / d e v g u i d e . p y t h o n . o r g /
F o r m o r e c o m p l e t e i n s t r u c t i o n s o n c o n t r i b u t i n g t o C P y t h o n d e v e l o p m e n t ,
s e e t h e D e v e l o p e r G u i d e .
I n s t a l l a b l e P y t h o n k i t s , a n d i n f o r m a t i o n a b o u t u s i n g P y t h o n , a r e a v a i l a b l e a t
p y t h o n . o r g .
O n U n i x , L i n u x , B S D , m a c O S , a n d C y g w i n :
./configure
make
make test
sudo make install
T h i s w i l l i n s t a l l P y t h o n a s p y t h o n 3 .
Y o u c a n p a s s m a n y o p t i o n s t o t h e c o n f i g u r e s c r i p t ; r u n . / c o n f i g u r e - - h e l p
t o f i n d o u t m o r e . O n m a c O S c a s e - i n s e n s i t i v e f i l e s y s t e m s a n d o n C y g w i n ,
t h e e x e c u t a b l e i s c a l l e d p y t h o n . e x e ; e l s e w h e r e i t ' s j u s t p y t h o n .
B u i l d i n g a c o m p l e t e P y t h o n i n s t a l l a t i o n r e q u i r e s t h e u s e o f v a r i o u s
a d d i t i o n a l t h i r d - p a r t y l i b r a r i e s , d e p e n d i n g o n y o u r b u i l d p l a t f o r m a n d
c o n f i g u r e o p t i o n s . N o t a l l s t a n d a r d l i b r a r y m o d u l e s a r e b u i l d a b l e o r
u s e a b l e o n a l l p l a t f o r m s . R e f e r t o t h e
I n s t a l l d e p e n d e n c i e s
s e c t i o n o f t h e D e v e l o p e r G u i d e f o r c u r r e n t d e t a i l e d i n f o r m a t i o n o n
d e p e n d e n c i e s f o r v a r i o u s L i n u x d i s t r i b u t i o n s a n d m a c O S .
O n m a c O S , t h e r e a r e a d d i t i o n a l c o n f i g u r e a n d b u i l d o p t i o n s r e l a t e d
t o m a c O S f r a m e w o r k a n d u n i v e r s a l b u i l d s . R e f e r t o M a c / R E A D M E . r s t .
O n W i n d o w s , s e e P C b u i l d / r e a d m e . t x t .
I f y o u w i s h , y o u c a n c r e a t e a s u b d i r e c t o r y a n d i n v o k e c o n f i g u r e f r o m t h e r e .
F o r e x a m p l e :
mkdir debug
cd debug
../configure --with-pydebug
make
make test
( T h i s w i l l f a i l i f y o u a l s o b u i l t a t t h e t o p - l e v e l d i r e c t o r y . Y o u s h o u l d d o
a m a k e c l e a n a t t h e t o p - l e v e l f i r s t . )
T o g e t a n o p t i m i z e d b u i l d o f P y t h o n , c o n f i g u r e - - e n a b l e - o p t i m i z a t i o n s
b e f o r e y o u r u n m a k e . T h i s s e t s t h e d e f a u l t m a k e t a r g e t s u p t o e n a b l e
P r o f i l e G u i d e d O p t i m i z a t i o n ( P G O ) a n d m a y b e u s e d t o a u t o - e n a b l e L i n k T i m e
O p t i m i z a t i o n ( L T O ) o n s o m e p l a t f o r m s . F o r m o r e d e t a i l s , s e e t h e s e c t i o n s
b e l o w .
P G O t a k e s a d v a n t a g e o f r e c e n t v e r s i o n s o f t h e G C C o r C l a n g c o m p i l e r s . I f u s e d ,
e i t h e r v i a c o n f i g u r e - - e n a b l e - o p t i m i z a t i o n s o r b y m a n u a l l y r u n n i n g
m a k e p r o f i l e - o p t r e g a r d l e s s o f c o n f i g u r e f l a g s , t h e o p t i m i z e d b u i l d
p r o c e s s w i l l p e r f o r m t h e f o l l o w i n g s t e p s :
T h e e n t i r e P y t h o n d i r e c t o r y i s c l e a n e d o f t e m p o r a r y f i l e s t h a t m a y h a v e
r e s u l t e d f r o m a p r e v i o u s c o m p i l a t i o n .
A n i n s t r u m e n t e d v e r s i o n o f t h e i n t e r p r e t e r i s b u i l t , u s i n g s u i t a b l e c o m p i l e r
f l a g s f o r e a c h f l a v o r . N o t e t h a t t h i s i s j u s t a n i n t e r m e d i a r y s t e p . T h e
b i n a r y r e s u l t i n g f r o m t h i s s t e p i s n o t g o o d f o r r e a l - l i f e w o r k l o a d s a s i t h a s
p r o f i l i n g i n s t r u c t i o n s e m b e d d e d i n s i d e .
A f t e r t h e i n s t r u m e n t e d i n t e r p r e t e r i s b u i l t , t h e M a k e f i l e w i l l r u n a t r a i n i n g
w o r k l o a d . T h i s i s n e c e s s a r y i n o r d e r t o p r o f i l e t h e i n t e r p r e t e r ' s e x e c u t i o n .
N o t e a l s o t h a t a n y o u t p u t , b o t h s t d o u t a n d s t d e r r , t h a t m a y a p p e a r a t t h i s s t e p
i s s u p p r e s s e d .
T h e f i n a l s t e p i s t o b u i l d t h e a c t u a l i n t e r p r e t e r , u s i n g t h e i n f o r m a t i o n
c o l l e c t e d f r o m t h e i n s t r u m e n t e d o n e . T h e e n d r e s u l t w i l l b e a P y t h o n b i n a r y
t h a t i s o p t i m i z e d ; s u i t a b l e f o r d i s t r i b u t i o n o r p r o d u c t i o n i n s t a l l a t i o n .
E n a b l e d v i a c o n f i g u r e ' s - - w i t h - l t o f l a g . L T O t a k e s a d v a n t a g e o f t h e
a b i l i t y o f r e c e n t c o m p i l e r t o o l c h a i n s t o o p t i m i z e a c r o s s t h e o t h e r w i s e
a r b i t r a r y . o f i l e b o u n d a r y w h e n b u i l d i n g f i n a l e x e c u t a b l e s o r s h a r e d
l i b r a r i e s f o r a d d i t i o n a l p e r f o r m a n c e g a i n s .
W e h a v e a c o m p r e h e n s i v e o v e r v i e w o f t h e c h a n g e s i n t h e W h a t ' s N e w i n P y t h o n
3 . 1 2 d o c u m e n t . F o r a m o r e
d e t a i l e d c h a n g e l o g , r e a d M i s c / N E W S , b u t a f u l l
a c c o u n t i n g o f c h a n g e s c a n o n l y b e g l e a n e d f r o m t h e c o m m i t h i s t o r y .
I f y o u w a n t t o i n s t a l l m u l t i p l e v e r s i o n s o f P y t h o n , s e e t h e s e c t i o n b e l o w
e n t i t l e d " I n s t a l l i n g m u l t i p l e v e r s i o n s " .
D o c u m e n t a t i o n f o r P y t h o n 3 . 1 2 i s o n l i n e ,
u p d a t e d d a i l y .
I t c a n a l s o b e d o w n l o a d e d i n m a n y f o r m a t s f o r f a s t e r a c c e s s . T h e d o c u m e n t a t i o n
i s d o w n l o a d a b l e i n H T M L , P D F , a n d r e S t r u c t u r e d T e x t f o r m a t s ; t h e l a t t e r v e r s i o n
i s p r i m a r i l y f o r d o c u m e n t a t i o n a u t h o r s , t r a n s l a t o r s , a n d p e o p l e w i t h s p e c i a l
f o r m a t t i n g r e q u i r e m e n t s .
F o r i n f o r m a t i o n a b o u t b u i l d i n g P y t h o n ' s d o c u m e n t a t i o n , r e f e r t o D o c / R E A D M E . r s t .
S i g n i f i c a n t b a c k w a r d i n c o m p a t i b l e c h a n g e s w e r e m a d e f o r t h e r e l e a s e o f P y t h o n
3 . 0 , w h i c h m a y c a u s e p r o g r a m s w r i t t e n f o r P y t h o n 2 t o f a i l w h e n r u n w i t h P y t h o n
3 . F o r m o r e i n f o r m a t i o n a b o u t p o r t i n g y o u r c o d e f r o m P y t h o n 2 t o P y t h o n 3 , s e e
t h e P o r t i n g H O W T O .
T o t e s t t h e i n t e r p r e t e r , t y p e m a k e t e s t i n t h e t o p - l e v e l d i r e c t o r y . T h e
t e s t s e t p r o d u c e s s o m e o u t p u t . Y o u c a n g e n e r a l l y i g n o r e t h e m e s s a g e s a b o u t
s k i p p e d t e s t s d u e t o o p t i o n a l f e a t u r e s w h i c h c a n ' t b e i m p o r t e d . I f a m e s s a g e
i s p r i n t e d a b o u t a f a i l e d t e s t o r a t r a c e b a c k o r c o r e d u m p i s p r o d u c e d ,
s o m e t h i n g i s w r o n g .
B y d e f a u l t , t e s t s a r e p r e v e n t e d f r o m o v e r u s i n g r e s o u r c e s l i k e d i s k s p a c e a n d
m e m o r y . T o e n a b l e t h e s e t e s t s , r u n m a k e t e s t a l l .
I f a n y t e s t s f a i l , y o u c a n r e - r u n t h e f a i l i n g t e s t ( s ) i n v e r b o s e m o d e . F o r
e x a m p l e , i f t e s t _ o s a n d t e s t _ g d b f a i l e d , y o u c a n r u n :
make test TESTOPTS="-v test_os test_gdb"
I f t h e f a i l u r e p e r s i s t s a n d a p p e a r s t o b e a p r o b l e m w i t h P y t h o n r a t h e r t h a n
y o u r e n v i r o n m e n t , y o u c a n f i l e a b u g r e p o r t a n d i n c l u d e r e l e v a n t o u t p u t f r o m
t h a t c o m m a n d t o s h o w t h e i s s u e .
S e e R u n n i n g & W r i t i n g T e s t s
f o r m o r e o n r u n n i n g t e s t s .
O n U n i x a n d M a c s y s t e m s i f y o u i n t e n d t o i n s t a l l m u l t i p l e v e r s i o n s o f P y t h o n
u s i n g t h e s a m e i n s t a l l a t i o n p r e f i x ( - - p r e f i x a r g u m e n t t o t h e c o n f i g u r e
s c r i p t ) y o u m u s t t a k e c a r e t h a t y o u r p r i m a r y p y t h o n e x e c u t a b l e i s n o t
o v e r w r i t t e n b y t h e i n s t a l l a t i o n o f a d i f f e r e n t v e r s i o n . A l l f i l e s a n d
d i r e c t o r i e s i n s t a l l e d u s i n g m a k e a l t i n s t a l l c o n t a i n t h e m a j o r a n d m i n o r
v e r s i o n a n d c a n t h u s l i v e s i d e - b y - s i d e . m a k e i n s t a l l a l s o c r e a t e s
$ { p r e f i x } / b i n / p y t h o n 3 w h i c h r e f e r s t o $ { p r e f i x } / b i n / p y t h o n 3 . X . I f y o u
i n t e n d t o i n s t a l l m u l t i p l e v e r s i o n s u s i n g t h e s a m e p r e f i x y o u m u s t d e c i d e w h i c h
v e r s i o n ( i f a n y ) i s y o u r " p r i m a r y " v e r s i o n . I n s t a l l t h a t v e r s i o n u s i n g m a k e
i n s t a l l . I n s t a l l a l l o t h e r v e r s i o n s u s i n g m a k e a l t i n s t a l l .
F o r e x a m p l e , i f y o u w a n t t o i n s t a l l P y t h o n 2 . 7 , 3 . 6 , a n d 3 . 1 2 w i t h 3 . 1 2 b e i n g t h e
p r i m a r y v e r s i o n , y o u w o u l d e x e c u t e m a k e i n s t a l l i n y o u r 3 . 1 2 b u i l d d i r e c t o r y
a n d m a k e a l t i n s t a l l i n t h e o t h e r s .
B u g r e p o r t s a r e w e l c o m e ! Y o u c a n u s e G i t h u b t o r e p o r t b u g s , a n d / o r s u b m i t p u l l r e q u e s t s .
Y o u c a n a l s o f o l l o w d e v e l o p m e n t d i s c u s s i o n o n t h e p y t h o n - d e v m a i l i n g l i s t .
I f y o u h a v e a p r o p o s a l t o c h a n g e P y t h o n , y o u m a y w a n t t o s e n d a n e m a i l t o t h e
c o m p . l a n g . p y t h o n or p y t h o n - i d e a s m a i l i n g l i s t s f o r i n i t i a l f e e d b a c k . A
P y t h o n E n h a n c e m e n t P r o p o s a l ( P E P ) m a y b e s u b m i t t e d i f y o u r i d e a g a i n s g r o u n d .
A l l c u r r e n t P E P s , a s w e l l a s g u i d e l i n e s f o r s u b m i t t i n g a n e w P E P , a r e l i s t e d a t
p e p s . p y t h o n . o r g .
S e e P E P 6 9 3 f o r P y t h o n 3 . 1 2 r e l e a s e d e t a i l s .
C o p y r i g h t © 2 0 0 1 - 2 0 2 2 P y t h o n S o f t w a r e F o u n d a t i o n . A l l r i g h t s r e s e r v e d .
C o p y r i g h t © 2 0 0 0 B e O p e n . c o m . A l l r i g h t s r e s e r v e d .
C o p y r i g h t © 1 9 9 5 - 2 0 0 1 C o r p o r a t i o n f o r N a t i o n a l R e s e a r c h I n i t i a t i v e s . A l l
r i g h t s r e s e r v e d .
C o p y r i g h t © 1 9 9 1 - 1 9 9 5 S t i c h t i n g M a t h e m a t i s c h C e n t r u m . A l l r i g h t s r e s e r v e d .
S e e t h e L I C E N S E f o r
i n f o r m a t i o n o n t h e h i s t o r y o f t h i s s o f t w a r e , t e r m s & c o n d i t i o n s f o r u s a g e , a n d a
D I S C L A I M E R O F A L L W A R R A N T I E S .
T h i s P y t h o n d i s t r i b u t i o n c o n t a i n s no G N U G e n e r a l P u b l i c L i c e n s e ( G P L ) c o d e ,
s o i t m a y b e u s e d i n p r o p r i e t a r y p r o j e c t s . T h e r e a r e i n t e r f a c e s t o s o m e G N U
c o d e b u t t h e s e a r e e n t i r e l y o p t i o n a l .
A l l t r a d e m a r k s r e f e r e n c e d h e r e i n a r e p r o p e r t y o f t h e i r r e s p e c t i v e h o l d e r s .
A b o u t
T h e P y t h o n p r o g r a m m i n g l a n g u a g e
w w w . p y t h o n . o r g /
R e s o u r c e s
R e a d m e
L i c e n s e
V i e w l i c e n s e
C o d e o f c o n d u c t
C o d e o f c o n d u c t
S e c u r i t y p o l i c y
S e c u r i t y p o l i c y
S t a r s
4 9 . 6 k
s t a r s
W a t c h e r s
1 . 5 k
w a t c h i n g
F o r k s
2 5 . 3 k
f o r k s
5 3 2
t a g s
S p o n s o r t h i s p r o j e c t
●
h t t p s : / / w w w . p y t h o n . o r g / p s f / d o n a t i o n s / p y t h o n - d e v /
L e a r n m o r e a b o u t G i t H u b S p o n s o r s
N o p a c k a g e s p u b l i s h e d
+ 2 , 1 0 5 c o n t r i b u t o r s
L a n g u a g e s
●
P y t h o n
6 4 . 4 %
●
C
3 3 . 3 %
●
C + +
0 . 7 %
●
M 4
0 . 5 %
●
H T M L
0 . 4 %
●
B a t c h f i l e
0 . 2 %
●
O t h e r
0 . 5 %
F o o t e r
© 2 0 2 2 G i t H u b , I n c .
● T e r m s
● P r i v a c y
● S e c u r i t y
● S t a t u s
● D o c s
● C o n t a c t G i t H u b
● P r i c i n g
● A P I
● T r a i n i n g
● B l o g
● A b o u t
Y o u c a n ’ t p e r f o r m t h a t a c t i o n a t t h i s t i m e .
Y o u s i g n e d i n w i t h a n o t h e r t a b o r w i n d o w . R e l o a d t o r e f r e s h y o u r s e s s i o n .
Y o u s i g n e d o u t i n a n o t h e r t a b o r w i n d o w . R e l o a d t o r e f r e s h y o u r s e s s i o n .