def execute(self):
        if not self.args:
            self.pc.update_output('Sell what? Try "help sell" for help on sale transactions.')
            return
        if not self.pc.location:
            self.pc.update_output('There aren\'t any merchants in the void.')
            return
        #<item> [to <merchant>]
        exp = r'(?P<item>.+?)([ ]+to[ ]+(?P<merchant>\w+))?$'
        match = re.match(exp, self.args, re.I)
        if not match:
            self.pc.update_output('Try "help sell" for help on sale transactions.')
            return
        item_name, merchant_name = match.group('item', 'merchant')
        try:
            item = self.verify_item(item_name)
            merchant = self.verify_merchant(merchant_name)
        except SaleFail as e:
            self.pc.update_output(str(e))
            return
        else:
            if not merchant.ai_packs['merchant'].will_buy(item):
                merchant.perform('tell %s %s' % (self.pc.name,
                                 merchant.ai_packs['merchant'].tell_buy_types()))
                return
            # calculate sale price
            sale_price = int((item.base_value * merchant.ai_packs['merchant'].markup) + 0.5) or 1
            if ['show', 'appraise'] in self.alias:
                merchant.perform('tell %s I\'ll give you %s %s for %s.' % (self.pc.fancy_name(),
                                 str(sale_price), CURRENCY, item.name))
                # self.pc.update_output('%s is worth %s %s to %s.' % (item.name.capitalize(),
                #                                                     str(sale_price),
                #                                                     CURRENCY,
                #                                                     merchant.name))
                return
            self.pc.item_remove(item)
            # Just destroy the item for now -- maybe later we'll have merchants resell
            # player-sold items later
            item.destruct()
            self.pc.currency += sale_price
            self.pc.save()
            self.pc.update_output('You sell %s for %s %s to %s.' % (item.name,
                                                              str(sale_price),
                                                              CURRENCY, 
                                                              merchant.name))
            self.pc.location.tell_room('%s sells %s to %s.' % (self.pc.fancy_name(),
                                                               item.name,
                                                               merchant.name),
                                       [self.pc.name])
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Sell.execute/swapped operands of `in`