Jump to content

pySmith

Inactive Member
  • Posts

    14
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by pySmith

  1. I dont think it is a good idea to start with binary and Asm description.

     

    I hope your Tutorials are C++11; there are so many useful things in there, but many people dont know how to use it. (example: std::nurmeric_limits, std::to_string)

    And the awesome Metaprogramming.

     

  2. There is a simple way:

    def myfunction_took_long_to_execute():
         for i in range(500000000000000000000000000000000000):
              print i
         return i
    def myfunction_took_long_to_execute_with_yield():
         for i in range(500000000000000000000000000000000000):
              print i
              yield None
         return i
    

     

    https://docs.python.org/release/2.5.2/ref/yield.html

     

    I would post a better example, but Ymir Client times are long ago...

    • Good 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.