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
: 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

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
-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 may not be po

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
dle 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 24 December 2023 3:35:42 am AED

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

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 to me

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 they might

Code improvement question

2023-11-14 Thread Mike Dewhirst via Python-list
quot; ".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
rsions 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 encou

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:

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

zoneinfo and tzdata

2023-08-09 Thread Mike Dewhirst via Python-list
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

[Python-announce] Tkintertoy 1.6.0 released

2023-08-07 Thread Mike Callahan
Announcing the release of Tkintertoy version 1.60. Python educators, do you want to move your students beyond command-line interfaces (ie. input-print) but find the jump to Tkinter too much? Give TkinterTOY a try. It makes Tkinter GUI programming child's play. Used in college-level courses, your

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 bash

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 clumsy

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

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

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. Report sum

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: Well

Re: Christoph Gohlke and compiled packages

2023-04-12 Thread Mike Dewhirst
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. Thanks

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

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

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

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

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

OT: ~gohlke [Was: Installation hell]

2022-12-19 Thread Mike Dewhirst
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 automatically decrypt my signature and be

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

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
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 Server MPM: event Server Built: 2022-09-30T04:09:50 DigitalOcean

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

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.org/m

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 training

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

Re: Pip upgrade causing issues in 3.10

2022-07-20 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

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-13 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 with my

[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"

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 (

[issue47174] Define behavior of descriptor-typed fields on dataclasses

2022-04-01 Thread mike bayer
Change by mike bayer : -- nosy: +zzzeek ___ Python tracker <https://bugs.python.org/issue47174> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32658] Metacharacter (\) documentation suggestion

2022-04-01 Thread mike mcleod
Change by mike mcleod : -- keywords: +patch pull_requests: +30302 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32230 ___ Python tracker <https://bugs.python.org/issu

[issue47183] Cant compile html docs

2022-04-01 Thread mike mcleod
mike mcleod added the comment: Works for me. The command installed the correct version of Sphinx. Thanks. -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/i

[issue47183] Cant compile html docs

2022-03-31 Thread mike mcleod
New submission from mike mcleod : After sync'ing to upstream/main and then python/Doc on  main via  v3.11.0a6+ ❯ make html mkdir -p build Building NEWS from Misc/NEWS.d with blurb PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -W . build/html Running Sphinx v3.5.4 building

[issue32658] Metacharacter (\) documentation suggestion

2022-03-31 Thread mike mcleod
mike mcleod added the comment: After sync'ing to upstream/main and then running make html I get: ... checking consistency... done preparing documents... failed Warning, treated as error: unsupported theme option 'license_url' given make: *** [Makefile:53: build] Error 2 I cant see anything

[issue32658] Metacharacter (\) documentation suggestion

2022-03-29 Thread mike mcleod
mike mcleod added the comment: Sorry, forgot this one. Would you like me to move this forward? Or do you want to take it? I don't mind either way. -- ___ Python tracker <https://bugs.python.org/issue32

[issue46751] Windows-style path is not recognized under cygwin

2022-02-14 Thread Mike Kaganski
Mike Kaganski added the comment: > As for 3.9: it's not available through the 64 bit installer (at least, I > don't see it there). I'll look and see what's involved in installing it. I don't remember if I did something special to install it; however, just maybe you need to install py

[issue46751] Windows-style path is not recognized under cygwin

2022-02-14 Thread Mike Kaganski
Mike Kaganski added the comment: Thanks for looking at this! > Are you running from bash (or another cygwin shell), or from cmd.exe, or > something else? :) Citing myself: > Trying this *bash* command line: > To my knowledge, cygwin's installer doesn't have a 3.9 availab

[issue46751] Windows-style path is not recognized under cygwin

2022-02-14 Thread Mike Kaganski
New submission from Mike Kaganski : Using cyqwin 3.3.4-2, and python3: Python 3.9.10 (main, Jan 20 2022, 21:37:52) [GCC 11.2.0] on cygwin Trying this bash command line: > python3 C:/path/to/script.py results in this error: "python3: can't open file '/cygdrive/c/path/to/curdir

