Hi. I'm getting different diff results on Linux and on OS X. I've replicated the results on 2 different Linux boxes. Something seems to be triggering diff to bail out on Linux. I've set timeout=None, so it doesn't seem to be a timeout issue. Tested on python 3.7, 3.8 and 3.9 with the same results.
I can't replicate the problem using the upstream source for python3 diff_match_patch. Could that indicate the source of the problem?
I've pasted some sample code showing the error below, and I've pasted copies of the expected and incorrect output.
Is there anything else I can do to help track down this problem?
from pprint import pprint
import diff_match_patch as dmp
# Test Code
text1 = '''Section 1.
Section 2.
Section 3.
Section 4.
Section 5.
Section 6.
Section 7.
Section 8.
Section 9.
Section 10.
Section 11.
Section 12.
Section 13.
Section 14.
Section 15.
Section 16.
Section 17.
Section 18.
PUBLIC INDEBTEDNESS
Section 1.
Section 2.
Section 3.
Section 4.
Section 5.
Section 6.
Section 7.
Section 8.'''
text2 = '''Section 1. All lands and improvements thereon in the state shall be listed for assessment, valued for taxation and assessed separately.
Section 2. All coal lands, in the state, from which coal is not being mined, shall be listed for assessment, valued for taxation and assessed according to value.
Section 3. All mines and mining claims from which gold, silver and other precious metals, soda, saline, coal, mineral oil, or other valuable deposits, as are or may be produced, shall be faxed in addition to the surface improvements, and in lieu of taxes on the lands, on the gross product thereof as may be prescribed by law; provided, that the product of all mines shall be taxed in proportion to the value thereof.
Section 4.
Section 5.
Section 6. For state revenue, there shall be levied annually not to exceed four mills on the dollar of the assessed valuation of the property in the state except for the support of state educational and charitable institutions, the payment of the state debt and the interest thereon.
Section 7. For country revenue there shall be levied annually not to exceed twelve mills on the dollar for all purposes, including general school tax, exclusive of state revenue, except for the payment of its public debt and the interest thereon. An additional tax of two dollars for each person between the ages of twenty-one years and fifty years, inclusive, shall be annually levied for county school purposes.
Section 8. No incorporated city or town shall levy a tax to exceed eight mills on the dollar, in any one year, except for the payment of its public debt and the interest thereon.
Section 9.
Section 10. All money belonging to the state, or to any county, city, town, village or other subdivision therein, shall, whenever practicable, be deposited in a National bank or a bank incorporated under the laws of this state; provided that the bank in which such money is deposited shall furnish security to be approved as provided by law, and shall also pay a reasonable rate of interest thereon. Such interest shall accrue to the fund from which it is derived.
Section 11. The making of profit, directly or indirectly, out of state, county, city, town or school district money or other public fund, or using the same for any purpose not authorized by law, by any public officer, shall be deemed a felony, and shall be punished as provided by law.
Section 12. There shall be a state board composed of the state auditor, treasurer and secretary of state.
Section 13.
Section 14.
Section 15. The property of the United States, the state, counties, cities, towns, school-districts, municipal corporations and public libraries shall be exempt from taxation; and other property as may be used exclusively for agricultural fairs or educational institutions, places for actual religions worship, church parsonages, hospitals and public cemeteries, and institutions of purely public charity may be exempt from taxation, except as otherwise provided in this constitution.
Section 16. No tax shall be levied except in pursuance of law, and every law imposing a tax shall state distinctly the object of the same, to which only it shall be applied.
Section 17. The Legislative Assembly shall pass all laws necessary to carry out the provisions of this article.
Section 18. The power of taxation shall never be surrendered or suspended by any grant or contract to which the state or any county or other municipal corporation shall be a party.
PUBLIC INDEBTEDNESS
Section 1. The State of Wyoming shall not in any manner, create any indebtedness exceeding on per centum on the assessed value of the taxable property in the state as shown by the last general assessment for taxation preceeding; except to suppress insurrection or to provide for the public defense.
Section 2. No debt in excess of the taxes for the current year shall, in any manner, be created in the state of Wyoming unless the proposition to create such debt shall have been submitted to a vote of the people, and by them approved: except to suppress insurrection, or to provide for the public defense.
Section 3. No County in the State of Wyoming shall, in any manner, create any indebtedness exceeding two per centum on the assessed value of the taxable property in such county as shown by the last general assessment, preceding it. Provided, however, that any county, city, town, village or any other sub-division thereof, in the state of Wyoming, may bond its public debt, existing at the time of the adoption of this constitution, in any sum not exceeding four per centum on the assessed value of the taxable property in such county, city, town, village, or other sub-division, as shown by the last general assessment for taxation.
Section 4. No debt in excess of the taxes for the current year shall, in any manner, be created by any county or sub-division thereof, or any city, town or village or any sub-division thereof, in the state of Wyoming unless the proposition to create such debt shall have been submitted to a vote of the people thereof and by them approved.
Section 5. No city, town or village, or any sub-division thereof, or any sub-divisions of any county of the state of Wyoming shall, in any manner, create any indebtedness exceeding two per centum on the assessed value of the taxable property therein: Provided, however, that any city, town or village may be authorized to create an additional indebtedness not exceeding four per centum on the assessed value of the taxable property therein as shown by the last preceding general assessment, for the purpose of building sewerage therein. Debts contracted for supplying water to any such city or town are exempted from the operation of this section.
Section 6. Neither the state nor any county, city, township, town, school district or any other political subdivision shall loan or give its credit or make donations to or in aid of any individual, association or corporation, except for necessary support of the poor, nor subscribe to or become the owner of the capital stock of any association or corporation. The state shall not engage in any work of internal improvement unless authorized by a two-thirds vote of the people.
Section 7. No money shall be paid out of the state treasury except upon appropriation by law and on warrant drawn by the proper officer and no bills, claims, accounts or demands against the state, or any county or other political subdivision. shall be audited, allowed or paid until a full itemized statement in writing, verified by affidavit, shall be filed with the officer or officers, whose duty it may be to audit the same.
Section 8. No bond or evidence of indebtedness of the state shall be valid unless the same shall have indorsed thereon a certificate, signed by the Auditor and Secretary of State that the bond or evidence of debt is issued pursuant to law and is within the debt limit. No bond or evidence of debt of any county. or bond of any township or other political subdivision shall be valid unless the same have endorsed thereon a certificate signed by the county auditor, or other officer authorized by law to sign such certificate, stating that said bond, or evidence of debt, is issued pursuant to law and is within the debt limit.'''
# use deadline=None to try to eliminate that as the source of the error.
pprint(dmp.diff_match_patch().diff_main(text1, text2, deadline=None))
[(0, 'Section 1.'),
(-1,
'\n'
'\n'
'Section 2.\n'
'\n'
'Section 3.\n'
'\n'
'Section 4.\n'
'\n'
'Section 5.\n'
'\n'
'Section 6.\n'
'\n'
'Section 7.\n'
'\n'
'Section 8.\n'
'\n'
'Section 9.\n'
'\n'
'Section 10.\n'
'\n'
'Section 11.\n'
'\n'
'Section 12.\n'
'\n'
'Section 13.\n'
'\n'
'Section 14.\n'
'\n'
'Section 15.\n'
'\n'
'Section 16.\n'
'\n'
'Section 17.\n'
'\n'
'Section 18.\n'
'\n'
'PUBLIC INDEBTEDNESS\n'
'\n'
'Section 1.\n'
'\n'
'Section 2.\n'
'\n'
'Section 3.\n'
'\n'
'Section 4.\n'
'\n'
'Section 5.\n'
'\n'
'Section 6.\n'
'\n'
'Section 7.\n'
'\n'
'Section 8'),
(1,
' All lands and improvements thereon in the state shall be listed for '
'assessment, valued for taxation and assessed separately.\n'
'\n'
'Section 2. All coal lands, in the state, from which coal is not being '
'mined, shall be listed for assessment, valued for taxation and assessed '
'according to value.\n'
'\n'
'Section 3. All mines and mining claims from which gold, silver and other '
'precious metals, soda, saline, coal, mineral oil, or other valuable '
'deposits, as are or may be produced, shall be faxed in addition to the '
'surface improvements, and in lieu of taxes on the lands, on the gross '
'product thereof as may be prescribed by law; provided, that the product of '
'all mines shall be taxed in proportion to the value thereof.\n'
'\n'
'Section 4.\n'
'\n'
'Section 5.\n'
'\n'
'Section 6. For state revenue, there shall be levied annually not to exceed '
'four mills on the dollar of the assessed valuation of the property in the '
'state except for the support of state educational and charitable '
'institutions, the payment of the state debt and the interest thereon.\n'
'\n'
'Section 7. For country revenue there shall be levied annually not to exceed '
'twelve mills on the dollar for all purposes, including general school tax, '
'exclusive of state revenue, except for the payment of its public debt and '
'the interest thereon. An additional tax of two dollars for each person '
'between the ages of twenty-one years and fifty years, inclusive, shall be '
'annually levied for county school purposes.\n'
'\n'
'Section 8. No incorporated city or town shall levy a tax to exceed eight '
'mills on the dollar, in any one year, except for the payment of its public '
'debt and the interest thereon.\n'
'\n'
'Section 9.\n'
'\n'
'Section 10. All money belonging to the state, or to any county, city, town, '
'village or other subdivision therein, shall, whenever practicable, be '
'deposited in a National bank or a bank incorporated under the laws of this '
'state; provided that the bank in which such money is deposited shall '
'furnish security to be approved as provided by law, and shall also pay a '
'reasonable rate of interest thereon. Such interest shall accrue to the fund '
'from which it is derived.\n'
'\n'
'Section 11. The making of profit, directly or indirectly, out of state, '
'county, city, town or school district money or other public fund, or using '
'the same for any purpose not authorized by law, by any public officer, '
'shall be deemed a felony, and shall be punished as provided by law.\n'
'\n'
'Section 12. There shall be a state board composed of the state auditor, '
'treasurer and secretary of state.\n'
'\n'
'Section 13.\n'
'\n'
'Section 14.\n'
'\n'
'Section 15. The property of the United States, the state, counties, cities, '
'towns, school-districts, municipal corporations and public libraries shall '
'be exempt from taxation; and other property as may be used exclusively for '
'agricultural fairs or educational institutions, places for actual religions '
'worship, church parsonages, hospitals and public cemeteries, and '
'institutions of purely public charity may be exempt from taxation, except '
'as otherwise provided in this constitution.\n'
'\n'
'Section 16. No tax shall be levied except in pursuance of law, and every '
'law imposing a tax shall state distinctly the object of the same, to which '
'only it shall be applied.\n'
'\n'
'Section 17. The Legislative Assembly shall pass all laws necessary to carry '
'out the provisions of this article.\n'
'\n'
'Section 18. The power of taxation shall never be surrendered or suspended '
'by any grant or contract to which the state or any county or other '
'municipal corporation shall be a party.\n'
'\n'
'PUBLIC INDEBTEDNESS\n'
'\n'
'Section 1. The State of Wyoming shall not in any manner, create any '
'indebtedness exceeding on per centum on the assessed value of the taxable '
'property in the state as shown by the last general assessment for taxation '
'preceeding; except to suppress insurrection or to provide for the public '
'defense.\n'
'\n'
'Section 2. No debt in excess of the taxes for the current year shall, in '
'any manner, be created in the state of Wyoming unless the proposition to '
'create such debt shall have been submitted to a vote of the people, and by '
'them approved: except to suppress insurrection, or to provide for the '
'public defense.\n'
'\n'
'Section 3. No County in the State of Wyoming shall, in any manner, create '
'any indebtedness exceeding two per centum on the assessed value of the '
'taxable property in such county as shown by the last general assessment, '
'preceding it. Provided, however, that any county, city, town, village or '
'any other sub-division thereof, in the state of Wyoming, may bond its '
'public debt, existing at the time of the adoption of this constitution, in '
'any sum not exceeding four per centum on the assessed value of the taxable '
'property in such county, city, town, village, or other sub-division, as '
'shown by the last general assessment for taxation.\n'
'\n'
'Section 4. No debt in excess of the taxes for the current year shall, in '
'any manner, be created by any county or sub-division thereof, or any city, '
'town or village or any sub-division thereof, in the state of Wyoming unless '
'the proposition to create such debt shall have been submitted to a vote of '
'the people thereof and by them approved.\n'
'\n'
'Section 5. No city, town or village, or any sub-division thereof, or any '
'sub-divisions of any county of the state of Wyoming shall, in any manner, '
'create any indebtedness exceeding two per centum on the assessed value of '
'the taxable property therein: Provided, however, that any city, town or '
'village may be authorized to create an additional indebtedness not '
'exceeding four per centum on the assessed value of the taxable property '
'therein as shown by the last preceding general assessment, for the purpose '
'of building sewerage therein. Debts contracted for supplying water to any '
'such city or town are exempted from the operation of this section.\n'
'\n'
'Section 6. Neither the state nor any county, city, township, town, school '
'district or any other political subdivision shall loan or give its credit '
'or make donations to or in aid of any individual, association or '
'corporation, except for necessary support of the poor, nor subscribe to or '
'become the owner of the capital stock of any association or corporation. '
'The state shall not engage in any work of internal improvement unless '
'authorized by a two-thirds vote of the people.\n'
'\n'
'Section 7. No money shall be paid out of the state treasury except upon '
'appropriation by law and on warrant drawn by the proper officer and no '
'bills, claims, accounts or demands against the state, or any county or '
'other political subdivision. shall be audited, allowed or paid until a full '
'itemized statement in writing, verified by affidavit, shall be filed with '
'the officer or officers, whose duty it may be to audit the same.\n'
'\n'
'Section 8. No bond or evidence of indebtedness of the state shall be valid '
'unless the same shall have indorsed thereon a certificate, signed by the '
'Auditor and Secretary of State that the bond or evidence of debt is issued '
'pursuant to law and is within the debt limit. No bond or evidence of debt '
'of any county. or bond of any township or other political subdivision shall '
'be valid unless the same have endorsed thereon a certificate signed by the '
'county auditor, or other officer authorized by law to sign such '
'certificate, stating that said bond, or evidence of debt, is issued '
'pursuant to law and is within the debt limit'),
(0, '.')]
>>> pprint(dmp.diff_match_patch().diff_main(text1, text2, deadline=None))
[(0, 'Section 1.'),
(1,
' All lands and improvements thereon in the state shall be listed for '
'assessment, valued for taxation and assessed separately.'),
(0, '\n\nSection 2.'),
(1,
' All coal lands, in the state, from which coal is not being mined, shall be '
'listed for assessment, valued for taxation and assessed according to '
'value.'),
(0, '\n\nSection 3.'),
(1,
' All mines and mining claims from which gold, silver and other precious '
'metals, soda, saline, coal, mineral oil, or other valuable deposits, as are '
'or may be produced, shall be faxed in addition to the surface improvements, '
'and in lieu of taxes on the lands, on the gross product thereof as may be '
'prescribed by law; provided, that the product of all mines shall be taxed '
'in proportion to the value thereof.'),
(0, '\n\nSection 4.\n\nSection 5.\n\nSection 6.'),
(1,
' For state revenue, there shall be levied annually not to exceed four mills '
'on the dollar of the assessed valuation of the property in the state except '
'for the support of state educational and charitable institutions, the '
'payment of the state debt and the interest thereon.'),
(0, '\n\nSection 7.'),
(1,
' For country revenue there shall be levied annually not to exceed twelve '
'mills on the dollar for all purposes, including general school tax, '
'exclusive of state revenue, except for the payment of its public debt and '
'the interest thereon. An additional tax of two dollars for each person '
'between the ages of twenty-one years and fifty years, inclusive, shall be '
'annually levied for county school purposes.'),
(0, '\n\nSection 8.'),
(1,
' No incorporated city or town shall levy a tax to exceed eight mills on the '
'dollar, in any one year, except for the payment of its public debt and the '
'interest thereon.'),
(0, '\n\nSection 9.\n\nSection 10.'),
(1,
' All money belonging to the state, or to any county, city, town, village or '
'other subdivision therein, shall, whenever practicable, be deposited in a '
'National bank or a bank incorporated under the laws of this state; provided '
'that the bank in which such money is deposited shall furnish security to be '
'approved as provided by law, and shall also pay a reasonable rate of '
'interest thereon. Such interest shall accrue to the fund from which it is '
'derived.'),
(0, '\n\nSection 11.'),
(1,
' The making of profit, directly or indirectly, out of state, county, city, '
'town or school district money or other public fund, or using the same for '
'any purpose not authorized by law, by any public officer, shall be deemed a '
'felony, and shall be punished as provided by law.'),
(0, '\n\nSection 12.'),
(1,
' There shall be a state board composed of the state auditor, treasurer and '
'secretary of state.'),
(0, '\n\nSection 13.\n\nSection 14.\n\nSection 15.'),
(1,
' The property of the United States, the state, counties, cities, towns, '
'school-districts, municipal corporations and public libraries shall be '
'exempt from taxation; and other property as may be used exclusively for '
'agricultural fairs or educational institutions, places for actual religions '
'worship, church parsonages, hospitals and public cemeteries, and '
'institutions of purely public charity may be exempt from taxation, except '
'as otherwise provided in this constitution.'),
(0, '\n\nSection 16.'),
(1,
' No tax shall be levied except in pursuance of law, and every law imposing '
'a tax shall state distinctly the object of the same, to which only it shall '
'be applied.'),
(0, '\n\nSection 17.'),
(1,
' The Legislative Assembly shall pass all laws necessary to carry out the '
'provisions of this article.'),
(0, '\n\nSection 18.'),
(1,
' The power of taxation shall never be surrendered or suspended by any grant '
'or contract to which the state or any county or other municipal corporation '
'shall be a party.'),
(0, '\n\nPUBLIC INDEBTEDNESS\n\nSection 1.'),
(1,
' The State of Wyoming shall not in any manner, create any indebtedness '
'exceeding on per centum on the assessed value of the taxable property in '
'the state as shown by the last general assessment for taxation preceeding; '
'except to suppress insurrection or to provide for the public defense.'),
(0, '\n\nSection 2.'),
(1,
' No debt in excess of the taxes for the current year shall, in any manner, '
'be created in the state of Wyoming unless the proposition to create such '
'debt shall have been submitted to a vote of the people, and by them '
'approved: except to suppress insurrection, or to provide for the public '
'defense.'),
(0, '\n\nSection 3.'),
(1,
' No County in the State of Wyoming shall, in any manner, create any '
'indebtedness exceeding two per centum on the assessed value of the taxable '
'property in such county as shown by the last general assessment, preceding '
'it. Provided, however, that any county, city, town, village or any other '
'sub-division thereof, in the state of Wyoming, may bond its public debt, '
'existing at the time of the adoption of this constitution, in any sum not '
'exceeding four per centum on the assessed value of the taxable property in '
'such county, city, town, village, or other sub-division, as shown by the '
'last general assessment for taxation.'),
(0, '\n\nSection 4.'),
(1,
' No debt in excess of the taxes for the current year shall, in any manner, '
'be created by any county or sub-division thereof, or any city, town or '
'village or any sub-division thereof, in the state of Wyoming unless the '
'proposition to create such debt shall have been submitted to a vote of the '
'people thereof and by them approved.'),
(0, '\n\nSection 5.'),
(1,
' No city, town or village, or any sub-division thereof, or any '
'sub-divisions of any county of the state of Wyoming shall, in any manner, '
'create any indebtedness exceeding two per centum on the assessed value of '
'the taxable property therein: Provided, however, that any city, town or '
'village may be authorized to create an additional indebtedness not '
'exceeding four per centum on the assessed value of the taxable property '
'therein as shown by the last preceding general assessment, for the purpose '
'of building sewerage therein. Debts contracted for supplying water to any '
'such city or town are exempted from the operation of this section.'),
(0, '\n\nSection 6.'),
(1,
' Neither the state nor any county, city, township, town, school district or '
'any other political subdivision shall loan or give its credit or make '
'donations to or in aid of any individual, association or corporation, '
'except for necessary support of the poor, nor subscribe to or become the '
'owner of the capital stock of any association or corporation. The state '
'shall not engage in any work of internal improvement unless authorized by a '
'two-thirds vote of the people.'),
(0, '\n\nSection 7.'),
(1,
' No money shall be paid out of the state treasury except upon appropriation '
'by law and on warrant drawn by the proper officer and no bills, claims, '
'accounts or demands against the state, or any county or other political '
'subdivision. shall be audited, allowed or paid until a full itemized '
'statement in writing, verified by affidavit, shall be filed with the '
'officer or officers, whose duty it may be to audit the same.'),
(0, '\n\nSection 8.'),
(1,
' No bond or evidence of indebtedness of the state shall be valid unless the '
'same shall have indorsed thereon a certificate, signed by the Auditor and '
'Secretary of State that the bond or evidence of debt is issued pursuant to '
'law and is within the debt limit. No bond or evidence of debt of any '
'county. or bond of any township or other political subdivision shall be '
'valid unless the same have endorsed thereon a certificate signed by the '
'county auditor, or other officer authorized by law to sign such '
'certificate, stating that said bond, or evidence of debt, is issued '
'pursuant to law and is within the debt limit.')]
output on Linux (incorrect)
[(0, 'Section 1.'),
(-1,
'\n'
'\n'
'Section 2.\n'
'\n'
'Section 3.\n'
'\n'
'Section 4.\n'
'\n'
'Section 5.\n'
'\n'
'Section 6.\n'
'\n'
'Section 7.\n'
'\n'
'Section 8.\n'
'\n'
'Section 9.\n'
'\n'
'Section 10.\n'
'\n'
'Section 11.\n'
'\n'
'Section 12.\n'
'\n'
'Section 13.\n'
'\n'
'Section 14.\n'
'\n'
'Section 15.\n'
'\n'
'Section 16.\n'
'\n'
'Section 17.\n'
'\n'
'Section 18.\n'
'\n'
'PUBLIC INDEBTEDNESS\n'
'\n'
'Section 1.\n'
'\n'
'Section 2.\n'
'\n'
'Section 3.\n'
'\n'
'Section 4.\n'
'\n'
'Section 5.\n'
'\n'
'Section 6.\n'
'\n'
'Section 7.\n'
'\n'
'Section 8'),
(1,
' All lands and improvements thereon in the state shall be listed for '
'assessment, valued for taxation and assessed separately.\n'
'\n'
'Section 2. All coal lands, in the state, from which coal is not being '
'mined, shall be listed for assessment, valued for taxation and assessed '
'according to value.\n'
'\n'
'Section 3. All mines and mining claims from which gold, silver and other '
'precious metals, soda, saline, coal, mineral oil, or other valuable '
'deposits, as are or may be produced, shall be faxed in addition to the '
'surface improvements, and in lieu of taxes on the lands, on the gross '
'product thereof as may be prescribed by law; provided, that the product of '
'all mines shall be taxed in proportion to the value thereof.\n'
'\n'
'Section 4.\n'
'\n'
'Section 5.\n'
'\n'
'Section 6. For state revenue, there shall be levied annually not to exceed '
'four mills on the dollar of the assessed valuation of the property in the '
'state except for the support of state educational and charitable '
'institutions, the payment of the state debt and the interest thereon.\n'
'\n'
'Section 7. For country revenue there shall be levied annually not to exceed '
'twelve mills on the dollar for all purposes, including general school tax, '
'exclusive of state revenue, except for the payment of its public debt and '
'the interest thereon. An additional tax of two dollars for each person '
'between the ages of twenty-one years and fifty years, inclusive, shall be '
'annually levied for county school purposes.\n'
'\n'
'Section 8. No incorporated city or town shall levy a tax to exceed eight '
'mills on the dollar, in any one year, except for the payment of its public '
'debt and the interest thereon.\n'
'\n'
'Section 9.\n'
'\n'
'Section 10. All money belonging to the state, or to any county, city, town, '
'village or other subdivision therein, shall, whenever practicable, be '
'deposited in a National bank or a bank incorporated under the laws of this '
'state; provided that the bank in which such money is deposited shall '
'furnish security to be approved as provided by law, and shall also pay a '
'reasonable rate of interest thereon. Such interest shall accrue to the fund '
'from which it is derived.\n'
'\n'
'Section 11. The making of profit, directly or indirectly, out of state, '
'county, city, town or school district money or other public fund, or using '
'the same for any purpose not authorized by law, by any public officer, '
'shall be deemed a felony, and shall be punished as provided by law.\n'
'\n'
'Section 12. There shall be a state board composed of the state auditor, '
'treasurer and secretary of state.\n'
'\n'
'Section 13.\n'
'\n'
'Section 14.\n'
'\n'
'Section 15. The property of the United States, the state, counties, cities, '
'towns, school-districts, municipal corporations and public libraries shall '
'be exempt from taxation; and other property as may be used exclusively for '
'agricultural fairs or educational institutions, places for actual religions '
'worship, church parsonages, hospitals and public cemeteries, and '
'institutions of purely public charity may be exempt from taxation, except '
'as otherwise provided in this constitution.\n'
'\n'
'Section 16. No tax shall be levied except in pursuance of law, and every '
'law imposing a tax shall state distinctly the object of the same, to which '
'only it shall be applied.\n'
'\n'
'Section 17. The Legislative Assembly shall pass all laws necessary to carry '
'out the provisions of this article.\n'
'\n'
'Section 18. The power of taxation shall never be surrendered or suspended '
'by any grant or contract to which the state or any county or other '
'municipal corporation shall be a party.\n'
'\n'
'PUBLIC INDEBTEDNESS\n'
'\n'
'Section 1. The State of Wyoming shall not in any manner, create any '
'indebtedness exceeding on per centum on the assessed value of the taxable '
'property in the state as shown by the last general assessment for taxation '
'preceeding; except to suppress insurrection or to provide for the public '
'defense.\n'
'\n'
'Section 2. No debt in excess of the taxes for the current year shall, in '
'any manner, be created in the state of Wyoming unless the proposition to '
'create such debt shall have been submitted to a vote of the people, and by '
'them approved: except to suppress insurrection, or to provide for the '
'public defense.\n'
'\n'
'Section 3. No County in the State of Wyoming shall, in any manner, create '
'any indebtedness exceeding two per centum on the assessed value of the '
'taxable property in such county as shown by the last general assessment, '
'preceding it. Provided, however, that any county, city, town, village or '
'any other sub-division thereof, in the state of Wyoming, may bond its '
'public debt, existing at the time of the adoption of this constitution, in '
'any sum not exceeding four per centum on the assessed value of the taxable '
'property in such county, city, town, village, or other sub-division, as '
'shown by the last general assessment for taxation.\n'
'\n'
'Section 4. No debt in excess of the taxes for the current year shall, in '
'any manner, be created by any county or sub-division thereof, or any city, '
'town or village or any sub-division thereof, in the state of Wyoming unless '
'the proposition to create such debt shall have been submitted to a vote of '
'the people thereof and by them approved.\n'
'\n'
'Section 5. No city, town or village, or any sub-division thereof, or any '
'sub-divisions of any county of the state of Wyoming shall, in any manner, '
'create any indebtedness exceeding two per centum on the assessed value of '
'the taxable property therein: Provided, however, that any city, town or '
'village may be authorized to create an additional indebtedness not '
'exceeding four per centum on the assessed value of the taxable property '
'therein as shown by the last preceding general assessment, for the purpose '
'of building sewerage therein. Debts contracted for supplying water to any '
'such city or town are exempted from the operation of this section.\n'
'\n'
'Section 6. Neither the state nor any county, city, township, town, school '
'district or any other political subdivision shall loan or give its credit '
'or make donations to or in aid of any individual, association or '
'corporation, except for necessary support of the poor, nor subscribe to or '
'become the owner of the capital stock of any association or corporation. '
'The state shall not engage in any work of internal improvement unless '
'authorized by a two-thirds vote of the people.\n'
'\n'
'Section 7. No money shall be paid out of the state treasury except upon '
'appropriation by law and on warrant drawn by the proper officer and no '
'bills, claims, accounts or demands against the state, or any county or '
'other political subdivision. shall be audited, allowed or paid until a full '
'itemized statement in writing, verified by affidavit, shall be filed with '
'the officer or officers, whose duty it may be to audit the same.\n'
'\n'
'Section 8. No bond or evidence of indebtedness of the state shall be valid '
'unless the same shall have indorsed thereon a certificate, signed by the '
'Auditor and Secretary of State that the bond or evidence of debt is issued '
'pursuant to law and is within the debt limit. No bond or evidence of debt '
'of any county. or bond of any township or other political subdivision shall '
'be valid unless the same have endorsed thereon a certificate signed by the '
'county auditor, or other officer authorized by law to sign such '
'certificate, stating that said bond, or evidence of debt, is issued '
'pursuant to law and is within the debt limit'),
(0, '.')]
Hi. I'm getting different diff results on Linux and on OS X. I've replicated the results on 2 different Linux boxes. Something seems to be triggering diff to bail out on Linux. I've set timeout=None, so it doesn't seem to be a timeout issue. Tested on python 3.7, 3.8 and 3.9 with the same results.
I can't replicate the problem using the upstream source for python3 diff_match_patch. Could that indicate the source of the problem?
I've pasted some sample code showing the error below, and I've pasted copies of the expected and incorrect output.
Is there anything else I can do to help track down this problem?
########################################## OUTPUTS FOLLOW #######################
output on OS X (correct)
output on Linux (incorrect)