This is the multi-page printable view of this section. Click here to print.
Python3 (TL119A)
- 1: Python3_Review
- 2: help
- 3: sgml_input
- 4: test_difflib_expect
1 - Python3_Review
Overview
Summary SheetSynergy Project
help
Version History
Sheet 1: Summary Sheet
| Rev 2.01 | 21-Feb-18 | |||||||||||||||||||||||||||||
| Nexteer EA4 SWC Implementation Peer Review Summary Sheet | ||||||||||||||||||||||||||||||
| Component Short Name: | Python3 | Revision / Baseline: | TL119A_Python3_3.6.4_0 | |||||||||||||||||||||||||||
| Change Owner: | Kevin Smith | Work CR ID: | EA4#20630 | |||||||||||||||||||||||||||
| Modified File Types: | ||||||||||||||||||||||||||||||
| Check the file types that needed modification for the Work CR(s); macros for the check boxes will populate the appropriate checklist tabs for the review. | ||||||||||||||||||||||||||||||
| Review Checklist Summary: | ||||||||||||||||||||||||||||||
| Reviewed: | ||||||||||||||||||||||||||||||
| At start of review, all items below should be marked "No". At the end of the review, all items should be marked "Yes" or "N/A" where N/A indicates the reviewers have reviewed the existing (unchanged) item and confirmed no updates were needed for the Work CR(s). | ||||||||||||||||||||||||||||||
| N/A | MDD | N/A | Source Code | N/A | PolySpace | |||||||||||||||||||||||||
| N/A | Integration Manual | N/A | Davinci Files | |||||||||||||||||||||||||||
| All required reviewers participated | ||||||||||||||||||||||||||||||
| Comments: | Python is a 3rd party application.Review was to ensure all files needed were accounted for. | |||||||||||||||||||||||||||||
| Time spent ( to the nearest half hour) | review preparation | review meeting | review follow-up | |||||||||||||||||||||||||||
| Change owner: | 0.5 | 0.5 | 0 | |||||||||||||||||||||||||||
| Component developer reviewers: | 0 | 0 | 0 | 1 | ||||||||||||||||||||||||||
| Other reviewers: | 0 | 0 | 0 | |||||||||||||||||||||||||||
| Total hours | 0.5 | 0.5 | 0 | 1 | ||||||||||||||||||||||||||
| Content reviewed | ||||||||||||||||||||||||||||||
| Lines of code: | Elements of .arxml content: | Pages of documentation: | ||||||||||||||||||||||||||||
| General Guidelines: - The reviews shall be performed over the portions of the component that were modified as a result of the Change Request. - New components should include SWC Owner and/or SWC Design author and Integrator and/or SW Lead as apart of the Group Review Board (Source Code, Integration Manual, and Davinci Files) - Enter any rework required into the comment field and select No. When the rework is complete, review again using this same review sheet and select Yes. Add date and additional comment stating that the rework is completed. - To review a component with multiple source code files use the "Add Source" button to create a Source code tab for each source file. - .h file should be reviewed with the source file as part of the source file. Each peer review shall start with a clean copy of the latest peer review checklist template. Save in the doc folder of the component implementation, with the file name in the format SWCShortName_Review.xlsx. If the existing review in Synergy has a different name, the name must be changed IN SYNERGY (rather than by syncing in a new file with the new name) so that the file history will be properly maintained. Before the peer review, the change owner shall: (NOTE - time for completing these items is to be counted as the Change Owner Review Prep Time) o Review the previous component peer review and copy any relevant comments to the new review sheet. o Review all checklist items and make all corrections needed, so that the component is ready for peer review. The expectation is that peer review should find very few issues, because the change owner has already used the checklist to ensure the component changes are complete and correct. o Fill in all file name and version information as needed on peer review checklist tabs (file names may be copied from the previous peer review where appropriate) o Fill in checklist answers (Yes/No/NA pulldowns) ONLY on those items which are NA for the current change. All other checklist items should be blank going into the review meeting. During the peer review meeting: o For each page of the review, first review the items already marked as N/A for this change, to confirm that reviewers agree with this assessment; change the checklist box to blank if it is found that the item does apply. o Then review the items with the checklist box blank. After reviewing each of these items, the checklist box will be marked as "Yes", or the checklist box will be marked as "No" with needed rework indicated or with rationale indicated. o If any items are marked "No" with rationale indicated, this must be approved by a software supervisor or the software manager; there is a line in the "Review Board" section of each tab to indicate who approved the "No" items on that tab. | ||||||||||||||||||||||||||||||
 
 
 
 

