Skip to content

Commit

Permalink
Hacked my way out of using new module.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Nov 27, 1997
1 parent 573afba commit 7d56d56
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions DT_Util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'''$Id: DT_Util.py,v 1.19 1997/11/25 15:26:34 jim Exp $'''
'''$Id: DT_Util.py,v 1.20 1997/11/27 00:10:50 jim Exp $'''

############################################################################
# Copyright
Expand Down Expand Up @@ -52,7 +52,7 @@
# (540) 371-6909
#
############################################################################
__version__='$Revision: 1.19 $'[11:-2]
__version__='$Revision: 1.20 $'[11:-2]

import sys, regex, string, types, math, os
from string import rfind, strip, joinfields, atoi,lower,upper,capitalize
Expand Down Expand Up @@ -118,8 +118,11 @@ def careful_getslice(md, seq, *indexes):

return v

import new, string, math
expr_globals=new.module('_')
import string, math

class expr_globals: pass
expr_globals=expr_globals()

d=expr_globals.__dict__
for name in ('None', 'abs', 'chr', 'divmod', 'float', 'hash', 'hex', 'int',
'len', 'max', 'min', 'oct', 'ord', 'pow', 'round', 'str'):
Expand Down Expand Up @@ -299,6 +302,9 @@ def parse_params(text,

############################################################################
# $Log: DT_Util.py,v $
# Revision 1.20 1997/11/27 00:10:50 jim
# Hacked my way out of using new module.
#
# Revision 1.19 1997/11/25 15:26:34 jim
# Added test to expr documentation.
#
Expand Down

0 comments on commit 7d56d56

Please sign in to comment.