Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
methods for open files
#3
Something like that:
In [1]: with open('39768.txt', 'r') as f:
    ...:     for method in dir(f):
    ...:         print(method, '\n'*2, method.__doc__, '\n'*2, '#'*40, '\n')
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
methods for open files - by Skaperen - Jan-05-2018, 03:19 AM
RE: methods for open files - by Gribouillis - Jan-05-2018, 06:34 AM
RE: methods for open files - by wavic - Jan-05-2018, 10:23 AM
RE: methods for open files - by Skaperen - Jan-06-2018, 05:22 AM
RE: methods for open files - by Gribouillis - Jan-06-2018, 07:14 AM
RE: methods for open files - by Skaperen - Jan-08-2018, 02:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Right way to open files with different encodings? Winfried 2 417 Apr-23-2024, 05:50 PM
Last Post: snippsat
  Open files in an existing window instead of new Kostov 2 484 Apr-13-2024, 07:22 AM
Last Post: Kostov
  Class test : good way to split methods into several files paul18fr 4 642 Jan-30-2024, 11:46 AM
Last Post: Pedroski55
  open python files in other drive akbarza 1 820 Aug-24-2023, 01:23 PM
Last Post: deanhystad
  How to open/load image .tiff files > 2 GB ? hobbyist 1 2,577 Aug-19-2021, 12:50 AM
Last Post: Larz60+
  Open and read multiple text files and match words kozaizsvemira 3 6,899 Jul-07-2021, 11:27 AM
Last Post: Larz60+
Question (solved) open multiple libre office files in libre office lucky67 5 3,546 May-29-2021, 04:54 PM
Last Post: lucky67
  Can't open files Lass86 5 2,610 Nov-10-2020, 07:18 PM
Last Post: jefsummers
  Using Python to loop csv files to open them Secret 4 2,879 Sep-13-2020, 11:30 AM
Last Post: Askic
  Find specific subdir, open files and find specific lines that are missing from a file tester_V 8 3,838 Aug-25-2020, 01:52 AM
Last Post: tester_V

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020