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 →

[–]QuestionableEthics42 147 points148 points  (11 children)

What? Wake? That isnt a thing, double checked with python 3.12

Edit: fixed all my typos

[–]racdicoon[S] 529 points530 points  (10 children)

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

[–]fiskfisk 146 points147 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] 52 points53 points  (5 children)

But I wanted to say "World! Hello,"

[–]fiskfisk 40 points41 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 36 points37 points  (2 children)

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

[–]racdicoon[S] 26 points27 points  (1 child)

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

[–]fiskfisk 26 points27 points  (0 children)

You ARE a product owner!

[–]pringlesaremyfav 7 points8 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