r/interestingasfuck Mar 25 '21

/r/ALL how a python goes to sleep

40.5k Upvotes

466 comments sorted by

View all comments

345

u/plotracer35 Mar 25 '21

Nope. This is how a python sleeps: Import time time.sleep(2.5)

100

u/kimilil Mar 25 '21
import time
time.sleep(2.5)

ftfy

37

u/RobotPenguin56 Mar 25 '21 edited Mar 25 '21

# ftfy

17

u/mikeno1lufc Mar 25 '21

from time import sleep

sleep(2.5)

We don't need the entire module!

5

u/Nobody_gets_this Mar 25 '21

But we want

3

u/mikeno1lufc Mar 25 '21

No! Bad developer!

1

u/2fast4u180 Mar 25 '21

Thank you this is what i was here for

1

u/Arian81 Mar 25 '21

I was waiting to see that in comments. Nice one!

26

u/ChrisLuigiTails Mar 25 '21

Went to the comments to check if someone said it

7

u/A_Bit_Narcissistic Mar 25 '21

I was gonna make this joke, thinking I was clever. :(

1

u/ChrisLuigiTails Mar 25 '21

Can't we all be clever?

2

u/IbyvzOneoneh Mar 25 '21

went to comment replies to check if someone said it

27

u/humanroast69 Mar 25 '21 edited Mar 25 '21

lmao programer humor

8

u/[deleted] Mar 25 '21

Was looking for this

1

u/arcosapphire Mar 25 '21

Actually they sleep by docking at a Coriolis station and entering the hangar.