Re: Unable to remove setup of 3.9.5 from Windows 10

2021-06-19 Thread tommy yama
Unrelated topic, but i thought Windows 10 will be retired anytime soon. On Sun, Jun 20, 2021 at 5:58 AM Mats Wichmann wrote: > On 6/19/21 10:14 AM, Manish Jain wrote: > > Hello Team, > > > > I have installed the Python 3.9.5 and trying to remove from the PC > through > > the Uninstall Program (A

Re: Subpixel positioning on Tk canvas

2021-06-19 Thread Terry Reedy
On 6/19/2021 12:42 AM, Christian Gollwitzer wrote: Am 19.06.21 um 06:26 schrieb George Furbish: On Saturday, June 19, 2021 at 12:22:31 AM UTC-4, Christian Gollwitzer wrote: Am 19.06.21 um 02:03 schrieb George Furbish: Does Tk support interpolation/subpixel positioning of canvas elements? (e.g.

Re: Strange disassembly

2021-06-19 Thread Alan Bawden
Chris Angelico writes: >>> sys.version '3.10.0b2+ (heads/3.10:33a7a24288, Jun 9 2021, 20:47:39) [GCC 8.3.0]' >>> def chk(x): ... if not(0 < x < 10): raise Exception ... >>> dis.dis(chk) 2 0 LOAD_CONST 1 (0) 2 LOAD_FAST

Re: Unable to remove setup of 3.9.5 from Windows 10

2021-06-19 Thread Mats Wichmann
On 6/19/21 10:14 AM, Manish Jain wrote: Hello Team, I have installed the Python 3.9.5 and trying to remove from the PC through the Uninstall Program (All Possible ways - Through Control Panel or Uninstall Python executable) It just outputs saying Uninstall Successfully but nothing happening (St

Re: Tkinter problem

2021-06-19 Thread Christian Gollwitzer
Am 19.06.21 um 07:16 schrieb Jach Feng: Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道: Am 19.06.21 um 05:59 schrieb Jach Feng: import tkinter as Tk Tk from tkinter import * Tk tkinter Traceback (most recent call last): File "", line 1, in NameError: name 'tkinter' is not

Unable to remove setup of 3.9.5 from Windows 10

2021-06-19 Thread Manish Jain
Hello Team, I have installed the Python 3.9.5 and trying to remove from the PC through the Uninstall Program (All Possible ways - Through Control Panel or Uninstall Python executable) It just outputs saying Uninstall Successfully but nothing happening (Still listed in Programs List) and even not

Re: Subpixel positioning on Tk canvas

2021-06-19 Thread Christian Gollwitzer
Am 19.06.21 um 06:26 schrieb George Furbish: On Saturday, June 19, 2021 at 12:22:31 AM UTC-4, Christian Gollwitzer wrote: Am 19.06.21 um 02:03 schrieb George Furbish: Does Tk support interpolation/subpixel positioning of canvas elements? (e.g. images, text.) I have moving elements on my canvas

Re: Tkinter problem

2021-06-19 Thread Terry Reedy
On 6/18/2021 2:28 AM, Liya Ann Sunny wrote: I am using Colab. How could solve this problem. import tkinter as Tk If you do this, import 'as tk'. from tkinter import * The second import overwrites the first since it imports tkinter.Tk as 'Tk'. Don't try to do both. import sys import os

Re: Tkinter problem

2021-06-19 Thread Christian Gollwitzer
Am 19.06.21 um 05:59 schrieb Jach Feng: import tkinter as Tk Tk from tkinter import * Tk tkinter Traceback (most recent call last): File "", line 1, in NameError: name 'tkinter' is not defined What's the point? That has no relation to the question. "import A as B" does not define

Re: Strange disassembly

2021-06-19 Thread Terry Reedy
On 6/18/2021 8:13 PM, Chris Angelico wrote: On Sat, Jun 19, 2021 at 9:50 AM Terry Reedy wrote: Why are there two separate bytecode blocks for the "raise Exception"? Because one block must POP_TOP and other must not. I'd have thought that the double condition would still be evaluated as one

Re: Tkinter problem

2021-06-19 Thread Jach Feng
Christian Gollwitzer 在 2021年6月19日 星期六下午1:54:46 [UTC+8] 的信中寫道: > Am 19.06.21 um 07:16 schrieb Jach Feng: > > Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道: > >> Am 19.06.21 um 05:59 schrieb Jach Feng: > >> import tkinter as Tk > >> Tk > >>> >>> 'C:\\Users\\jfong\\AppData

Re: Tkinter problem

2021-06-19 Thread Jach Feng
Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道: > Am 19.06.21 um 05:59 schrieb Jach Feng: > import tkinter as Tk > Tk > > > 'C:\\Users\\jfong\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\tkinter\\__init__.py'> > > > from tkinter import * > Tk > >

Re: Tkinter problem

2021-06-19 Thread Jach Feng
liyaanns...@gmail.com 在 2021年6月18日 星期五下午2:28:35 [UTC+8] 的信中寫道: > I am using Colab. How could solve this problem. > import tkinter as Tk > from tkinter import * > import sys > import os > #create main window > master = Tk() > master.title("tester") > master.geometry("300x100") > > > #make

Re: Faker package [RESOLVED]

2021-06-19 Thread Rich Shepard
On Sat, 19 Jun 2021, MRAB wrote: It looks like you're mixing some Python usage ("faker.names()") in with command line usage. MRAB, You are correct. That was my problem. Judging from the docs, I'd say you need something more like: $ faker -o temp.out name for 1 fake name or: $ faker -r

Re: Strange disassembly

2021-06-19 Thread Chris Angelico
On Sat, Jun 19, 2021 at 5:13 PM Rob Cliffe via Python-list wrote: > > > > On 19/06/2021 07:50, Chris Angelico wrote: > > On Sat, Jun 19, 2021 at 4:16 PM Rob Cliffe via Python-list > > wrote: > >> > >> > >> On 18/06/2021 11:04, Chris Angelico wrote: > >> sys.version > >>> '3.10.0b2+ (heads/3.1

Re: Strange disassembly

2021-06-19 Thread Rob Cliffe via Python-list
On 19/06/2021 07:50, Chris Angelico wrote: On Sat, Jun 19, 2021 at 4:16 PM Rob Cliffe via Python-list wrote: On 18/06/2021 11:04, Chris Angelico wrote: sys.version '3.10.0b2+ (heads/3.10:33a7a24288, Jun 9 2021, 20:47:39) [GCC 8.3.0]' def chk(x): ... if not(0 < x < 10): raise Excep