[issue46321] Don't need delineators on lists

2022-01-09 Thread Devin Harper


Devin Harper <345t...@gmail.com> added the comment:

Had to look up tuple in documentation instead of list. Thanks for mentioning 
tuple!

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



[issue46321] Don't need delineators on lists

2022-01-09 Thread Barry A. Warsaw


Barry A. Warsaw  added the comment:

As Dennis points out, this is not a bug, it's already valid Python syntax.

--
nosy: +barry
resolution:  -> not a bug
status: pending -> open

___
Python tracker 

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



[issue46321] Don't need delineators on lists

2022-01-09 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

What you typed is already valid syntax, it's just that `a, b, c` makes a tuple, 
not a list. Changing that now would be backwards-incompatible.

Is this a request for some kind of tweak to some documentation, or is this a 
request for a different behavior?

--
nosy: +Dennis Sweeney
status: open -> pending

___
Python tracker 

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



[issue46321] Don't need delineators on lists

2022-01-09 Thread Devin Harper


New submission from Devin Harper <345t...@gmail.com>:

a=1
b=2
c=3
list=a, b, c
#Remove spaces at the end of lists. Because sometimes spaces are errors or not 
depending on the number of items in your list. Remove list delineators to save 
a little memory and time not typing those delineator symbols on list 
definitions.
for items in list:
print(items)

--
assignee: docs@python
components: Documentation
messages: 410169
nosy: 345trig, docs@python
priority: normal
severity: normal
status: open
title: Don't need delineators on lists
type: resource usage

___
Python tracker 

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