Python Forum
typing farsi (persian) in python
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
typing farsi (persian) in python
#18
Well, a change to #! python3 has no visibly effect. But maybe I misunderstood this again. That still happens sometimes.
On the other hand, I'm still quite sure that using F5 on IDLE 3 runs code in Python 3 and on IDLE 2 runs code in Python 2, as it gives the correspondig Tracebacks when the code is written for the other version.

Edit:
I experimented a bit with the proposed code snippet:
#! python2
import sys
sys.stdout.write("hello from Python %s\n" % (sys.version,))
From the command line, I got - according to the setting of the #!-line -:
Output:
C:\...>py systest.py hello from Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600  32 bit (Intel)] C:\...>py systest.py hello from Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Int el)]
Fine enough.

Using IDLE, I always get the output corresponding to the IDLE version. The is, running the snippet as cited (referring to python2) in IDLE 3 shows:
Output:
hello from Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)]
And it's the same vice cersa.
Reply


Messages In This Thread
typing farsi (persian) in python - by gray - Feb-20-2017, 07:23 AM
RE: typing farsi (persian) in python - by wavic - Feb-20-2017, 08:25 AM
RE: typing farsi (persian) in python - by snippsat - Feb-20-2017, 11:54 AM
RE: typing farsi (persian) in python - by gray - Feb-20-2017, 01:21 PM
RE: typing farsi (persian) in python - by snippsat - Feb-20-2017, 01:55 PM
RE: typing farsi (persian) in python - by merlem - Feb-20-2017, 02:15 PM
RE: typing farsi (persian) in python - by gray - Feb-21-2017, 04:51 AM
RE: typing farsi (persian) in python - by snippsat - Feb-20-2017, 02:33 PM
RE: typing farsi (persian) in python - by merlem - Feb-20-2017, 04:02 PM
RE: typing farsi (persian) in python - by wavic - Feb-21-2017, 07:39 AM
RE: typing farsi (persian) in python - by gray - Feb-22-2017, 05:48 AM
RE: typing farsi (persian) in python - by gray - Feb-22-2017, 04:12 PM
RE: typing farsi (persian) in python - by Larz60+ - Feb-21-2017, 10:22 AM
RE: typing farsi (persian) in python - by merlem - Feb-21-2017, 10:25 AM
RE: typing farsi (persian) in python - by Larz60+ - Feb-21-2017, 10:49 AM
RE: typing farsi (persian) in python - by wavic - Feb-21-2017, 11:11 AM
RE: typing farsi (persian) in python - by Larz60+ - Feb-21-2017, 11:25 AM
RE: typing farsi (persian) in python - by merlem - Feb-21-2017, 12:03 PM
RE: typing farsi (persian) in python - by wavic - Feb-21-2017, 12:31 PM
RE: typing farsi (persian) in python - by merlem - Feb-21-2017, 12:50 PM
RE: typing farsi (persian) in python - by wavic - Feb-21-2017, 03:00 PM
RE: typing farsi (persian) in python - by merlem - Feb-21-2017, 04:09 PM
RE: typing farsi (persian) in python - by Larz60+ - Feb-21-2017, 05:46 PM
RE: typing farsi (persian) in python - by merlem - Feb-21-2017, 05:56 PM
RE: typing farsi (persian) in python - by wavic - Feb-21-2017, 06:28 PM
RE: typing farsi (persian) in python - by wavic - Feb-22-2017, 08:29 AM
RE: typing farsi (persian) in python - by merlem - Feb-22-2017, 05:13 PM
RE: typing farsi (persian) in python - by gray - Feb-26-2017, 01:23 PM
RE: typing farsi (persian) in python - by Larz60+ - Feb-22-2017, 10:04 PM
RE: typing farsi (persian) in python - by wavic - Feb-22-2017, 10:52 PM
RE: typing farsi (persian) in python - by merlem - Feb-23-2017, 08:39 AM
RE: typing farsi (persian) in python - by wavic - Feb-23-2017, 09:07 AM
RE: typing farsi (persian) in python - by wavic - Feb-26-2017, 02:32 PM
RE: typing farsi (persian) in python - by snippsat - Feb-26-2017, 02:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  type farsi in the sql table tkinter gray 1 3,516 Feb-24-2017, 06:50 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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