Rev | Line | |
---|
[953] | 1 | #!/usr/bin/env python
|
---|
| 2 | # -*- coding: utf-8 -*-
|
---|
| 3 | #
|
---|
| 4 | import copy
|
---|
| 5 |
|
---|
| 6 | import logging
|
---|
| 7 | logging.basicConfig(level=logging.DEBUG,
|
---|
| 8 | format='%(asctime)s %(levelname)s \t (%(module)s:%(lineno)d) %(message)s ')
|
---|
| 9 | #filename='vanHelsing.log',
|
---|
| 10 | #filemode='w')<
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | from auto_configrules import *
|
---|
| 14 | from auto_types import *
|
---|
| 15 | from config_classes import *
|
---|
| 16 |
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | def show_ids(itemlist):
|
---|
| 23 | for item in itemlist:
|
---|
| 24 | print id(item)
|
---|
| 25 |
|
---|
| 26 | diritems = dird_job_items
|
---|
| 27 |
|
---|
| 28 | diritem_shallowcopy = copy.copy(diritems)
|
---|
| 29 | diritem_deepcopy = copy.deepcopy(diritems)
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | print diritems
|
---|
| 34 | print diritem_shallowcopy
|
---|
| 35 | print diritem_deepcopy
|
---|
| 36 |
|
---|
| 37 | #show_ids(diritems)
|
---|
| 38 | #show_ids(diritem_shallowcopy)
|
---|
| 39 | #show_ids(diritem_deepcopy)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.