How can I import unnecessary_math?
rosuav at gmail.com
Thu Jul 24 19:58:45 CEST 2014
On Fri, Jul 25, 2014 at 3:54 AM, fl <rxjwg98 at gmail.com> wrote:
> It is also a question about the symbol '@' on that link.
> I don't find an explanation about '@' yet. Could you tell me?
> @with_setup(my_setup_function, my_teardown_function)
> def test_numbers_3_4():
> print 'test_numbers_3_4 <============================ actual test code'
> assert multiply(3,4) == 12
That's a function decorator. You can look them up on the web now that
you know what they're called. :)
More information about the Python-list