where to buy misoprostol online how to buy valtrex
Send a message THROUGH TIME in Python (joke) | Evan Fosmark

Send a message THROUGH TIME in Python (joke)

Who says time travel isn’t possible?

import time
def send_to_future(message, seconds):
    return message

I’ll leave it up to someone else to write the send_to_past() function. ;-)




  1. ferringb wrote,

    Should’ve used deferreds… they fit the joke better ;)

  2. Juho Vepsäläinen wrote,

    Perhaps something along

    import time
    def send_to_past(message, seconds):
        print message
        print 'Sent message to the past."

    would do the trick. (Based on the idea that this moment is the past of the future.)

  3. Marius Gedminas wrote,

    Easy: just pass a negative number for seconds.

  4. farmerjoe wrote,

    For your send to past function, I suggest resetting the system clock to an earlier time.
    Something on the order of

    import time, os
    def send_to_past(message, seconds):
        t1 = time.time()
        os.system( 'date %s' % asctime(t1-seconds)) 
        return message

    You can verify it works by:

    print 'sending message at time', time.asctime()
    m2 = send_to_past("Posting this message")
    print 'received message at time', time.asctime()
    print m2
  5. ティファニー ダイヤ ネックレス wrote,

    Send a message THROUGH TIME in Python (joke) | Evan Fosmark

  6. 靴購入 wrote,

    crocs 激安

  7. longchamp pliage pas cher wrote,

    La population parle ouvertement de deux Amman: Amman Est, ou la ville des ;pauvres , qui comprend le vieux centre-ville,ralph lauren fr un bon nombre de quartiers populaires et de camps palestiniens, et Amman Ouest,

Leave a comment