#pprint — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #pprint, aggregated by home.social.
-
Well, let's fix those pprint defaults!
https://mastodon.social/@treyhunner/116403550709287167
Which do you prefer?
https://github.com/python/cpython/issues/149189
https://github.com/python/cpython/pull/149190 -
Well, let's fix those pprint defaults!
https://mastodon.social/@treyhunner/116403550709287167
Which do you prefer?
https://github.com/python/cpython/issues/149189
https://github.com/python/cpython/pull/149190 -
Well, let's fix those pprint defaults!
https://mastodon.social/@treyhunner/116403550709287167
Which do you prefer?
https://github.com/python/cpython/issues/149189
https://github.com/python/cpython/pull/149190 -
Well, let's fix those pprint defaults!
https://mastodon.social/@treyhunner/116403550709287167
Which do you prefer?
https://github.com/python/cpython/issues/149189
https://github.com/python/cpython/pull/149190 -
Well, let's fix those pprint defaults!
https://mastodon.social/@treyhunner/116403550709287167
Which do you prefer?
https://github.com/python/cpython/issues/149189
https://github.com/python/cpython/pull/149190 -
@hamatti
Tip: it's probably better to prefer pprint.pp() over pprint.pprint() because pprint() sorts dictionaries by default, which can be surprising now that dictionaries maintain insertion order.pprint.pp() was added in Python 3.8 so is available for all supported versions.
https://docs.python.org/3/library/pprint.html#pprint.pp
-
@hamatti
Tip: it's probably better to prefer pprint.pp() over pprint.pprint() because pprint() sorts dictionaries by default, which can be surprising now that dictionaries maintain insertion order.pprint.pp() was added in Python 3.8 so is available for all supported versions.
https://docs.python.org/3/library/pprint.html#pprint.pp
-
@hamatti
Tip: it's probably better to prefer pprint.pp() over pprint.pprint() because pprint() sorts dictionaries by default, which can be surprising now that dictionaries maintain insertion order.pprint.pp() was added in Python 3.8 so is available for all supported versions.
https://docs.python.org/3/library/pprint.html#pprint.pp
-
@hamatti
Tip: it's probably better to prefer pprint.pp() over pprint.pprint() because pprint() sorts dictionaries by default, which can be surprising now that dictionaries maintain insertion order.pprint.pp() was added in Python 3.8 so is available for all supported versions.
https://docs.python.org/3/library/pprint.html#pprint.pp
-
@hamatti
Tip: it's probably better to prefer pprint.pp() over pprint.pprint() because pprint() sorts dictionaries by default, which can be surprising now that dictionaries maintain insertion order.pprint.pp() was added in Python 3.8 so is available for all supported versions.
https://docs.python.org/3/library/pprint.html#pprint.pp
-
@treyhunner Somewhat related: we should generally prefer pprint.pp() over pprint.pprint(), because dictionaries now maintain order but pprint.pprint() sorts them before printing, which can be surprising.
https://docs.python.org/3/library/pprint.html#pprint.pp #Python #pprint
-
@treyhunner Somewhat related: we should generally prefer pprint.pp() over pprint.pprint(), because dictionaries now maintain order but pprint.pprint() sorts them before printing, which can be surprising.
https://docs.python.org/3/library/pprint.html#pprint.pp #Python #pprint
-
@treyhunner Somewhat related: we should generally prefer pprint.pp() over pprint.pprint(), because dictionaries now maintain order but pprint.pprint() sorts them before printing, which can be surprising.
https://docs.python.org/3/library/pprint.html#pprint.pp #Python #pprint
-
@treyhunner Somewhat related: we should generally prefer pprint.pp() over pprint.pprint(), because dictionaries now maintain order but pprint.pprint() sorts them before printing, which can be surprising.
https://docs.python.org/3/library/pprint.html#pprint.pp #Python #pprint
-
@treyhunner Somewhat related: we should generally prefer pprint.pp() over pprint.pprint(), because dictionaries now maintain order but pprint.pprint() sorts them before printing, which can be surprising.
https://docs.python.org/3/library/pprint.html#pprint.pp #Python #pprint
-
TIL `pprint.pprint(data, sort_dicts=False)` to keep the original order of dictionary keys. Very handy for pretty-printing dataframe.to_dict() for deeper inspection!
-
TIL `pprint.pprint(data, sort_dicts=False)` to keep the original order of dictionary keys. Very handy for pretty-printing dataframe.to_dict() for deeper inspection!
-
TIL `pprint.pprint(data, sort_dicts=False)` to keep the original order of dictionary keys. Very handy for pretty-printing dataframe.to_dict() for deeper inspection!
-
TIL `pprint.pprint(data, sort_dicts=False)` to keep the original order of dictionary keys. Very handy for pretty-printing dataframe.to_dict() for deeper inspection!
-
TIL `pprint.pprint(data, sort_dicts=False)` to keep the original order of dictionary keys. Very handy for pretty-printing dataframe.to_dict() for deeper inspection!