Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0 document tab interpretation change #48853

Closed
terryjreedy opened this issue Dec 8, 2008 · 2 comments
Closed

3.0 document tab interpretation change #48853

terryjreedy opened this issue Dec 8, 2008 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@terryjreedy
Copy link
Member

BPO 4603
Nosy @birkenfeld, @terryjreedy

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2008-12-15.08:50:01.824>
created_at = <Date 2008-12-08.23:05:50.347>
labels = ['docs']
title = '3.0 document tab interpretation change'
updated_at = <Date 2008-12-15.08:50:01.823>
user = 'https://github.com/terryjreedy'

bugs.python.org fields:

activity = <Date 2008-12-15.08:50:01.823>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-12-15.08:50:01.824>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2008-12-08.23:05:50.347>
creator = 'terry.reedy'
dependencies = []
files = []
hgrepos = []
issue_num = 4603
keywords = []
message_count = 2.0
messages = ['77360', '77852']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'terry.reedy']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue4603'
versions = ['Python 3.0', 'Python 3.1']

@terryjreedy
Copy link
Member Author

In 2.6, Ref Manual / Lexical Analysis / Indentation says

"First, tabs are replaced (from left to right) by one to eight spaces
such that the total number of characters up to and including the
replacement is a multiple of eight (this is intended to be the same rule
as used by Unix). The total number of spaces preceding the first
non-blank character then determines the line’s indentation. "

and Using Python / Command line / Misc options says

"-t
Issue a warning when a source file mixes tabs and spaces for
indentation in a way that makes it depend on the worth of a tab
expressed in spaces. Issue an error when the option is given twice (-tt)."

Inyeol Lee, on c.l.p., in response to a report of a TabError, says "-tt
option in python 2.x is now default in python 3.0.
Apparently it got slipped from any documentation, including what's
new."

In 3.0 docs, the -t option *was* removed from Using Python, but the
Indentation sentences quoted above remain unchanged, though obsolete. I
would guess that they should be replaced by something like

"When a source file mixes tabs and spaces for indentation in a way that
makes it depend on the worth of a tab expressed in spaces, a TabError is
raised."

Perhaps What's New should get a sentence too. "The former -tt startup
option to raise TabError on ambiguous mixtures of tabs and spaces for
indentation has been removed as an option and is now the standard behavior."

@terryjreedy terryjreedy added the docs Documentation in the Doc dir label Dec 8, 2008
@birkenfeld
Copy link
Member

Thanks, fixed in r67786.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants