Python 3.12.0 venv not working with psycopg2

2023-10-02 Thread אורי via Python-list
Hi, I have an issue since about 5 months now. Python 3.12.0 venv not working with psycopg2 on Windows. I created 2 issues on GitHub but they were closed. I checked today with the new Python release but it's still not working. https://github.com/psycopg/psycopg2/issues/1578 https://githu

Re: How to write list of integers to file with struct.pack_into?

2023-10-02 Thread MRAB via Python-list
On 2023-10-01 23:04, Jen Kris via Python-list wrote: > > Iwant to write a list of 64-bit integers to a binary file. Everyexample I have seen in my research convertsit to .txt, but I want it in binary. I wrote this code,based on some earlier work I have done: > > buf= bytes((len(qs

Re: type annotation vs working code

2023-10-03 Thread dn via Python-list
On 02/10/2023 00.57, Karsten Hilbert via Python-list wrote: Sorry for having conflated the core of the matter with all the Borg shenanigans, that's where I found the problem in my real code, so there :-) The first question when dealing with the Singleton Pattern is what to do when more

Re: type annotation vs working code

2023-10-04 Thread dn via Python-list
On 04/10/2023 19.41, Chris Angelico via Python-list wrote: On Wed, 4 Oct 2023 at 15:27, dn via Python-list wrote: - should the class have been called either; class SomethingSingleton(): or a Singleton() class defined, which is then sub-classed, ie class Something( Singleton

Re: Where I do ask for a new feature

2023-10-20 Thread dn via Python-list
On 21/10/2023 01.32, Thomas Passin via Python-list wrote: On 10/19/2023 11:16 PM, Bongo Ferno via Python-list wrote: On Thursday, October 19, 2023 at 11:26:52 PM UTC-3, avi.e...@gmail.com wrote: There are many ways to make transient variables that disappear at some time and do we need yet

Re: return type same as class gives NameError.

2023-10-22 Thread dn via Python-list
On 23/10/2023 04.50, Antoon Pardon via Python-list wrote: I have the following small module: =-=-=-=-=-=-=-=-=-=-=-= 8< =-=-=-=-=-=-=-=-=-=-=-=-= from typing import NamedTuple, TypeAlias, Union from collections.abc import Sequence PNT: TypeAlias = tuple[float, float] class Pnt (NamedTu

Question(s)

2023-10-24 Thread o1bigtenor via Python-list
sult in at best an inaccurate result and at worst - - - no result. This is the kind of thing (correct code) that I'm hoping to accomplish - - - to rephrase the question - - - how do I test for that?) TIA -- https://mail.python.org/mailman/listinfo/python-list

Re: Simple webserver

2023-10-24 Thread pozz via Python-list
connected remotely by the browser-based JS clients. I found a Python sample[*] but I am neither familiar with Python nor with the 'simple_websocket_server' package that is used in that sample code. But the code looks so simple that I'm considering to learn and use Python for the task. T

Re: Question(s)

2023-10-24 Thread Barry via Python-list
> On 24 Oct 2023, at 18:25, o1bigtenor via Python-list > wrote: > > Is there a way to verify that a program is going to do what it is > supposed to do In the general case not proven to be not possible. Have a read about the halting problem https://en.wikipedia.org/wiki/Halt

Re: Question(s)

2023-10-24 Thread o1bigtenor via Python-list
On Tue, Oct 24, 2023 at 4:54 PM Grant Edwards via Python-list wrote: > > On 2023-10-24, Dan Purgert via Python-list wrote: > > On 2023-10-24, o1bigtenor wrote: > >> Greetings > >> > >> (Sorry for a nebulous subject but dunno how to have a

Re: Question(s)

2023-10-24 Thread o1bigtenor via Python-list
nds as if you should > > Write programs or functions to simulate each piece of hardware and > generate random, but reasonably realistic, data. (Python and most other > programming languages provide means of generating random or > pseudo-random data.) > In your main program: &g

Re: Question(s)

2023-10-24 Thread o1bigtenor via Python-list
On Tue, Oct 24, 2023 at 6:09 PM Thomas Passin via Python-list wrote: > snip > > By now you have read many responses that basically say that you cannot > prove that a given program has no errors, even apart from the hardware > question. Even if it could be done, the kind of specifi

Re: Question(s)

2023-10-25 Thread o1bigtenor via Python-list
A post with useful ideas - - - - thanks (it generates some questions! interleaved) On Tue, Oct 24, 2023 at 8:35 PM Chris Angelico via Python-list wrote: > > On Wed, 25 Oct 2023 at 12:11, Thomas Passin via Python-list > wrote: > > This doesn't mean that no program can ever be

Re: Question(s)

2023-10-25 Thread o1bigtenor via Python-list
On Tue, Oct 24, 2023 at 8:43 PM Chris Angelico via Python-list wrote: > > On Wed, 25 Oct 2023 at 12:20, AVI GROSS via Python-list > wrote: > > Consider an example of bit rot. I mean what if your CPU or hard disk has a > > location where you can write a byte and read it ba

Re: Question(s)

2023-10-25 Thread o1bigtenor via Python-list
On Tue, Oct 24, 2023 at 9:36 PM AVI GROSS via Python-list wrote: > > Agreed, Chris. There are many methods way better than the sort of RAID > architecture I supplied as AN EXAMPLE easy to understand. But even so, if a > hard disk or memory chip is fried or a nuclear bomb takes out al

Re: Question(s)

2023-10-25 Thread o1bigtenor via Python-list
On Wed, Oct 25, 2023 at 6:25 AM Chris Angelico via Python-list wrote: > > On Wed, 25 Oct 2023 at 21:53, o1bigtenor wrote: > > > > Hmm - - - - now how can I combine 'Hamming codes' > > and a raid array? > > > > TIA > > Normally you woul

Re: Question(s)

2023-10-25 Thread o1bigtenor via Python-list
of errors. > > Some can be avoided by using an integrated development environment > (e.g. misspellings, type mismatches, ...). Haven't heard of a python IDE - - - doesn't mean that there isn't such - - just that I haven't heard of such. Is there a python IDE? > > Som

Re: Question(s)

2023-10-25 Thread o1bigtenor via Python-list
On Wed, Oct 25, 2023 at 6:20 AM Chris Angelico via Python-list wrote: > > On Wed, 25 Oct 2023 at 21:46, o1bigtenor wrote: > > > 2. Catch the failure as you save. We have a lot of tools that can help > > > you to spot bugs. > > > > Tools like this for p

Re: Question(s)

2023-10-25 Thread o1bigtenor via Python-list
integrated development environment > >> (e.g. misspellings, type mismatches, ...). > > > >Haven't heard of a python IDE - - - doesn't mean that there isn't such - - > >just that I haven't heard of such. Is there a python IDE? > > There are several.

Re: Question(s)

2023-10-25 Thread o1bigtenor via Python-list
On Wed, Oct 25, 2023 at 7:56 AM Dieter Maurer wrote: > > o1bigtenor wrote at 2023-10-25 07:50 -0500: > >> There are several others, > >> e.g. "ECLIPSE" can be used for Python development. > > > >Is 'Eclipse' a Windows oriented IDE? > &

Too Broad of an exception

2023-10-25 Thread rsutton via Python-list
Hi all, I am fairly new to python (ie < 2 years). I have a question about pylint. I am running on windows 10/11, python 3.10.11. Here's what I'm trying to do: I am using robocopy to to copy a set of files to/from a LAN location and my desktop(s). Here is the part

Re: Too Broad of an exception

2023-10-25 Thread rsutton via Python-list
of the try/except code looks quite clumsy to me. It may be excellent for some tasks but to me, it looks quite inelegant. Like I said, I have a lot to learn. Thank you both for your guidance. Richard -- https://mail.python.org/mailman/listinfo/python-list

Re: Too Broad of an exception

2023-10-25 Thread dn via Python-list
On 26/10/2023 04.49, rsutton via Python-list wrote: On 10/25/2023 11:06 AM, Stefan Ram wrote: r...@zedat.fu-berlin.de (Stefan Ram) writes: outer quotation marks) prints some prominent exception types. After ...    "Manually removing" above was meant to be a fast first pass,    wh

Re: Question(s)

2023-10-26 Thread o1bigtenor via Python-list
to # opt . > >There is absolutely NO mention of anything python - - - java, c and > >its permutations, > >'scientific computing', and some others but nothing python. > > > >I may be missing something due to an extreme lack of knowledge. > > > >P

Re: Question(s)

2023-10-26 Thread o1bigtenor via Python-list
On Wed, Oct 25, 2023 at 10:19 AM Michael Torrie via Python-list wrote: > > On 10/25/23 05:51, o1bigtenor via Python-list wrote: > > Looks like I have another area to investigate. (grin!) > > Any suggestions? > > Seems to me you're trying to run before you have learn

Re: Question(s)

2023-10-26 Thread o1bigtenor via Python-list
On Wed, Oct 25, 2023 at 11:58 AM Michael F. Stemper via Python-list wrote: > > On 25/10/2023 05.45, o1bigtenor wrote: > > On Tue, Oct 24, 2023 at 8:35 PM Chris Angelico via Python-list > > wrote: > > >> 3. Catch the failure before you commit and push. Unit

Re: Question(s)

2023-10-26 Thread o1bigtenor via Python-list
ipse.org/downloads/packages/> > eclipse.org <https://www.eclipse.org/downloads/packages/> > [image: favicon.ico] <https://www.eclipse.org/downloads/packages/> > <https://www.eclipse.org/downloads/packages/> > > I was looking at this page and absoulutely couldn'

Re: Question(s)

2023-10-26 Thread o1bigtenor via Python-list
On Thu, Oct 26, 2023 at 11:43 AM Michael Torrie via Python-list wrote: > > On 10/26/23 06:34, o1bigtenor wrote: > > Interesting - - - - ". . . see if it runs." - - - that's the issue! > > When the code is accessing sensors there isn't an easy way to > &

Re: Question(s)

2023-10-26 Thread o1bigtenor via Python-list
On Thu, Oct 26, 2023 at 11:47 AM Michael Torrie via Python-list wrote: > > On 10/26/23 10:41, Michael Torrie wrote: > > By the way you definitely can step > > through MicroPython code one line at a time with a remote debugger, say > > with Visual Studio Code. > >

Re: How to find any documentation for smbus?

2023-10-30 Thread km via Python-list
rg/project/smbus2/ smbus2 is designed to be a "drop-in replacement of smbus". SO you can look at its documentation for or use it instead of smbus. Disclaimer: I haven't any experience on this library -- https://mail.python.org/mailman/listinfo/python-list

Re: PyInstaller value error: Invalid Windows resource specifier

2023-10-30 Thread MRAB via Python-list
On 2023-10-30 19:19, McDermott Family via Python-list wrote: Hello, I am trying to create a one file executable with pyinstaller 6.1.0 and auto-py-to-exe 2.41.0 using Python version 3.10.9 in a virtual environment. Some points before the output of pinstaller is shown. My resource .py file is

Re: Checking if email is valid

2023-11-01 Thread dn via Python-list
On 02/11/2023 00.35, Simon Connah via Python-list wrote: OK. I've been doing some reading and that you should avoid regex to check email addresses. This operation used to be a BIG THING back in the days of 'everyone' building PHP web-sites. When there were only a handful of T

Re: Checking if email is valid

2023-11-02 Thread dn via Python-list
On 02/11/2023 19.46, Simon Connah via Python-list wrote: On Thu, 2 Nov 2023 at 05:21, Simon Connah via Python-list python-list@python.org wrote: Could someone push me in the right direction please? I just want to find out if a string is a valid email address. There is only one way

Re: Checking if email is valid

2023-11-02 Thread dn via Python-list
On 02/11/2023 19.56, Chris Angelico via Python-list wrote: On Thu, 2 Nov 2023 at 17:47, Simon Connah wrote: My goal is to make a simple mailing list platform. I guess I could just send email to an address and if it bounces then I can remove it from the database. Thing is I'm not sur

Re: Checking if email is valid

2023-11-02 Thread dn via Python-list
bout "closeness". Thus, what you might expect from email servers and Admins, NOT what you should do. That part should be quite evident by now! -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

RE: Python-list Digest, Vol 242, Issue 3

2023-11-04 Thread bart.kuijer via Python-list
I don 't understand the meaning of this mail Verzonden vanaf mijn Galaxy Oorspronkelijk bericht Van: python-list-requ...@python.org Datum: 04-11-23 17:01 (GMT+01:00) Aan: python-list@python.org Onderwerp: Python-list Digest, Vol 242, Issue 3 Send Python-list mailing

Safe package removal

2023-11-05 Thread dn via Python-list
27;crud' hangs-about 'forever'. Accordingly, python -m pip list --outdated shows about as many entries as python - m pip list! Have (comparatively recently) standardised that projects not inside a VM or Container, will be managed by Poetry. (It's working well!) Q1 Ca

Re: Checking if email is valid

2023-11-06 Thread rbowman via Python-list
for humans. -- https://mail.python.org/mailman/listinfo/python-list

Re: Checking if email is valid

2023-11-06 Thread MRAB via Python-list
On 2023-11-06 08:57, Simon Connah via Python-list wrote: I can see how the truley dim-witted might forget that other countries have phone numbers with differing lengths and formatting/punctuation, but there are tons of sites where it takes multiple tries when entering even a bog-standard USA

Re: Checking if email is valid

2023-11-06 Thread rbowman via Python-list
n in how to check fuses. At least with software you don't have to physically appear on site. -- https://mail.python.org/mailman/listinfo/python-list

Re: Writing to clipboard in Python 3.11

2023-11-07 Thread MRAB via Python-list
On 2023-11-06 00:51, Rob Cliffe via Python-list wrote: Recently I switched from Python 3.8.3 to Python 3.11.4.  A strange problem appeared which was not there before: I am using the win32clipboard backage (part of pywin32), and when I use SetClipboardData() to write text which consists ENTIRELY

Re: fCONV_AUSRICHTG is not defined - Why?

2023-11-07 Thread dn via Python-list
On 08/11/2023 06.47, Egon Frerich via Python-list wrote: I've no idea why this happens. In a module there are lists and definitions: ...     ["%s%s%s " % (i[fCONV_AUSRICHTG], i[fLG2], i[fTYP]) for i in Felder])   File "/home/egon/Entw/Geldspur/geldspur/gui/GUI_Konf

Re: fCONV_AUSRICHTG is not defined - Why?

2023-11-07 Thread MRAB via Python-list
On 2023-11-07 18:30, dn via Python-list wrote: On 08/11/2023 06.47, Egon Frerich via Python-list wrote: I've no idea why this happens. In a module there are lists and definitions: ...     ["%s%s%s " % (i[fCONV_AUSRICHTG], i[fLG2], i[fTYP]) for i in Felder])   File "/hom

Clearing the Deque • Picturing Python’s `deque` data structure

2023-11-07 Thread dn via Python-list
ating about Python. A big part of his day is busy with running Codetoday—we teach Python coding to children between 7 and 16 years old (https://www.codetoday.co.uk/). He also runs courses for adults and corporate training programs, and particularly, writing about Python. He writes the articl

Re: fCONV_AUSRICHTG is not defined - Why?

2023-11-07 Thread MRAB via Python-list
On 2023-11-07 19:20, Jim Schwartz via Python-list wrote: Where do you define fCONV_AUSRICHTG? It must be initialized or defined somewhere. Did you leave out a statement from the python 2 version? It's given its value here: ( fNAME, fLG1, fLG2,

Re: fCONV_AUSRICHTG is not defined - Why?

2023-11-07 Thread MRAB via Python-list
On 2023-11-07 20:56, Thomas Passin via Python-list wrote: On 11/7/2023 3:29 PM, MRAB via Python-list wrote: On 2023-11-07 19:20, Jim Schwartz via Python-list wrote: Where do you define fCONV_AUSRICHTG? It must be initialized or defined somewhere. Did you leave out a statement from the python 2

Re: Beep on WIndows 11

2023-11-12 Thread jak via Python-list
Rob Cliffe ha scritto:  Apologies if this is not a Python question. I  recently moved from a WIndows 10 laptop to a Windows 11 one. Although there is nothing wrong with the sound on the new machine (I can listen to podcasts and watch videos), I find that outputting "\a" to the co

Re: Beep on WIndows 11

2023-11-12 Thread MRAB via Python-list
On 2023-11-12 11:16, Chris Angelico via Python-list wrote: On Sun, 12 Nov 2023 at 21:27, Y Y via Python-list wrote: I am curious and humble to ask: What is the purpose of a BEEP? There are several purposes. I can't say which of these are relevant to the OP, but some or all of them

Re: xor operator

2023-11-13 Thread Barry via Python-list
> On 13 Nov 2023, at 15:16, Dom Grigonis via Python-list > wrote: > > I think it could be useful to have `xor` builtin, which has API similar to > the one of `any` and `all`. I do not understand how xor(iterator) works. I thought xor takes exactly 2 args. I also do not und

Re: No current way to just compile flet code into truly native packages for smart phones, etc.?

2023-11-13 Thread Barry via Python-list
> On 13 Nov 2023, at 17:21, Jacob Kruger via Python-list > wrote: > > Had a look at the following bit of introduction to using python and flet to > build cross-platform flutter-based apps using same python code, and, while it > seems to work alright if tell it to run as

Re: xor operator

2023-11-13 Thread Barry via Python-list
mail.python.org/mailman/listinfo/python-list

Re: xor operator

2023-11-13 Thread MRAB via Python-list
On 2023-11-13 21:03, Barry via Python-list wrote: On 13 Nov 2023, at 17:48, Dom Grigonis wrote: Short circuiting happens, when: xor([True, True, False, False], n=1) At index 1 it is clear that the answer is false. Can you share an example with 4 values that is true? And explain why it is

Re: Code improvement question

2023-11-14 Thread MRAB via Python-list
On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote: I'd like to improve the code below, which works. It feels clunky to me. I need to clean up user-uploaded files the size of which I don't know in advance. After cleaning they might be as big as 1Mb but that would be super rar

Re: Code improvement question

2023-11-14 Thread MRAB via Python-list
On 2023-11-15 03:41, Mike Dewhirst via Python-list wrote: On 15/11/2023 10:25 am, MRAB via Python-list wrote: On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote: I'd like to improve the code below, which works. It feels clunky to me. I need to clean up user-uploaded files the si

Re: Newline (NuBe Question)

2023-11-15 Thread dn via Python-list
On 15/11/2023 20.25, Grizzy Adams via Python-list wrote: Hi & thanks for patience with what could be simple to you Have this (from an online "classes" tutorial) There are lots of on-line classes! --- Start Code Snippit --- students = [] grades = [] for s in

Re: Code improvement question

2023-11-16 Thread MRAB via Python-list
On 2023-11-17 01:15, Mike Dewhirst via Python-list wrote: On 15/11/2023 3:08 pm, MRAB via Python-list wrote: On 2023-11-15 03:41, Mike Dewhirst via Python-list wrote: On 15/11/2023 10:25 am, MRAB via Python-list wrote: On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote: I'd li

Re: Code improvement question

2023-11-17 Thread jak via Python-list
Mike Dewhirst ha scritto: On 15/11/2023 10:25 am, MRAB via Python-list wrote: On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote: I'd like to improve the code below, which works. It feels clunky to me. I need to clean up user-uploaded files the size of which I don't know

Re: Code improvement question

2023-11-17 Thread MRAB via Python-list
On 2023-11-17 09:38, jak via Python-list wrote: Mike Dewhirst ha scritto: On 15/11/2023 10:25 am, MRAB via Python-list wrote: On 2023-11-14 23:14, Mike Dewhirst via Python-list wrote: I'd like to improve the code below, which works. It feels clunky to me. I need to clean up user-upl

Re: Code improvement question

2023-11-17 Thread jak via Python-list
nk about it. Sorry. -- https://mail.python.org/mailman/listinfo/python-list

NZPUG Mtg: Making Python faster, and "Dependency Inversion"

2023-11-22 Thread dn via Python-list
Virtual meeting: Wednesday 6 December, 1815 for 1830 NZDT/UTC+13 Book at https://www.meetup.com/nzpug-auckland/events/295433876/ 1 Making Python faster - using type hints Tushar will lead us through: A brief history of type hints Using type checkers to verify your type hints

Re: on writing a number as 2^s * q, where q is odd

2023-11-29 Thread jak via Python-list
? def powers_of_2_inB(n): bc = (n ^ (n - 1)).bit_count() - 1 return bc, int(n / (1 << bc)) -- https://mail.python.org/mailman/listinfo/python-list

FridayFinking - Was: A beginning beginner's question about input, output and . . .

2021-01-13 Thread dn via Python-list
On 14/01/2021 04.54, Grimble wrote: > On 11/01/2021 20:37, DonK wrote: >> >> Hi, I'm thinking about learning Python but I'm 74 years old and will >> very likely not ever have a programming job again. > At 83, I have no intention of having a programming j

Re: Application window geometry specifier

2021-01-13 Thread dn via Python-list
you recommend a good reference for someone relatively new to GUI > programming that is based on such research? Book or web reference > would be fine. Most of my training-materials (certainly in this topic) are web-based - but the ideas are also common to Python. Nielsen-Norman Group do a l

Friday Finking: Abstract Base Classes - love or hate

2021-01-14 Thread dn via Python-list
Finkings have arisen from in-house discussions within a Python dev.team which deserved a wider airing or debate. This contains (with due apologies) excessive personal reflection and comments abstracted from posts to this Discussion List. Many of us have used Python for years but never touched ABCs

Re: why sqrt is not a built-in function?

2021-01-15 Thread dn via Python-list
ly might it have been literally the end of (your) day. This conversation does seem to have reached the point of reductio ad absurdum! -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: why sqrt is not a built-in function?

2021-01-15 Thread dn via Python-list
n a bid to "capture eye-balls" and/or to prove how much smarter 'I' am (than any other web-author/JavaScript-er), there are (far too) many reasons why web-pages are adorned and accompanied by myriad scripts (and likely, whole libraries/frameworks), and thus become slow (or 'hea

Re: why sqrt is not a built-in function?

2021-01-15 Thread dn via Python-list
t; writes: >>>>> On 15/01/2021 14.01, Stefan Ram wrote: > >>>>>> __import__( "math" ).sqrt( 4 ) >>>>> I had no idea that syntax existed, and find it completely at odds >>>>> with The Zen of Python. I'm torn between forgetting

Re: open sentinel-2image python

2021-01-17 Thread dn via Python-list
On 18/01/2021 08.12, omid mohammadi wrote: > On Sunday, January 17, 2021 at 9:31:58 PM UTC+3:30, MRAB wrote: >> On 2021-01-17 13:57, Karsten Hilbert wrote: >>> Am Sun, Jan 17, 2021 at 02:20:24AM -0800 schrieb omid mohammadi: >>> >>>> When I open th

IDE tools to debug in Python?

2021-01-27 Thread flaskee via Python-list
While print() is groovy and all, if anyone runs across a non-pdb python debugger (standalone or IDE-based) please let me know. I too was blessed with IDE-based debugging (in the 90's!) * where you can set break point(s); * have the program stop right before a suspected failure point; *

Re: IDE tools to debug in Python?

2021-01-27 Thread flaskee via Python-list
n Microsoft was finally caught; and they backed off of this in the next version (I do not know if they've snuck it in again or not). But it did not raise my confidence in tools from Microsoft all that much. I love Python. I just want to add a real debugger ;-) Sent with [ProtonMail](h

Re: IDE tools to debug in Python?

2021-01-27 Thread flaskee via Python-list
Thank you J. Pic. Out of everything today, (and given my priority is Python/Flask debugging) it looks like Wing IDE is something to dig into. Thanks Sent with ProtonMail Secure Email. ‐‐‐ Original Message ‐‐‐ On Wednesday, January 27, 2021 4:09 PM, J. Pic wrote: > Thonny, win

Re: Response for PING in ircbot.

2021-02-03 Thread dn via Python-list
me (odd) suffix, then why not slice the string [ :-2 ]? Alternately, consider str.translate() where both character codes are removed, regardless of location. -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

RE: IDE tools to debug in Python?

2021-02-05 Thread flaskee via Python-list
It looks like it will be Wing IDE and maybe pyscripter to start. Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Selenium finds object that is interactible but says otherwise

2021-02-06 Thread dn via Python-list
On 07/02/2021 08.21, Philipp Daher via Python-list wrote: > Hello, > > > I recently programmed some code for a webdriver with selenium. > I asked the program to find an input tag, which is interactible, with this: >     > searchbar=driver.find_element_by_class_name(&quo

Re: Response for PING in ircbot.

2021-02-07 Thread flaskee via Python-list
ad a long term Flask/Python issue where the site just dies. (MY) External ping attempts still report the Flask site is functioning; but accessing the pages returns 500 errors. Apache is still running and other (non-Flask) sites are still running on the Linux server. I see no errors that might b

Re: Python cannot count apparently

2021-02-07 Thread dn via Python-list
On 08/02/2021 09.49, Kevin M. Wilson via Python-list wrote: > Set i = 0 at the begin of the code, that way each entry starts at Logical 0 > of the array/container/list... FYI: https://docs.python.org/3/library/stdtypes.html#typesseq-range See also @Chris' contribution regarding t

Re: Fwd: Inconveniente

2021-02-09 Thread dn via Python-list
On 09/02/2021 15.13, Juan Jose Reyna Figuera wrote: > *Buenas tardes, le escribo breve y puntualmente para reportar este el > siguiente error al cual no le pude dar solución.* > > *Instalé Python 3.9.1 (64 bits), todo había funcionado bien hasta que > necesité usar la libre

Re: Response for PING in ircbot.

2021-02-09 Thread flaskee via Python-list
r with the list? I've had a long term Flask/Python issue where the site just dies. (MY) External ping attempts still report the Flask site is functioning; but accessing the pages returns 500 errors. Apache is still running and other (non-Flask) sites are still running on the Linux server. I see

Re: installation issues

2021-02-09 Thread dn via Python-list
On 10/02/2021 12.23, Martin Lopez wrote: > Hello, > > My name is Martin Lopez. I just downloaded Python 3.9.1 (64 bit) Setup. > > After I install the program then try to run it, with no success. > > I've uninstalled all previous versions and reinstalled them, but

Re: New Python implementation

2021-02-11 Thread dn via Python-list
t; >>>> wrote: >>>> >>>>> I am starting work on creating a new Python implementation from >>>>> scratch ... (which isn't a stretch given how poorly they perform). >>>> I'd like to encourage you to give this a go.  It'

Re: New Python implementation

2021-02-11 Thread dn via Python-list
On 12/02/2021 08.53, Chris Angelico wrote: > On Fri, Feb 12, 2021 at 6:47 AM dn via Python-list > wrote: >> 3 >> My mind is whirling in an attempt to understand "show me a better time". >> Does this perhaps indicate that @Chris' social life leaves somet

Re: mutating a deque whilst iterating over it

2021-02-11 Thread dn via Python-list
also allows deque-mutation, then the first value(s), previously printed, will no longer exist within the queue. I'm enjoying the question: wither inconsistency? Perhaps someone (wiser) will jump in... -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: PSYCOPG2

2021-02-13 Thread dn via Python-list
On 13/02/2021 18.34, Mladen Gogala via Python-list wrote: > 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

Re: Is email.message.get() case insensitive for the header name?

2021-02-15 Thread dn via Python-list
an be List-Id:, or List-ID: or list-id:, will > email.message.get("List-Id:", "unknown") find all of them? Case is (should be) irrelevant (as it is for most (parts of) Internet Protocols). Rather than the "Zen of Python", when it comes to IPs, "Postel's Law

Re: Mr. Flibble

2021-02-15 Thread dn via Python-list
Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: New Python implementation

2021-02-15 Thread dn via Python-list
tack architecture" (cf IBM's collections of "registers" in an ALU). Certainly the language was clearly based upon ALGOL-60. Clearly it led to the refinement and/or development of Pascal. Pascal's value as a teaching language was that it embodied many aspects of structured prog

Re: use set notation for repr of dict_keys?

2021-02-20 Thread dn via Python-list
ouldn't a representation using the set > notation > be more intuitive, i.e. what about changing the output of > dict_keys.__repr__ to > "dict_keys({'one', 'two'})" > (using curly braces instead of brackets) When considering the data-returned,

Re: Is there a way to subtract 3 from every digit of a number?

2021-02-20 Thread dn via Python-list
ow has the student proven that (s)he has learned the material? (apologies for criticism: I readily assume your motivation was to be helpful) The problem is a Caesar Cipher - disguised, because most examples/usage of such is for alphanumeric messages. This topic is often used for ComSc examples to demonstrate modulo arithmetic and/or circular data structures, eg a bounded-queue (per other's responses). -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Deleting Python 3.8.5

2021-02-22 Thread dn via Python-list
On 23/02/2021 08.00, Vinicius Costa Marques wrote: > Hello there Python team, I’m having this problem were I installed Python > 3.9.2 and then went to unistall 3.8.5 but here is the problem the version > 3.8.5 dosen’t get deleted properly. The uninstall program says that > everythin

is not recognized as an internal or external command, operable program or batch file.

2021-03-01 Thread singh.veer99999--- via Python-list
://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

Re: Why assert is not a function?

2021-03-02 Thread Mirko via Python-list
serts, but logging. Having "assert" being a function would make it much harder to get rid of it in production code. -- https://mail.python.org/mailman/listinfo/python-list

Re: program python

2021-03-04 Thread dn via Python-list
Hi, and welcome to the list. On 05/03/2021 09.36, alberto wrote: > Hi I'm tring to write a program with python to evaluate data of csv data > In particular I would extract this information > > View data on the presence of men and women in Affori over time. > > * Carry o

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-06 Thread Mirko via Python-list
27;t follow that nobody else >> can. > > True, but lots of very knowledgeable people have tried and failed. I even wonder why they have tried. Writing a universal compiler/interpreter sounds logically impossible to me, Here's a simple Python expression: >>> 3+3*5 18 And

Re: Apriori Algorithm

2021-03-07 Thread dn via Python-list
t; 71 208 217 266 279 290 458 478 523 614 766 853 888 944 969 > 43 70 176 204 227 334 369 480 513 703 708 835 874 895 > 25 52 278 730 > 151 432 504 830 890 Great! For what purpose - is this a 'homework assignment'? What code do you have so far? -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-08 Thread Mirko via Python-list
Am 07.03.2021 um 21:52 schrieb Avi Gross via Python-list: > The precedence example used below made a strange assumption that the > imaginary program would not be told up-front what computer language it was > being asked to convert from. That is not the scenario being discussed as

Re: Found a problem

2021-03-09 Thread dn via Python-list
On 10/03/2021 09.16, Victor Dib wrote: > Olá, comunidade do Python! Olá Victor! At which point we should switch to English, because this is an English-language list. (there may be Portuguese lists - I haven't looked) Please do not be afraid to write in English. There are many here

Re: Please don't feed the trolls

2021-03-09 Thread dn via Python-list
ment and self-banishment - and a protagonist whose Last Will and Testament read: "That Elizabeth-Jane Farfrae be not told of my death, or made to grieve on account of me. that I be not bury'd in consecrated ground. that no sexton be asked to toll the bell. that nobody is wished to see my dead body. that no murners walk behind me at my funeral. that no flours be planted on my grave, that no man remember me." RiP - and this thread also! -- -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Why assert is not a function?

2021-03-11 Thread dn via Python-list
t; complaint? I have never once seen anything that costly - usually it'll >> be something like checking a length (and this isn't C's strlen, since >> Python can get lengths of all built-in types quickly), or some simple >> checks. > > That's very much in th

Friday Finking: following, weirdness with list()

2021-03-11 Thread dn via Python-list
MP4). Am working on a similar container format at the moment, where the length of sub-components may be reported in bytes (if not delineated by 'markers'). So, there are many reasons why "bytes" is a 'good' measure of length - in this context. Is it "misusing __len__" in a class/object designed to manipulate such files? Hope not! (or I'm 'in trouble' - again...) -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Why assert is not a function?

2021-03-11 Thread dn via Python-list
On 12/03/2021 11.27, Chris Angelico wrote: > On Fri, Mar 12, 2021 at 9:10 AM Ethan Furman wrote: >> >> On 3/11/21 1:45 PM, dn via Python-list wrote: >> >>> Is assert so much faster/cheaper than try...except...raise? >> >> Infinitely faster when they ar

<    6   7   8   9   10   11   12   13   14   15   >