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 tr
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
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/l
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
statu
Marty Alchin 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
for the san
New submission from Marty Alchin :
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 to is
that using `type()`