Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Broken interpreter?
#2
Give your file an other name than string.py.
This will shadowing a built-in module string.
>>> import string
>>> 
>>> string.ascii_lowercase
'abcdefghijklmnopqrstuvwxyz'
So this import use a filled called string.py.
Reply


Messages In This Thread
Broken interpreter? - by fcktheworld587 - Dec-26-2019, 07:54 PM
RE: Broken interpreter? - by snippsat - Dec-26-2019, 08:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is copying and pasting a block now broken? WagmoreBarkless 2 1,404 May-05-2022, 05:01 AM
Last Post: WagmoreBarkless
  Why is copying and pasting a block now broken? WagmoreBarkless 1 1,242 May-04-2022, 11:40 PM
Last Post: Larz60+
  BrokenPipeError: [Errno 32] Broken pipe throwaway34 6 9,370 May-06-2021, 05:39 AM
Last Post: throwaway34
  Python broken if moved to a different folder ecastrotns 3 2,476 Oct-26-2020, 10:53 PM
Last Post: ecastrotns
  STT: recognition connection failed: [Errno 32] Broken pipe GrahamBerends 0 5,093 Jul-18-2020, 11:00 PM
Last Post: GrahamBerends
  Python DateTime is broken 10OctNotOct10a1 8 4,784 Jan-03-2020, 07:54 AM
Last Post: snippsat
  String being broken up into single characters ammorgan 1 2,359 Dec-31-2018, 07:06 AM
Last Post: Gribouillis
  Speech (audio file, wav) to Text - Broken pipe Shobha 1 3,787 Nov-27-2018, 12:41 PM
Last Post: Larz60+
  SMTPLIB MIMEText HTML - Words being broken GaryK 2 3,791 Apr-16-2018, 04:08 PM
Last Post: GaryK
  broken if statement???? DarthTader 2 3,453 Sep-29-2017, 05:03 AM
Last Post: DarthTader

Forum Jump:

User Panel Messages

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