[issue5118] '%.2f' % 2.545 doesn't round correctly

2012-05-03 Thread Ultrasick
Ultrasick added the comment: Ok, let's sum that up: There is a rounding problem. That's because Python uses floating point registers of the x86-CPU-architecture to store point values. This method is inaccurate and causes such problems. So Python inherits this bug from this val

[issue9705] limit dict.update() to a given list of keys

2010-08-28 Thread Ultrasick
New submission from Ultrasick : my_dict_1 = {'a' : 1, 'b' : 1} my_dict_2 = {'a' : 2, 'b' : 2, 'c' : 2} my_dict_1.update(my_dict_2, ['a', 'c']) should result for my_dict_1: {'a' : 2, 'b' : 1, 'c&#

[issue5554] file.read() doesn't read the whole file

2009-03-24 Thread Ultrasick
Ultrasick added the comment: ok thanks, sorry -- ___ Python tracker <http://bugs.python.org/issue5554> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5554] file.read() doesn't read the whole file

2009-03-24 Thread Ultrasick
Ultrasick added the comment: tested with python 2.6.1, Windows 2k -- ___ Python tracker <http://bugs.python.org/issue5554> ___ ___ Python-bugs-list mailin

[issue5554] file.read() doesn't read the whole file

2009-03-24 Thread Ultrasick
New submission from Ultrasick : # open the file file = open('F:/test.bmp', 'r') # read the content content = file.read() # close the file file.close() print "len(cont

[issue5118] '%.2f' % 2.545 doesn't round correctly

2009-01-31 Thread Ultrasick
Ultrasick added the comment: Well that's not what I have learned how rounding works. I think that's the more common way: 0.4 -> 0 0.5 -> 1 0.6 -> 1 I hope you don't try to spread the misbehavoir of pythons way of rounding print '%.2f' % 2.545 // returns 2.54

[issue5118] '%.2f' % 2.545 doesn't round correctly

2009-01-31 Thread Ultrasick
Ultrasick added the comment: I am sorry but I am not a C programmer. I cannot provide any patches. As far as I understood this issue and issue #1869 have a common problem but this issue wouldn't be solved if issue #1869 is solved. "print '%.2f' % 2.545" doesn't

[issue5118] '%.2f' % 2.545 doesn't round correctly

2009-01-31 Thread Ultrasick
Ultrasick added the comment: print round(2.545, 2) // returns 2.55 ___ Python tracker <http://bugs.python.org/issue5118> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5118] '%.2f' % 2.545 doesn't round correctly

2009-01-31 Thread Ultrasick
New submission from Ultrasick : print '%.2f' % 2.544 // returns 2.54 print '%.2f' % 2.545 // returns 2.54 but should return 2.55 print '%.2f' % 2.546 // returns 2.55 ------ messages: 80868 nosy: Ultrasick severity: normal status: open title: '%.2f&#x

[issue4741] winsound.SND_PURGE has no effect

2008-12-24 Thread Ultrasick
Ultrasick added the comment: added a test sound Added file: http://bugs.python.org/file12444/sound.wav ___ Python tracker <http://bugs.python.org/issue4741> ___ ___ Pytho

[issue4741] winsound.SND_PURGE has no effect

2008-12-24 Thread Ultrasick
New submission from Ultrasick : I added a .py file to demonstrate the problem. I tryed 2 ways to stop the sound from beeing played. The first way "winsound.PlaySound(path[0] + '/sound.wav', winsound.SND_PURGE)" should already stop it but instead it starts the playback agai