python - Tuple of objects that, if referenced directly, returns first object -


i want modify 1 of api methods returns object. think should return tuple of objects. don't want change way people call api method. there way return tuple of objects can referenced directly first object?

if change function returned object instead return tuple, callers of function have changed. there no way around that. either change callers extract first object, or unchanged code have tuple used have object.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -