Nov
DEC
Jan
15
2019
2020
2021
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 0 1 2 1 5 1 6 0 6 2 5 / 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
/ ; r e f _ c t a : S i g n u p ; r e f _ l o c : h e a d e r l o g g e d o u t " >
S i g n up
●
F e a t u r e s →
● C o d e r e v i e w
● P r o j e c t m a n a g e m e n t
● I n t e g r a t i o n s
● A c t i o n s
● P a c k a g e s
● S e c u r i t y
● T e a m m a n a g e m e n t
● H o s t i n g
● M o b i l e
● C u s t o m e r s t o r i e s →
● S e c u r i t y →
●
●
●
● E x p l o r e G i t H u b →
L e a r n & c o n t r i b u t e
● T o p i c s
● C o l l e c t i o n s
● T r e n d i n g
● L e a r n i n g L a b
● O p e n s o u r c e g u i d e s
C o n n e c t w i t h o t h e r s
● E v e n t s
● C o m m u n i t y f o r u m
● G i t H u b E d u c a t i o n
● G i t H u b S t a r s p r o g r a m
●
●
P l a n s →
● C o m p a r e p l a n s
● C o n t a c t S a l e s
● N o n p r o f i t →
● E d u c a t i o n →
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
{ { m e s s a g e } }
●
S p o n s o r p y t h o n / c p y t h o n
●
W a t c h
1 . 4 k
●
S t a r
3 5 . 1 k
●
F o r k
1 7 . 2 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 /
V i e w l i c e n s e
3 5 . 1 k
s t a r s
1 7 . 2 k
f o r k s
S t a r
W a t c h
●
C o d e
●
P u l l r e q u e s t s
1 . 4 k
●
A c t i o n s
●
S e c u r i t y
●
I n s i g h t s
M o r e
●
C o d e
●
P u l l r e q u e s t s
●
A c t i o n s
●
S e c u r i t y
●
I n s i g h t s
D i s m i s s
J o i n G i t H u b t o d a y
G i t H u b i s h o m e t o o v e r 5 0 m i l l i o n d e v e l o p e r s w o r k i n g t o g e t h e r t o h o s t a n d r e v i e w c o d e , m a n a g e p r o j e c t s , a n d b u i l d s o f t w a r e t o g e t h e r .
S i g n u p
G i t H u b i s w h e r e t h e w o r l d b u i l d s s o f t w a r e
M i l l i o n s o f d e v e l o p e r s a n d c o m p a n i e s b u i l d , s h i p , a n d m a i n t a i n t h e i r s o f t w a r e o n G i t H u b — t h e l a r g e s t a n d m o s t a d v a n c e d d e v e l o p m e n t p l a t f o r m i n t h e w o r l d .
S i g n u p f o r f r e e
D i s m i s s
12
b r a n c h e s
4 5 4
t a g s
G o t o f i l e
C o d e
C l o n e
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
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 .
G o b a c k
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 .
G o b a c k
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 .
G o b a c k
L a u n c h i n g V i s u a l S t u d i o
I f n o t h i n g h a p p e n s , d o w n l o a d t h e G i t H u b e x t e n s i o n f o r V i s u a l S t u d i o a n d t r y a g a i n .
G o b a c k
L a t e s t c o m m i t
v s t i n n e r
b p o - 3 2 3 8 1 r u n _ f i l e n a m e d o e s n ' t e x i s t , l o g t h e e r r o r i n t o s y s . s t d e r r
u s i n g " % R " f o r m a t , t o e s c a p e p r o p e r l y u n e n c o d a b l e c h a r a c t e r s ( u s u a l l y
w i t h b a c k s l a s h r e p l a c e ) . " c l a s s = " l i n k - g r a y - d a r k " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / c e b 4 2 0 2 5 1 c 1 d 6 3 5 5 2 0 0 4 9 f b b 7 b 5 2 6 9 a 7 3 d 6 3 f b 5 8 " > : p y m a i n _ r u n _ f i l e ( ) u s e s P y S y s _ F o r m a t S t d e r r ( ) ( G H - 2 3 7 7 8 r u n _ f i l e n a m e d o e s n ' t e x i s t , l o g t h e e r r o r i n t o s y s . s t d e r r
u s i n g " % R " f o r m a t , t o e s c a p e p r o p e r l y u n e n c o d a b l e c h a r a c t e r s ( u s u a l l y
w i t h b a c k s l a s h r e p l a c e ) . " c l a s s = " l i n k - g r a y - d a r k " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / c e b 4 2 0 2 5 1 c 1 d 6 3 5 5 2 0 0 4 9 f b b 7 b 5 2 6 9 a 7 3 d 6 3 f b 5 8 " > )
…
c e b 4 2 0 2
D e c 1 5 , 2 0 2 0
b p o - 3 2 3 8 1 : p y m a i n _ r u n _ f i l e ( ) u s e s P y S y s _ F o r m a t S t d e r r ( ) ( G H - 2 3 7 7 8 )
If config->run_filename doesn't exist, log the error into sys.stderr
using "%R" format, to escape properly unencodable characters (usually
with backslashreplace).
c e b 4 2 0 2
G i t s t a t s
●
1 0 8 , 7 5 1
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
b p o - 4 2 2 3 8 : D o c : R e m o v e m a k e s u s p i c i o u s f r o m t h e C I a n d d o c s b u i l d s . ( G …
N o v 2 5 , 2 0 2 0
. g i t h u b
b p o - 4 2 5 4 5 : C h e c k t h a t a l l s y m b o l s i n t h e l i m i t e d A B I a r e e x p o r t e d ( G H …
D e c 4 , 2 0 2 0
D o c
b p o - 4 2 6 3 9 : a t e x i t n o w l o g s c a l l b a c k s e x c e p t i o n s ( G H - 2 3 7 7 1 )
D e c 1 4 , 2 0 2 0
G r a m m a r
b p o - 3 0 8 5 8 " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / 4 3 c 4 f b 6 c 9 0 c 0 1 3 a 0 0 c b 8 2 0 c b 6 1 e 4 9 9 0 c d 8 e c 7 f 5 e " > : I m p r o v e e r r o r l o c a t i o n f o r e x p r e s s i o n s w i t h a s s i g n m e n t s ( G …
D e c 1 3 , 2 0 2 0
I n c l u d e
b p o - 4 2 6 3 9 " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / b 8 f a 1 3 5 9 0 8 d 2 9 4 b 3 5 0 c d a d 0 4 e 2 f 5 1 2 3 2 7 a 5 3 8 d e e " > : M o v e a t e x i t s t a t e t o P y I n t e r p r e t e r S t a t e ( G H - 2 3 7 6 3 " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / b 8 f a 1 3 5 9 0 8 d 2 9 4 b 3 5 0 c d a d 0 4 e 2 f 5 1 2 3 2 7 a 5 3 8 d e e " > )
D e c 1 5 , 2 0 2 0
L i b
b p o - 4 2 6 3 9 : A d d s c r i p t _ h e l p e r . r u n _ t e s t _ s c r i p t ( ) ( G H - 2 3 7 7 7 )
D e c 1 5 , 2 0 2 0
M a c
U p d a t e m a c o s i n s t a l l e r R e a d M e f o r 3 . 1 0 . 0 a 3 ( G H - 2 3 6 7 1 )
D e c 7 , 2 0 2 0
M i s c
b p o - 1 4 9 3 5
C o - a u t h o r e d - b y : E d d i e E l i z o n d o
C o - a u t h o r e d - b y : H a i S h i " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / 6 a 0 2 b 3 8 4 7 5 1 d b c 1 3 9 7 9 e f c 1 1 8 5 f 0 a 7 c 1 6 7 0 d c 3 4 9 " > : R e m o v e s t a t i c s t a t e f r o m t h e _ c s v m o d u l e ( G H - 2 3 2 2 4
C o - a u t h o r e d - b y : E d d i e E l i z o n d o
C o - a u t h o r e d - b y : H a i S h i " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / 6 a 0 2 b 3 8 4 7 5 1 d b c 1 3 9 7 9 e f c 1 1 8 5 f 0 a 7 c 1 6 7 0 d c 3 4 9 " > )
D e c 1 5 , 2 0 2 0
M o d u l e s
b p o - 3 2 3 8 1 r u n _ f i l e n a m e d o e s n ' t e x i s t , l o g t h e e r r o r i n t o s y s . s t d e r r
u s i n g " % R " f o r m a t , t o e s c a p e p r o p e r l y u n e n c o d a b l e c h a r a c t e r s ( u s u a l l y
w i t h b a c k s l a s h r e p l a c e ) . " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / c e b 4 2 0 2 5 1 c 1 d 6 3 5 5 2 0 0 4 9 f b b 7 b 5 2 6 9 a 7 3 d 6 3 f b 5 8 " > : p y m a i n _ r u n _ f i l e ( ) u s e s P y S y s _ F o r m a t S t d e r r ( ) ( G H - 2 3 7 7 8 r u n _ f i l e n a m e d o e s n ' t e x i s t , l o g t h e e r r o r i n t o s y s . s t d e r r
u s i n g " % R " f o r m a t , t o e s c a p e p r o p e r l y u n e n c o d a b l e c h a r a c t e r s ( u s u a l l y
w i t h b a c k s l a s h r e p l a c e ) . " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / c e b 4 2 0 2 5 1 c 1 d 6 3 5 5 2 0 0 4 9 f b b 7 b 5 2 6 9 a 7 3 d 6 3 f b 5 8 " > )
D e c 1 5 , 2 0 2 0
O b j e c t s
b p o - 4 2 1 9 5 : E n s u r e c o n s i s t e n c y o f C a l l a b l e ' s _ _ a r g s _ _ i n c o l l e c t i o n s . a …
D e c 1 3 , 2 0 2 0
PC
b p o - 4 2 5 9 1 : E x p o r t m i s s i n g P y _ F r o z e n M a i n ( ) s y m b o l ( G H - 2 3 7 3 0 )
D e c 1 0 , 2 0 2 0
P C b u i l d
b p o - 3 5 1 3 4 : A d d I n c l u d e / c p y t h o n / p y t h o n r u n . h f i l e ( G H - 2 3 7 0 1 )
D e c 8 , 2 0 2 0
P a r s e r
b p o - 3 0 8 5 8 " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / 4 3 c 4 f b 6 c 9 0 c 0 1 3 a 0 0 c b 8 2 0 c b 6 1 e 4 9 9 0 c d 8 e c 7 f 5 e " > : I m p r o v e e r r o r l o c a t i o n f o r e x p r e s s i o n s w i t h a s s i g n m e n t s ( G …
D e c 1 3 , 2 0 2 0
P r o g r a m s
b p o - 4 2 2 6 0 : C o m p u t e t h e p a t h c o n f i g i n t h e m a i n i n i t ( G H - 2 3 2 1 1 )
N o v 1 0 , 2 0 2 0
P y t h o n
b p o - 4 2 6 3 9 " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / b 8 f a 1 3 5 9 0 8 d 2 9 4 b 3 5 0 c d a d 0 4 e 2 f 5 1 2 3 2 7 a 5 3 8 d e e " > : M o v e a t e x i t s t a t e t o P y I n t e r p r e t e r S t a t e ( G H - 2 3 7 6 3 " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / b 8 f a 1 3 5 9 0 8 d 2 9 4 b 3 5 0 c d a d 0 4 e 2 f 5 1 2 3 2 7 a 5 3 8 d e e " > )
D e c 1 5 , 2 0 2 0
T o o l s
b p o - 4 2 5 4 5 : I m p r o v e t h e e r r o r m e s s a g e i n t h e s t a b l e A P I s c r i p t ( G H - 2 3 6 4 8 )
D e c 4 , 2 0 2 0
m 4
b p o - 3 8 5 2 7 : f i x c o n f i g u r e s c r i p t f o r S o l a r i s ( G H - 1 6 8 4 5 )
A p r 1 , 2 0 2 0
. g i t a t t r i b u t e s
b p o - 4 2 0 8 4 : L a n g u a g e a w a r e d i f f h e a d e r s ( G H - 2 2 7 7 6 )
O c t 1 9 , 2 0 2 0
. g i t i g n o r e
A d d e d s o m e m a k e f i l e g e n e r a t e d f i l e s t o . g i t i g n o r e ( G H - 2 2 4 3 5 )
O c t 2 6 , 2 0 2 0
. t r a v i s . y m l
b p o - 4 2 5 4 5 : C h e c k t h a t a l l s y m b o l s i n t h e l i m i t e d A B I a r e e x p o r t e d ( G H …
D e c 4 , 2 0 2 0
C O D E _ O F _ C O N D U C T . m d
i n t h e u r l w h i c h p r e v e n t e d t h e b r o w s e r f r o m j u m p i n g d o w n t o t h e c o r r e c t s e c t i o n o n t h a t p a g e .
T h a t P S F p a g e i t s e l f h a s a n e r r o r : T h e r e ' s a d u p l i c a t e " t h e " i n t h a t p a r a g r a p h t h a t n e e d s t o b e r e m o v e d : " . . . a n d c o n f o r m t o * * t h e t h e * * P y t h o n C o m m u n i t y C o d e o f C o n d u c t . "
W h i l e I w a s e d i t i n g t h i s f i l e , I a l s o f i x e d s o m e g r a m m a r a n d b o l d e d t h e 3 i m p o r t a n t k e y w o r d s s o t h a t t h e y c a t c h t h e v i e w e r ' s e y e s . I c a n r e v e r t t h e s e c h a n g e s i f t h e y a r e u n w a n t e d .
T h a n k s . " c l a s s = " l i n k - g r a y " h r e f = " / w e b / 2 0 2 0 1 2 1 5 1 6 0 6 2 5 / 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 / 4 4 b f f f 2 e c 2 2 0 f 2 e 0 2 9 1 1 5 0 a 7 7 6 d 4 d 7 7 a f 7 c 8 2 1 e f " > F i x m a r k u p a n d m i n o r g r a m m a r i m p r o v e m e n t s i n C o d e _ o f _ c o n d u c t . m d ( G H - 1 …
M a y 2 8 , 2 0 1 9
L I C E N S E
b p o - 3 9 8 8 3 : U s e B S D 0 l i c e n s e f o r c o d e i n d o c s ( G H - 1 7 6 3 5 )
S e p 3 , 2 0 2 0
M a k e f i l e . p r e . i n
b p o - 3 5 1 3 4 : A d d I n c l u d e / c p y t h o n / p y t h o n r u n . h f i l e ( G H - 2 3 7 0 1 )
D e c 8 , 2 0 2 0
R E A D M E . r s t
P y t h o n 3 . 1 0 . 0 a 3
D e c 7 , 2 0 2 0
a c l o c a l . m 4
b p o - 4 1 6 2 5 : E x p o s e t h e s p l i c e ( ) s y s t e m c a l l i n t h e o s m o d u l e ( G H - 2 1 9 4 7 )
N o v 1 7 , 2 0 2 0
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 f i l e s ( # 6 6 5 8 )
A p r 3 0 , 2 0 1 8
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 f i l e s ( # 6 6 5 8 )
A p r 3 0 , 2 0 1 8
c o n f i g u r e
b p o - 3 1 9 0 4 : E n a b l e l i b p y t h o n 3 . s o s h a r e d l i b r a r y f o r V x W o r k s ( G H - 2 3 7 4 1 )
D e c 1 4 , 2 0 2 0
c o n f i g u r e . a c
b p o - 3 1 9 0 4 : E n a b l e l i b p y t h o n 3 . s o s h a r e d l i b r a r y f o r V x W o r k s ( G H - 2 3 7 4 1 )
D e c 1 4 , 2 0 2 0
i n s t a l l - s h
b p o - 3 4 7 6 5 : i n s t a l l - s h i s e x e c u t a b l e ( G H - 1 0 2 2 5 )
O c t 2 9 , 2 0 1 8
n e t l i f y . t o m l
b p o - 3 7 8 6 0 : A d d n e t l i f y d e p l o y p r e v i e w f o r d o c s ( G H - 1 5 2 8 8 )
A u g 2 1 , 2 0 1 9
p y c o n f i g . h . i n
b p o - 4 1 6 2 5 : E x p o s e t h e s p l i c e ( ) s y s t e m c a l l i n t h e o s m o d u l e ( G H - 2 1 9 4 7 )
N o v 1 7 , 2 0 2 0
s e t u p . p y
b p o - 4 2 6 3 9 : a t e x i t n o w l o g s c a l l b a c k s e x c e p t i o n s ( G H - 2 3 7 7 1 )
D e c 1 4 , 2 0 2 0
V i e w c o d e
R E A D M E . r s t
T h i s i s P y t h o n v e r s i o n 3 . 1 0 . 0 a l p h a 3
C o p y r i g h t ( c ) 2 0 0 1 - 2 0 2 0 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 : / / b u g s . p y t h o n . o r g
● 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 u 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 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 0 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 0 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 X . Y . 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 0 w i t h 3 . 1 0 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 0 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 t h e i s s u e t r a c k e r 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 o n
G i t H u b .
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 o r 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 y t h o n . o r g / d e v / p e p s / .
S e e P E P 6 1 9 f o r P y t h o n 3 . 1 0 r e l e a s e d e t a i l s .
C o p y r i g h t ( c ) 2 0 0 1 - 2 0 2 0 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 ( c ) 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 ( c ) 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 ( c ) 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
4 5 4
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
+ 1 , 4 0 4 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 3 . 3 %
●
C
2 9 . 8 %
●
O b j e c t i v e - C
4 . 1 %
●
C + +
1 . 3 %
●
H T M L
0 . 4 %
●
M 4
0 . 4 %
●
O t h e r
0 . 7 %
● © 2 0 2 0 G i t H u b , I n c .
● T e r m s
● P r i v a c y
●
C o o k i e P r e f e r e n c e s
● S e c u r i t y
● S t a t u s
● H e l p
● 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 .
W e u s e o p t i o n a l t h i r d - p a r t y a n a l y t i c s c o o k i e s t o u n d e r s t a n d h o w y o u u s e G i t H u b . c o m s o w e c a n b u i l d b e t t e r p r o d u c t s .
L e a r n m o r e .
A c c e p t
R e j e c t
W e u s e o p t i o n a l t h i r d - p a r t y a n a l y t i c s c o o k i e s t o u n d e r s t a n d h o w y o u u s e G i t H u b . c o m s o w e c a n b u i l d b e t t e r p r o d u c t s .
Y o u c a n a l w a y s u p d a t e y o u r s e l e c t i o n b y c l i c k i n g C o o k i e P r e f e r e n c e s a t t h e b o t t o m o f t h e p a g e .
F o r m o r e i n f o r m a t i o n , s e e o u r P r i v a c y S t a t e m e n t .
E s s e n t i a l c o o k i e s
W e u s e e s s e n t i a l c o o k i e s t o p e r f o r m e s s e n t i a l w e b s i t e f u n c t i o n s , e . g . t h e y ' r e u s e d t o l o g y o u i n .
L e a r n m o r e
A l w a y s a c t i v e
A n a l y t i c s c o o k i e s
W e u s e a n a l y t i c s c o o k i e s t o u n d e r s t a n d h o w y o u u s e o u r w e b s i t e s s o w e c a n m a k e t h e m b e t t e r , e . g . t h e y ' r e u s e d t o g a t h e r i n f o r m a t i o n a b o u t t h e p a g e s y o u v i s i t a n d h o w m a n y c l i c k s y o u n e e d t o a c c o m p l i s h a t a s k .
L e a r n m o r e
A c c e p t
R e j e c t
S a v e p r e f e r e n c e s