Sheet 2: Synergy Project
| Rev 2.01 | 21-Feb-18 | |||||||||||||||||||||||
| Peer Review Meeting Log (Component Synergy Project Review) | ||||||||||||||||||||||||
| Quality Check Items: | ||||||||||||||||||||||||
| Rationale is required for all answers of No | ||||||||||||||||||||||||
| New baseline version name from Summary Sheet follows | Yes | Comments: | ||||||||||||||||||||||
| naming convention | ||||||||||||||||||||||||
| Project contains necessary subprojects | Yes | Comments: | No additioanl subprojects were needed | |||||||||||||||||||||
| Project contains the correct version of subprojects | N/A | Comments: | No additional subprojects required | |||||||||||||||||||||
| Design subproject is correct version | N/A | Comments: | Not required for tool component | |||||||||||||||||||||
| .gpj file in tools folder matches .gpj generated by TL109 script | N/A | Comments: | Not required for tool component | |||||||||||||||||||||
| File/folder structure is correct per documentation in | N/A | Comments: | Not required for tool component | |||||||||||||||||||||
| TL109A_SwcSuprt | ||||||||||||||||||||||||
| General Notes / Comments: | ||||||||||||||||||||||||
| Python is a 3rd party component. Files were taken exactly as received. | ||||||||||||||||||||||||
| Review Board: | ||||||||||||||||||||||||
| Change Owner: | Kevin Smith | Review Date : | 03/15/18 | |||||||||||||||||||||
| Lead Peer Reviewer: | Shameel M. | Approved by Reviewer(s): | Yes | |||||||||||||||||||||
| Other Reviewer(s): | ||||||||||||||||||||||||
| Rationale/justification for items marked "No" approved by: | ||||||||||||||||||||||||
Sheet 3: help
| Summary sheet: | |||||||||||||||
| Intended Use: Identify which component is being reviewed. This should match the component short name from the DataDict.m fileand the middle part of the Synergy project name, e.g. Assi for the SF001A_Assi_Impl Synergy project | |||||||||||||||
| Intended Use: Identify the implementation baseline name intended to be used for the changed component when changes are approved E.g. SF001A_Assi_Impl_1.2.0 | |||||||||||||||
| Intended Use: Identify the developer who made the change(s) being reviewed | |||||||||||||||
| Intended Use: Identify the Implementation Work CR whose work is being reviewed (may be more than one) | |||||||||||||||
| Intended Use: Intended to identify at a high level to the reviewers which areas of the component have been changed. | |||||||||||||||
| Source code: | |||||||||||||||
| This item includes looking at all layers of Simulink model for possible color coding not reflected at a higher level, and includes looking at any intermediate SWC Design versions between the version being implemented and the version that was included as a subproject in the previous implementation. | |||||||||||||||
| Intended Use: Synergy version number of the file being reviewed. (Version number that Synergy displays on the checked out or unmodified file in the working project) | |||||||||||||||
| Intended Use: Synergy version number of the file being reviewed. (Version number that Synergy displays on the checked out or unmodified file in the working project) | |||||||||||||||
| Intended Use: Synergy version number of the file being reviewed. (Version number that Synergy displays on the checked out or unmodified file in the working project) | |||||||||||||||
| Intended Use: For SWC Designs, list the Synergy baseline number (just the number part of the Synergy baseline name) of the SWC Design baseline being implemented. E.g., for SF001A_Assi_Design_1.3.1, this field would say "1.3.1" | |||||||||||||||
| Intended Use: Indicate that the the versioning was confirmed by the peer reviewer(s). | |||||||||||||||
| Intended Use: To confirm no compiler errors or warnings exist for the code under review (warnings from contract header files may be ignored). | |||||||||||||||
| Intended Use: list version/revision of latest released Software Design and Coding Standards document. | |||||||||||||||
| Davinci Files | |||||||||||||||
| Intended Use: Identify if previous version was compared and only the expected change(s) was present. This is for text files only, not binary or GUIs | |||||||||||||||
| Polyspace | |||||||||||||||
| eg. 2013b | |||||||||||||||
| Integration manual | |||||||||||||||
| Intended Use: Identify which file is being reviewed | |||||||||||||||
| Intended Use: Identify which version of the integration manual has been reviewed. | |||||||||||||||
| Synergy | |||||||||||||||
| Refer to EA4 Common Naming Conventions document, section “Synergy Baseline Names for core components” | |||||||||||||||
| The following subprojects should be included for all component implementations: • AR200A_ArSuprt_Impl • AR201A_ArCplrSuprt_Impl • TL101A_CptRteGen • TL103A_CplrSuprt • TL109A_SwcSuprt • Corresponding _Design project used for the implementation The following subprojects should be included as needed by each component: • AR10xx_Nxtr*_Impl library components as needed by each component • AR202x_MicroCtrlrSuprt_Impl as needed (for register header files for components making direct register access)[add notes about when to add a stub header file] • Xx999x_xxxxGlbPrm_Impl as needed by each component • TL105A_Artt for components with generated content The following should NOT be included as subprojects: • TL107x_DavinciSuprt (aka StdDef) • TL100A_QACSuprt (QAC subproject was previously included but should be removed going forward) • Any other component (not mentioned anywhere above) whose .h file is needed. For these components, a “stub” .h file should be created, containing only the multiple include protection and the definitions and function prototypes actually needed by the component with the #include, and placed in the “including” component’s local\include folder. | |||||||||||||||
| misc in Summary sheet | |||||||||||||||
| (integrator, designer, unit test coordinator, etc.) | |||||||||||||||
| For a new component, use number of lines in all source files reviewed, including files in the src and include folders and any generated cfg.h and cfg.c files. For a changed component, try to add up how many lines, including comments and blank lines, were in the changed areas that were reviewed. Not just the actual changed lines, but the number of lines in the blocks of code you had to look at to review the change. | |||||||||||||||
| add up the number of ports, number of PIM variables, number if IRVs, number of runnables, number of NVM blocks in the component (all of them for review of a new component, the new and modified ones for review of a change) | |||||||||||||||
| add the number of pages in the MDD and integration manual for a new component; for a modified component, count the number of pages that contained a change. | |||||||||||||||
| Reviewer | Required attendance for this type of change | Review spreadsheet tab(s) | |||||||||||||
| Component group peer | All | All | |||||||||||||
| Component owner and/or SWC Design author | *Initial creation of any new component *Simulink model changes (any change to the model other than just updating the change log) | Source | |||||||||||||
| Integrator and/or SW lead of first program planning to use the component | *Initial creation of any new component *new or changed NVM blocks, NVM datatypes, or NVM usage (added or removed or changed NVM API calls in any runnable) *Major rev (X changed in the X.Y.X design baseline number; means there was a component interface change) *new or changed config params *all MM component changes | Davinci files, Integration manual, source for NVM changes and for all MM component changes. | |||||||||||||
| Unit test coordinator | Fixes for coverage issues | Source | |||||||||||||
| SQA | None | None | |||||||||||||
| For each reviewer category listed on each tab, there should either be • the name of the reviewer who attended or • a comment indicating o why that reviewer was not required for this change or o who approved holding the review without that required reviewer (approval must be from the software manager or a software supervisor) | |||||||||||||||
Sheet 4: Version History
| File Version History | ||||||
| Version | Description | Author(s) | Revision Date | Approved By | Approved Date | Status | 
| Draft/ Released | ||||||
| Template Version History | ||||||
| Version | Description | Author(s) | Revision Date | Approved By | Approved Date | Status | 
| 1.0 | Initial Version | SW Engineering team | 24-May-15 | NA | NA | Released | 
| 1.01 | Changed name to be EA4 specific | SW Engineering team | 25-Jun-15 | NA | NA | Released | 
| 1.02 | Modified Summary Sheet General Guidelines, Clarified wording on first item in Synergy project sheet. | SW Engineering team | 30-Jul-15 | NA | NA | Released | 
| 1.02 | Made corrections and clarifications to Source Code check list. | SW Engineering team | 30-Jul-15 | NA | NA | Released | 
| 1.02 | updated Davinci, MDD, and Polyspace/QAC tabs | SW Engineering team | 30-Jul-15 | NA | NA | Released | 
| 1.03 | Aligned to portal version guidelines | Umesh Sambhari | 21-Nov-17 | NA | NA | Released | 
| 2.00 | Summary sheet template: Changed title to indicate Implementation Peer Review Corrected and/or clarified mouse hover comments, added instructions, renamed some fields. Changed the default setting to "No" on the items reviewed | SW Engineering team | 29-Nov-17 | Lonnie Newton, Steven Horwath, Kevin Smith, Lucas Wendling, Vinod Shankar | NA | Released | 
| Source code template: Removed hyperlink for naming conventions, corrected name of naming conventions document, added version field for naming conventions document. Changed item about requirements tags to reflect that they should be removed Added clarification that all combinations of conditionally compiled code must be checked Item about accurately implementing SWC Design is modified and a new item added, both to clarify where to look when determining needed changes. Added point for version of common naming conventions Reworded multiple items for clarity | SW Engineering team | 29-Nov-17 | ||||
| Synergy project template: added items for file/folder structure added point on .gpj file in tools folder | SW Engineering team | 29-Nov-17 | ||||
| Davinci files template: Clarified the StdDef item Added new item for OBSOLETE Clarified item on datadict.m comparison Removed the references to .m file helper tool Updated to reflect that all component should now use only implementation data types Added points on PIMs and NVMs | SW Engineering team | 29-Nov-17 | ||||
| All template tabs: Added/clarified/removed mouse hover comments. Updated Review Board section Removed the gridlines from all tabs Updated titles to say "Nexteer SWC Implementation Peer Review" Changed all occurences of "FDD" to "SWC Design" | SW Engineering team | 29-Nov-17 | ||||
| 2.01 | Added a help tab and appropriate links Added field on Summary sheet to report hours spent and content reviewed Changed wording in an item in Polyspace tab and Source code tab | SW Engineering team | 21-Feb-18 | Lonnie Newton, Steven Horwath, Kevin Smith, Lucas Wendling, Vinod Shankar | 21-Feb-18 | Released | 

