def format_inline_cite(entry_list, citation_manager):
	"""Return string, formatted in-text citation (allows *multiple* citations).

	`entry_list` : list
		entries to be formatted
	`citation_manager` : CitationManager instance
		handles name formatting

	:note: need the entry formatter bc its determines the field of the names for the cite
	:note: much of the following functionality was in the old Bibstyle's formatCitation() method
	:TODO: rewrite
	:TODO: ? entries shd be more featureful ? (conflicts with core goal of BibEntry class)
	"""
	style_logger.debug("default.py: Entering format_inline_cite.")
	name_date_sep = ' '
	formatted_list = []
	for entry in entry_list:
		if not entry: #None replaces missing entries
			formatted_list.append('?')
		else:
			year = entry['year']
			entry_formatter = citation_manager.entry_formatter
			last_names = entry.get_names(entry_formatter).get_last_names() #:note: ignores "von" part
			if 3 < len(last_names):
				last_names = ' and '.join(last_names)
			else:
				last_names = last_names[0] + ' et al.'
			formatted_list.append( ('%s' + name_date_sep +  '%s')%(last_names, year) )
			#to cite by number can use this instead:
			#formatted_list.append('%d'%entry.citation_rank)
	style_logger.debug("Exiting format_inline_cite.")
	return '(' + CITEREF_TEMPLATE['citeref_sep'].join(formatted_list)+')'
dataset/ETHPy150Open dschwilk/bibstuff/bibstuff/bibstyles/default.py/format_inline_cite/swapped operands of `<`