Re: PSYCOPG2

2021-02-12 Thread Mladen Gogala via Python-list
On Fri, 12 Feb 2021 18:29:48 +, Tony Ogilvie wrote: > I am trying to write a program to open a PostgesSQL 13 database using > psycopg2. All seems to work if I write direct to Python but if I write > the script into IDLE it does not work with the IDLE Shell 3.9.1 > reporting an error of no attr

Re: New Python implementation

2021-02-12 Thread Alan Gauld via Python-list
On 12/02/2021 21:46, Mr Flibble wrote: > The neos Python implementation will consist of a schema file > which describes the language plus any Python-specific semantic concepts So the schema file is some kind of formal grammar definition of the language? And you "compile" this directly into mach

Re: New Python implementation

2021-02-12 Thread Mr Flibble
On 12/02/2021 00:15, Alan Gauld wrote: On 11/02/2021 12:30, Mr Flibble wrote: I am starting work on creating a new Python implementation from scratch using "neos" my universal compiler that can compile any programming language. Can i clarify that? Are you saying that you are going to recompil

Re: New Python implementation

2021-02-12 Thread Mr Flibble
On 12/02/2021 02:45, Terry Reedy wrote: On 2/11/2021 5:33 PM, Mr Flibble wrote: On 11/02/2021 22:25, Dan Stromberg wrote: On Thu, Feb 11, 2021 at 2:00 PM Mr Flibble wrote: On 11/02/2021 21:13, Dan Stromberg wrote: Does your project have a name yet?  I'd like to follow it through google aler

PSYCOPG2

2021-02-12 Thread Tony Ogilvie
I am trying to write a program to open a PostgesSQL 13 database using psycopg2. All seems to work if I write direct to Python but if I write the script into IDLE it does not work with the IDLE Shell 3.9.1 reporting an error of no attribute 'connect'. I have tried many options to try and get thi

Re: super() in injected methods

2021-02-12 Thread Alan Gauld via Python-list
On 12/02/2021 02:39, Andras Tantos wrote: > 1. Ports, which are the connection points on the various netlist > entities. These would be the inputs and outputs of an AND gate for example > > 2. NetTypes, which describe the type of data that can travel through a > net (and thus through a Port). O

Re: mutating a deque whilst iterating over it

2021-02-12 Thread Terry Reedy
On 2/11/2021 3:22 PM, duncan smith wrote: It seems that I can mutate a deque while iterating over it if I assign to an index, but not if I append to it. Is this the intended behaviour? Does the deque doc say anything about mutation while iterating? (Knowing the author of deque, I would

Re: New Python implementation

2021-02-12 Thread Terry Reedy
On 2/11/2021 5:33 PM, Mr Flibble wrote: On 11/02/2021 22:25, Dan Stromberg wrote: On Thu, Feb 11, 2021 at 2:00 PM Mr Flibble wrote: On 11/02/2021 21:13, Dan Stromberg wrote: Does your project have a name yet?  I'd like to follow it through google alerts or an announcement mailing list. "

Re: @unittest.skip doesn't print anything in Python <= 3.7

2021-02-12 Thread Terry Reedy
On 2/11/2021 3:25 PM, אורי wrote: Hi, https://stackoverflow.com/questions/66161394/unittest-skip-doesnt-print-anything-in-python-3-7 We are using Django with unittest. Some tests are skipped with the @unittest.skip decorator. But if I run the tests with Python 3.6 or 3.7, I get a number of test

Re: New Python implementation

2021-02-12 Thread Alan Gauld via Python-list
On 11/02/2021 12:30, Mr Flibble wrote: > I am starting work on creating a new Python implementation > from scratch using "neos" my universal compiler that can > compile any programming language. Can i clarify that? Are you saying that you are going to recompile the existing C code for pyhton

Re: super() in injected methods

2021-02-12 Thread Andras Tantos
On 2/11/21 10:35 PM, Greg Ewing wrote: On 12/02/21 3:39 pm, Andras Tantos wrote: Now, when a Port gets assigned a NetType, it needs to gain all sorts of new features. It for example should have a 'length' attribute that tells how many bits are needed to represent its possible values. The way