[issue42758] pathlib.Path to support the "in" operator (x in y)

2020-12-28 Thread Anton Hvornum
Anton Hvornum added the comment: Missed that function, but they would behave the same without explicitly use the function call. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42758] pathlib.Path to support the "in" operator (x in y)

2020-12-27 Thread Anton Hvornum
New submission from Anton Hvornum : I would like to propose that the `pathlib.Path()` gets a `in` operator, much like that ipaddress has IP in Subnet, it would be nice if we could be able to do: ``` import pathlib pathlib.Path('/home/Torxed/machine.qcow2') pathlib.Path(&#x

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2020-02-26 Thread Lord Anton Hvornum
Lord Anton Hvornum added the comment: I agree with Jan-Philip Gehrcke, would have been nice to have had this. Pretty pissed reading through this ancient issue. In regards to how people treat other volunteers: We're all working for free, and I think expectations from people

[issue38825] shutil.disk_usage - Lacking documentation

2019-11-17 Thread Lord Anton Hvornum
Lord Anton Hvornum added the comment: xtreak: You are correct, that was a typo. My apologies. -- ___ Python tracker <https://bugs.python.org/issue38825> ___ ___

[issue38825] psutil.disk_usage - Lacking documentation

2019-11-16 Thread Lord Anton Hvornum
New submission from Lord Anton Hvornum : https://docs.python.org/3.8/library/shutil.html#shutil.disk_usage There's no mention that this helper function simply calls `os.statvfs()` in the background. Something that is quite troubling when you're trying to get disk_usage (or disk-i

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
Lord Anton Hvornum added the comment: Historically Windows have struggled with /32 assigned networks. Trying to push such a network address to a Windows machine has usually (not all cases) rendered it connection-less, where as switches, routers, *nix etc have never had any major issues with the

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
Lord Anton Hvornum added the comment: I was actually just thinking about the same thing, why not just add a optional flag to the already existing function. I get that people are way into backward compatibility, and I won't get into a religious fight over that particular topic as long as th

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
Lord Anton Hvornum added the comment: And this definition is some how immutable? On Tue, Sep 26, 2017 at 10:19 PM Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Because this is a definition of

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
Lord Anton Hvornum added the comment: This is still a very strange behavior and I can't see why this still shouldn't return a IP address. if the broadcast, network and host address are all the same, that should call for a exceptional behavior from the library. Because 127.0.0.1/32

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
New submission from Lord Anton Hvornum: https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network.hosts I couldn't find anywhere in the documentation mentioning the fact that doing the following would return nothing: >>> import ipaddress >>> net = ipaddres

[issue29860] smtplib.py doesn't capitalize EHLO.

2017-03-20 Thread Lord Anton Hvornum
Lord Anton Hvornum added the comment: Seeing as I'm the one who built the server, it sure is out of spec :) I could also quickly correct for this "issue" server-side. So this is more of a "style guideline" change client-side - If no one opposes of keeping comman

[issue29860] smtplib.py doesn't capitalize EHLO.

2017-03-20 Thread Lord Anton Hvornum
Lord Anton Hvornum added the comment: Turns out, this goes for a lot more commands, such as: ``` Traceback (most recent call last): File "mail.py", line 12, in smtp_server.sendmail(fromaddr, toaddrs, msg) File "/usr/lib/python3.6/smtplib.py", line 866, i

[issue29860] smtplib.py doesn't capitalize EHLO.

2017-03-20 Thread Lord Anton Hvornum
New submission from Lord Anton Hvornum: ``` File "mail.py", line 9, in smtp_server.starttls(context) File "/usr/lib/python3.6/smtplib.py", line 748, in starttls self.ehlo_or_helo_if_needed() File "/usr/lib/python3.6/smtplib.py", line 600, in ehlo_or_