{"title":"PyVideo.org - fileinput","link":[{"@attributes":{"href":"https:\/\/pyvideo.org\/","rel":"alternate"}},{"@attributes":{"href":"https:\/\/pyvideo.org\/feeds\/tag_fileinput.atom.xml","rel":"self"}}],"id":"https:\/\/pyvideo.org\/","updated":"2011-03-11T00:00:00+00:00","subtitle":{},"entry":{"title":"Hidden Treasures in the Standard Library","link":{"@attributes":{"href":"https:\/\/pyvideo.org\/pycon-us-2011\/pycon-2011--hidden-treasures-in-the-standard-libr.html","rel":"alternate"}},"published":"2011-03-11T00:00:00+00:00","updated":"2011-03-11T00:00:00+00:00","author":{"name":"Doug Hellmann"},"id":"tag:pyvideo.org,2011-03-11:\/pycon-us-2011\/pycon-2011--hidden-treasures-in-the-standard-libr.html","summary":"<h3>Description<\/h3><p>Hidden Treasures in the Standard Library<\/p>\n<p>Presented by Doug Hellmann<\/p>\n<p>This presentation covers features of the standard library not widely\nknown or used. Each feature is presented with a short demonstration\nprogram and explanation.<\/p>\n<p>Abstract<\/p>\n<p>The standard library contains many hidden gems that are not widely used,\neither because \u2026<\/p>","content":"<h3>Description<\/h3><p>Hidden Treasures in the Standard Library<\/p>\n<p>Presented by Doug Hellmann<\/p>\n<p>This presentation covers features of the standard library not widely\nknown or used. Each feature is presented with a short demonstration\nprogram and explanation.<\/p>\n<p>Abstract<\/p>\n<p>The standard library contains many hidden gems that are not widely used,\neither because they are not publicized enough or because they are deep\nin a module that programmers haven't had cause to study or use. This\npresentation covers 8-10 selected topics of this nature in about 25\nminutes (leaving time for a couple of questions). Demonstration code is\nincluded for every item.<\/p>\n<p>Possible tips include, in no particular order:<\/p>\n<ul class=\"simple\">\n<li>Using hmac to verify pickled data before unpacking it.<\/li>\n<li>Using uuid4 to generate session tokens.<\/li>\n<li>Regular expression look-ahead\/behind matches.<\/li>\n<li>pdb startup files<\/li>\n<li>Reading files with mmap<\/li>\n<li>Using csv dialects<\/li>\n<li>The robotparser module<\/li>\n<li>The rlcompleter module<\/li>\n<li>Using locale to format numbers and currency<\/li>\n<li>The cgitb module<\/li>\n<li>pkgutil.getdata<\/li>\n<li>contextlib.contextmanager<\/li>\n<li>The cmd module<\/li>\n<li>The fileinput module<\/li>\n<\/ul>\n","category":[{"@attributes":{"term":"PyCon US 2011"}},{"@attributes":{"term":"cgitb"}},{"@attributes":{"term":"cmd"}},{"@attributes":{"term":"contextlib.contextmanager"}},{"@attributes":{"term":"csv"}},{"@attributes":{"term":"fileinput"}},{"@attributes":{"term":"hmac"}},{"@attributes":{"term":"locale"}},{"@attributes":{"term":"pdb"}},{"@attributes":{"term":"pkgutil.getdata"}},{"@attributes":{"term":"pycon"}},{"@attributes":{"term":"pycon2011"}},{"@attributes":{"term":"rlcompleter"}},{"@attributes":{"term":"robotparser"}},{"@attributes":{"term":"uuid4"}}]}}