2 - help
25.5. IDLE¶
Source code: Lib/idlelib/
IDLE is Python’s Integrated Development and Learning Environment.
IDLE has the following features:
- coded in 100% pure Python, using the tkinterGUI toolkit
- cross-platform: works mostly the same on Windows, Unix, and Mac OS X
- Python shell window (interactive interpreter) with colorizing of code input, output, and error messages
- multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto completion, and other features
- search within any window, replace within editor windows, and search through multiple files (grep)
- debugger with persistent breakpoints, stepping, and viewing of global and local namespaces
- configuration, browsers, and other dialogs
25.5.3. Startup and code execution¶
Upon startup with the -s option, IDLE will execute the file referenced by
the environment variables IDLESTARTUP or PYTHONSTARTUP.
IDLE first checks for IDLESTARTUP; if IDLESTARTUP is present the file
referenced is run. If IDLESTARTUP is not present, IDLE checks for
PYTHONSTARTUP. Files referenced by these environment variables are
convenient places to store functions that are used frequently from the IDLE
shell, or for executing import statements to import common modules.
In addition, Tk also loads a startup file if it is present. Note that the
Tk file is loaded unconditionally. This additional file is .Idle.py and is
looked for in the user’s home directory. Statements in this file will be
executed in the Tk namespace, so this file is not useful for importing
functions to be used from IDLE’s Python shell.
25.5.3.1. Command line usage¶
idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...
-c command  run command in the shell window
-d          enable debugger and open shell window
-e          open editor window
-h          print help message with legal combinations and exit
-i          open shell window
-r file     run file in shell window
-s          run $IDLESTARTUP or $PYTHONSTARTUP first, in shell window
-t title    set title of shell window
-           run stdin in shell (- must be last option before args)
If there are arguments:
- If -,-c, orris used, all arguments are placed insys.argv[1:...]andsys.argv[0]is set to'','-c', or'-r'. No editor window is opened, even if that is the default set in the Options dialog.
- Otherwise, arguments are files opened for editing and
sys.argvreflects the arguments passed to IDLE itself.
25.5.3.2. Startup failure¶
IDLE uses a socket to communicate between the IDLE GUI process and the user
code execution process. A connection must be established whenever the Shell
starts or restarts. (The latter is indicated by a divider line that says
‘RESTART’). If the user process fails to connect to the GUI process, it
displays a Tk error box with a ‘cannot connect’ message that directs the
user here. It then exits.
A common cause of failure is a user-written file with the same name as a standard library module, such as random.py and tkinter.py. When such a file is located in the same directory as a file that is about to be run, IDLE cannot import the stdlib file. The current fix is to rename the user file.
Though less common than in the past, an antivirus or firewall program may stop the connection. If the program cannot be taught to allow the connection, then it must be turned off for IDLE to work. It is safe to allow this internal connection because no data is visible on external ports. A similar problem is a network mis-configuration that blocks connections.
Python installation issues occasionally stop IDLE: multiple versions can clash, or a single installation might need admin access. If one undo the clash, or cannot or does not want to run as admin, it might be easiest to completely remove Python and start over.
A zombie pythonw.exe process could be a problem. On Windows, use Task Manager to detect and stop one. Sometimes a restart initiated by a program crash or Keyboard Interrupt (control-C) may fail to connect. Dismissing the error box or Restart Shell on the Shell menu may fix a temporary problem.
When IDLE first starts, it attempts to read user configuration files in ~/.idlerc/ (~ is one’s home directory). If there is a problem, an error message should be displayed. Leaving aside random disk glitches, this can be prevented by never editing the files by hand, using the configuration dialog, under Options, instead Options. Once it happens, the solution may be to delete one or more of the configuration files.
If IDLE quits with no message, and it was not started from a console, try
starting from a console (python -m idlelib) and see if a message appears.
25.5.3.3. IDLE-console differences¶
With rare exceptions, the result of executing Python code with IDLE is
intended to be the same as executing the same code in a console window.
However, the different interface and operation occasionally affect
visible results. For instance, sys.modules starts with more entries.
IDLE also replaces sys.stdin, sys.stdout, and sys.stderr with
objects that get input from and send output to the Shell window.
When Shell has the focus, it controls the keyboard and screen. This is
normally transparent, but functions that directly access the keyboard
and screen will not work. If sys is reset with importlib.reload(sys),
IDLE’s changes are lost and things like input, raw_input, and
print will not work correctly.
With IDLE’s Shell, one enters, edits, and recalls complete statements.
Some consoles only work with a single physical line at a time. IDLE uses
exec to run each statement. As a result, '__builtins__' is always
defined for each statement.
25.5.3.4. Developing tkinter applications¶
IDLE is intentionally different from standard Python in order to
facilitate development of tkinter programs. Enter import tkinter as tk;
root = tk.Tk() in standard Python and nothing appears. Enter the same
in IDLE and a tk window appears. In standard Python, one must also enter
root.update() to see the window. IDLE does the equivalent in the
background, about 20 times a second, which is about every 50 milleseconds.
Next enter b = tk.Button(root, text='button'); b.pack(). Again,
nothing visibly changes in standard Python until one enters root.update().
Most tkinter programs run root.mainloop(), which usually does not
return until the tk app is destroyed. If the program is run with
python -i or from an IDLE editor, a >>> shell prompt does not
appear until mainloop() returns, at which time there is nothing left
to interact with.
When running a tkinter program from an IDLE editor, one can comment out the mainloop call. One then gets a shell prompt immediately and can interact with the live application. One just has to remember to re-enable the mainloop call when running in standard Python.
25.5.3.5. Running without a subprocess¶
By default, IDLE executes user code in a separate subprocess via a socket, which uses the internal loopback interface. This connection is not externally visible and no data is sent to or received from the Internet. If firewall software complains anyway, you can ignore it.
If the attempt to make the socket connection fails, Idle will notify you. Such failures are sometimes transient, but if persistent, the problem may be either a firewall blocking the connection or misconfiguration of a particular system. Until the problem is fixed, one can run Idle with the -n command line switch.
If IDLE is started with the -n command line switch it will run in a single process and will not create the subprocess which runs the RPC Python execution server. This can be useful if Python cannot create the subprocess or the RPC socket interface on your platform. However, in this mode user code is not isolated from IDLE itself. Also, the environment is not restarted when Run/Run Module (F5) is selected. If your code has been modified, you must reload() the affected modules and re-import any specific items (e.g. from foo import baz) if the changes are to take effect. For these reasons, it is preferable to run IDLE with the default subprocess if at all possible.
Deprecated since version 3.4.
25.5.4. Help and preferences¶
25.5.4.1. Additional help sources¶
IDLE includes a help menu entry called “Python Docs” that will open the extensive sources of help, including tutorials, available at docs.python.org. Selected URLs can be added or removed from the help menu at any time using the Configure IDLE dialog. See the IDLE help option in the help menu of IDLE for more information.
25.5.4.2. Setting preferences¶
The font preferences, highlighting, keys, and general preferences can be changed via Configure IDLE on the Option menu. Keys can be user defined; IDLE ships with four built-in key sets. In addition, a user can create a custom key set in the Configure IDLE dialog under the keys tab.
25.5.4.3. Extensions¶
IDLE contains an extension facility. Preferences for extensions can be changed with the Extensions tab of the preferences dialog. See the beginning of config-extensions.def in the idlelib directory for further information. The only current default extension is zzdummy, an example also used for testing.
3 - sgml_input
| 
 | 
 | 
