Re: troglodytes

2024-08-14 Thread Mike Dewhirst via Python-list
On 14/08/2024 12:54 am, Michael Torrie via Python-list wrote: On 8/13/24 3:24 AM, Robin Becker via Python-list wrote: I am clearly one of the troglodytes referred to in recent discussions around the PSF. I've been around in python land for far too long, my eyesight fails etc etc. I feel strong

RE: Popping key causes dict derived from object to revert to object (3/25/2024)

2024-03-27 Thread Dr. F. M. (Mike) Covington via Python-list
running Python 3.12: Mike -- F. M. (Mike) Covington, PhD, PCPP, MCT Automation Consultant, Developer, Instructor -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-14 Thread Mike Dewhirst via Python-list
In Windows the provided methods for running complex command lines are either a batch file or a shortcut.Someone very kindly pointed out to me in this thread that there is a PEP for py.exe. I don't use py.exe originally because I didn't trust it believing it was a new-fangled Microsoft trick. I d

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-29 Thread Mike Dewhirst via Python-list
On 29/12/2023 12:09 pm, Félix An via Python-list wrote: On 2023-12-25 12:36, Mike Dewhirst wrote: 3. You cannot trust Microsoft. You can trust Python Software Foundation. Python from PSF works the same in all environments - or if not it is a bug. Python from Microsoft is tweaked to satisfy

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-25 Thread Mike Dewhirst via Python-list
ython-list Subject: Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more On Mon, 25 Dec 2023 at 15:42, Mike Dewhirst via Python-list wrote:>> Apologies for top posting - my phone seems unable to do otherwise.>> Here's my view - which

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-24 Thread Mike Dewhirst via Python-list
row. They are difficult to handle simply because of 4 above. To finish this rant, I believe it is far better to aim for standardisation rather than subtle and annoying differences deliberately designed to supplant standards in favour of market dominance. Merry Christmas all Cheers Mike On 2

Re: Code improvement question

2023-11-16 Thread Mike Dewhirst via Python-list
On 16/11/2023 9:34 am, Rimu Atkinson via Python-list wrote: Why don't you use re.findall? re.findall(r'\b[0-9]{2,7}-[0-9]{2}-[0-9]{2}\b', txt) I think I can see what you did there but it won't make sense to me - or whoever looks at the code - in future. That answers your specific questi

Re: Code improvement question

2023-11-16 Thread Mike Dewhirst via Python-list
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 like to improve the code below, which works. It feels clunky t

Re: Code improvement question

2023-11-14 Thread Mike Dewhirst via Python-list
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 in advance. After cleaning the

Code improvement question

2023-11-14 Thread Mike Dewhirst via Python-list
(bit) > 6 else "")     return " ".join(pieces) Many thanks for any hints Cheers Mike -- https://mail.python.org/mailman/listinfo/python-list

Re: Help

2023-11-07 Thread Mike Dewhirst via Python-list
ons of Python or different versions of various Python libraries. Good luck Mike If you are just starting out, the most recent version is 3.12 and is probably your best choice. When you say it never worked, can you describe in more detail what you did and what error messages you encountered?

Re: Checking if email is valid

2023-11-02 Thread Mike Dewhirst via Python-list
If i wanted an email verifier I would look at open source frameworks and see how they do it. Django comes to mind.--(Unsigned mail from my phone) Original message From: Michael Torrie via Python-list Date: 3/11/23 07:23 (GMT+10:00) To: python-list@python.org Subject: Re: Chec

Re: How to sort this without 'cmp=' in python 3?

2023-10-24 Thread Mike H via Python-list
On Saturday, October 15, 2016 at 12:27:42 AM UTC-7, Peter Otten wrote: > 38016...@gmail.com wrote: > > > nums=['3','30','34','32','9','5'] > > I need to sort the list in order to get the largest number string: > > '953433230' > > > > nums.sort(cmp=lambda a,b: cmp(a+b, b+a), reverse=True) > >

RE: regarding installation of python version

2023-10-09 Thread Mike Dewhirst via Python-list
Look in Windows Settings, About, Advanced system settings, Environment variables and you will see two sets of variables. One for the system and one set for yourself.Select Path and click [Edit]Carefully remove all references to Python in both sets.In theory you can now install a new Python and i

zoneinfo and tzdata

