Add ByteRange/StringPiece Conversion for Cython
authorJason Fried <fried@fb.com>
Mon, 13 Nov 2017 21:32:49 +0000 (13:32 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 13 Nov 2017 21:35:45 +0000 (13:35 -0800)
commitcf9ba53a0e3635074b2117f471d6741f3a2396ba
treed77aae806b10da86a16feb783d2f1eed93d97f77
parent5273dbe92d8b21c75573f9c1c9e8a80f2883a116
Add ByteRange/StringPiece Conversion for Cython

Summary:
Moving the cython definition to folly/python.
Adding simple conversion helper to_bytes

This is to cut down on duplicate folly::range cython definitions

Reviewed By: yfeldblum

Differential Revision: D6291125

fbshipit-source-id: 314b732a1516a03fb5c9a57939552bbabd81970b
folly/python/range.pxd [new file with mode: 0644]