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 Exception
> > ...
> dis.d
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 Exception
...
dis.dis(chk)
2 0 LOAD_CONST 1 (0)
2 LOAD_FAST0
On 2021-06-19 02:51, Rich Shepard wrote:
On Sat, 19 Jun 2021, MRAB wrote:
When it says "command line" it means the operating system's command line. If
it's the Python shell , it'll say "Python shell" or "Python prompt.
MRAB,
The root shell's (#) what I assumed. User shells (in bash, anyway)
On Sat, 19 Jun 2021, MRAB wrote:
When it says "command line" it means the operating system's command line. If
it's the Python shell , it'll say "Python shell" or "Python prompt.
MRAB,
The root shell's (#) what I assumed. User shells (in bash, anyway) have $ as
the prompt.
Regardless,
$ fake
On 2021-06-18 23:24, Rich Shepard wrote:
I'm trying to use the faker package to generate data to load in a sample
postgres database so I can learn how to use tksheet and psycopg2.
The 8.8.1 documentation shows output on a root shell prompt (#), not a
python prompt (>>>). It also has a descriptio
On Fri, 18 Jun 2021, Terry Reedy wrote:
I would try using the 'given' function/decorator of hypothesis (on pypi)
to generate random data that conforms to whatever specification.
Thank you, Terry. I'll do that.
Regards,
Rich
--
https://mail.python.org/mailman/listinfo/python-list
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 thing, or at least that the jump
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 a label for the window
label1 = tkinter.Label(master, text='Hello')
# Lay out label
label1
On 6/18/2021 6:24 PM, Rich Shepard wrote:
I'm trying to use the faker package to generate data to load in a sample
postgres database so I can learn how to use tksheet and psycopg2.
The 8.8.1 documentation shows output on a root shell prompt (#), not a
python prompt (>>>). It also has a descripti
On 6/18/2021 6:04 AM, 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 Exception
0 < x < 10 == 0 < x and x < 10, except that 'x' is evaluated once.
not(_) == (not 0 < x) or (not x < 10)
Am 18.06.21 um 08:28 schrieb Liya Ann Sunny:
I am using Colab. How could solve this problem.
TclError: couldn't connect to display ":0.0"
You're either not running an X server, or having problems to connect to it.
Are you sure that Google Colab supports X11 at all? This link doesn't
seem to
On 6/17/2021 5:02 PM, Michael Boom wrote:
The below issue is pretty serious and it is preventing me from using a system I
wrote on a larger scale. How do I get this bug fixed? Thanks.
https://bugs.python.org/issue43329
Reduce your code to the minimum needed to exhibit the problem. Then run
I'm trying to use the faker package to generate data to load in a sample
postgres database so I can learn how to use tksheet and psycopg2.
The 8.8.1 documentation shows output on a root shell prompt (#), not a
python prompt (>>>). It also has a description of using faker from 'the
command line',
On Fri, 18 Jun 2021 at 15:27, Michael Boom wrote:
> The below issue is pretty serious and it is preventing me from using a
> system I wrote on a larger scale. How do I get this bug fixed? Thanks.
> https://bugs.python.org/issue43329
On Fri, 18 Jun 2021 at 06:07, Alexander Neilson
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 Exception
...
>>> dis.dis(chk)
2 0 LOAD_CONST 1 (0)
2 LOAD_FAST0 (x)
4 DUP_TOP
15 matches
Mail list logo