May
JUN
Jul
09
2024
2025
2026
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 5 0 6 0 9 1 0 0 3 3 8 / 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 / p u l l / 2 4 7 8 5
S k i p t o c o n t e n t
N a v i g a t i o n M e n u
A p p e a r a n c e s e t t i n g s
●
G i t H u b 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
G i t H u b M o d e l s
M a n a g e a n d c o m p a r e p r o m p t s
G i t H u b A d v a n c e d 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
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
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
I s s u e s
P l a n a n d t r a c k w o r k
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
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
C o d e S e a r c h
F i n d m o r e , s e a r c h l e s s
E x p l o r e
●
●
●
●
●
●
B y c o m p a n y s i z e
●
●
●
●
B y u s e c a s e
●
●
●
●
B y i n d u s t r y
●
●
●
●
●
V i e w a l l s o l u t i o n s
●
T o p i c s
●
●
●
●
●
E x p l o r e
●
●
●
●
●
●
●
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
●
●
●
●
E n t e r p r i s e p l a t f o r m
A I - p o w e r e d d e v e l o p e r p l a t f o r m
A v a i l a b l e a d d - o n s
G i t H u b A d v a n c e d S e c u r i t y
E n t e r p r i s e - g r a d e s e c u r i t y f e a t u r e s
C o p i l o t f o r b u s i n e s s
E n t e r p r i s e - g r a d e A I f e a t u r e s
P r e m i u m S u p p o r t
E n t e r p r i s e - g r a d e 2 4 / 7 s u p p o r t
●
S e a r c h o r j u m p t o . . .
Clear
S e a r c h s y n t a x t i p s
P r o v i d e f e e d b a c k
Include my email address so I can be contacted
C a n c e l
S u b m i t f e e d b a c k
S a v e d s e a r c h e s
U s e s a v e d s e a r c h e s t o f i l t e r y o u r r e s u l t s m o r e q u i c k l y
Query
To see all available qualifiers, see our documentation .
C a n c e l
C r e a t e s a v e d s e a r c h
A p p e a r a n c e s e t t i n g s
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 .
Y o u s w i t c h e d a c c o u n t s o 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 .
D i s m i s s a l e r t
{ { 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
U h o h !
T h e r e w a s a n e r r o r w h i l e l o a d i n g . P l e a s e r e l o a d t h i s p a g e .
●
N o t i f i c a t i o n s
Y o u m u s t b e s i g n e d i n t o c h a n g e n o t i f i c a t i o n s e t t i n g s
●
F o r k
3 2 . 1 k
S t a r
6 7 . 4 k
●
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 . 9 k
●
A c t i o n s
●
P r o j e c t s
28
●
S e c u r i t y
U h o h !
T h e r e w a s a n e r r o r w h i l e l o a d i n g . P l e a s e r e l o a d t h i s p a g e .
●
I n s i g h t s
A d d i t i o n a l n a v i g a t i o n o p t i o n s
●
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
N e w i s s u e
H a v e a q u e s t i o n a b o u t t h i s p r o j e c t ? S i g n u p f o r a f r e e G i t H u b a c c o u n t t o o p e n a n i s s u e a n d c o n t a c t i t s m a i n t a i n e r s a n d t h e c o m m u n i t y .
S i g n u p f o r G i t H u b
B y c l i c k i n g “ S i g n u p f o r G i t H u b ” , y o u a g r e e t o o u r t e r m s o f s e r v i c e a n d
p r i v a c y s t a t e m e n t . W e ’ l l o c c a s i o n a l l y s e n d y o u a c c o u n t r e l a t e d e m a i l s .
A l r e a d y o n G i t H u b ?
S i g n i n
t o y o u r a c c o u n t
J u m p t o b o t t o m
C l o s e d
a l a n y e e
w a n t s t o m e r g e
4
c o m m i t s i n t o
p y t h o n : m a i n
f r o m
a l a n y e e : p a t c h - 1
C l o s e d
a l a n y e e
w a n t s t o m e r g e
4
c o m m i t s i n t o
p y t h o n : m a i n
f r o m
a l a n y e e : p a t c h - 1
C o n v e r s a t i o n
8
C o m m i t s
4
C h e c k s
0
F i l e s c h a n g e d
U h o h !
T h e r e w a s a n e r r o r w h i l e l o a d i n g . P l e a s e r e l o a d t h i s p a g e .
C o n v e r s a t i o n
T h i s f i l e c o n t a i n s h i d d e n o r b i d i r e c t i o n a l U n i c o d e t e x t t h a t m a y b e i n t e r p r e t e d o r c o m p i l e d d i f f e r e n t l y t h a n w h a t a p p e a r s b e l o w . T o r e v i e w , o p e n t h e f i l e i n a n e d i t o r t h a t r e v e a l s h i d d e n U n i c o d e c h a r a c t e r s .
L e a r n m o r e a b o u t b i d i r e c t i o n a l U n i c o d e c h a r a c t e r s
S h o w h i d d e n c h a r a c t e r s
C o n t r i b u t o r
S p e c i f y w h i c h r a n d o m c h a r a c t e r s a r e u s e d d u r i n g t e m p o r a r y f i l e n a m e c r e a t i o n . T r i v i a l P R , b u t i t m a y b e h e l p f u l f o r d e v e l o p e r s t o k n o w w h a t c h a r a c t e r s a r e u s e d d u r i n g f i l e c r e a t i o n . S o u r c e : c l a s s _ R a n d o m N a m e S e q u e n c e
Sorry, something went wrong.
S p e c i f y t e m p f i l e r a n d o m n a m i n g c o n s t r a i n t s
…
4 e 8 2 a 6 0
Specify which random characters are used during temporary file name creation
t h e - k n i g h t s - w h o - s a y - n i
a d d e d
t h e
C L A s i g n e d
l a b e l
M a r 8 , 2 0 2 1
b e d e v e r e - b o t
a d d e d
d o c s
D o c u m e n t a t i o n i n t h e D o c d i r
a w a i t i n g r e v i e w
l a b e l s
M a r 8 , 2 0 2 1
This PR is stale because it has been open for 30 days with no activity.
Sorry, something went wrong.
g i t h u b - a c t i o n s
b o t
a d d e d
t h e
s t a l e
S t a l e P R o r i n a c t i v e f o r l o n g p e r i o d o f t i m e .
l a b e l
A p r 8 , 2 0 2 1
C o n t r i b u t o r
A u t h o r
I would like this added to the documentation.
Sorry, something went wrong.
g i t h u b - a c t i o n s
b o t
r e m o v e d
t h e
s t a l e
S t a l e P R o r i n a c t i v e f o r l o n g p e r i o d o f t i m e .
l a b e l
A p r 9 , 2 0 2 1
C o n t r i b u t o r
A u t h o r
Sorry, something went wrong.
A l e x W a y g o o d
a d d e d
s k i p i s s u e
s k i p n e w s
l a b e l s
M a y 1 7 , 2 0 2 2
e z i o - m e l o t t i
r e m o v e d
t h e
C L A s i g n e d
l a b e l
J u l 1 3 , 2 0 2 2
s l a t e n y
r e v i e w e d
O c t 1 3 , 2 0 2 2
V i e w r e v i e w e d c h a n g e s
D o c / l i b r a r y / t e m p f i l e . r s t
O u t d a t e d
S h o w r e s o l v e d
H i d e r e s o l v e d
U h o h !
T h e r e w a s a n e r r o r w h i l e l o a d i n g . P l e a s e r e l o a d t h i s p a g e .
a l a n y e e
a d d e d 2 c o m m i t s
O c t o b e r 1 2 , 2 0 2 2 2 3 : 3 3
d o u b l e u p g r a v e s i g n s
1 f 1 b 5 8 d
M e r g e b r a n c h ' m a i n ' i n t o p a t c h - 1
5 5 0 c 5 9 4
a l a n y e e
r e q u e s t e d a r e v i e w
f r o m s l a t e n y
O c t o b e r 3 1 , 2 0 2 2 0 5 : 1 2
s l a t e n y
a p p r o v e d t h e s e c h a n g e s
N o v 1 , 2 0 2 2
V i e w r e v i e w e d c h a n g e s
C o n t r i b u t o r
s l a t e n y
l e f t a c o m m e n t
T h e r e w a s a p r o b l e m h i d i n g t h i s c o m m e n t .
C h o o s e a r e a s o n f o r h i d i n g t h i s c o m m e n t
T h e r e a s o n w i l l b e d i s p l a y e d t o d e s c r i b e t h i s c o m m e n t t o o t h e r s . L e a r n m o r e .
L g t m , t h o u g h I w o n d e r i f t h i s s h o u l d b e s p e l l e d o u t ( l o w e r c a s e a l p h a n u m e r i c c h a r a c t e r s p l u s t h e u n d e r s c o r e ) i n s t e a d o f u s i n g a r e g e x - l i k e e x p r e s s i o n , s i n c e I a l s o c o u l d n ' t f i n d m a n y e x a m p l e s o f a - z b e i n g u s e d o u t s i d e o f a r e g e x c o n t e x t . N o t t o o s u r e w h i c h i s b e t t e r t h o u g h , s o I ' l l l e t s o m e o n e e l s e c h i m e i n o n t h i s
Sorry, something went wrong.
b e d e v e r e - b o t
a d d e d
a w a i t i n g c o r e r e v i e w
a n d r e m o v e d
a w a i t i n g r e v i e w
l a b e l s
N o v 1 , 2 0 2 2
C o n t r i b u t o r
Thanks for the PR, but this feels like an implementation detail. Would you mind talking more about the use case you have for the exact set of characters used to be a documented guarantee?
Sorry, something went wrong.
h a u n t s a n i n j a
a d d e d
t h e
p e n d i n g
T h e i s s u e w i l l b e c l o s e d i f n o f e e d b a c k i s p r o v i d e d
l a b e l
D e c 2 2 , 2 0 2 2
C o n t r i b u t o r
A u t h o r
@hauntsaninja I don't exactly want a guarantee or whatnot. At the time of creating this PR, I want to know what the tempfile's randomly generated names would look like, and for my use case at the time, I wanted to generate my own files ensuring I would confuse them for the tempfile's random names. So I decided to look at the source code to see what kind of characters would be used to create the tempfiles, so I decided to document it so that others who had the same inquiry as me would know.
Sorry, something went wrong.
M e r g e b r a n c h ' m a i n ' i n t o p a t c h - 1
f 5 7 d 6 d e
C o n t r i b u t o r
Okay, thanks, that helps me better understand the use case. I think the right way to disambiguate temporary files from other files is to use the prefix and suffix arguments. I'd much rather encourage users to use those arguments than e.g. rely on the fact that the implementation doesn't currently use a certain character in filenames.
Putting statements in the documentation is essentially a guarantee. I appreciate your intention to save time for others, but curiosity about implementation details is still best served by looking at the implementation (one of my favourite things about Python is that the standard library is quite readable).
Sorry, something went wrong.
h a u n t s a n i n j a
c l o s e d t h i s
D e c 2 4 , 2 0 2 2
a l a n y e e
d e l e t e d t h e
p a t c h - 1
b r a n c h
D e c e m b e r 2 4 , 2 0 2 2 2 3 : 4 9
A A - T u r n e r
r e m o v e d
t h e
p e n d i n g
T h e i s s u e w i l l b e c l o s e d i f n o f e e d b a c k i s p r o v i d e d
l a b e l
A p r 6 , 2 0 2 5
S i g n u p f o r f r e e
t o j o i n t h i s c o n v e r s a t i o n o n G i t H u b .
A l r e a d y h a v e a n a c c o u n t ?
S i g n i n t o c o m m e n t
slateny
slateny approved these changes
No one assigned
L a b e l s
a w a i t i n g c o r e r e v i e w
d o c s
D o c u m e n t a t i o n i n t h e D o c d i r
s k i p i s s u e
s k i p n e w s
No milestone
Successfully merging this pull request may close these issues.
8 p a r t i c i p a n t s
A d d t h i s s u g g e s t i o n t o a b a t c h t h a t c a n b e a p p l i e d a s a s i n g l e c o m m i t .
T h i s s u g g e s t i o n i s i n v a l i d b e c a u s e n o c h a n g e s w e r e m a d e t o t h e c o d e .
S u g g e s t i o n s c a n n o t b e a p p l i e d w h i l e t h e p u l l r e q u e s t i s c l o s e d .
S u g g e s t i o n s c a n n o t b e a p p l i e d w h i l e v i e w i n g a s u b s e t o f c h a n g e s .
O n l y o n e s u g g e s t i o n p e r l i n e c a n b e a p p l i e d i n a b a t c h .
A d d t h i s s u g g e s t i o n t o a b a t c h t h a t c a n b e a p p l i e d a s a s i n g l e c o m m i t .
A p p l y i n g s u g g e s t i o n s o n d e l e t e d l i n e s i s n o t s u p p o r t e d .
Y o u m u s t c h a n g e t h e e x i s t i n g c o d e i n t h i s l i n e i n o r d e r t o c r e a t e a v a l i d s u g g e s t i o n .
T h i s s u g g e s t i o n h a s b e e n a p p l i e d o r m a r k e d r e s o l v e d .
S u g g e s t i o n s c a n n o t b e a p p l i e d f r o m p e n d i n g r e v i e w s .
S u g g e s t i o n s c a n n o t b e a p p l i e d o n m u l t i - l i n e c o m m e n t s .
S u g g e s t i o n s c a n n o t b e a p p l i e d w h i l e t h e p u l l r e q u e s t i s q u e u e d t o m e r g e .
S u g g e s t i o n c a n n o t b e a p p l i e d r i g h t n o w . P l e a s e c h e c k b a c k l a t e r .
F o o t e r
© 2 0 2 5 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
●
M a n a g e c o o k i e s
●
D o n o t s h a r e m y p e r s o n a l i n f o r m a t i o n
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 .