| Flotas (max. 9) | |||||||
| Num. | Misin | Cantidad | Comienzo | Salida | Objetivo | Llegada | Orden | 
|---|---|---|---|---|---|---|---|
| 1 | Espionaje (F) | 3 | [2:250:6] | Wed Aug 9 18:00:02 | [2:242:5] | Wed Aug 9 18:01:02 | |
| 2 | Espionaje (V) | 3 | [2:250:6] | Wed Aug 9 17:59:55 | [2:242:1] | Wed Aug 9 18:01:55 | |
4 - test_difflib_expect
| from | to | ||||
|---|---|---|---|---|---|
| f | 1 | f | 1 | ||
| n | 2 | 1. Beautiful is beTTer than ugly. | n | 2 | 1. Beautiful is better than ugly. | 
| 3 | 2. Explicit is better than implicit. | ||||
| 4 | 3. Simple is better than complex. | 3 | 3. Simple is better than complex. | ||
| 5 | 4. Complex is better than complicated. | 4 | 4. Complicated is better than complex. | ||
| 5 | 5. Flat is better than nested. | ||||
| 6 | 123 | 6 | 123 | ||
| 7 | 123 | 7 | 123 | ||
| 8 | 123 | 8 | 123 | ||
| 9 | 123 | 9 | 123 | ||
| 10 | 123 | 10 | 123 | ||
| 11 | 123 | 11 | 123 | ||
| 12 | 123 | 12 | 123 | ||
| 13 | 123 | 13 | 123 | ||
| 14 | 123 | 14 | 123 | ||
| 15 | 123 | 15 | 123 | ||
| 16 | 16 | ||||
| n | 17 | 1. Beautiful is beTTer than ugly. | n | 17 | 1. Beautiful is better than ugly. | 
| 18 | 2. Explicit is better than implicit. | ||||
| 19 | 3. Simple is better than complex. | 18 | 3. Simple is better than complex. | ||
| 20 | 4. Complex is better than complicated. | 19 | 4. Complicated is better than complex. | ||
| 20 | 5. Flat is better than nested. | ||||
| 21 | 123 | 21 | 123 | ||
| 22 | 123 | 22 | 123 | ||
| 23 | 123 | 23 | 123 | ||
| 24 | 123 | 24 | 123 | ||
| 25 | 123 | 25 | 123 | ||
| 26 | 123 | 26 | 123 | ||
| 27 | 123 | 27 | 123 | ||
| 28 | 123 | 28 | 123 | ||
| 29 | 123 | 29 | 123 | ||
| 30 | 123 | 30 | 123 | ||
| 31 | 31 | ||||
| t | 32 | 1. Beautiful is beTTer than ugly. | t | 32 | 1. Beautiful is better than ugly. | 
| 33 | 2. Explicit is better than implicit. | ||||
| 34 | 3. Simple is better than complex. | 33 | 3. Simple is better than complex. | ||
| 35 | 4. Complex is better than complicated. | 34 | 4. Complicated is better than complex. | ||
| 35 | 5. Flat is better than nested. | ||||
| 36 | 123 | 36 | 123 | ||
| 37 | 123 | 37 | 123 | ||
| 38 | 123 | 38 | 123 | ||
| 39 | 123 | 39 | 123 | ||
| 40 | 123 | 40 | 123 | ||
| 41 | 123 | 41 | 123 | ||
| 42 | 123 | 42 | 123 | ||
| 43 | 123 | 43 | 123 | ||
| 44 | 123 | 44 | 123 | ||
| 45 | 123 | 45 | 123 | ||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 
 | 
 | |||||||||
