[issue44743] asyncio DatagramProtocol stops calling callbacks after OSError

2021-11-14 Thread Szymon
Szymon added the comment: I'm experiencing the same exact issue. The bug manifests with all combinations: SelectorEventLoop and ProactorEventLoop, python 3.9 and 3.10, on Windows 10. Python 3.8 on Linux seems to not be affected. Can we get a fix or at least an update? --

[issue43315] Decimal.__str__ has no way to force exact decimal representation

2021-02-26 Thread Szymon
Szymon added the comment: One more thing: It's worth mentioning that by default, you'll get only 28 significant digits of precision, so doing f"{Decimal('1234567890123456789012.12345678').normalize():f}" will produce '1234567890123456789012.1

[issue43315] Decimal.__str__ has no way to force exact decimal representation

2021-02-24 Thread Szymon
Szymon added the comment: Thanks for the replies. The use of format works great. Maybe it's worth mentioning in the documentation because using "%f" % Decimal("0.0001") leds to loosing precision (cast to float64 I guess) while using f"{"Decimal('0

[issue43315] Decimal.__str__ has no way to force exact decimal representation

2021-02-24 Thread Szymon
New submission from Szymon : str(Decimal("0.0001")) always returns "1E-8" and there is no way to directly get the "0.0001" string back without writting custom method for converting DecimalTuple to string. This is caused by arbitrary choice of `and leftdi

[issue26694] Disasembler fall with Key Error while disassemble obfuscated code.

2016-04-05 Thread Szymon Kuliński
New submission from Szymon Kuliński: Many obfuscators use simple technice for block disasemblation. Add broken instructions (for example unknown op codes) and use flow control (SETUP_EXCEPT or JUMP_FORWARD) to skip broken instructions. Interpreter work in right way skipping broken instruction

[issue25479] Increase unit test coverage for abc.py

2015-10-25 Thread Szymon Trapp
New submission from Szymon Trapp: Added a new function to unit tests for abc.py to increase the test coverage, specifically for the usage of __subclasshook__. This will cover lines 209-214. Note: this is my first submission to Python and I'm following the advice to start with the unit

[issue19770] NNTP.post broken

2013-11-25 Thread Szymon Sobik
Szymon Sobik added the comment: Ok I found this out too on my own. It might be better to add examples using the MIME* classes to nntplib documentation. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19770] NNTP.post broken

2013-11-25 Thread Szymon Sobik
Szymon Sobik added the comment: Traceback (most recent call last): File "./nntp_test.py", line 23, in s.post(msg) File "/usr/lib/python3.3/nntplib.py", line 909, in post return self._post('POST', data) File "/usr/lib/python3.3/nntplib

[issue19770] NNTP.post broken

2013-11-25 Thread Szymon Sobik
New submission from Szymon Sobik: post method fails because string methods have bytesrting arguments ie. line = line.rstrip(b"\r\n") + _CRLF -- components: Library (Lib) messages: 204331 nosy: sobczyk priority: normal severity: normal status: open title: NNTP.post broken type