diff --git a/lib/pysynphot/spectrum.py b/lib/pysynphot/spectrum.py
index <HASH>..<HASH> 100644
--- a/lib/pysynphot/spectrum.py
+++ b/lib/pysynphot/spectrum.py
@@ -518,6 +518,12 @@ class CompositeSourceSpectrum(SourceSpectrum):
         if self.operation == 'multiply':
             return self.component1(wavelength) * self.component2(wavelength)
 
+    def __iter__(self):
+        """ Allow iteration over each component. """
+
+        complist = self.complist()
+        return complist.__iter__()
+    
     def complist(self):
         ans=[]
         for comp in (self.component1, self.component2):
Add an iterator to CompositeSourceSpectrum, for the use of callers that want to inspect its pieces

git-svn-id: <URL>