[issue43882] [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline and tabs.

2022-02-06 Thread Mike Lissner
Mike Lissner added the comment: Looks like that CVE isn't public yet. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0391 Any chance I can get access (I originally reported this vuln.). My email is m...@free.law, if it's possible and my email is needed. Thanks

[issue46654] urllib.request.urlopen doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Change by Mike Auty : -- title: file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes) -> urllib.request.urlopen doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slas

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: I can confirm that url2pathname work with either number of slashes, and that open_file appears to have had the file: removed. However, in even if the check in open_file were bypassed, it calls open_local_file, which then strips any host before calling

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: Here's the revised code sample: import pathlib import urllib.request path = "Z:\\test.py" print(f"Stock open: {pathlib.Path(path).as_uri()}") with urllib.request.urlopen(pathlib.Path(path).as_uri()) as fp:

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: My bad, sorry, I realized I was conflating open with urllib.request.urlopen. I believe the issue still exists though, sorry for the confusion. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: > Why are you adding `.as_uri()`? The API we provide accepts URIs, so whilst the example seems a little contrived, the code itself expects a URI and then calls open (making use of the ability to add open handlers). > Builtin open() calls C open(). As

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
New submission from Mike Auty : I've found open to have difficulty with a resolved pathlib path: Example code of: import pathlib path = "Z:\\test.py" with open(path) as fp: print("Stock open: works") data = fp.read() with open(pathlib.Path(pa

[issue32442] Result of pathlib Path.resolve() with UNC path is not very useful

