Changes between Version 18 and Version 19 of Wisdom/Python
- Timestamp:
- 03/12/13 11:00:38 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Wisdom/Python
v18 v19 67 67 Note that unlike IDL, Python's instantiation of lists and arrays is by reference rather than by value. For people who have used IDL for many moons, this may cause headaches. The workarounds are worth taking some time to consider carefully: [http://stackoverflow.com/questions/8744113/python-list-by-value-not-by-reference read this for more]. 68 68 69 Another difference between IDL and Python, in the interactive mode, is that once you load a package or a module it stays loaded in the form you first indicated even if you say 70 71 > > > import <blah> 72 73 all over again. This is unlike in IDL where if you say 74 75 > > >.run <blah> 76 77 it will reload all of your programming along with any changes you made. 78 79 To "reload" a package in interactive Python you, somewhat unsurprisingly, use: 80 81 > > > reload(<blah>) 82 69 83 70 84 === Astropy ===
