[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.

2016-08-13 Thread R. David Murray

R. David Murray added the comment:

Agreed, the current wording is correct and complete, except for the name vs 
named bit.  I've fixed that.

--
nosy: +r.david.murray
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

2016-08-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b1e4c8a3e786 by R David Murray in branch '2.7':
#27753: fix typo (name->named).
https://hg.python.org/cpython/rev/b1e4c8a3e786

New changeset c1cc1f616285 by R David Murray in branch '3.5':
#27753: fix typo (name->named).
https://hg.python.org/cpython/rev/c1cc1f616285

New changeset dda25c37d02b by R David Murray in branch 'default':
Merge: #27753: fix typo (name->named).
https://hg.python.org/cpython/rev/dda25c37d02b

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

2016-08-13 Thread SilentGhost

SilentGhost added the comment:

I don't see how this is an improvement. Before it clearly said that the first 
argument must be file name, now it's an oddly confusing statement. Also, 
typically we don't list all the possibilities of what the arguments must not be.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

2016-08-13 Thread Decorater

Decorater added the comment:

Ok, file uploaded.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

2016-08-13 Thread Decorater

Changes by Decorater :


Added file: http://bugs.python.org/file44095/py_compile.rst

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

2016-08-13 Thread SilentGhost

SilentGhost added the comment:

Do you care to propose an improved wording?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

2016-08-13 Thread Decorater

Decorater added the comment:

yeah, true and to specify that it cannot be anything but a file.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

2016-08-13 Thread Xiang Zhang

Xiang Zhang added the comment:

Maybe in the sentence, name should be named?

--
nosy: +xiang.zhang

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

2016-08-13 Thread SilentGhost

SilentGhost added the comment:

It says "The source code is loaded from the file name *file*". That seems 
unambiguous enough to me.

--
nosy: +SilentGhost
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

2016-08-13 Thread Decorater

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@python
components: Documentation, Library (Lib)
messages: 272590
nosy: Decorater, docs@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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com