Hello, it might be too late or too hot, but i cannot work out this
behaviour of find_longest_ma tch() in difflib.Sequenc eMatcher:
string1:
releasenotesfor wildmagicversio n01thiscdromcon tainstheinitial releaseofthesou rcecodethatacco mpaniesthebook" 3dgameenginedes ign:apracticala pproachtorealti mecomputergraph ics"thereareanu mberofknownissu esaboutthecodea stheseissuesare addressedtheupd atedcodewillbea vailableatthewe bsitehttp://wwwmagicsoftwar ecom/3dgameenginedes ignhtmlbugssugg estionsforimpro vementsandother correspondencec anbesenttosuppo rt@magicsoftwar ecomthecurrentk nownissuesare1m eshalgorithmfor continuouslevel ofdetailappears nottobeworkingb ase
string2:
releasenotesfor wildmagicversio n02updatefromve rsion01toversio n02ifyourcopyof thebookhasversi on01andifyoudow nloadedversion0 2fromthewebsite thenapplythefol lowingdirection sforinstallingt heupdateforalin uxinstallations eethesectionatt heendofthisdocu mentupdatedirec tionsassumingth atthetopleveldi rectoryiscalled magicreplacebyy ourtoplevelname youshouldhaveth eversion01conte ntsinthislocati on1deletethecon tentsofmagic\in clude2deletethe subdirectorymag ic\source\mgcap plication3delet etheobsoletefil es:amagic\sourc e\mgc
find_longest_ma tch(0,500,0,500 )=(24,43,10)="v ersion01t"
What? O_o Clearly there is a longer match, right at the beginning!
And then, after removal of the last character from each string (i found
the limit of 500 by trial and error -- and it looks suspiciously
rounded):
find_longest_ma tch(0,499,0,499 )=(0,0,32)="rel easenotesforwil dmagicversion0"
Is this the expected behaviour? What's going on?
Thank you for any ideas
behaviour of find_longest_ma tch() in difflib.Sequenc eMatcher:
string1:
releasenotesfor wildmagicversio n01thiscdromcon tainstheinitial releaseofthesou rcecodethatacco mpaniesthebook" 3dgameenginedes ign:apracticala pproachtorealti mecomputergraph ics"thereareanu mberofknownissu esaboutthecodea stheseissuesare addressedtheupd atedcodewillbea vailableatthewe bsitehttp://wwwmagicsoftwar ecom/3dgameenginedes ignhtmlbugssugg estionsforimpro vementsandother correspondencec anbesenttosuppo rt@magicsoftwar ecomthecurrentk nownissuesare1m eshalgorithmfor continuouslevel ofdetailappears nottobeworkingb ase
string2:
releasenotesfor wildmagicversio n02updatefromve rsion01toversio n02ifyourcopyof thebookhasversi on01andifyoudow nloadedversion0 2fromthewebsite thenapplythefol lowingdirection sforinstallingt heupdateforalin uxinstallations eethesectionatt heendofthisdocu mentupdatedirec tionsassumingth atthetopleveldi rectoryiscalled magicreplacebyy ourtoplevelname youshouldhaveth eversion01conte ntsinthislocati on1deletethecon tentsofmagic\in clude2deletethe subdirectorymag ic\source\mgcap plication3delet etheobsoletefil es:amagic\sourc e\mgc
find_longest_ma tch(0,500,0,500 )=(24,43,10)="v ersion01t"
What? O_o Clearly there is a longer match, right at the beginning!
And then, after removal of the last character from each string (i found
the limit of 500 by trial and error -- and it looks suspiciously
rounded):
find_longest_ma tch(0,499,0,499 )=(0,0,32)="rel easenotesforwil dmagicversion0"
Is this the expected behaviour? What's going on?
Thank you for any ideas
Comment