2022-02-05 Thread Mike Auty
Mike Auty added the comment: Sorry for the spam, thought I was in a different text box. 5:( -- nosy: +ikelos title: file_open unc -> Result of pathlib Path.resolve() with UNC path is not very useful ___ Python tracker <https://bugs.pyth

[issue32442] file_open unc

2022-02-05 Thread Mike Auty
Change by Mike Auty : -- title: Result of pathlib.Path.resolve() with UNC path is not very useful -> file_open unc ___ Python tracker <https://bugs.python.org/issu

[issue32658] Metacharacter (\) documentation suggestion

2022-01-21 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. Is that acceptable? -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue32

[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest

2022-01-21 Thread mike mcleod
mike mcleod added the comment: I would like to help on this issue. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue1521051> ___ ___ Pytho

[issue10434] Document the rules for "public names"

2022-01-21 Thread mike mcleod
mike mcleod added the comment: I would like to help on this issue. Is there anyone available to push a PR through? If I make the changes. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue10

[issue10202] ftplib doesn't check close status after sending file

2022-01-21 Thread mike mcleod
Change by mike mcleod : -- keywords: +patch pull_requests: +28934 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30747 ___ Python tracker <https://bugs.python.org/issu

[issue10202] ftplib doesn't check close status after sending file

2022-01-15 Thread mike mcleod
mike mcleod added the comment: Working.. should be able to create pull request soon. Note part of suggestions include using SIOCOUTQ, but this does not have an equivalent for windows. And as Murphy's law goes this is likely to be where the problem

[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Mike Schiessl
Mike Schiessl added the comment: Yes, enforcing interval == 1 or interval == None (which pulls the TimedRotatingFileHandler class __init__ default value which is also 1) works perfectly with midnight. I do not see any urge on that topic - as I personally now know the issue :D - but I

[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Mike Schiessl
Mike Schiessl added the comment: i've just checked PR and you're right, something with the PR went wrong. Anyway, midnight (at least from the wording) specifies the "atTime". (which should be midnight). Again, if there's (by mistake) an interval bigger than 1 set(which in my m

[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Mike Schiessl
New submission from Mike Schiessl : Using the TimedRotatingFileHandler along with "when='midnight'" and interval > 1, midnight is handled equally to "days" which is a little misleading. Expectation: setting when to 'midnight', the file is rotated every midnight

Re: Isn't TypeError built in?

2021-12-25 Thread Mike Dewhirst via Python-list
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> 140446449658944]

[issue24364] Not all defects pass through email policy

2021-12-24 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue24364> ___ ___ Pytho

[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2021-12-24 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I'm new to this space hence I am not aware of what patch review means. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue4

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-12-22 Thread mike mcleod
Change by mike mcleod : -- pull_requests: +28450 pull_request: https://github.com/python/cpython/pull/30228 ___ Python tracker <https://bugs.python.org/issue1284

[issue10483] http.server - what is executable on Windows

2021-12-20 Thread mike mcleod
Change by mike mcleod : -- pull_requests: +28437 pull_request: https://github.com/python/cpython/pull/30216 ___ Python tracker <https://bugs.python.org/issue10

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_obj

Isn't TypeError built in?

2021-12-12 Thread Mike Dewhirst via Python-list
n __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 and be sure it came from me. Ju

[issue10483] http.server - what is executable on Windows

2021-12-04 Thread mike mcleod
Change by mike mcleod : -- keywords: +patch pull_requests: +28141 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29624 ___ Python tracker <https://bugs.python.org/issu

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-12-01 Thread mike mcleod
mike mcleod added the comment: Minor fix after test. -- Added file: https://bugs.python.org/file50467/2.html ___ Python tracker <https://bugs.python.org/issue1284

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-12-01 Thread mike mcleod
mike mcleod added the comment: I have made the changes as indicated in the diff files. I have tested against the latest from my GitHub copy. The result is: ./python -m test -j0 == CPython 3.11.0a2+ (heads/main:3a91617590, Dec 1 2021, 15:11:41) [GCC 11.2.0] == Linux-5.13.0-22-generic-x86_64

[issue10483] http.server - what is executable on Windows

2021-11-27 Thread mike mcleod
mike mcleod added the comment: I will work on this next week. -- ___ Python tracker <https://bugs.python.org/issue10483> ___ ___ Python-bugs-list mailin

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-11-27 Thread mike mcleod
mike mcleod added the comment: Ok, I will work on this soon and make further comments. -- ___ Python tracker <https://bugs.python.org/issue1284670> ___ ___ Pytho

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-11-19 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I note the history (using Git Dag) of the modulefinder.py shows that it has been modified with changes related here: Author: Éric Araujo 2011-07-28 22:35:29 Committer: Éric Araujo 2011-07-28 22:35:29 Parent

[issue10483] http.server - what is executable on Windows

2021-11-18 Thread mike mcleod
mike mcleod added the comment: Hi Victor, Ok I'll do that. Regards, Mike On Thu, 18 Nov 2021 at 15:36, STINNER Victor wrote: > > STINNER Victor added the comment: > > I searched for open issues which contain "cgi" in their title. I found 43 > open issues. The

[issue10202] ftplib doesn't check close status after sending file

2021-11-12 Thread mike mcleod
mike mcleod added the comment: I would like to help on this issue. I understand the arguments here but it has been a lone time since this was raised and there does not seem to be any further issues discussed or support for this issue. -- nosy: +mikecmcleod

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2021-11-12 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I note that when I test against 3.10 this error does not show. Also, all tests for test_tarfile pass. I am wondering if it may be reasonable to close this due to the age and currently its not an issue in the latest Python

[issue10483] http.server - what is executable on Windows

2021-11-10 Thread mike mcleod
mike mcleod added the comment: I have put the question on Discuss and wait for (any) responses, -- ___ Python tracker <https://bugs.python.org/issue10

[issue21501] docs: mmap example for use in documentation

2021-11-10 Thread mike mcleod
mike mcleod added the comment: One of the things I did when the example code didn't work was to see what other examples could be found and there are I would argue plenty or just enough, eg: https://medium.com/analytics-vidhya/memory-mapping-files-and-mmap-module-in-python-with-lot-of-examples

[issue21501] docs: mmap example for use in documentation

2021-11-10 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I note that a few changes need to be made to the code example for compatibility for the latest version of Python. I can get this working but I am not sure this is a good example. Also, the example is more about threads

[issue10483] http.server - what is executable on Windows

2021-11-10 Thread mike mcleod
mike mcleod added the comment: Should I go ahead and make the changes as per msg122208 ? on my local copy and test? -- ___ Python tracker <https://bugs.python.org/issue10

[issue2628] ftplib Persistent data connection

2021-11-02 Thread mike mcleod
mike mcleod added the comment: You're welcome. Regards, Mike On Tue, 2 Nov 2021 at 05:52, Ethan Furman wrote: > > Ethan Furman added the comment: > > Ah. Well, in that case closing seems like the best idea. > > Thank you, Jonathan, for getting the CLA signed and pro

[issue10483] http.server - what is executable on Windows

2021-11-01 Thread mike mcleod
mike mcleod added the comment: Hi Éric, Then would the easiest way of dealing with this issue, to close it without any further work? Possibly adding to the documents it doesn't work on windows.. I can move to the next issue. Regards, Mike On Sun, 31 Oct 2021 at 18:03, Éric Araujo wrote

[issue2628] ftplib Persistent data connection

2021-11-01 Thread mike mcleod
mike mcleod added the comment: I am happy to do any testing. My reason for getting involved is I am new to helping with Cpython and thought this may be the least intrusive way of getting started with something that nobody really cares about that much. Hence, the oldest issue I see can

[issue10483] http.server - what is executable on Windows

2021-10-31 Thread mike mcleod
mike mcleod added the comment: Hi, I would like to help on this issue. Let me know what can be done? -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue10

[issue2628] ftplib Persistent data connection

2021-10-26 Thread mike mcleod
mike mcleod added the comment: Hi Ethan, Thanks, awaiting reply.. Regards, Mike On Tue, 26 Oct 2021 at 01:36, Ethan Furman wrote: > > Ethan Furman added the comment: > > We don't have a CLA from jbell. I've sent an email asking him to do so... > we'll s

[issue2628] ftplib Persistent data connection

2021-10-24 Thread mike mcleod
mike mcleod added the comment: Hi, I would like to help on this issue. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue2628> ___ ___

  1   2   3   4   5   6   7   8   9   10   >