Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python indent question
#2
No, there is nothing that really delineates a block of code in Python except indentation.

I'm not sure about Spyder, but in other applications when I copy and paste it leaves the pasted code selected. Then I can use tools (usually tab and shift-tab) to indent or unindent the selected block to it's correct indentation level. But I always figure out the correct indentation level myself, I never use tools in the editor.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Python indent question - by iicveji - Oct-20-2017, 04:40 PM
RE: Python indent question - by ichabod801 - Oct-20-2017, 04:50 PM
RE: Python indent question - by iicveji - Oct-21-2017, 03:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  getting unexpected indent errors trying to move cells up jensengt 4 921 Jun-28-2023, 12:05 PM
Last Post: deanhystad
  xml indent SubElements (wrapping) with multiple strings ctrldan 2 1,556 Jun-09-2023, 08:42 PM
Last Post: ctrldan
  IndentationError: unexpected indent dee 3 2,393 May-02-2022, 02:15 AM
Last Post: dee
  Avoid multiple repeat in indent Frankduc 8 2,946 Jan-18-2022, 05:46 PM
Last Post: Frankduc
  IndentationError: unexpected indent jk91 1 2,410 Feb-27-2020, 08:56 PM
Last Post: buran
  could not fix unexpected indent Bayan 1 3,238 Nov-08-2019, 01:45 PM
Last Post: ichabod801
  unable to indent json data dataplumber 4 3,066 Oct-22-2019, 01:55 PM
Last Post: dataplumber
  IndentationError: unexpected indent (Python) segs 8 17,419 Aug-11-2017, 03:13 PM
Last Post: segs

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020