Python Forum

Full Version: code getting cut off
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just noticed on a post that I just made, that certain lines are getting cut short:
Example: 'self.filelist = []'
self.filelist =
This is a visit from the past, and was fixed, but it's back
No this is an issue with the new editor
https://python-forum.io/misc.php?action=help&hid=39
test = []
this only removes it when you preview
Quote:this only removes it when you preview
Which I do a lot. Guess I'll have to get it right the first time.
(Oct-12-2017, 11:40 PM)Larz60+ Wrote: [ -> ]
Quote:this only removes it when you preview
Which I do a lot. Guess I'll have to get it right the first time.
Can preview many times just,add [] as the the last step before post.
(Oct-12-2017, 11:40 PM)Larz60+ Wrote: [ -> ]
Quote:this only removes it when you preview
Which I do a lot. Guess I'll have to get it right the first time. 

It only happens to empty lists.  If you put a space between them, it'll be valid python, and the editor won't eat it when you preview.

ie: [] #vanishes, but [ ] # totally fine