mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Produce correct version string to access the .chm
docs on Windows. Patch 5783 gpolo. Will port.
This commit is contained in:
		
							parent
							
								
									8100bd8431
								
							
						
					
					
						commit
						f13447f3f7
					
				
					 4 changed files with 22 additions and 10 deletions
				
			
		|  | @ -2,9 +2,9 @@ Guido van Rossum, as well as being the creator of the Python language, is the | ||||||
| original creator of IDLE.  Other contributors prior to Version 0.8 include | original creator of IDLE.  Other contributors prior to Version 0.8 include | ||||||
| Mark Hammond, Jeremy Hylton, Tim Peters, and Moshe Zadka. | Mark Hammond, Jeremy Hylton, Tim Peters, and Moshe Zadka. | ||||||
| 
 | 
 | ||||||
| IDLE's recent development has been carried out in the IDLEfork project. | IDLE's recent development was carried out in the SF IDLEfork project. The | ||||||
| The objective was to develop a version of IDLE which had an execution | objective was to develop a version of IDLE which had an execution environment | ||||||
| environment which could be initialized prior to each run of user code. | which could be initialized prior to each run of user code. | ||||||
| 
 | 
 | ||||||
| The IDLEfork project was initiated by David Scherer, with some help from Peter | The IDLEfork project was initiated by David Scherer, with some help from Peter | ||||||
| Schneider-Kamp and Nicholas Riley.  David wrote the first version of the RPC | Schneider-Kamp and Nicholas Riley.  David wrote the first version of the RPC | ||||||
|  | @ -12,7 +12,7 @@ code and designed a fast turn-around environment for VPython.  Guido developed | ||||||
| the RPC code and Remote Debugger currently integrated in IDLE.  Bruce Sherwood | the RPC code and Remote Debugger currently integrated in IDLE.  Bruce Sherwood | ||||||
| contributed considerable time testing and suggesting improvements. | contributed considerable time testing and suggesting improvements. | ||||||
| 
 | 
 | ||||||
| Besides David and Guido, the main developers who have been active on IDLEfork | Besides David and Guido, the main developers who were active on IDLEfork | ||||||
| are Stephen M. Gava, who implemented the configuration GUI, the new | are Stephen M. Gava, who implemented the configuration GUI, the new | ||||||
| configuration system, and the About dialog, and Kurt B. Kaiser, who completed | configuration system, and the About dialog, and Kurt B. Kaiser, who completed | ||||||
| the integration of the RPC and remote debugger, implemented the threaded | the integration of the RPC and remote debugger, implemented the threaded | ||||||
|  | @ -24,8 +24,9 @@ Noam Raphael (Code Context, Call Tips, many other patches), and Chui Tey (RPC | ||||||
| integration, debugger integration and persistent breakpoints). | integration, debugger integration and persistent breakpoints). | ||||||
| 
 | 
 | ||||||
| Scott David Daniels, Tal Einat, Hernan Foffani, Christos Georgiou, | Scott David Daniels, Tal Einat, Hernan Foffani, Christos Georgiou, | ||||||
| Jim Jewett, Martin v. Löwis, Jason Orendorff, Josh Robb, Nigel Rowe, | Jim Jewett, Martin v. Löwis, Jason Orendorff, Guilherme Polo, Josh Robb, | ||||||
| Bruce Sherwood, and Jeff Shute have submitted useful patches.  Thanks, guys! | Nigel Rowe, Bruce Sherwood, Jeff Shute, and Weeble have submitted useful | ||||||
|  | patches.  Thanks, guys! | ||||||
| 
 | 
 | ||||||
| For additional details refer to NEWS.txt and Changelog. | For additional details refer to NEWS.txt and Changelog. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -22,6 +22,16 @@ | ||||||
| # The default tab setting for a Text widget, in average-width characters. | # The default tab setting for a Text widget, in average-width characters. | ||||||
| TK_TABWIDTH_DEFAULT = 8 | TK_TABWIDTH_DEFAULT = 8 | ||||||
| 
 | 
 | ||||||
|  | def _sphinx_version(): | ||||||
|  |     "Format sys.version_info to produce the Sphinx version string used to install the chm docs" | ||||||
|  |     major, minor, micro, level, serial = sys.version_info | ||||||
|  |     release = '%s%s' % (major, minor) | ||||||
|  |     if micro: | ||||||
|  |         release += '%s' % micro | ||||||
|  |     if level != 'final': | ||||||
|  |         release += '%s%s' % (level[0], serial) | ||||||
|  |     return release | ||||||
|  | 
 | ||||||
| def _find_module(fullname, path=None): | def _find_module(fullname, path=None): | ||||||
|     """Version of imp.find_module() that handles hierarchical module names""" |     """Version of imp.find_module() that handles hierarchical module names""" | ||||||
| 
 | 
 | ||||||
|  | @ -64,15 +74,13 @@ def __init__(self, flist=None, filename=None, key=None, root=None): | ||||||
|                                            'Doc', 'index.html') |                                            'Doc', 'index.html') | ||||||
|             elif sys.platform[:3] == 'win': |             elif sys.platform[:3] == 'win': | ||||||
|                 chmfile = os.path.join(sys.prefix, 'Doc', |                 chmfile = os.path.join(sys.prefix, 'Doc', | ||||||
|                                        'Python%d%d.chm' % sys.version_info[:2]) |                                        'Python%s.chm' % _sphinx_version()) | ||||||
|                 if os.path.isfile(chmfile): |                 if os.path.isfile(chmfile): | ||||||
|                     dochome = chmfile |                     dochome = chmfile | ||||||
| 
 |  | ||||||
|             elif macosxSupport.runningAsOSXApp(): |             elif macosxSupport.runningAsOSXApp(): | ||||||
|                 # documentation is stored inside the python framework |                 # documentation is stored inside the python framework | ||||||
|                 dochome = os.path.join(sys.prefix, |                 dochome = os.path.join(sys.prefix, | ||||||
|                         'Resources/English.lproj/Documentation/index.html') |                         'Resources/English.lproj/Documentation/index.html') | ||||||
| 
 |  | ||||||
|             dochome = os.path.normpath(dochome) |             dochome = os.path.normpath(dochome) | ||||||
|             if os.path.isfile(dochome): |             if os.path.isfile(dochome): | ||||||
|                 EditorWindow.help_url = dochome |                 EditorWindow.help_url = dochome | ||||||
|  |  | ||||||
|  | @ -3,6 +3,9 @@ What's New in IDLE 2.7a0? | ||||||
| 
 | 
 | ||||||
| *Release date: XX-XXX-2009* | *Release date: XX-XXX-2009* | ||||||
| 
 | 
 | ||||||
|  | - Windows: Version string for the .chm help file changed, file not being | ||||||
|  |   accessed  Patch 5783 Guilherme Polo | ||||||
|  | 
 | ||||||
| - Allow multiple IDLE GUI/subprocess pairs to exist simultaneously. Thanks to | - Allow multiple IDLE GUI/subprocess pairs to exist simultaneously. Thanks to | ||||||
|   David Scherer for suggesting the use of an ephemeral port for the GUI. |   David Scherer for suggesting the use of an ephemeral port for the GUI. | ||||||
|   Patch 1529142 Weeble. |   Patch 1529142 Weeble. | ||||||
|  |  | ||||||
|  | @ -1 +1 @@ | ||||||
| IDLE_VERSION = "2.6" | IDLE_VERSION = "2.7a0" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kurt B. Kaiser
						Kurt B. Kaiser