The attached python test script produces interesting results.
When run on our UNIX systems of different flavors, it reports
string lines = 1004
marshaled lines = 1004
On our Windows platforms, we get
string lines = 1004
marshaled lines = 188
This has been run against Python 2.3.3 and 2.3.4 as well as Perforce
2002.2 and 2004.2
Any input is appreciated,
Jeff Smith
import os
import marshal
slines = list()
for line in os.popen('p4 labels'):
slines.append(line)
mstream = os.popen('p4 -G labels')
mlines = list()
while 1:
try:
item = marshal.load(mstream)
mlines.append(item)
except EOFError:
break
print 'string lines = ' + str(len(slines))
print 'marshaled lines = ' + str(len(mlines))