Unpredictable Python prints
<p>Output for this sample code is unpredictable, but counter is correct.
It looks like bug to me and I didn't manage to find any explanation about such behaviour. rusText is not printable, but how does this fact affects other prints?</p>

<p><strong>UPD</strong>: OS Windows 7, Python 3.5, tested with Sublime text 3</p>

<p><strong>UPD2</strong>: In Python shell all seems fine so I guess it's a Sublime Text console output issue. Can anyone repeat that under Sublime?</p>

<pre><code>counter = 0

def test():
    counter = 0
    for i in range(20):
        print('start')
        counter += 1
        rusText = 'текст'

        print(rusText)

        counter += 1
        print('\t\tend')
    print(counter)

if __name__ == "__main__":
    test()
</code></pre>