[issue44788] Possibility to specify port in __init__ of ftplib.FTP

2021-07-31 Thread Marty
Marty added the comment: Well, if it's possible to connect to ftp server within __init__, I think that adding port parameter makes sense. I mostly don't need to handle connect() and login() separately. All I need is to connect to ftp server and work with it. If there is some trouble

[issue44788] Possibility to specify port in __init__ of ftplib.FTP

2021-07-30 Thread Marty
New submission from Marty : I think all that's needed is to add new parameter port in __init__ and then add it to self.connect() as argument: def __init__(self, host='', port=0, user='', passwd='', acct='', timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None

[issue44787] Missing valid directive %D in datetime.strftime() documentation

2021-07-30 Thread Marty
New submission from Marty : Output of: datetime.datetime.now().strftime('%D') is equivalent for: datetime.datetime.now().strftime('%m/%d/%y') Is there a reason that directive %D is missing in documentation? Are there other hidden directives? https://docs.python.org/3/library/datetime.html

[issue44770] float('nan') is True

2021-07-28 Thread Marty
New submission from Marty : I know that there is numpy.isnan() for checking if a value is float('nan') but I think that native python should logically return False in bool(float('nan')). -- messages: 398448 nosy: vpjtqwv0101 priority: normal severity: normal status: open title: float

[issue13135] Using type() as a constructor doesn't support new class keyword arguments

2011-10-08 Thread Marty Alchin
New submission from Marty Alchin ma...@martyalchin.com: PEP 3115 introduced keyword arguments to class definitions and changed metaclasses to use them instead. Unfortunately, `type()` doesn't seem to have been updated to accept those keyword arguments as well. What this amounts

[issue13135] Using type() as a constructor doesn't support new class keyword arguments

2011-10-08 Thread Marty Alchin
Marty Alchin ma...@martyalchin.com added the comment: Hrm, that does seem to satisfy the case I was immediately concerned with, but I was thinking there was another issue with it, but now I'm having trouble pinning down an example. I'll just assume I was getting ahead of myself. Thanks