How can I import unnecessary_math?
Chris Angelico
rosuav at gmail.com
Thu Jul 24 13:58:45 EDT 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?
>
> Thanks,
>
>
>
> @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. :)
ChrisA
More information about the Python-list
mailing list