1. Sébastien Martinez
  2. pymoult

Commits

Sébastien Martinez  committed 2130c05

Updating the files Licenses and description headers

Removing the trace in resume_thread for it can cause errors
when the thread is paused while executing a sleep statement

  • Participants
  • Parent commits 0fd895e
  • Branches enhanced_pypy

Comments (0)

Files changed (12)

File pymoult/collector.py

View file
 """pymoult.collector.py
    Published under the GPLv2 license (see LICENSE.txt)
 
-	This module supplies the ObjectPool, used for 
-	eager object conversions
+	This module supplies the ObjectsPool, and a hook adding a weak reference
+	to every created object in the ObjectsPool.
 
 """
 

File pymoult/common/high_level.py

View file
+#    high_level.py This file is part of Pymoult
+#    Copyright (C) 2013 Sébastien Martinez, Fabien Dagnat, Jérémy Buisson
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+"""pymoult.common.high_level.py
+   Published under the GPLv2 license (see LICENSE.txt)
+
+	This modules supplies high level functions for general purpose.
+"""
 
 import threading
 import sys
 def resume_thread(thread):
 	if hasattr(thread,"pause_event"):
 		thread.pause_event.set()
+		set_trace_for_thread(thread,None)
 		delattr(thread,"pause_event")
 			
 

File pymoult/common/low_level.py

View file
+#    low_level.py This file is part of Pymoult
+#    Copyright (C) 2013 Sébastien Martinez, Fabien Dagnat, Jérémy Buisson
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+"""pymoult.common.low_level.py
+   Published under the GPLv2 license (see LICENSE.txt)
 
+	This modules supplies low level functions for general purpose
+"""
 
 import sys
 
 def set_trace_for_thread(thread,trace):
 	sys.settrace_for_thread(thread.ident,trace,True)
 
+def get_current_frame_for_thread(thread):
+	return sys._current_frames_2()[thread.ident]
 
+def get_all_current_frames():
+	return sys._current_frames_2()
 
 
 
 
+

File pymoult/controller.py

View file
-#    listener.py This file is part of Pymoult
+#    controller.py This file is part of Pymoult
 #    Copyright (C) 2013 Sébastien Martinez, Fabien Dagnat, Jérémy Buisson
 #
 #    This program is free software; you can redistribute it and/or modify
 #    with this program; if not, write to the Free Software Foundation, Inc.,
 #    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
-"""pymoult.listener.py
+"""pymoult.controller.py
    Published under the GPLv2 license (see LICENSE.txt)
 
-	This module supplies the Listener class and sets global values 
+	This module supplies the Controller class and sets global values 
 	about the socket server
 """
 

File pymoult/heap/generators.py

View file
 #
 """pymoult.heap.generators.py
    Published under the GPLv2 license (see LICENSE.txt)
+	
+	this modules offeres prebuilt Update objects for common DSU techniques manipulating the heap
 """
 
 from pymoult.heap.low_level import *

File pymoult/heap/high_level.py

View file
-#    tools.py This file is part of Pymoult
+#    high_level.py This file is part of Pymoult
 #    Copyright (C) 2013 Sébastien Martinez, Fabien Dagnat, Jérémy Buisson
 #
 #    This program is free software; you can redistribute it and/or modify

File pymoult/heap/low_level.py

View file
-#    utils.py This file is part of Pymoult
+#    low_level.py This file is part of Pymoult
 #    Copyright (C) 2013 Sébastien Martinez, Fabien Dagnat, Jérémy Buisson
 #
 #    This program is free software; you can redistribute it and/or modify

File pymoult/stack/generators.py

View file
 #
 """pymoult.stack.generators.py
    Published under the GPLv2 license (see LICENSE.txt)
+
+	this modules offeres prebuilt Update objects for common DSU techniques manipulating the stack
+
 """
 
 from pymoult.stack.low_level import *

File pymoult/stack/high_level.py

View file
-#    tools.py This file is part of Pymoult
+#    high_level.py This file is part of Pymoult
 #    Copyright (C) 2013 Sébastien Martinez, Fabien Dagnat, Jérémy Buisson
 #
 #    This program is free software; you can redistribute it and/or modify

File pymoult/stack/low_level.py

View file
-#    utils.py This file is part of Pymoult
+#    low_level.py This file is part of Pymoult
 #    Copyright (C) 2013 Sébastien Martinez, Fabien Dagnat, Jérémy Buisson
 #
 #    This program is free software; you can redistribute it and/or modify

File pymoult/threads.py

View file
 """pymoult.controllers.py
    Published under the GPLv2 license (see LICENSE.txt)
 
-   This module provides the controlled threads and high level
-   functions initiating, configuring and starting them.
+   This module provides the DSU_Thread class and function handling active updates
 """
 
 import threading

File pymoult/updates.py

View file
 
 """pymoult.updates.py
    Published under the GPLv2 license (see LICENSE.txt)
+	
+	this module provides the Update class reifying update units and
+	the Element,Element_List and Element_Dict class handling global references
+	to objects
 
-   This module provides the controlled threads and high level
-   functions initiating, configuring and starting them.
 """
 
 from pymoult.common.high_level import *