Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75160

Re: How can I import unnecessary_math?

Newsgroups comp.lang.python
Date 2014-07-24 10:54 -0700
References <15d1bd3b-48f1-45d8-985c-3a5a3691805b@googlegroups.com> <mailman.12283.1406223477.18130.python-list@python.org> <c16e2ed2-8e20-409c-b019-808f51544efd@googlegroups.com>
Message-ID <4d6fc183-7d99-42c4-b5f2-99240f0fe32b@googlegroups.com> (permalink)
Subject Re: How can I import unnecessary_math?
From fl <rxjwg98@gmail.com>

Show all headers | View raw


On Thursday, July 24, 2014 1:48:02 PM UTC-4, fl wrote:
> On Thursday, July 24, 2014 1:37:49 PM UTC-4, Chris Angelico wrote:
> 
> > On Fri, Jul 25, 2014 at 3:33 AM, fl <rx...@gmail.com> wrote:
> 
> Thanks. The source of that snippet is from this link:
> 
> 
> http://pythontesting.net/framework/nose/nose-introduction/
> 
> 
> I do not find any idea on that module yet.

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

@with_setup(my_setup_function, my_teardown_function)
def test_strings_a_3():
    print 'test_strings_a_3  <============================ actual test code'
    assert multiply('a',3) == 'aaa'

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How can I import unnecessary_math? fl <rxjwg98@gmail.com> - 2014-07-24 10:33 -0700
  Re: How can I import unnecessary_math? Chris Angelico <rosuav@gmail.com> - 2014-07-25 03:37 +1000
    Re: How can I import unnecessary_math? fl <rxjwg98@gmail.com> - 2014-07-24 10:48 -0700
      Re: How can I import unnecessary_math? fl <rxjwg98@gmail.com> - 2014-07-24 10:54 -0700
        Re: How can I import unnecessary_math? Chris Angelico <rosuav@gmail.com> - 2014-07-25 03:58 +1000
          Re: How can I import unnecessary_math? fl <rxjwg98@gmail.com> - 2014-07-24 11:18 -0700
        Re: How can I import unnecessary_math? Terry Reedy <tjreedy@udel.edu> - 2014-07-24 14:17 -0400
        Re: How can I import unnecessary_math? Chris Angelico <rosuav@gmail.com> - 2014-07-25 04:25 +1000
  Re: How can I import unnecessary_math? Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-24 11:42 -0600

csiph-web