Difference between revisions of "From (Python)"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 13: Line 13:
 
  #Not recommended according to https://stackoverflow.com/a/710603
 
  #Not recommended according to https://stackoverflow.com/a/710603
  
  from os import open as open_
+
  from [[os]] import open as open_
 
  # lets you use os.open without destroying the  
 
  # lets you use os.open without destroying the  
 
  # built in open() which returns [[file handles]].
 
  # built in open() which returns [[file handles]].

Revision as of 11:13, 25 May 2022

Advertising: