mirror of
https://github.com/python/cpython.git
synced 2026-01-07 16:02:55 +00:00
Add note about ftplib defaulting to passive mode.
This commit is contained in:
parent
e6ccf3ab96
commit
da91f227ec
1 changed files with 7 additions and 0 deletions
|
|
@ -97,6 +97,13 @@ Core language, builtins, and interpreter
|
|||
|
||||
Standard library
|
||||
|
||||
- The ftplib module now defaults to passive mode, which is deemed a
|
||||
more useful default given that clients are often inside firewalls
|
||||
these days. Note that this could break if ftplib is used to connect
|
||||
to a *server* that is inside a firewall, from outside; this is
|
||||
expected to be a very rare situation. To fix that, you can call
|
||||
ftp.set_pasv(0).
|
||||
|
||||
- The module site now treats .pth files not only for path configuration,
|
||||
but also supports extensions to the initialization code: Lines starting
|
||||
with import are executed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue