[New-bugs-announce] [issue27753] py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

Decorater report at bugs.python.org
Sat Aug 13 11:17:50 EDT 2016


New submission from Decorater:

py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.

Although I need something that can allow me to import byte like objects if the object contains valid python script data.
(basically it would have to act as a import unless I have to exec the data in it which would be totally bad as it would not be able to retain all of the data.

Long story short I need a way to import the data returned from the dec_script() function in this: https://bpaste.net/show/694c231c566c

----------
assignee: docs at python
components: Documentation, Library (Lib)
messages: 272590
nosy: Decorater, docs at python
priority: normal
severity: normal
status: open
title: py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data.
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27753>
_______________________________________


More information about the New-bugs-announce mailing list