Python Forum
zip file variable prints <zipfile.ZipFile object at 0x7f83fd13bd90> ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
zip file variable prints <zipfile.ZipFile object at 0x7f83fd13bd90> ?
#1
Below are few lines on zip log file python script.
Getting output file name as different shown below,

zip_file_name = zipfile.ZipFile(server1 + '/' + log_file_name + ".zip", "w")
        
zip_file_name.write(server1, compress_type = zipfile.ZIP_DEFLATED)
print zip_file_name
output
Output:
<zipfile.ZipFile object at 0x7f83fd13bd90>
why its shows zip file name as mentioned above ? However am seeing log file got zipped !
Reply


Messages In This Thread
zip file variable prints <zipfile.ZipFile object at 0x7f83fd13bd90> ? - by Rsh - Jun-24-2019, 05:32 PM
RE: zip file issue - by heiner55 - Jun-25-2019, 05:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using zipfile module - finding folders not files darter1010 2 258 Apr-06-2024, 07:22 AM
Last Post: Pedroski55
  zipfile module error pseudo 3 761 Jun-30-2023, 03:52 PM
Last Post: Gribouillis
  zfill prints extra et the end of a var tester_V 4 899 Mar-24-2023, 06:59 PM
Last Post: tester_V
  [Solved by deanhystad] Create a zip file using zipfile library DZ_Galaxy 2 1,154 Aug-17-2022, 04:57 PM
Last Post: DZ_Galaxy
  Can ZipFile be used to extract hidden files? AiedailEclipsed 0 1,619 Mar-22-2022, 05:21 PM
Last Post: AiedailEclipsed
  variable prints without being declared. ClockPillow 2 1,808 Jul-11-2021, 12:13 AM
Last Post: ClockPillow
  Created zipfile without all the subfolder? korenron 3 3,740 Jun-23-2021, 12:44 PM
Last Post: korenron
  Create ZIP file not working using ZipFile? korenron 1 2,101 Jun-13-2021, 04:15 PM
Last Post: korenron
  Output prints Account.id at the end? LastStopDEVS 5 2,765 Dec-19-2020, 05:59 AM
Last Post: buran
  Defining an object's argument whose name is stored in a variable arbiel 2 2,174 Dec-11-2020, 10:19 PM
Last Post: arbiel

Forum Jump:

User Panel Messages

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