2023-08-08 Thread Mike Dewhirst via Python-list
nded it should raise an error saying no timezone information was found? Currently, it just nominates the timezone key you attempt to use. Behind the scenes it surely knows there are no such keys. In that case it might suggest installing tzdata. Cheers Mike -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-06-01 Thread Mike Dewhirst
On 24/05/2023 6:00 pm, Mike Dewhirst wrote: On 23/05/2023 7:16 pm, Chris Green wrote: Mike Dewhirst wrote: [-- multipart/mixed, encoding 7bit, 22 lines --] [-- text/plain, encoding base64, charset: UTF-8, 16 lines --] On 21/05/2023 5:53 am, Chris Green wrote: I'm converting a

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-24 Thread Mike Dewhirst
On 23/05/2023 7:16 pm, Chris Green wrote: Mike Dewhirst wrote: [-- multipart/mixed, encoding 7bit, 22 lines --] [-- text/plain, encoding base64, charset: UTF-8, 16 lines --] On 21/05/2023 5:53 am, Chris Green wrote: I'm converting a bash script to python as it has become rather c

RE: where is requests

2023-05-23 Thread Mike Dewhirst
Try pip install requests--(Unsigned mail from my phone) Original message From: Rich Osborne Date: 24/5/23 11:49 (GMT+10:00) To: python-list@python.org Subject: where is requests I have install Python 3.11.3 but my import requests does not work. I found documentation that refe

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-22 Thread Mike Dewhirst
On 21/05/2023 5:53 am, Chris Green wrote: I'm converting a bash script to python as it has become rather clumsy in bash. What is the use case? However I have hit a problem with converting dates, the bash script has:- dat=$(date --date "$1" +"%Y/%m/%d") and this will accept almost anyth

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Mike Dewhirst
On 13/04/2023 12:00 pm, Eryk Sun wrote: On 4/12/23, Mike Dewhirst wrote: Collecting psycopg2==2.9.3 x86 and x64 wheels are available for Python 3.11 if you can use Psycopg 2 version 2.9.5 or 2.9.6 instead of 2.9.3: https://pypi.org/project/psycopg2/2.9.5/#files https://pypi.org/project

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Mike Dewhirst
On 12/04/2023 10:59 pm, Mike Dewhirst wrote: Sadly Windows is still in the dock. The jury is still out. Turns out the "without a hitch" was based on cached wheels. I'm going to start from scratch with new projects using Pythons 3.8, 3.10 and 3.11 and report back. Repor

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Mike Dewhirst
Sadly Windows is still in the dock. The jury is still out. Turns out the "without a hitch" was based on cached wheels. I'm going to start from scratch with new projects using Pythons 3.8, 3.10 and 3.11 and report back. Cheers Mike On 12/04/2023 6:13 pm, Mike Dewhirst wrote:

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Mike Dewhirst
hanks to all who showed me the way. Cheers Mike On 11/04/2023 11:39 pm, Thomas Passin wrote: On 4/11/2023 6:58 AM, Chris Angelico wrote: On Tue, 11 Apr 2023 at 20:15, Jim Schwartz wrote: What’s the problem now?  Is it with python on windows?  I use python on windows so I’d like to know. T

Re: Christoph Gohlke and compiled packages

2023-04-11 Thread Mike Dewhirst
On 11/04/2023 5:21 pm, Chris Angelico wrote: On Tue, 11 Apr 2023 at 14:20, Mike Dewhirst wrote: It seems Christoph Gohlke has been cut adrift and his extremely valuable web page ... https://www.lfd.uci.edu/~gohlke/pythonlibs/ ... turned into an archive getting staler by the day. What does

Christoph Gohlke and compiled packages

2023-04-10 Thread Mike Dewhirst
It seems Christoph Gohlke has been cut adrift and his extremely valuable web page ... https://www.lfd.uci.edu/~gohlke/pythonlibs/ ... turned into an archive getting staler by the day. What does the Python Software Foundation and the community think about this? Cheers Mike -- https

RE: found older version of python in my command prompt

2023-03-28 Thread Mike Dewhirst
The quickest and dirtiest fix is to edit your %path% variable in windows. Remove all python versions you don't want from the path and Windows won't find them.You can then just delete the unwanted python directories.That doesn't remove any old dll files in secret locations but this is a dirty fi

Re: Winodws10 Command Prompt unresponsive to .py commands

2023-03-07 Thread Mike Dewhirst
On 8/03/2023 6:31 am, Thomas Gregg wrote: Hi, I got python 11 to work with the esptool a few days ago. However, I must have something wrong, because now, when I enter any command with .py, Windows Command Prompt just returns without doing anything. Example C:\Users\gregg>esptool.py version C

Re: bool and int

2023-01-24 Thread Mike Baskin via Python-list
Will all of you please stop sending me emails Sent from my iPhone > On Jan 24, 2023, at 2:59 PM, rbowman wrote: > > On Mon, 23 Jan 2023 23:22:00 -0500, Dino wrote: > >> $ python Python 3.8.10 (default, Mar 15 2022, 12:22:08) >> [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "lice

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-24 Thread Mike Baskin via Python-list
Can you stop please Sent from Yahoo Mail for iPhone On Tuesday, January 24, 2023, 10:12 AM, Thomas Passin wrote: On 1/23/2023 9:12 PM, Chris Angelico wrote: > On Tue, 24 Jan 2023 at 13:09, Jach Feng wrote: >> >> Chris Angelico 在 2023年1月24日 星期二清晨5:00:27 [UTC+8] 的信中寫道: >>> On Tue, 24 Jan 2023

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-24 Thread Mike Baskin via Python-list
Stop please Sent from Yahoo Mail for iPhone On Tuesday, January 24, 2023, 1:05 AM, Cameron Simpson wrote: On 23Jan2023 17:58, Jach Feng wrote: parser.parse_args(['--', 'infix2postfix.py', '-4.3+5']) >usage: [-h] infix >: error: unrecognized arguments: -4.3+5 This error doesn't look lik

OT: ~gohlke [Was: Installation hell]

2022-12-19 Thread Mike Dewhirst
rm. The PSF might recognise the effort and be able to promote such a high interest from Windows Python devs into funding for Chris Gohlke. Cheers Mike -- Signed email is an absolute defence against phishing. This email has been signed with my private key. If you import my public key you can a

RE: Subtracting dates to get hours and minutes

2022-12-12 Thread Mike Dewhirst
I have seen vast conversations on this topic but if everything is in the same time-zone and daylight saving switchovers are not involved it is relatively straightforward.Check the timedelta docs. Or convert datetimes to ordinals and subtract then convert the result to whatever units please you.M

Re: Python script not letting go of files

2022-11-29 Thread Mike Dewhirst
Stefan Thank you. I should have said this has been working fine for years and years until Ubuntu 2022.04 on a new droplet running Apache/2.4.52 I will refactor it one day - especially if the script is implicated. But I think I have to learn how to use lsof first! Cheers Mike On 30/11

Python script not letting go of files

2022-11-28 Thread Mike Dewhirst
    ThreadLimit 64     ThreadsPerChild 50     AsyncRequestWorkerFactor    2     MaxRequestWorkers   800     MaxConnectionsPerChild  0 Server Version: Apache/2.4.52 (Ubuntu 2022.04) OpenSSL/3.0.2 mod_wsgi/4.9.0 Python/3.10 Se

RE: Python coding

2022-11-27 Thread Mike Dewhirst
Create a folder anywhere convenient and copy it in there.Then - if python has been downloaded from the Python website and installed "normally" you can open a command prompt in that folder and type C:\\$>python logistics.py"normally" means Python is in your path environment variable.--(Unsigned

Re: How to manage python shebang on mixed systems?

2022-11-06 Thread Mike Dewhirst
On 7/11/2022 6:51 am, jak wrote: Il 06/11/2022 11:03, Chris Green ha scritto: I have a number of python scripts that I run on a mix of systems.  I have updated them all to run on python 3 but many will also run quite happily with python 2.  They all have a #!/usr/bin/python3 shebang. This works

Re: Update from 3.9 to 3.10.8 and uninstall 3.9

2022-10-23 Thread Mike Dewhirst
environments. A venv will let you keep your "system" Python(s) clean and unencumbered while being able to experiment with all sorts of additional libraries, packages etc in multiple separate sub-environments. Cheers Mike -- Signed email is an absolute defence against phishing. This emai

Re: python developer

2022-10-01 Thread Mike Dewhirst
-10-01, Mike Dewhirst schrieb:>So the answer to your question is signed email is easy and if it becomes >popular it has potential to defeat hackers.Yes, but I'm reading this as a usenet-message (comp.lang.python), not as a mail.-- Jan v/d broekbalgl...@dds.nl-- https://mail.python.

Re: python developer

2022-09-30 Thread Mike Dewhirst
On 30/09/2022 3:31 pm, Jan van den Broek wrote: 2022-09-29, Mike Dewhirst schrieb: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) Why? Good question. Further to Peter's explanation, email is the primary conduit for hackers. At this point in time human education and traini

Re: python developer

2022-09-29 Thread Mike Dewhirst
the drudgery and leaves expert judgement to the human user(s). Scrum is the easiest way down that road. You need a customer with a problem. You might be your own first customer. Cheers Mike Thanks in advance ! Walid -- Signed email is an absolute defence against phishing. This email has

Re: Persistent Error: Python was not found

2022-08-14 Thread Mike Dewhirst
Jonathan This is what I would do ... 1.    Download Python from python.org not Microsoft 2.    Install as an expert or custom install to C:\Python310 rather than C:\Program files 3.    Ignore this point - I was going to mention VirtualEnv which comes later for software development and there

Re: Pip upgrade causing issues in 3.10

2022-07-19 Thread Mike Dewhirst
On 20/07/2022 4:43 am, David Raymond wrote: C:\Program Files\Python310\Scripts>..\python.exe -m pip install --upgrade pip ERROR: Could not install packages due to an OSError: [WinError 32] The process cannot access the file because it is being used by another process: 'c:\\program files\\python

RE: Simple message passing system and thread safe message queue

2022-07-18 Thread Mike Dewhirst
MortenI didn't click on your link because it is a security bad practice to click on any unsolicited link.I'm not accusing you or anyone else of nefarious intent. It could be argued that being a member of this list means links posted here are indeed solicited links.You asked for comment. Mine is

Re: [Solved] Re: Windows registry PermissionError

2022-05-13 Thread Mike Dewhirst
On 13/05/2022 4:37 pm, Eryk Sun wrote: On 5/13/22, Mike Dewhirst wrote: On 13/05/2022 4:14 pm, Eryk Sun wrote: Since self.connect() is always called, you should document that the initial hkey parameter has to be one of the following predefined key handles: HKEY_LOCAL_MACHINE

Re: [Solved] Re: Windows registry PermissionError

2022-05-12 Thread Mike Dewhirst
that. Thanks again Eryk Cheers mike HKEY_PERFORMANCE_DATA WinAPI RegConnectRegistryW() only matters when the target computer is a different machine, in which case an RPC proxy handle is returned. -- Signed email is an absolute defence against phishing. This email has been signed wi

[Solved] Re: Windows registry PermissionError

2022-05-12 Thread Mike Dewhirst
Eryk Many thanks. It is working perfectly now. See below for the reworked code. Cheers Mike On 13/05/2022 1:42 pm, Eryk Sun wrote: On 5/12/22, Mike Dewhirst wrote: access=wr.KEY_ALL_ACCESS + wr.KEY_WRITE, import winreg as wr class Registry: def __init__(self, computer=None

Windows registry PermissionError

2022-05-12 Thread Mike Dewhirst
I'm trying to copy a value from HKLM to HKCU for application rollout via bulk installation by an administrator but individual Windows user setup. Getting this ... Traceback (most recent call last):   File "D:\Users\mike\envs\chemdata\registry\wreg\wreg.py&quo

Re: Python Question re Executing a Script

2022-04-30 Thread Mike Dewhirst
On 1/05/2022 8:37 am, Brent Hunter wrote: Hello, I just purchased a new Windows 11 computer and installed Python 3.10.4 (64 bit). I can't figure out from your documentation, how do I: 1. Run a python script that is located in the same directory ( C:\Users\Brent\AppData\Roaming\Microsoft

Re: Isn't TypeError built in?

2021-12-25 Thread Mike Dewhirst via Python-list
Isn't TypeError built in? On 2021-12-13 12:22:28 +1100, Mike Dewhirst via Python-list wrote:> Obviously something is wrong elsewhere but I'm not sure where to look.> Ubuntu 20.04 with plenty of RAM.[...]> [Mon Dec 13 01:15:49.885659 2021] [mpm_event:notice] [pid 1033:tid> 140

Re: Isn't TypeError built in?

2021-12-13 Thread Mike Dewhirst via Python-list
On 13/12/2021 12:42 pm, Chris Angelico wrote: On Mon, Dec 13, 2021 at 12:31 PM Mike Dewhirst via Python-list wrote: Obviously something is wrong elsewhere but I'm not sure where to look. Ubuntu 20.04 with plenty of RAM. def __del__(self): try: for context_o

Isn't TypeError built in?

2021-12-12 Thread Mike Dewhirst via Python-list
cal.py", line 96, in __del__ NameError: name 'TypeError' is not defined Any hints welcome ... Thanks Mike -- Signed email is an absolute defence against phishing. This email has been signed with my private key. If you import my public key you can automatically decrypt my signature

pythonpapers.org domain name to lapse in November

2021-10-04 Thread Mike Dewhirst via Python-list
The board of editors of the Python Papers has decided to let the pythonpapers.org domain name to lapse. It will not be renewed in November. Anyone interested in it can get in touch. Cheers Mike -- Signed email is an absolute defence against phishing. This email has been signed with my

Re: XML Considered Harmful

2021-09-23 Thread Mike Dewhirst via Python-list
I had to use XML once because that was demanded by the receiving machine over which I had no say.I wouldn't use it otherwise because staring at it makes you dizzy.I would want to know how the data are derived from the multiple sources and transmitted to the collating platform before pontificatin

Re: Python and Ubuntu versions

2021-07-25 Thread Mike Easter
Mike Easter wrote: In the past, old gmane required posting w/ a good email because the gmane server required you to receive an email and self-approve your posting. The old gmane also obfuscated the email of someone posting that way. So, you needed to configure your agent to use a good email

Re: Python and Ubuntu versions

2021-07-24 Thread Mike Easter
Terry Reedy wrote: Mike Easter wrote: For those who are following this thread on a conventional news server, there are missing parts which came from the python-list mailing list instead. For those who prefer an nntp access to the mailing list, the corresponding group on news.gmane.io is

Re: Python and Ubuntu versions

2021-07-24 Thread Mike Easter
Mike Easter wrote: Terry Reedy wrote: Mike Easter wrote: For those who are following this thread on a conventional news server, there are missing parts which came from the python-list mailing list instead. For those who prefer an nntp access to the mailing list, the corresponding group on

Re: Python and Ubuntu versions

2021-07-24 Thread Mike Easter
is unconventional. -- Mike Easter -- https://mail.python.org/mailman/listinfo/python-list

XAMPP control panel python

2021-07-19 Thread Mike Easter
ip I have is for py3. I can put the .py file on pastebin if anyone wants. Apparently the Win v. of xampp has a CP based on Delphi someone said, so that one is being maintained. -- Mike Easter -- https://mail.python.org/mailman/listinfo/python-list

Re: Definition of "property"

2021-05-30 Thread Mike Dewhirst
On 31/05/2021 2:57 am, Irv Kalb wrote: I am doing some writing (for an upcoming book on OOP), and I'm a little stuck. I understand what a "property" is, how it is used and the benefits, but apparently my explanation hasn't made the light bulb go on for my editor. The editor is asking for a de

Re: Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-05-03 Thread Mike Lee Williams
On Monday, May 3, 2021 at 10:41:14 AM UTC-7, Terry Reedy wrote: > > Answering my own question: the behavior was changed by > > https://github.com/python/cpython/pull/9731. > Since this patch, Mark Shannon has revised line numbering and tracing > and replaced the internal lineno data structure. Yo

Re: Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-04-30 Thread Mike Lee Williams
On Friday, April 30, 2021 at 7:55:10 PM UTC-7, Mike Lee Williams wrote: > This trivial bit of code is parsed differently by the ast module between > python > 3.7 and python 3.8. I'm trying to figure out what changed and why, and once I > know that, if it's possible and d

Decoratored functions parsed differently by ast stdlib between 3.7 and 3.8

2021-04-30 Thread Mike Lee Williams
AST, but none of the changes look relevant as they all refer to typing https://docs.python.org/3/whatsnew/3.8.html#ast So: what changed? Why? Can I and should I try to get the old behavior back? Thanks! Mike Lee Williams -- https://mail.python.org/mailman/listinfo/python-list

Re: Not found in the documentation

2021-04-27 Thread Mike Dewhirst
On 27/04/2021 11:24 am, elas tica wrote: Le mardi 27 avril 2021 à 01:44:04 UTC+2, Paul Bryan a écrit : From https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy : Thanks for the reference. I was expecting to find this information in the Built-in Types section from

Re: A 35mm film camera represented in Python object

2021-04-01 Thread Mike Dewhirst
On 2/04/2021 8:47 am, D.M. Procida wrote: D.M. Procida wrote: Hi everyone, I've created - a representation of a Canonet G-III QL17 in Python. There's also documentation: . It's a pure Python model of the p

Re: Why assert is not a function?

2021-03-11 Thread Mike Dewhirst
riately confused - but I only ever used it when I was absolutely certain the assertion was bullet-proof. And it is a long time since I did that. I prefer try-except nowadays. Mike ChrisA -- Signed email is an absolute defence against phishing. This email has been signed with my private

Re: Changing strings in files

2020-11-10 Thread Mike Dewhirst
On 10/11/2020 5:24 pm, Manfred Lotz wrote: I have a situation where in a directory tree I want to change a certain string in all files where that string occurs. My idea was to do - os.scandir and for each file - check if a file is a text file - if it is not a text file skip that file

Re: Any better way for this removal?

2020-11-07 Thread Mike
Use .split() to split the string on the character and then use .join() to rejoin the first 2 tokens tokens = text.split(“,”) new_string = “,”.join(tokens[:2]) On Sat, Nov 7, 2020, at 1:46 PM, Bischoop wrote: > > > So I was training with slicing. > Came to idea to remove text after second occu

Re: Use of a variable in parent loop

2020-09-27 Thread Mike Dewhirst
nion is genuine OO. And the community. Perl can be extremely terse, much more so than Python but that is where the "write-only" criticism comes from. Perl's terseness can only work for throwaway code.[1] Python is - or can be - quite terse but if written Pythonically is almost self-d

Re: Any timeline for PIL for Python 3.4

2020-08-10 Thread Mike Dewhirst
On 11/08/2020 2:35 pm, Martin wrote: > Hi, > > I am running Python 3.4.4, and would like to > use the Python Imaging Library (PIL).  This > is currently not available for Python > Version 3.  Does anybody know when it will > become available? Try Pillow https://pillow.readthedocs.io/en/stable/ins

Re: Dowloading package dependencies from locked down machine

2020-07-27 Thread Mike Dewhirst
On 28/07/2020 9:43 am, Andrew McLean wrote: > On 26/07/2020 14:07, Mike Dewhirst wrote: >> I think your best bet is to make a formal business case to your IT >> people and explain what's in it for them. If they hold all the cards >> you defeat them at your peril. &g

RE: Dowloading package dependencies from locked down machine

2020-07-26 Thread Mike Dewhirst
I think your best bet is to make a formal business case to your IT people and explain what's in it for them. If they hold all the cards you defeat them at your peril.Mike -- https://mail.python.org/mailman/listinfo/python-list

Re: Fake news Detect

2020-07-17 Thread Mike Dewhirst
at like Wikipedia. Except editors for page 2 would need a threshold score for being correct. Everyone can criticise but you lose points for being on the wrong side of history. That'll be 2 cents Mike > > -- > Grant > signature.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-list

Re: App for Moto e6 using Python?

2020-07-13 Thread Mike Dewhirst
en in python but I do not know how to convert it to an app. > I wonder how much of the python code will still apply. Have you looked at Beeware? I believe they have recently released for Android. Mike > When I was into this > in the past, I installed Kivy and was able to finally gene

RE: Questioning the effects of multiple assignment

2020-07-07 Thread Mike Dewhirst
Original message From: dn via Python-list Date: 7/7/20 16:04 (GMT+10:00) To: 'Python' Subject: Questioning the effects of multiple assignment TLDR; if you are a Python 'Master' then feel free to skim the first part (which you should know hands-down), until the excerpts fro

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Mike Dewhirst
On 29/05/2020 2:59 pm, Dieter Maurer wrote: Mike Dewhirst wrote at 2020-5-29 11:55 +1000: On 29/05/2020 10:51 am, Terry Reedy wrote: ... Source only releases only block Windows/Mac users who choose not to upgrade to a released installer and who cannot or choose not to compile. I am an example

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Mike Dewhirst
On 29/05/2020 12:26 pm, Chris Angelico wrote: On Fri, May 29, 2020 at 11:57 AM Mike Dewhirst wrote: I am an example I installed all the Pythons on my Windows 10 dev machine (locked into Windows by having clients) but I'm also locked into Python 3.6.9 on my Ubuntu 18.04 production mac

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Mike Dewhirst
ou let it, Windows just absolutely knows what you really meant despite what you tell it. It is a necessary evil when your clients use it. Cheers Mike -- https://mail.python.org/mailman/listinfo/python-list

Re: Installation Error

2020-05-21 Thread Mike Dewhirst
standard place. My favourite is C:\Python36, C:\Python37, C:\Python38 etc. All the best Mike Please help, Charlie Seagraves -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip not working on windows

2020-05-03 Thread Mike Dewhirst
: The system cannot find the file specified. But when I manually inspected the folder 📂 the files were there I even tried upgrading it by python -m pip install --upgrade pip which worked but I still can not use pip. Just thoughtI'd try it on my Windows PC ... (xxex3) D:\Users\mike\envs\

Re: Helping Windows first time users

2020-04-16 Thread Mike Dewhirst
t in this conversation. But it is interesting. I use Windows because I have no choice. All my production machines are non-gui Ubuntu. I started my programming on non-gui PCs which made it simple with Windows. However, on reading some of these emails from struggling Windows users it is e

python

2020-04-15 Thread mike via Python-list
I need somehelpwith Python 36-32 and 38-32 I have been using sublime text 3 asmy ide for about 1 year now and everything was fine -I tried to change to Pycharm 2020 - I was going to use sublime 3 as my IDE for python36-32 and the Pycharm2020 forthe IDE forPython38-32. Unfortunatly snt wrong as

Re: Is there a difference between python

2020-04-05 Thread Mike Dewhirst
On 6/04/2020 8:35 am, Malcolm Greene wrote: Is there a difference between the following 2 ways to launch a console-less script under Windows? python

Re: How to uninstall Python3.7 in Windows using cmd ?

2020-03-29 Thread Mike Dewhirst
On 30/03/2020 2:55 pm, Michael Torrie wrote: On 3/29/20 6:41 PM, Mike Dewhirst wrote: I would first determine whether it is the 32 or 64 bit version which is installed. I would then visit www.python.org and download the exact same python executable installer. Don't know what msi is b

Re: Unable to install or operate PIP on Windows 10

2020-03-29 Thread Mike Dewhirst
python -m pip install D:\Users\mike/downloads/Pillow-6.0.0-cp37-cp37m-win_amd64.whl Don't worry about my slashes and backslashes. That part of the above line is copied from a requirements file assembled by batch file. Pip doesn't care about the angle of the slash. I think numpy

Re: How to uninstall Python3.7 in Windows using cmd ?

2020-03-29 Thread Mike Dewhirst
On 29/03/2020 10:24 pm, Terry Reedy wrote: On 3/29/2020 12:17 AM, Mike Dewhirst wrote: On 29/03/2020 5:06 am, Terry Reedy wrote: On 3/27/2020 8:07 AM, deepalee khare wrote: How to Uninstall Python3.7.3 using cmd ? i tried using cmd: Msiexec /uninstall C:\Python37\python.exe But it gives me

Re: How to uninstall Python3.7 in Windows using cmd ?

2020-03-28 Thread Mike Dewhirst
On 29/03/2020 5:06 am, Terry Reedy wrote: On 3/27/2020 8:07 AM, deepalee khare wrote: How to Uninstall Python3.7.3 using cmd ? i tried using cmd: Msiexec /uninstall C:\Python37\python.exe But it gives me below error: enter image description here Python is not currently installed with msi, hen

Re: Python question

2020-03-12 Thread Mike Dewhirst
On 12/03/2020 1:47 pm, DL Neil via Python-list wrote: On 12/03/20 3:03 AM, Rhodri James wrote: On 11/03/2020 04:06, Michael Torrie wrote: On 3/10/20 6:49 PM, Souvik Dutta wrote: What about moving on to a social media app completely made in pythoj for python? No thanks. I don't want to be on

RE: Python download for windows

2020-03-09 Thread Mike Dewhirst
HilaryPython isn't an ordinary program as understood by (most) Windows users.It needs a command-prompt in which to run interactively. In other words, after successful installation, open a command prompt (aka DOS prompt) and type "python". It should open, announce itself and display its character

Python 101 2nd Edition book

2020-02-18 Thread Mike Driscoll
-2nd-edition-kickstarter-is-live/ Feel free to ask any questions that you might have as well. Thanks, Mike -- https://mail.python.org/mailman/listinfo/python-list

Problems with Python install on Windows 10

2020-01-13 Thread Mike Weaver
file cannot be accessed by the system "C:\Users\Mike\AppData\Local\Microsoft\WindowsApps\python.exe" If I search in that directory, I find a to python.exe. I have added that directory to my Path. I can see Python 3.8.1 in the Control Panel. I've rebooted. Reinstalled. Tried just abo

Re: Logistic Regression Define X and Y for Prediction

2019-11-14 Thread Mike C
Hi Jason, I will try it out... Nothing in the documentation tells a person. Thanks From: Python-list on behalf of Jason Friedman Sent: Wednesday, November 13, 2019 7:19 PM Cc: python-list@python.org Subject: Re: Logistic Regression Define X and Y for Predicti

Logistic Regression Define X and Y for Prediction

2019-11-12 Thread Mike C
Hi All, I have the below code. X = df.iloc[:, [4, 403]].values​ y = df.iloc[:, 404].values Dummy Data looks like: host Mnemonic 12.234.13.6 start 22.22.44.67 something 23.44.44.14 begin When I define the X and Y values for prediction in the train and test data,

ANN: Creating GUI Applications with wxPython

2019-01-14 Thread Mike Driscoll
s included with the book. You can read more about it here if you are interested: https://www.blog.pythonlibrary.org/2019/01/14/creating-gui-applications-with-wxpython-kickstarter/ Feel free to ask me questions about it too. Thanks, Mike -- https://mail.python.org/mailman/listinfo/python-list

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-11-04 Thread Mike C
Same here. Debugging in Python is annoying, I like to step through my code line by line, it's impossible to do it with object-oriented programming language. Also, there's no good REPL IDE. Spyder barely works with some basic features. PyCharm, the most popular, takes too long to start, and you

Re: Why list.reverse() modifies the list, but name.replace() does not

2018-09-05 Thread Mike C
Yes, I forgot that strings are immutable. I can't change anything in the string. Silly me! Thank you very much, I appreciate it. I guess sometimes it just take an outsider to take you outside the box. And all is answered. :) From: Python-list on behalf of Mark La

Re: Why list.reverse() modifies the list, but name.replace() does not modify the string?

2018-09-03 Thread Mike C
Yes, I forgot that strings are immutable. I can't change anything in the string. Silly me! Thank you very much, I appreciate it. I guess sometimes it just take an outsider to take you outside the box. And all is answered. :) From: Python-list on behalf of Mark

Re: version

2018-06-01 Thread Mike McClain
On Fri, Jun 01, 2018 at 08:02:27AM -0700, Mike McClain wrote: > On Thu, May 31, 2018 at 07:44:35PM -0700, Mike McClain wrote: > > > Is there a way in a script to know which version of python is being > > run so I can write: > > If (version == 2.7): > >

Re: version

2018-06-01 Thread Mike McClain
On Thu, May 31, 2018 at 07:44:35PM -0700, Mike McClain wrote: > Is there a way in a script to know which version of python is being > run so I can write: > If (version == 2.7): > do it this way > elsif (version == 3.2): > do it another way > Thanks fo

Re: ... (ellipsis)

2018-06-01 Thread Mike McClain
On Thu, May 31, 2018 at 11:00:13PM -0400, Terry Reedy wrote: > On 5/31/2018 10:26 PM, Mike McClain wrote: > > I'm having understanding the use if the ellipsis. > >I keep reading that it is used in slices > > By numpy for numpy multidimensional arrays, which have thei

version

2018-05-31 Thread Mike McClain
to python3.2. Most of the errors were because I had used 'print' without parens which 2.7 liked but 3.2 doesn't. Is there a way in a script to know which version of python is being run so I can write: If (version == 2.7): do it this way elsif (version == 3.2):

  1   2   3   4   5   6   7   8   9   10   >