Python Forum
How to correct, save, run with ptpython
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to correct, save, run with ptpython
#5
I cannot copy correctly a console program. First I tried "double click", on forum's page, 2. I I swept all lines, one after the other; Always same bad copy. Here is the copy:
Error:
C:\Users\Sylvain λ class Selfless: def __init__(self, data): self.data = data def selfless(self, arg1, arg2) : return arg1 + arg2 def normal(self, arg1, arg2): return self.data + arg1 + arg2 'class' is not recognized as an internal or external command, operable program or batch file.
Reply


Messages In This Thread
How to correct, save, run with ptpython - by sylas - May-29-2018, 04:28 PM
RE: How to correct, save, run with ptpython - by sylas - May-30-2018, 08:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to save to multiple locations during save cubangt 1 630 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  How to handle "History" in ptpython sylas 4 4,118 Oct-07-2018, 11:09 PM
Last Post: Larz60+
  Cannot use functions at the bottom of ptpython sylas 1 2,260 Aug-29-2018, 12:02 PM
Last Post: sylas
  Error in a file and problem with ptpython sylas 7 4,364 Aug-25-2018, 10:17 AM
Last Post: sylas
  ptpython docstring metulburr 4 4,566 Nov-17-2017, 01:36 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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