Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Grant Edwards
On 2021-05-06, Chris Green wrote: > Grant Edwards wrote: >> On 2021-05-06, Chris Green wrote: >> > Grant Edwards wrote: >> > >> >> Pointing a newsreader at news.gmane.io allows one to participate in >> >> the mailing list just fine without us

Re: for installation of pygames.

2021-05-08 Thread Grant Edwards
On 2021-05-07, wrote: >I'm a user of python , so I'm requesting you to give me permission to run >pygames. I hereby grant you prermistion to run pygames. Are you asking about pygame? You don't need anybody's permission to install and use pygame: https://www.pygame.org/ https://ww

Re: Unexpected Inheritance Problem

2021-05-20 Thread Grant Edwards
On 2021-05-20, Mats Wichmann wrote: > On 5/20/21 4:54 AM, Richard Damon wrote: >> On 5/20/21 3:24 AM, Peter Otten wrote: >>> On 20/05/2021 06:00, Richard Damon wrote: >>> class GedcomHead(Gedcom0Tag): """GEDCOM 0 HEAD tag""" def ___init___(self, *, parent): >>> >>> An __

Re: Unexpected Inheritance Problem

2021-05-21 Thread Grant Edwards
On 2021-05-20, Terry Reedy wrote: > On 5/20/2021 2:53 PM, Grant Edwards wrote: >> On 2021-05-20, Mats Wichmann wrote: >> >>> many fonts squish together repeated underscores in the display so it's >>> hard to see this visually, >> >> Is it just

Re: learning python ...

2021-05-24 Thread Grant Edwards
On 2021-05-24, Dennis Lee Bieber wrote: > Attempting to rebind a keyword in Python will produce an error... > if = 1.234 > Traceback ( File "", line 1 > if = 1.234 >^ > SyntaxError: invalid syntax I must admit it might be nice if the compiler told you _why_ the syntax is

Re: imaplib: is this really so unwieldy?

2021-05-25 Thread Grant Edwards
On 2021-05-25, hw wrote: > I'm about to do stuff with emails on an IMAP server and wrote a program > using imaplib My recollection of using imaplib a few years ago is that yes, it is unweildy, oddly low-level, and rather un-Pythonic (excuse my presumption in declaring what is and isn't "Pythoni

Re: learning python ...

2021-05-25 Thread Grant Edwards
On 2021-05-24, Alan Gauld via Python-list wrote: > On 24/05/2021 19:48, Grant Edwards wrote: > >>> Traceback ( File "", line 1 >>> if = 1.234 >>>^ >>> SyntaxError: invalid syntax >> >> I must admit it might be n

Re: learning python ...

2021-05-25 Thread Grant Edwards
On 2021-05-25, Greg Ewing wrote: > On 25/05/21 5:56 pm, Avi Gross wrote: >> Var = read in something from a file and make some structure like a data.frame >> Var = remove some columns from the above thing pointed to by Var >> Var = make some new calculated columns ditto >> Var = remove some rows ..

Re: imaplib: is this really so unwieldy?

2021-05-25 Thread Grant Edwards
On 2021-05-25, MRAB wrote: > On 2021-05-25 16:41, Dennis Lee Bieber wrote: >> In Python 3, strings are UNICODE, using 1, 2, or 4 bytes PER >> CHARACTER (I don't recall if there is a 3-byte version). If your >> input bytes are all 7-bit ASCII, then they map directly to a 1-byte >> per character st

Re: learning python ...

2021-05-25 Thread Grant Edwards
On 2021-05-25, Michael F. Stemper wrote: > On 24/05/2021 23.08, hw wrote: >> On 5/25/21 12:37 AM, Greg Ewing wrote: >> >> Are all names references?  When I pass a name as a parameter to a >> function, does the object the name is referring to, when altered by the >> function, still appear altere

Re: imaplib: is this really so unwieldy?

2021-05-25 Thread Grant Edwards
On 2021-05-25, Dennis Lee Bieber wrote: > On Tue, 25 May 2021 19:21:39 +0200, hw declaimed the > following: > > >> >>Oh ok, it seemed to be fine. Would it be the right way to do it with >>sys.exit()? Having to import another library just to end a program >>might not be ideal. > > I've n

Re: imaplib: is this really so unwieldy?

2021-05-25 Thread Grant Edwards
On 2021-05-25, Dennis Lee Bieber wrote: >>Oh ok, it seemed to be fine. Would it be the right way to do it with >>sys.exit()? Having to import another library just to end a program >>might not be ideal. > > I've never had to use sys. for exit... I would have sworn you used to have to im

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-06-01 Thread Grant Edwards
On 2021-05-30, Alan Gauld via Python-list wrote: > On 30/05/2021 18:26, pjfarl...@earthlink.net wrote: >> I tried winpdb-reborn some time last year on my Win10 system (python 3.8.3 >> at that time), but could not figure out how to use it to debug a python >> script that uses the curses module. > >

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-06-01 Thread Grant Edwards
On 2021-05-31, Dennis Lee Bieber wrote: > On Mon, 31 May 2021 08:07:21 +1000, Cameron Simpson > declaimed the following: > > >>Open another terminal, note its terminal device with the "tty" command. >>Start your programme like this: >> >>python .. 2>/dev/tty-of-the-other-termina > >

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-06-02 Thread Grant Edwards
On 2021-06-03, wrote: >> -Original Message- >> From: Grant Edwards >> Sent: Monday, May 31, 2021 11:18 AM >> To: python-list@python.org >> Subject: Re: How to debug python + curses? [was: RE: Applying > winpdb_reborn] >> >> On 2021-05-31,

Re: Replacement for Mailman

2021-06-08 Thread Grant Edwards
On 2021-06-08, Paul Bryan wrote: > How about Mailman 3.x on Python 3.x? According to https://www.gnu.org/software/mailman/requirements.html mailman 3.x still requires Python 2.7 for the archiver and the web UI. -- Grant Edwards grant.b.edwardsYow! Do you guys know

curses apps on MS Windows?

2021-06-14 Thread Grant Edwards
There's been a surprising amount of discussion lately about using curses libraries on Windows OS. I'm surprised by this, because I don't think I've ever even seen a Windows curses application. Are there examples of popular curses applications for Windows? Does windows have a terminfo/termcap subs

Re: Php vs Python gui (tkinter...) for small remote database app

2021-06-15 Thread Grant Edwards
many secruity issues. -- Grant Edwards grant.b.edwardsYow! I'd like some JUNK at FOOD ... and then I want to gmail.combe ALONE -- -- https://mail.python.org/mailman/listinfo/python-list

Re: creating raw AWS log event

2021-06-24 Thread Grant Edwards
str(encoded) Try printout out the result of each step: >>> encoded b'eJwrSS0uUchNLS5OTE8FAB8fBMY=' >>> str(encoded) "b'eJwrSS0uUchNLS5OTE8FAB8fBMY='" Ah, that's not what you want, is it? >>> encoded.decode('ascii') 'eJwrSS0uUchNLS5OTE8FAB8fBMY=' That's better. -- Grant Edwards grant.b.edwardsYow! I think my career at is ruined! gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: some problems for an introductory python test

2021-08-12 Thread Grant Edwards
On 2021-08-12, Hope Rouselle wrote: >> OS/2 had all kinds of amazing features (for its time). [...] Plus, >> it had this fancy concept of "extended attributes"; on older >> systems (like MS-DOS's "FAT" family), a file might be Read-Only, >> Hidden, a System file, or needing to be Archived, and th

Re: some problems for an introductory python test

2021-08-12 Thread Grant Edwards
On 2021-08-12, MRAB wrote: > >> Windows never had filesystems that supported metadata like OS/2 and >> MacOS did. The registry was an ugly hack that attempted (very poorly) >> to make up for that lack of metadata. >> > FYI, NTFS does support Alternate Data Streams. That is interesting -- and it

Re: urgent

2021-08-31 Thread Grant Edwards
On 2021-08-29, Hari wrote: > i was download ur python software but it is like boring user > interface for me like young student to learn ,can u have any > updates? Check the calendar, it must be September again... Well, almost. -- Grant Edwards grant.b.edwardsY

Re: on floating-point numbers

2021-09-02 Thread Grant Edwards
On 2021-09-02, Hope Rouselle wrote: > Suppose these numbers are prices in dollar, never going beyond cents. > Would it be safe to multiply each one of them by 100 and therefore work > with cents only? The _practical_ answer is that no, it's not safe to use floating point when doing normal bookee

Re: Problem with python

2021-09-04 Thread Grant Edwards
On 2021-09-04, Peter J. Holzer wrote: > On 2021-09-04 14:29:47 -0500, Igor Korot wrote: >> Will this syntax work in python 2? > > Yes. It's just a redundant pair of parentheses. Not really. With the parens, it doesn't produce the same results in 2.x unless you import the print function from the f

Re: Problem with python

2021-09-06 Thread Grant Edwards
On 2021-09-04, Hope Rouselle wrote: > Igor Korot writes: > >> Hi, >> Will this syntax work in python 2? > > If you say > > print(something) > > it works in both. But it doesn't always work the _same_ in both. If you're expecting some particular output, then one or the other might not won't "wo

Re: on floating-point numbers

2021-09-06 Thread Grant Edwards
On 2021-09-05, Peter J. Holzer wrote: > On 2021-09-05 03:38:55 +1200, Greg Ewing wrote: >> If 7.23 were exactly representable, you would have got >> 723/1000. >> >> Contrast this with something that *is* exactly representable: >> >> >>> 7.875.as_integer_ratio() >> (63, 8) >> >> and observe that

Re: on writing a while loop for rolling two dice

2021-09-07 Thread Grant Edwards
On 2021-09-06, Stefan Ram wrote: > "Avi Gross" writes: >> In languages like C/C++ there are people who make up macros like: >>#define INDEFINITELY_LOOP while (true) >>Or something like that and then allow the preprocessor to replace >>INDEFINITELY_LOOP with valid C code. > > Those usually are

Re: on writing a while loop for rolling two dice

2021-09-08 Thread Grant Edwards
On 2021-09-08, charles hottel wrote: > So what do yoy think or feel about a language like RATFOR (Rational > FORTRAN) which was implemented as macros? Should they instead have > simply adapted themselves to FORTRAN? That's an interesting question. If the langauge is complete, well-defined, an

Re: on writing a while loop for rolling two dice

2021-09-08 Thread Grant Edwards
On 2021-09-08, charles hottel wrote: > So what do yoy think or feel about a language like RATFOR (Rational > FORTRAN) which was implemented as macros? The RATFOR implementations I've seen weren't done using macros. It was a preprocessor, yes. But it generates code for the various structured sta

Re: on writing a while loop for rolling two dice

2021-09-08 Thread Grant Edwards
On 2021-09-08, Dennis Lee Bieber wrote: > I spent close to 20 years (80s-90s) maintaining the /output/ of such > a preprocessor. Ouch. I hope it paid well. ;) Back when I did a lot of TeX/LaTeX stuff on VMS, I used to make occasional fixes and add (very minor) features to one of the dvi handlin

Re: on floating-point numbers

2021-09-12 Thread Grant Edwards
On 2021-09-11, Chris Angelico wrote: > Once you accept that "perfectly representable numbers" aren't > necessarily the ones you expect them to be, 64-bit floats become > adequate for a huge number of tasks. Even 32-bit floats are pretty > reliable for most tasks, although I suspect that there's l

Posts from gmane no longer allowed?

2021-09-25 Thread Grant Edwards
I've been reading (and posting to) this list for many years by pointing an NNTP client at news://gmane.comp.python.general. Sometime in the past few days posts started being refused: You have tried posting to gmane.comp.python.general, which is a unidirectional mailing list. Gmane can ther

Re: Posts from gmane no longer allowed?

2021-09-26 Thread Grant Edwards
On 2021-09-25, Grant Edwards wrote: > I've been reading (and posting to) this list for many years by > pointing an NNTP client at > news://gmane.comp.python.general. Sometime in the past few days > posts started being refused: > > You have tried posting to gmane.comp.p

Re: Posts from gmane no longer allowed?

2021-09-26 Thread Grant Edwards
On 2021-09-26, Chris Angelico wrote: > Not sure what the significance of the "application" is - Google has > different services for where you're using it with your own domain, but > that shouldn't be relevant. If you want to use Gmail with mutt, you > should be able to do that, regardless. (Or yo

Subject: Re: Posts from gmane no longer allowed?

2021-09-26 Thread Grant Edwards
On 2021-09-26, Chris Angelico wrote: Thanks for the tips on registering an application for oauth2 credentials. It sounds like I should be able to do that if I practice my hoop-jumping a bit more. > (But I'd still recommend an app password. Much easier.) Yes, I really should go with the 2FA and

Re: Posts from gmane no longer allowed?

2021-09-26 Thread Grant Edwards
On 2021-09-26, Ethan Furman wrote: > On 9/26/21 9:21 AM, Grant Edwards wrote: > > On 2021-09-26, Chris Angelico wrote: > > >> I'm not sure whether the policy change happened on python-list, or at > >> gmane. From the look of the error message you got, it

Re: Posts from gmane no longer allowed?

2021-09-26 Thread Grant Edwards
On 2021-09-26, dn via Python-list wrote: > On 27/09/2021 06.34, Grant Edwards wrote: >> On 2021-09-26, Ethan Furman wrote: >>> On 9/26/21 9:21 AM, Grant Edwards wrote: >>>> On 2021-09-26, Chris Angelico wrote: >>> >>>>> I'm not sure

Re: Posts from gmane no longer allowed?

2021-09-26 Thread Grant Edwards
On 2021-09-26, Grant Edwards wrote: > >> 2 Every message from the OP in this 'thread' (not others) has broken the >> thread, which indicates a wider problem/change. > > And I apologize for that. It's because I'm reading the list using an > NNTP

Re: Posts from gmane no longer allowed?

2021-09-26 Thread Grant Edwards
On 2021-09-26, Ethan Furman wrote: > On 9/26/21 10:34 AM, Grant Edwards wrote: > > On 2021-09-26, Ethan Furman wrote: > >>> I am unaware of a change in the newsgroup <--> mailing list policy, >>> and other newsgroup posts were coming through last week (it'

Re: Subject: Re: Posts from gmane no longer allowed?

2021-09-26 Thread Grant Edwards
On 2021-09-26, Mats Wichmann wrote: > On 9/26/21 10:38, 2qdxy4rzwzuui...@potatochowder.com wrote: >> On 2021-09-26 at 11:21:08 -0500, > >> No. I use mbsync (formerly isync) to synchronize my gmail account with >> a local maildir folder, and while mbsync does send the app password >> (over TLS) to

Re: Posts from gmane no longer allowed?

2021-09-26 Thread Grant Edwards
On 2021-09-27, Grant Edwards wrote: >>From the list's POV, gmane.io is a "normal" email subscriber who just > happens to archive all the articles it receives. I should never have > mentioned that gmane.io does NNTP -- it just seems to have con

Why does SMTP.send_message() do from mangling?

2021-09-26 Thread Grant Edwards
Why does SMTP.send_message(msg) do from mangling even though msg's policy has mangle_from_ set to False? The msg policy is email.policy.SMTP which has mangle_from_ disabled. One might expect that SMTP.send_message(msg) would use either msg's policy or email.policy.SMTP to send the message, but it

Bug in email.generator.BytesGenerator() [was: Why does SMTP.send_message() do from mangling?]

2021-09-26 Thread Grant Edwards
On 2021-09-27, Grant Edwards wrote: > Why does SMTP.send_message(msg) do from mangling even though msg's > policy has mangle_from_ set to False? The msg policy is > email.policy.SMTP which has mangle_from_ disabled. > > One might expect that SMTP.send_message(msg) would use e

Re: Bug in email.generator.BytesGenerator() [was: Why does SMTP.send_message() do from mangling?]

2021-09-26 Thread Grant Edwards
On 2021-09-27, Grant Edwards wrote: > According to > https://docs.python.org/3/library/email.generator.html#email.generator.BytesGenerator > the default from mangling behavior is _supposed_ to obey the message > policy if no policy or mangle_from_ value was > provided

Re: Why does SMTP.send_message() do from mangling?

2021-09-26 Thread Grant Edwards
On 2021-09-27, Grant Edwards wrote: > Why does SMTP.send_message(msg) do from mangling even though msg's > policy has mangle_from_ set to False? I've concluded this is a bug in SMTP.send_message() https://bugs.python.org/issue45299 -- Grant -- https://mail.python.org/

Re: Posts from gmane no longer allowed?

2021-09-27 Thread Grant Edwards
On 2021-09-27, Ned Deily wrote: > I have been in touch with the administrator of gmane. It appears that > posting from python-list to gmane has been deliberately disabled, at > least temporarily, with cause. I'll see if we can resolve the problem. Thanks. Though I've figured out a solution tha

Re: Posts from gmane no longer allowed?

2021-09-27 Thread Grant Edwards
On 2021-09-27, 황병희 wrote: > Grant Edwards writes: > >> I've been reading (and posting to) this list for many years by >> pointing an NNTP client >> at news://gmane.comp.python.general. Sometime in the past few days posts >> started >> being ref

Re: Big jump in version

2021-10-05 Thread Grant Edwards
On 2021-10-04, Cecil Westerhof via Python-list wrote: > When I run: > pip3 list --outdated > > I get: > Package Version Latest Type > --- -- - > cryptography 3.4.8 35.0.0 wheel > > The jump from 3 to 35 seems a bit excessive to me. Or is it correct?

Re: Request to advise error for python.

2021-10-21 Thread Grant Edwards
On 2021-10-21, Mats Wichmann wrote: > There are some nuances. If you are on a Linux system, Python is a > system program and you don't want to try to install into system > locations (you'll run into permission problems anyway), so trying a user > install is useful. So: > > pip install --user

Re: walrus with a twist :+= or ...

2021-10-28 Thread Grant Edwards
On 2021-10-28, Avi Gross via Python-list wrote: > I see := makes ≔ which is just a longer equals sign. On my screen it's an assignment operator that looks like := only a bit smaller. > Not sure this mailing list allows this stuff, so if your mailer does > not show it, never mind. Everything re

Re: Python script seems to stop running when handling very large dataset

2021-10-29 Thread Grant Edwards
On 2021-10-29, Shaozhong SHI wrote: > Python script works well, but seems to stop running at a certain point when > handling very large dataset. > > Can anyone shed light on this? No. Nobody can help you with the amount of information you have provided. -- Grant -- https://mail.python.org/m

Re: import question

2021-11-18 Thread Grant Edwards
On 2021-11-17, lucas wrote: > are there any other ways to import a module or package other then > the "import" or "from...import..." statements? i ask because i'm > allowing programming on my web2py website and i don't want any > accessing packages like os or sys. Safely allowing people to ente

Re: Unexpected behaviour of math.floor, round and int functions (rounding)

2021-11-20 Thread Grant Edwards
On 2021-11-20, Chris Angelico wrote: > But you learn that it isn't the same as 1/3. That's my point. You > already understand that it is *impossible* to write out 1/3 in > decimal. Is it such a stretch to discover that you cannot write 3/10 > in binary? For many people, it seems to be. There ar

Re: Unexpected behaviour of math.floor, round and int functions (rounding)

2021-11-20 Thread Grant Edwards
On 2021-11-20, Ben Bacarisse wrote: > You seem to be agreeing with me. It's the floating point part that is > the issue, not the base itself. No, it's the base. Floating point can't represent 3/10 _because_ it's base 2 floating point. Floating point in base 10 doesn't have any problem represent

Re: Unexpected behaviour of math.floor, round and int functions (rounding)

2021-11-20 Thread Grant Edwards
On 2021-11-21, Chris Angelico wrote: >> I think there have been attempts to use a decimal representation in some >> accounting packages or database applications that allow any decimal numbers >> to be faithfully represented and used in calculations. Generally this is not >> a very efficient proce

Re: Unexpected behaviour of math.floor, round and int functions (rounding)

2021-11-21 Thread Grant Edwards
On 2021-11-21, Greg Ewing wrote: > On 21/11/21 2:18 pm, Grant Edwards wrote: >> My recollection is that it was quite common back in the days before FP >> hardware was "a thing" on small computers. CPM and DOS compilers for >> various languages often gave the user

Re: Why There Is No Python Compressed Archive or Binaries ?

2022-01-17 Thread Grant Edwards
On 2022-01-17, Sina Mobasheri wrote: > Java offers download JDK... > [...] > My question is why Python hasn't option for downloading as > Compressed Archive ? Isn't that what the installers are? -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: Why There Is No Python Compressed Archive or Binaries ?

2022-01-17 Thread Grant Edwards
On 2022-01-17, Dennis Lee Bieber wrote: > On Mon, 17 Jan 2022 08:07:07 -0800 (PST), Grant Edwards > declaimed the following: > >>On 2022-01-17, Sina Mobasheri wrote: >>> Java offers download JDK... >>> [...] >>> My question is why Python hasn't o

Re: Why There Is No Python Compressed Archive or Binaries ?

2022-01-17 Thread Grant Edwards
On 2022-01-17, Sina Mobasheri wrote: > Yes sure, actually I can continue working and developing with python > without this feature no problem but it's something that I like and > I'm just curious about it, about why Python doesn't implement this > kind of installation You talk about "Python" imp

ssl server: how to disable client cert verfication?

2022-02-03 Thread Grant Edwards
I've got a small ssl server app. I want to require a certificate from the client, so I'm using a context with context.verify_mode = ssl.CERT_REQUIRED But, I want all certificates accepted. How do I disable client certificate verification? -- Grant -- https://mail.python.org/mailman/listinfo/

ssl: why wrap newly accept()ed connections?

2022-02-03 Thread Grant Edwards
According to the docs, when you accept() an ssl connection, you need to wrap the new connection: https://docs.python.org/3/library/ssl.html?highlight=ssl#ssl-sockets When a client connects, you’ll call accept() on the socket to get the new socket from the other end, and use the context’s

Re: ssl: why wrap newly accept()ed connections?

2022-02-03 Thread Grant Edwards
On 2022-02-03, Kushal Kumaran wrote: > >> [...] >> However, example server code I've found does not wrap the newly >> accepted connection. I've checked, and newsocket is already an >> object. [...] >> >> What is the purpose of wrapping newsocket? > > That section is talking about using an "ordina

Re: ssl server: how to disable client cert verfication?

2022-02-03 Thread Grant Edwards
On 2022-02-03, Kushal Kumaran wrote: > On Thu, Feb 03 2022 at 10:57:56 AM, Grant Edwards > wrote: >> I've got a small ssl server app. I want to require a certificate from >> the client, so I'm using a context with >> >> context.verify_mode = ssl.CERT_REQ

Re: ssl server: how to disable client cert verfication?

2022-02-03 Thread Grant Edwards
On 2022-02-03, Barry wrote: > >> [...] I just want to require that the client provide a certificate >> and then print it out using print(connection.getpeercert()) > > I am not near the pc with the code on. But in outline you provide a > ssl context that returns true for the validation of the cert

Re: ssl server: how to disable client cert verfication?

2022-02-04 Thread Grant Edwards
On 2022-02-04, Chris Angelico wrote: > On Fri, 4 Feb 2022 at 09:37, Grant Edwards wrote: >> I've looked through the ssl.Context documentation multiple times, and >> haven't been able to spot any option or flag that disables client >> certificate validation or

Re: ssl server: how to disable client cert verfication?

2022-02-04 Thread Grant Edwards
On 2022-02-04, Kushal Kumaran wrote: >> It's a troubleshooting utility for displaying a client's certificate. >> >>> Which kinds of client certificates do you want to permit >> >> All of them. Anything that's parsable as an X509 certificate no matter >> how "invalid" it is. >> > > Does `openssl x

Re: ssl server: how to disable client cert verfication?

2022-02-04 Thread Grant Edwards
On 2022-02-04, Christian Heimes wrote: > On 04/02/2022 19.24, Grant Edwards wrote: >> The problem is _getting_ the client certificate that was provided >> during the client/server handshake. That's trivial if the handshake >> was successful. The problem is obtaining t

Re: ssl server: how to disable client cert verfication?

2022-02-04 Thread Grant Edwards
On 2022-02-04, Barry wrote: >> >>> What you're doing is a little unusual, so my first thought would be to >>> subclass Context and override whatever method does the checks. >> >> I've done a dir() on the Context object, and I don't see anything that >> looks like a method to do the checks. I susp

Re: ssl server: how to disable client cert verfication?

2022-02-04 Thread Grant Edwards
On 2022-02-04, Christian Heimes wrote: > On 03/02/2022 19.57, Grant Edwards wrote: >> I've got a small ssl server app. I want to require a certificate from >> the client, so I'm using a context with >> >> context.verify_mode = ssl.CERT_REQUIRED >> &g

Re: ssl server: how to disable client cert verfication?

2022-02-04 Thread Grant Edwards
On 2022-02-04, Dieter Maurer wrote: > Grant Edwards wrote at 2022-2-3 14:36 -0800: >>On 2022-02-03, Barry wrote: >> ... >>I've looked through the ssl.Context documentation multiple times, and >>haven't been able to spot any option or flag that disables clie

Re: Openning Python program

2022-02-07 Thread Grant Edwards
On 2022-02-06, Dennis Lee Bieber wrote: > On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" > declaimed the following: > >> I cannot open python after downloading it keeps going to modify/uninstall >> ?? please help > > Stop clicking on the INSTALLER. What you downloaded is just

Re: Openning Python program

2022-02-07 Thread Grant Edwards
On 2022-02-07, Chris Angelico wrote: > On Tue, 8 Feb 2022 at 02:53, Grant Edwards wrote: >> >>On 2022-02-06, Dennis Lee Bieber wrote: >>> On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" >>> declaimed the following: >>> &g

Re: Openning Python program

2022-02-07 Thread Grant Edwards
On 2022-02-07, Barry wrote: >> On 7 Feb 2022, at 15:55, Grant Edwards wrote: >> On 2022-02-06, Dennis Lee Bieber wrote: >>> On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" >>> declaimed the following: >>> >>>> I

Re: Best way to check if there is internet?

2022-02-07 Thread Grant Edwards
On 2022-02-07, Dennis Lee Bieber wrote: > Also, for a machine freshly booted, with no cache, even pinging > Google first requires making contact with a DNS server to ask for > Google's IP address. With no network, the DNS look-up will fail > before ping even tries to hit Google. Ah, c'mon... Eve

Re: Best way to check if there is internet?

2022-02-07 Thread Grant Edwards
On 2022-02-07, Dennis Lee Bieber wrote: > On Mon, 07 Feb 2022 11:40:24 -0800 (PST), Grant Edwards > declaimed the following: > >>On 2022-02-07, Dennis Lee Bieber wrote: >> >>> Also, for a machine freshly booted, with no cache, even pinging >>> Google f

Re: Why does not Python accept functions with no names?

2022-02-20 Thread Grant Edwards
On 2022-02-20, Christian Gollwitzer wrote: >> For the same reason an empty sequence of characters cannot >> be a variable name. Do you know any language (or formal >> theory) that allows that? > > Tcl allows that: Interesting to know, but the fact that Tcl does something differnt is more of an a

Re: Best way to check if there is internet?

2022-02-25 Thread Grant Edwards
On 2022-02-25, Michael F. Stemper wrote: > On 25/02/2022 06.49, Abdur-Rahmaan Janhangeer wrote: > >> Thanks for the in-between. I really like the Python comunity as, >> even though it's a 'scripting' language, And we like you, even though you're only a ... In English, a statement like that is co

Re: C is it always faster than nump?

2022-02-25 Thread Grant Edwards
On 2022-02-25, Richard Damon wrote: > On 2/25/22 4:12 AM, BELAHCENE Abdelkader wrote: >> Hi, >> a lot of people think that C (or C++) is faster than python, yes I agree, >> but I think that's not the case with numpy, I believe numpy is faster than >> C, at least in some cases. > > My understanding

Re: All permutations from 2 lists

2022-03-03 Thread Grant Edwards
On 2022-03-03, Chris Angelico wrote: > On Thu, 3 Mar 2022 at 13:05, gene heskett wrote: >> I take it back, kmail5 had decided it was a different thread. My bad, no >> biscuit. >> > > Awww, I was going to make a really bad joke about timezones :) As opposed to all the really good jokes about time

Re: Behavior of the for-else construct

2022-03-03 Thread Grant Edwards
On 2022-03-03, computermaster360 wrote: > Do you find the for-else construct useful? Yes. > Have you used it in practice? Yes. I don't use it often, but I do use it occasionally. However, I always have to look it up the docs to confirm the logic. I always feel like the else should be execute

Re: Behavior of the for-else construct

2022-03-06 Thread Grant Edwards
On 2022-03-05, Avi Gross via Python-list wrote: > I am not sure how we end up conversing about PASCAL on a Python > forum. > [...] > I paid no attention to where PASCAL was being used other than I did > much of my grad school work in PASCAL [...] It's "Pascal". It's not an acronym. It's a guy's

Re: Behavior of the for-else construct

2022-03-06 Thread Grant Edwards
On 2022-03-06, Avi Gross via Python-list wrote: > Python is named after a snake right? No. It's named after a comedy troupe. -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: Behavior of the for-else construct

2022-03-07 Thread Grant Edwards
On 2022-03-07, Peter J. Holzer wrote: > On 2022-03-06 18:34:39 -0800, Grant Edwards wrote: >> On 2022-03-06, Avi Gross via Python-list wrote: >> > Python is named after a snake right? >> >> No. It's named after a comedy troupe. > > He actually wrote that

Re: Pyto Implementation - GROWING TREND

2022-03-24 Thread Grant Edwards
On 2022-03-24, Steeve Kerou via Python-list wrote: > We develop Pyto - the first python class with an animated character > that helps you learn the basics concepts of Python Language ... Let me guess, the character is named "clipPy"? -- Grant -- https://mail.python.org/mailman/listinfo/python-

Re: for convenience

2022-03-24 Thread Grant Edwards
On 2022-03-24, Chris Angelico wrote: > No, I would say that a preprocessor of that sort isn't necessary to a > Python-like language. If you really want one, it's honestly not that > hard to do; remember, "preprocessor" means that it processes the > source code before the main language sees it, so

Re: Unable to open Python

2022-03-28 Thread Grant Edwards
On 2022-03-28, kristine RABIA wrote: > I downloaded successfully Python, however when I am trying to open it, > brings the window repair, modify or uninstall, I tried to click on repair > and modify after all it came with the same window. I assume you're using Windows? You're re-running the ins

Re: Unable to open Python

2022-03-28 Thread Grant Edwards
On 2022-03-28, Grant Edwards wrote: > On 2022-03-28, kristine RABIA wrote: > >> I downloaded successfully Python, however when I am trying to open it, >> brings the window repair, modify or uninstall, I tried to click on repair >> and modify after all it came with the s

Exchange OWA using Python?

2022-03-31 Thread Grant Edwards
Is anybody aware of any Python code for the Exchange OWA protocol/API? The OWA e-mail client I've been using has stopped working. It was a commerical Python application named Hiri, wich has been abandoned by the developer. So, for now, I'm stuck with the OWA web client. It's clumsy and everything

Re: Exchange OWA using Python?

2022-03-31 Thread Grant Edwards
On 2022-03-31, Dieter Maurer wrote: > Grant Edwards wrote at 2022-3-31 07:41 -0700: >>Is anybody aware of any Python code for the Exchange OWA protocol/API? > > According to "https://en.wikipedia.org/wiki/Outlook.com#Mail_client_access"; > Outlook.com (the modern name

Re: Exchange OWA using Python?

2022-03-31 Thread Grant Edwards
On 2022-03-31, Christian Gollwitzer wrote: > Am 31.03.22 um 16:41 schrieb Grant Edwards: >> Is anybody aware of any Python code for the Exchange OWA protocol/API? >> >> The OWA e-mail client I've been using has stopped working. It was a >> commerical Python appli

Re: Exchange OWA using Python?

2022-03-31 Thread Grant Edwards
On 2022-03-31, Dan Ciprus (dciprus) via Python-list wrote: > Yes, this ... I've been using this successfully for years and it > obviously has its sad parts but it works pretty well overall. Using the _OWA_ protocol? When our server switched from EWS to OWA, I could no longer get it to work. --

Re: Exchange OWA using Python?

2022-03-31 Thread Grant Edwards
On 2022-03-31, Grant Edwards wrote: > Is anybody aware of any Python code for the Exchange OWA protocol/API? > > The OWA e-mail client I've been using has stopped working. It was a > commerical Python application named Hiri, wich has been abandoned by > the developer. I'

Re: Exchange OWA using Python?

2022-03-31 Thread Grant Edwards
On 2022-03-31, Dennis Lee Bieber wrote: > On Thu, 31 Mar 2022 16:22:33 -0700 (PDT), Grant Edwards > declaimed the following: > >> >>OWA is an HTTP-based API suspport by MS Exchange server. > > From what I found, M$ doesn't consider OWA to be an API... It expand

Re: Exchange OWA using Python?

2022-04-02 Thread Grant Edwards
On 2022-04-01, Christian Gollwitzer wrote: > Am 01.04.22 um 01:26 schrieb Grant Edwards: >> On 2022-03-31, Christian Gollwitzer wrote: >>> Davmail is written in Java, not Python, but basically this should >>> not matter if you only use it. >> >> Have you u

Re: No shortcut Icon on Desktop

2022-04-14 Thread Grant Edwards
On 2022-04-14, Mirko via Python-list wrote: >> Python normally does not create "shortcut icon"s -- one downloads an > > The Python Windows installer *absolutely* should. Agreed. I'm not much of a Windows user, but I do maintain a few Windows applications with installers. They all create des

Re: No shortcut Icon on Desktop

2022-04-14 Thread Grant Edwards
On 2022-04-14, Richard Damon wrote: > I think the issue is that the 'python' interpreter/compiler isn't the > sort of program that makes sense to make a desktop icon for, as it is a > command line utility. Yes, it is a command line utility. Why does that mean you shouldn't have a desktop short

Re: No shortcut Icon on Desktop

2022-04-15 Thread Grant Edwards
On 2022-04-15, Mats Wichmann wrote: > On 4/14/22 18:06, Grant Edwards wrote: >> On 2022-04-14, Richard Damon wrote: >> >>> I think the issue is that the 'python' interpreter/compiler isn't the >>> sort of program that makes sense to make a deskto

Re: No shortcut Icon on Desktop

2022-04-15 Thread Grant Edwards
On 2022-04-15, Mats Wichmann wrote: > I'd add - not naming the installer something Windows' memory of recent > files retains as being Python itself - could be as simple as including > the word "setup" in the name. Oh yes, that's been suggested many, many times also. :) I always name all my inst

Re: I am new to python. I have a few questions coming from an armature!

2016-08-15 Thread Grant Edwards
and have since then hired somebody specifically because they had developed Python applications using particulary libraries. -- Grant Edwards grant.b.edwardsYow! Okay ... I'm going at home to write the "I HATE

Re: I am new to python. I have a few questions coming from an armature!

2016-08-17 Thread Grant Edwards
had learned in highschool that "x ∧ y" was just an > abbreviation of "x and y". It is. The expression "x ∧ y" is the same as "x and y". And that expression is true "iff x is true and y is true". It's just a sligtly more explicit way of writ

<    2   3   4   5   6   7   8   9   10   11   >