Context (first diff within numlines=5(default))
| from | to | ||||
|---|---|---|---|---|---|
| f | 1 | f | 1 | ||
| n | 2 | 1. Beautiful is beTTer than ugly. | n | 2 | 1. Beautiful is better than ugly. | 
| 3 | 2. Explicit is better than implicit. | ||||
| 4 | 3. Simple is better than complex. | 3 | 3. Simple is better than complex. | ||
| 5 | 4. Complex is better than complicated. | 4 | 4. Complicated is better than complex. | ||
| 5 | 5. Flat is better than nested. | ||||
| 6 | 123 | 6 | 123 | ||
| 7 | 123 | 7 | 123 | ||
| 8 | 123 | 8 | 123 | ||
| 9 | 123 | 9 | 123 | ||
| 10 | 123 | 10 | 123 | ||
| 12 | 123 | 12 | 123 | ||
| 13 | 123 | 13 | 123 | ||
| 14 | 123 | 14 | 123 | ||
| 15 | 123 | 15 | 123 | ||
| 16 | 16 | ||||
| n | 17 | 1. Beautiful is beTTer than ugly. | n | 17 | 1. Beautiful is better than ugly. | 
| 18 | 2. Explicit is better than implicit. | ||||
| 19 | 3. Simple is better than complex. | 18 | 3. Simple is better than complex. | ||
| 20 | 4. Complex is better than complicated. | 19 | 4. Complicated is better than complex. | ||
| 20 | 5. Flat is better than nested. | ||||
| 21 | 123 | 21 | 123 | ||
| 22 | 123 | 22 | 123 | ||
| 23 | 123 | 23 | 123 | ||
| 24 | 123 | 24 | 123 | ||
| 25 | 123 | 25 | 123 | ||
| 27 | 123 | 27 | 123 | ||
| 28 | 123 | 28 | 123 | ||
| 29 | 123 | 29 | 123 | ||
| 30 | 123 | 30 | 123 | ||
| 31 | 31 | ||||
| t | 32 | 1. Beautiful is beTTer than ugly. | t | 32 | 1. Beautiful is better than ugly. | 
| 33 | 2. Explicit is better than implicit. | ||||
| 34 | 3. Simple is better than complex. | 33 | 3. Simple is better than complex. | ||
| 35 | 4. Complex is better than complicated. | 34 | 4. Complicated is better than complex. | ||
| 35 | 5. Flat is better than nested. | ||||
| 36 | 123 | 36 | 123 | ||
| 37 | 123 | 37 | 123 | ||
| 38 | 123 | 38 | 123 | ||
| 39 | 123 | 39 | 123 | ||
| 40 | 123 | 40 | 123 | ||
Context (first diff after numlines=5(default))
| from | to | ||||
|---|---|---|---|---|---|
| 7 | 456 | 7 | 456 | ||
| 8 | 456 | 8 | 456 | ||
| 9 | 456 | 9 | 456 | ||
| 10 | 456 | 10 | 456 | ||
| 11 | 11 | ||||
| n | 12 | 1. Beautiful is beTTer than ugly. | n | 12 | 1. Beautiful is better than ugly. | 
| 13 | 2. Explicit is better than implicit. | ||||
| 14 | 3. Simple is better than complex. | 13 | 3. Simple is better than complex. | ||
| 15 | 4. Complex is better than complicated. | 14 | 4. Complicated is better than complex. | ||
| 15 | 5. Flat is better than nested. | ||||
| 16 | 123 | 16 | 123 | ||
| 17 | 123 | 17 | 123 | ||
| 18 | 123 | 18 | 123 | ||
| 19 | 123 | 19 | 123 | ||
| 20 | 123 | 20 | 123 | ||
| 22 | 123 | 22 | 123 | ||
| 23 | 123 | 23 | 123 | ||
| 24 | 123 | 24 | 123 | ||
| 25 | 123 | 25 | 123 | ||
| 26 | 26 | ||||
| n | 27 | 1. Beautiful is beTTer than ugly. | n | 27 | 1. Beautiful is better than ugly. | 
| 28 | 2. Explicit is better than implicit. | ||||
| 29 | 3. Simple is better than complex. | 28 | 3. Simple is better than complex. | ||
| 30 | 4. Complex is better than complicated. | 29 | 4. Complicated is better than complex. | ||
| 30 | 5. Flat is better than nested. | ||||
| 31 | 123 | 31 | 123 | ||
| 32 | 123 | 32 | 123 | ||
| 33 | 123 | 33 | 123 | ||
| 34 | 123 | 34 | 123 | ||
| 35 | 123 | 35 | 123 | ||
| 37 | 123 | 37 | 123 | ||
| 38 | 123 | 38 | 123 | ||
| 39 | 123 | 39 | 123 | ||
| 40 | 123 | 40 | 123 | ||
| 41 | 41 | ||||
| t | 42 | 1. Beautiful is beTTer than ugly. | t | 42 | 1. Beautiful is better than ugly. | 
| 43 | 2. Explicit is better than implicit. | ||||
| 44 | 3. Simple is better than complex. | 43 | 3. Simple is better than complex. | ||
| 45 | 4. Complex is better than complicated. | 44 | 4. Complicated is better than complex. | ||
| 45 | 5. Flat is better than nested. | ||||
| 46 | 123 | 46 | 123 | ||
| 47 | 123 | 47 | 123 | ||
| 48 | 123 | 48 | 123 | ||
| 49 | 123 | 49 | 123 | ||
| 50 | 123 | 50 | 123 | ||
Context (numlines=6)
| from | to | ||||
|---|---|---|---|---|---|
| f | 1 | f | 1 | ||
| n | 2 | 1. Beautiful is beTTer than ugly. | n | 2 | 1. Beautiful is better than ugly. | 
| 3 | 2. Explicit is better than implicit. | ||||
| 4 | 3. Simple is better than complex. | 3 | 3. Simple is better than complex. | ||
| 5 | 4. Complex is better than complicated. | 4 | 4. Complicated is better than complex. | ||
| 5 | 5. Flat is better than nested. | ||||
| 6 | 123 | 6 | 123 | ||
| 7 | 123 | 7 | 123 | ||
| 8 | 123 | 8 | 123 | ||
| 9 | 123 | 9 | 123 | ||
| 10 | 123 | 10 | 123 | ||
| 11 | 123 | 11 | 123 | ||
| 12 | 123 | 12 | 123 | ||
| 13 | 123 | 13 | 123 | ||
| 14 | 123 | 14 | 123 | ||
| 15 | 123 | 15 | 123 | ||
| 16 | 16 | ||||
| n | 17 | 1. Beautiful is beTTer than ugly. | n | 17 | 1. Beautiful is better than ugly. | 
| 18 | 2. Explicit is better than implicit. | ||||
| 19 | 3. Simple is better than complex. | 18 | 3. Simple is better than complex. | ||
| 20 | 4. Complex is better than complicated. | 19 | 4. Complicated is better than complex. | ||
| 20 | 5. Flat is better than nested. | ||||
| 21 | 123 | 21 | 123 | ||
| 22 | 123 | 22 | 123 | ||
| 23 | 123 | 23 | 123 | ||
| 24 | 123 | 24 | 123 | ||
| 25 | 123 | 25 | 123 | ||
| 26 | 123 | 26 | 123 | ||
| 27 | 123 | 27 | 123 | ||
| 28 | 123 | 28 | 123 | ||
| 29 | 123 | 29 | 123 | ||
| 30 | 123 | 30 | 123 | ||
| 31 | 31 | ||||
| t | 32 | 1. Beautiful is beTTer than ugly. | t | 32 | 1. Beautiful is better than ugly. | 
| 33 | 2. Explicit is better than implicit. | ||||
| 34 | 3. Simple is better than complex. | 33 | 3. Simple is better than complex. | ||
| 35 | 4. Complex is better than complicated. | 34 | 4. Complicated is better than complex. | ||
| 35 | 5. Flat is better than nested. | ||||
| 36 | 123 | 36 | 123 | ||
| 37 | 123 | 37 | 123 | ||
| 38 | 123 | 38 | 123 | ||
| 39 | 123 | 39 | 123 | ||
| 40 | 123 | 40 | 123 | ||
| 41 | 123 | 41 | 123 | ||
Context (numlines=0)
| from | to | ||||
|---|---|---|---|---|---|
| n | 2 | 1. Beautiful is beTTer than ugly. | n | 2 | 1. Beautiful is better than ugly. | 
| 3 | 2. Explicit is better than implicit. | ||||
| 4 | 3. Simple is better than complex. | 3 | 3. Simple is better than complex. | ||
| 5 | 4. Complex is better than complicated. | 4 | 4. Complicated is better than complex. | ||
| 5 | 5. Flat is better than nested. | ||||
| n | 17 | 1. Beautiful is beTTer than ugly. | n | 17 | 1. Beautiful is better than ugly. | 
| 18 | 2. Explicit is better than implicit. | ||||
| 19 | 3. Simple is better than complex. | 18 | 3. Simple is better than complex. | ||
| 20 | 4. Complex is better than complicated. | 19 | 4. Complicated is better than complex. | ||
| 20 | 5. Flat is better than nested. | ||||
| t | 32 | 1. Beautiful is beTTer than ugly. | t | 32 | 1. Beautiful is better than ugly. | 
| 33 | 2. Explicit is better than implicit. | ||||
| 34 | 3. Simple is better than complex. | 33 | 3. Simple is better than complex. | ||
| 35 | 4. Complex is better than complicated. | 34 | 4. Complicated is better than complex. | ||
| 35 | 5. Flat is better than nested. | ||||
Same Context
| from | to | ||||
|---|---|---|---|---|---|
| t | No Differences Found | t | No Differences Found | ||
Same Full
| from | to | ||||
|---|---|---|---|---|---|
| t | 1 | t | 1 | ||
| 2 | 1. Beautiful is beTTer than ugly. | 2 | 1. Beautiful is beTTer than ugly. | ||
| 3 | 2. Explicit is better than implicit. | 3 | 2. Explicit is better than implicit. | ||
| 4 | 3. Simple is better than complex. | 4 | 3. Simple is better than complex. | ||
| 5 | 4. Complex is better than complicated. | 5 | 4. Complex is better than complicated. | ||
| 6 | 123 | 6 | 123 | ||
| 7 | 123 | 7 | 123 | ||
| 8 | 123 | 8 | 123 | ||
| 9 | 123 | 9 | 123 | ||
| 10 | 123 | 10 | 123 | ||
| 11 | 123 | 11 | 123 | ||
| 12 | 123 | 12 | 123 | ||
| 13 | 123 | 13 | 123 | ||
| 14 | 123 | 14 | 123 | ||
| 15 | 123 | 15 | 123 | ||
| 16 | 16 | ||||
| 17 | 1. Beautiful is beTTer than ugly. | 17 | 1. Beautiful is beTTer than ugly. | ||
| 18 | 2. Explicit is better than implicit. | 18 | 2. Explicit is better than implicit. | ||
| 19 | 3. Simple is better than complex. | 19 | 3. Simple is better than complex. | ||
| 20 | 4. Complex is better than complicated. | 20 | 4. Complex is better than complicated. | ||
| 21 | 123 | 21 | 123 | ||
| 22 | 123 | 22 | 123 | ||
| 23 | 123 | 23 | 123 | ||
| 24 | 123 | 24 | 123 | ||
| 25 | 123 | 25 | 123 | ||
| 26 | 123 | 26 | 123 | ||
| 27 | 123 | 27 | 123 | ||
| 28 | 123 | 28 | 123 | ||
| 29 | 123 | 29 | 123 | ||
| 30 | 123 | 30 | 123 | ||
| 31 | 31 | ||||
| 32 | 1. Beautiful is beTTer than ugly. | 32 | 1. Beautiful is beTTer than ugly. | ||
| 33 | 2. Explicit is better than implicit. | 33 | 2. Explicit is better than implicit. | ||
| 34 | 3. Simple is better than complex. | 34 | 3. Simple is better than complex. | ||
| 35 | 4. Complex is better than complicated. | 35 | 4. Complex is better than complicated. | ||
| 36 | 123 | 36 | 123 | ||
| 37 | 123 | 37 | 123 | ||
| 38 | 123 | 38 | 123 | ||
| 39 | 123 | 39 | 123 | ||
| 40 | 123 | 40 | 123 | ||
| 41 | 123 | 41 | 123 | ||
| 42 | 123 | 42 | 123 | ||
| 43 | 123 | 43 | 123 | ||
| 44 | 123 | 44 | 123 | ||
| 45 | 123 | 45 | 123 | ||
Empty Context
| from | to | ||||
|---|---|---|---|---|---|
| t | No Differences Found | t | No Differences Found | ||
Empty Full
| from | to | ||||
|---|---|---|---|---|---|
| t | Empty File | t | Empty File | ||
tabsize=2
| f | 1 | f | 1 | ||
| t | 2 | Line 1: preceded by from:[tt] to:[ssss] | t | 2 | Line 1: preceded by from:[tt] to:[ssss] | 
| 3 | Line 2: preceded by from:[sstt] to:[sssst] | 3 | Line 2: preceded by from:[sstt] to:[sssst] | ||
| 4 | Line 3: preceded by from:[sstst] to:[ssssss] | 4 | Line 3: preceded by from:[sstst] to:[ssssss] | ||
| 5 | Line 4: has from:[sst] to:[sss] after : | 5 | Line 4: has from:[sst] to:[sss] after : | ||
| 6 | Line 5: has from:[t] to:[ss] at end | 6 | Line 5: has from:[t] to:[ss] at end | 
tabsize=default
| f | 1 | f | 1 | ||
| t | 2 | Line 1: preceded by from:[tt] to:[ssss] | t | 2 | Line 1: preceded by from:[tt] to:[ssss] | 
| 3 | Line 2: preceded by from:[sstt] to:[sssst] | 3 | Line 2: preceded by from:[sstt] to:[sssst] | ||
| 4 | Line 3: preceded by from:[sstst] to:[ssssss] | 4 | Line 3: preceded by from:[sstst] to:[ssssss] | ||
| 5 | Line 4: has from:[sst] to:[sss] after : | 5 | Line 4: has from:[sst] to:[sss] after : | ||
| 6 | Line 5: has from:[t] to:[ss] at end | 6 | Line 5: has from:[t] to:[ss] at end | 
Context (wrapcolumn=14,numlines=0)
| n | 4 | line 2 | n | 4 | line 2 adde | 
| > | d | ||||
| n | 6 | line 4 chang | n | 6 | line 4 chanG | 
| > | ed | > | Ed | ||
| 7 | line 5 chang | 7 | line 5a chanG | ||
| > | ed | > | ed | ||
| 8 | line 6 chang | 8 | line 6a chang | ||
| > | ed | > | Ed | ||
| n | 10 | line 8 subtra | n | 10 | line 8 | 
| > | cted | ||||
| t | 12 | 12345678901234 | t | 12 | 1234567890 | 
| > | 56789012345689 | ||||
| > | 012345 | ||||
| 13 | short line | 13 | another long l | ||
| > | ine that needs | ||||
| > | to be wrapped | ||||
| 14 | just fits in!! | 14 | just fitS in!! | ||
| 15 | just fits in t | 15 | just fits in t | ||
| > | wo lines yup!! | > | wo lineS yup!! | 
wrapcolumn=14,splitlines()
| f | 1 | line 0 | f | 1 | line 0 | 
| 2 | 12345678901234 | 2 | 12345678901234 | ||
| > | 56789012345689 | > | 56789012345689 | ||
| > | 012345 | > | 012345 | ||
| 3 | line 1 | 3 | line 1 | ||
| n | 4 | line 2 | n | 4 | line 2 adde | 
| > | d | ||||
| 5 | line 3 | 5 | line 3 | ||
| n | 6 | line 4 chang | n | 6 | line 4 chanG | 
| > | ed | > | Ed | ||
| 7 | line 5 chang | 7 | line 5a chanG | ||
| > | ed | > | ed | ||
| 8 | line 6 chang | 8 | line 6a chang | ||
| > | ed | > | Ed | ||
| 9 | line 7 | 9 | line 7 | ||
| n | 10 | line 8 subtra | n | 10 | line 8 | 
| > | cted | ||||
| 11 | line 9 | 11 | line 9 | ||
| t | 12 | 12345678901234 | t | 12 | 1234567890 | 
| > | 56789012345689 | ||||
| > | 012345 | ||||
| 13 | short line | 13 | another long l | ||
| > | ine that needs | ||||
| > | to be wrapped | ||||
| 14 | just fits in!! | 14 | just fitS in!! | ||
| 15 | just fits in t | 15 | just fits in t | ||
| > | wo lines yup!! | > | wo lineS yup!! | ||
| 16 | the end | 16 | the end | 
wrapcolumn=14,splitlines(True)
| f | 1 | line 0 | f | 1 | line 0 | 
| 2 | 12345678901234 | 2 | 12345678901234 | ||
| > | 56789012345689 | > | 56789012345689 | ||
| > | 012345 | > | 012345 | ||
| 3 | line 1 | 3 | line 1 | ||
| n | 4 | line 2 | n | 4 | line 2 adde | 
| > | d | ||||
| 5 | line 3 | 5 | line 3 | ||
| n | 6 | line 4 chang | n | 6 | line 4 chanG | 
| > | ed | > | Ed | ||
| 7 | line 5 chang | 7 | line 5a chanG | ||
| > | ed | > | ed | ||
| 8 | line 6 chang | 8 | line 6a chang | ||
| > | ed | > | Ed | ||
| 9 | line 7 | 9 | line 7 | ||
| n | 10 | line 8 subtra | n | 10 | line 8 | 
| > | cted | ||||
| 11 | line 9 | 11 | line 9 | ||
| t | 12 | 12345678901234 | t | 12 | 1234567890 | 
| > | 56789012345689 | ||||
| > | 012345 | ||||
| 13 | short line | 13 | another long l | ||
| > | ine that needs | ||||
| > | to be wrapped | ||||
| 14 | just fits in!! | 14 | just fitS in!! | ||
| 15 | just fits in t | 15 | just fits in t | ||
| > | wo lines yup!! | > | wo lineS yup!! | ||
| 16 | the end | 16 | the end | 





