0

This may sound stupid but what's @ in Python like I see this:

@bot.command()
async def ping(ctx):
    await ctx.send('pong')

and I don't understand what is does lol

(sorry for a dumb question)

oreo-icecream
  • 17
  • 1
  • 7
  • It's a "decorator". Googling this term should help you. – kwkt Jan 09 '21 at 04:58
  • see https://stackoverflow.com/questions/6392739/what-does-the-at-symbol-do-in-python – Peter Noges Jan 09 '21 at 04:58
  • 1
    @kwkt don't be quick to just declare it a decorator. It has more than one purpose in python – M Z Jan 09 '21 at 04:59
  • @MZ At least in the context he gave, that's a decorator. I also know it's matrix multiplication in numeric computation modules, but what else is it? – kwkt Jan 09 '21 at 05:00
  • This question has been answered numerous times before. Unfortunately, in accordance with Stack Overflow's quality standards, we don't accept duplicate questions. Please use the search function or your search engine of choice to research *before* posting here. – esqew Jan 09 '21 at 05:00

0 Answers0