[issue14497] Invalid syntax Python files in Python sources tree

2012-04-05 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Yes, Sphinx is still 2.x, although we could switch to a Python 3 version since 
now all necessary dependencies are ported.

--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14497
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread Serhiy Storchaka

New submission from Serhiy Storchaka storch...@gmail.com:

I was very surprised to find in Python source code files that are not 
compatible with Python3. It turns out that this is not an exception, such files 
very much (see scanner script in attachment). Surely for many years no one had 
reached his hands run 2to3? These files need to be or to correct, or throw 
(when nobody needs them).

Python 3.2 detects significantly less invalid syntax files. But Python 3.3 has 
become more severe.

--
assignee: ronaldoussoren
components: 2to3 (2.x to 3.x conversion tool), Demos and Tools, Library (Lib), 
Macintosh, Tests, Tkinter, Windows
files: scanpy.py
messages: 157501
nosy: ronaldoussoren, storchaka
priority: normal
severity: normal
status: open
title: Invalid syntax Python files in Python sources tree
type: compile error
versions: Python 3.3
Added file: http://bugs.python.org/file25124/scanpy.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14497
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

See also issues 14490, 14491, and 14492.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14497
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file25125/invalid.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14497
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Some of these at least are intentional.  There are test files (especially in 
2to3!) that use python2 syntax, and test files that have specially crated 
syntax errors in them.  Sphinx at one point was using Python2, I'm not sure if 
it has been upgraded to 3 yet or not.

I'm sure there are also files that just haven't been checked and updated, such 
as the ones in Tools/scripts(*).  So an audit is definitely in order.

(*) I thought someone *had* done an audit of those, but the evidence says 
otherwise.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14497
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

There was some related work on this in the earlier Demo clean up issue 
(Issue7962) and the still open make altnstall shebang line cleanup 
(Issue10318).

But I'm confused.  From the list of files you show in invalid.txt appear to be 
from a Python 2 source directory not a Python 3 one.  Many (most?) of the files 
in your list no longer exist in Python 3.  What problem are you trying to solve 
here?

--
assignee: ronaldoussoren - 
nosy: +ned.deily

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14497
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Here's a run of your script against Python3.3  

I see nothing on this list that is a problem (after the recent fixes in 
Tools/scripts).  The Doc stuff can be ignored, that's a Python2 based toolchain 
checked out by the Doc 'make' file.  As I said, lib2to3 tests contain python2 
code.  The other tests files are supposed to be bad syntax.  The PC build 
toolchain is also still Python2 (same comment applies to the msi tool, which is 
part of that toolchain).  I imagine the Mac buildscript is too, but Ned can 
comment on that.  The gdb script is also Python2 (that's what GDB links 
against).

So, I'm closing this issue.

--
resolution:  - invalid
stage:  - committed/rejected
status: open - closed
Added file: http://bugs.python.org/file25127/scan.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14497
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

Indeed, somehow I have in the source tree were many Python2 files. After `rm -r 
*` and `hg revert -a ` number of invalid files decreased to a reasonable limit. 
Sorry for the false alarm.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14497
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com