line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Python::Serialize::Pickle::InlinePython::Functions; |
2
|
1
|
|
|
1
|
|
836
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
6
|
use base 'Exporter'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
161
|
|
5
|
|
|
|
|
|
|
our @EXPORT = qw/Dump Load DumpFile LoadFile/; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
1635
|
use Inline Python => <<'...'; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
from pickle import dumps, loads |
9
|
|
|
|
|
|
|
import pickle |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
def _LoadFile(fname): |
12
|
|
|
|
|
|
|
return pickle.load(open(fname, 'rb')) |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
def _DumpFile(fname, obj): |
15
|
|
|
|
|
|
|
return pickle.dump(obj, open(fname, 'wb')) |
16
|
|
|
|
|
|
|
... |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub LoadFile { scalar _LoadFile(@_) } |
19
|
|
|
|
|
|
|
sub Load { scalar loads(@_) } |
20
|
|
|
|
|
|
|
sub Dump { dumps(@_) } |
21
|
|
|
|
|
|
|
sub DumpFile { _DumpFile(@_) } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
__END__ |