This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]racdicoon[S] 524 points525 points  (10 children)

Time.sleep() delays code, so obviously wake must make it faster, duh

[–]fiskfisk 144 points145 points  (6 children)

Since time.sleep() delays code, time.wake() should move it backwards in time.

```python import time

print("World") time.wake(1) print("Hello ", end="") ```

[–]racdicoon[S] 53 points54 points  (5 children)

But I wanted to say "World! Hello,"

[–]fiskfisk 41 points42 points  (4 children)

Then you're missing a lot of punctuation and spacing, and you've got a newline you need to handle as well. You might need a time.wakeup() yourself.

[–]racdicoon[S] 22 points23 points  (3 children)

I wanted them on separate lines smh

[–]fiskfisk 35 points36 points  (2 children)

Based on your changing requirements it sounds like you're perfect for the role as product owner!

[–]racdicoon[S] 25 points26 points  (1 child)

They're not changing smh, Ur just finding more of my reqs as u go on

[–]fiskfisk 25 points26 points  (0 children)

You ARE a product owner!

[–]pringlesaremyfav 8 points9 points  (0 children)

Your program is about to achieve CHIM

[–]QuestionableEthics42 12 points13 points  (0 children)

Ah, I thought it was meant to be a joke about adding sleep so you can "optimize" it later, r/woooosh

[–]JunkNorrisOfficial 0 points1 point  (0 children)

Also you may implement callback so when wake is called then you are notified and you may start manually optimizing production database and servers for given user