python / cpython

The Python programming language
https://www.python.org
Other
62.35k stars 29.94k forks source link

missing names in telnetlib.py #37346

Closed 8726d1eb-a365-45b6-b81d-c75988975e5a closed 21 years ago

8726d1eb-a365-45b6-b81d-c75988975e5a commented 21 years ago
BPO 625823
Nosy @loewis
Files
  • telnetlib.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = None closed_at = created_at = labels = ['type-feature', 'library'] title = 'missing names in telnetlib.py' updated_at = user = 'https://bugs.python.org/exarkun' ``` bugs.python.org fields: ```python activity = actor = 'loewis' assignee = 'none' closed = True closed_date = None closer = None components = ['Library (Lib)'] creation = creator = 'exarkun' dependencies = [] files = ['643'] hgrepos = [] issue_num = 625823 keywords = [] message_count = 4.0 messages = ['12871', '12872', '12873', '12874'] nosy_count = 2.0 nosy_names = ['loewis', 'exarkun'] pr_nums = [] priority = 'normal' resolution = 'accepted' stage = None status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue625823' versions = [] ```

    8726d1eb-a365-45b6-b81d-c75988975e5a commented 21 years ago

    The telnet RFC (854 -- http://www.faqs.org/rfcs/rfc854.html) details eleven constants for the telnet protocol that are not included in the telnetlib module. The attached patch adds them.

    61337411-43fc-4a9c-b8d5-4060aede66d0 commented 21 years ago

    Logged In: YES user_id=21627

    How did you come up with the symbolic names for these constants?

    8726d1eb-a365-45b6-b81d-c75988975e5a commented 21 years ago

    Logged In: YES user_id=366566

    I used the abbreviations the RFC uses. For example, from the RFC:

       Abort Output (AO)                                   
    
          Allow the current process to (appear to) run to

    completion, but do not send its output to the user. Also, send a Synch to the user.

    and

       Erase Line          248    The function EL.         
    61337411-43fc-4a9c-b8d5-4060aede66d0 commented 21 years ago

    Logged In: YES user_id=21627

    Thanks for the elaboration. I have applied this patch as telnetlib.py 1.21, libtelnetlib.tex 1.11.