PKJ+`}00ftuple/.__init__.py.swpb0VIM 8.07Y5bussonniermatthiasMacBook-Pro-5.local~bussonniermatthias/dev/ftuple/ftuple/__init__.py 3210#"! Utp3ad 3gfNM6~}|srSB+ r a J ' f = f = ffff = F() return arr arr.append(a) else: arr.append(next(iter(a))) if isinstance(a, set): for a in args: arr = [] def __getitem__(self, args): return tuple(arr) arr.append(a) else: arr.append(next(iter(a))) if isinstance(a, set): for a in args: arr = [] def __call__(self, *args):class F:__all__ = ['f']__version__ = '1.0.0'""" Out[6]: ['Hello', 'World'] In [6]: f[{h}, {w}] Out[5]: ('Hello', 'World') In [5]: f({h}, {w}) Out[4]: 'Hello World' In [4]: f"{h} {w}" In [3]: w = "World" In [2]: h = "Hello" In [1]: from ftuple import fNow you can::F-strings are fabulous, why can't we make the same with Tuple and lists ?"""PKnJn¨''ftuple/.__init__.py.un~VimUnDoFD}@q#[)Is;3 Now you can. Y7_Y725_Y785_Y7; f- strings5_Y7; f-strings5_ Y7< F-strings5_ Y7]  """5_  Y7d In [1]: class F: ...:& ...: def __call__(self, *args): ...: arr = [] ...: for a in args:* ...: if isinstance(a, set):1 ...: arr.append(next(iter(a))) ...: else:% ...: arr.append(a)! ...: return tuple(arr) ...:( ...: def __getitem__(self, args): ...: arr = [] ...: for a in args:* ...: if isinstance(a, set):1 ...: arr.append(next(iter(a))) ...: else:% ...: arr.append(a) ...: return arr5_  Y7g return arr5_  Y7m !5_  Y7o #5_  Y7r # __all__ = []5_  Y7s #__all__ = ['']5_   Y7v #"""5_  "Y7} %__version__ = '''5_ "Y7''% Now you can.5_1Y75_0Y75_Y72In [1]: from ftuple import fIn [2]: h = "Hello"In [3]: w = "World"In [4]: f"{h} {w}"Out[4]: 'Hello World'In [5]: f({h}, {w})Out[5]: ('Hello', 'World')In [6]: f[{h}, {w}]Out[6]: ['Hello', 'World']5_ Y72 Now you can.5_Y75_ Y73 Now you can.5PKnJ[PPftuple/__init__.py""" F-strings are fabulous, why can't we make the same with Tuple and lists ? Now you can:: In [1]: from ftuple import f In [2]: h = "Hello" In [3]: w = "World" In [4]: f"{h} {w}" Out[4]: 'Hello World' In [5]: f({h}, {w}) Out[5]: ('Hello', 'World') In [6]: f[{h}, {w}] Out[6]: ['Hello', 'World'] """ __version__ = '1.0.0' __all__ = ['f'] class F: def __call__(self, *args): arr = [] for a in args: if isinstance(a, set): arr.append(next(iter(a))) else: arr.append(a) return tuple(arr) def __getitem__(self, args): arr = [] for a in args: if isinstance(a, set): arr.append(next(iter(a))) else: arr.append(a) return arr f = F() PKQJxs7>>ftuple-1.0.0.dist-info/LICENSEThe MIT License (MIT) Copyright (c) 2017 Matthias Bussonnier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. PK!H|&Ubftuple-1.0.0.dist-info/WHEEL HM K-*ϳR03rOK-J,/RH,Q034 /, (-JLR()*M ILR(4KM̫#DPK!H@tfftuple-1.0.0.dist-info/METADATAKO@+NT _(eʂ@'v:|t,"y '&2"M)K㛲_R8՟ Ñ4O +㵤yKk9 ,q+GbKp:ɓ-oZs lyqj˥Juh;.+ݝl3ɜ *^MB9{ݵ[~CBb;kZ%CblCIXJph #4TuRS^Jݡ&ŎMdGszZT >[ftuple-1.0.0.dist-info/LICENSEPK!H|&Ub `ftuple-1.0.0.dist-info/WHEELPK!H@tf`ftuple-1.0.0.dist-info/METADATAPK!H+"JW