Skip to content

Instantly share code, notes, and snippets.

@kokimame
Created September 15, 2020 16:07
Show Gist options
  • Select an option

  • Save kokimame/a5c7d31509c0ce84a9982dbbbdd26869 to your computer and use it in GitHub Desktop.

Select an option

Save kokimame/a5c7d31509c0ce84a9982dbbbdd26869 to your computer and use it in GitHub Desktop.
Good and bad way to change tuple values
tex_strings = tuple(self.hyphenation(ts) for ts in tex_strings)
# tex_strings = list(tex_strings)
# for i, s in enumerate(tex_strings):
# tex_strings[i] = self.hyphenation(s)
# tex_strings = tuple(tex_strings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment