Question: about commercial use of code sample.
igreenfield opened this issue · comments
Hi,
Can I copy one sample code from the book and use it in a commercial product?
Probably, what bit of code?
this:
http://python3porting.com/problems.html#nicer-solutions:
import sys
if sys.version_info < (3,):
def b(x):
return x
else:
import codecs
def b(x):
return codecs.latin_1_encode(x)[0]
Yeah, that's absolutely fine.
…On Sun, Jan 22, 2023 at 6:13 PM Izek Greenfield ***@***.***> wrote:
this:
http://python3porting.com/problems.html#nicer-solutions:
import sys
if sys.version_info < (3,):
def b(x):
return x
else:
import codecs
def b(x):
return codecs.latin_1_encode(x)[0]
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>