Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ __init__
Method
__init__
recipes/Python/205451_Povray_for_python/recipe-205451.py:4–7 ·
view source on GitHub ↗
(self,fnam="out.pov",*items)
Source
from the content-addressed store, hash-verified
2
3
class
File:
4
def
__init__(self,fnam=
"out.pov"
,*items):
5
self.file = open(fnam,
"w"
)
6
self.__indent = 0
7
self.write(*items)
8
def
include(self,name):
9
self.writeln(
'#include "%s"'
%name )
10
self.writeln()
Callers
nothing calls this directly
Calls
2
write
Method · 0.95
open
Function · 0.50
Tested by
no test coverage detected