isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

Made .d sleep more useful #192

Closed Maltysen closed 8 years ago

Maltysen commented 8 years ago

.d for time < 10 secs cannot be done since it will be interpreted as the other keys. This lets you sleep for small periods of time by dividing the time given by 10. I initially had the idea of simply doing miliseconds as input, but this seemed like a better idea.

Maltysen commented 8 years ago

I made it use negatives for sleeping now, seems like a better idea.

isaacg1 commented 8 years ago

Since it's impossible to sleep for a negative amount of time, wouldn't time.sleep(abs(a)) work better?

Maltysen commented 8 years ago

that is a good idea.

Maltysen commented 8 years ago

changed it