0

I was reading the following sample code

    fkwargs = dict()
    fkwargs.update(**eval('dict(' + args.dic+ ')'))

I understand eval means convert the string to dictionary, but I don't understand why eval had two ** in the front?

Can anyone help me?

MisterMiyagi
  • 44,374
  • 10
  • 104
  • 119
MAC Coder
  • 1
  • 2
  • 1
    Do you know what ``**`` means in general, say in front of a dictionary? – MisterMiyagi Mar 11 '21 at 09:08
  • You might want to give this local article a read: https://stackoverflow.com/questions/36901/what-does-double-star-asterisk-and-star-asterisk-do-for-parameters – sander Mar 11 '21 at 09:08

0 Answers0