Re: Functions as Enum member values

2021-05-31 Thread Colin McPhail via Python-list
> On 31 May 2021, at 18:24, Peter Otten <__pete...@web.de> wrote: > > On 31/05/2021 17:57, Colin McPhail via Python-list wrote: >> Hi, >> According to the enum module's documentation an Enum-based enumeration's >> members can have values of any t

Functions as Enum member values

2021-05-31 Thread Colin McPhail via Python-list
Hi, According to the enum module's documentation an Enum-based enumeration's members can have values of any type: "Member values can be anything: int, str, etc.." I defined one with functions as member values. This seemed to work as long as the functions were defined ahead of the enume

Re: How do I place a preset into the text box?

2020-08-28 Thread Colin McPhail via Python-list
Hi Steve, > On 28 Aug 2020, at 11:03, Steve wrote: > > > The following program compiles but does not quite do what I would like it to > do. Line 19 is the preset information but I do not seem to be able to get it > into the form by code. My purpose is to let the user make changes without > hav

Re: SSL/TLS in Python using STARTTLS and ssl/ssltelnet and telnetlib

2019-11-07 Thread Colin McPhail via Python-list
> On 7 Nov 2019, at 03:24, Veek M wrote: > > Could someone suggest some introductory reading material that will allow > me to use 'telnetlib' with 'ssl' or 'ssltelnet'. > (currently using Pan since Knode is dropped on Debian) > > I'm trying to write something that will download the NNTP hea

Re: Flask failure

2018-06-15 Thread Colin McPhail
> On 15 Jun 2018, at 16:19, T Berger wrote: > > I’m trying to build a webapp with flask. I installed flask, created a webapp > in IDLE, but when I tried testing it at my terminal, I got a huge error > message. This is the app: > > from flask import Flask > app = Flask(__name__) > @app.route(

Re: mac os core dump from detached process

2015-04-28 Thread Colin McPhail
> On 27 Apr 2015, at 10:21, Robin Becker wrote: > > I'm using the double fork exec model as exemplified in > > http://code.activestate.com/recipes/278731-creating-a-daemon-the-python-way/ > > to run a django management command detached from any view. A database object > is used to store/updat

Re: ctype C library call always returns 0 with Python3

2012-05-19 Thread Colin McPhail
On 19/05/2012 10:30, Johannes Bauer wrote: Even the example in the standard library fails: import ctypes libc = ctypes.cdll.LoadLibrary("/lib64/libc-2.14.1.so") print(libc.strchr("abcdef", ord("d"))) Always returns "0". I think there may be two problems with this code: (1) You are using a 64

Re: [pysqlite] [ANN] pysqlite and APSW projects moved

2008-03-13 Thread Colin Mcphail
On 2008-03-09 18:57:00 +, Gerhard Häring <[EMAIL PROTECTED]> said: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Gerhard Häring wrote: >> [...] APSW >> >> >> web:http://oss.itsystementwicklung.de/trac/apsw/ >> scm:Subversion: http://initd.org/svn/pysqlite/apsw/trunk/ >