[issue46353] 'pydoc -k' fails when some module's loader is not found

2022-01-12 Thread Denis Laxalde
Change by Denis Laxalde : -- keywords: +patch pull_requests: +28758 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30557 ___ Python tracker <https://bugs.python.org/issu

[issue46353] 'pydoc -k' crashes when some module's loader is not found

2022-01-12 Thread Denis Laxalde
New submission from Denis Laxalde : On my (Debian 10) system, 'pydoc -k' crashes as follows: $ python3 -m pydoc -k foo Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return

[issue44564] DeprecationWarning in test_enum over formatting

2021-07-29 Thread Denis Laxalde
Denis Laxalde added the comment: The assertion at stake looks redundant since we already check that `'{}'.format(OkayEnum.one) == '1'` (the line above) and that `OkayEnum.one == '1'` (3 lines above). -- nosy: +dlax ___ Python tracker <ht

[issue42414] unable to document fields of dataclass

2021-07-22 Thread Denis Laxalde
Change by Denis Laxalde : -- nosy: +dlax ___ Python tracker <https://bugs.python.org/issue42414> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44353] PEP 604 NewType

2021-07-21 Thread Denis Laxalde
Change by Denis Laxalde : -- nosy: +dlax ___ Python tracker <https://bugs.python.org/issue44353> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-24 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: Re: msg393586 > See my comment in the PR for a suggestion about an alternative structure for > wait_for, which may avoid this gap and hence prevent the leak (but I have not > tested it!) Unfortunately this didn't close the gap, so the leak pers

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-13 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: The original problem can be fixed by wrapping await into try-except block: ``` async def create_connection(ssl_obj): loop = asyncio.get_event_loop() connector = loop.create_connection(MyEchoClientProtocol, '127.0.0.1', 5000, ssl=ssl_obj

[issue42130] AsyncIO's wait_for can hide cancellation in a rare race condition

2021-05-13 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- keywords: +patch pull_requests: +24737 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26097 ___ Python tracker <https://bugs.python.org/issu

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-13 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- pull_requests: +24738 pull_request: https://github.com/python/cpython/pull/26097 ___ Python tracker <https://bugs.python.org/issue37

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-13 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: The current solutions doesn't look correct. It swallows cancelling causing task to hang: https://bugs.python.org/issue42130 . Proposed test case calls cancel for inner future and set_result for outer task in the same loop step. The old (prior

[issue43029] unittest: Add assertUniqeIn

2021-01-29 Thread Denis Roussel
Denis Roussel added the comment: Of course. Wanted a shortcut. Can close it if you want. -- ___ Python tracker <https://bugs.python.org/issue43029> ___ ___ Pytho

[issue43029] unittest: Add assertUniqeIn

2021-01-29 Thread Denis Roussel
Denis Roussel added the comment: Indeed, can do assertNotEquals(len(the_list), len(set(the_list)) -- ___ Python tracker <https://bugs.python.org/issue43

[issue43029] unittest: Add assertUniqeIn

2021-01-26 Thread Denis Roussel
Change by Denis Roussel : -- keywords: +patch pull_requests: +23154 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24336 ___ Python tracker <https://bugs.python.org/issu

[issue43029] unittest: Add assertUniqeIn

2021-01-26 Thread Denis Roussel
New submission from Denis Roussel : Allows to test uniqueness of members of a list -- components: Tests messages: 385700 nosy: rousseldenis priority: normal severity: normal status: open title: unittest: Add assertUniqeIn ___ Python tracker <ht

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

2020-10-31 Thread Denis Kasak
Denis Kasak added the comment: Anything still left to do that is stalling this? I just got bitten by it when trying to use modulefinder. -- nosy: +dkasak ___ Python tracker <https://bugs.python.org/issue40

[issue42130] AsyncIO's wait_for can hide cancellation in a rare race condition

2020-10-26 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- nosy: +ods ___ Python tracker <https://bugs.python.org/issue42130> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42140] asyncio.wait function creates futures set two times

2020-10-25 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: The current error message is way too cryptic anyway. And restricting it to the set type only, as in docs, will certainly break a lot of code (passing a list is quite common). -- ___ Python tracker <ht

[issue42140] asyncio.wait function creates futures set two times

2020-10-24 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- nosy: +ods ___ Python tracker <https://bugs.python.org/issue42140> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42020] interpreter hangs forever on invalid input

2020-10-13 Thread denis
denis added the comment: I do confirm that different terminals react differently (xterm doesn't hang) Definitely not a python bug -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue42020] interpreter hangs forever on invalid input

2020-10-12 Thread denis
New submission from denis : Python 3.8.5, Python 3.7.3 When trying to print invalid unicode, interpreter goes to a completely unresponsive state >>> print("\x9b") eyboardInterrupt >>> print("\xa5") ¥ >>> print("\x95") >>&

[issue39618] logger.exception with default message

2020-02-12 Thread Denis Vieira
New submission from Denis Vieira : On my Python projects i like to use the logger.exception() method without any other message. I'm forced to send an empty string on every call. logger.exception('') It would be nice the exception method have the expected parameter "msg" with a

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-02 Thread Kaveshnikov Denis
New submission from Kaveshnikov Denis : Hi, I found that if to call run_until_complete() in the task while the event loop will be running, a coroutine sent to run_until_complete() will be performed despite the exception raised from run_until_complete(). It seems to me, it would be better

[issue36221] Setting PYTHONASYNCIODEBUG breaks warnings

2019-11-26 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: It's fixed in 3.8 final, but the problem persists in 3.7.5 -- versions: -Python 3.8 ___ Python tracker <https://bugs.python.org/issue36

[issue34364] problem with traceback for syntax error in f-string

2019-05-28 Thread Denis S. Otkidach
Change by Denis S. Otkidach : -- nosy: +ods ___ Python tracker <https://bugs.python.org/issue34364> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37065] File and lineno is not reported for syntax error in f-string

2019-05-27 Thread Denis S. Otkidach
New submission from Denis S. Otkidach : Minimal example to reproduce: -->8-- >>> with open('f_bug.py', 'w') as fp: ... fp.write('f"{a b}"') ... 8 >>> import f_bug Traceback (most recent call last): File "", line 1, in File "", li

[issue36221] Setting PYTHONASYNCIODEBUG breaks warnings

2019-03-06 Thread Denis S. Otkidach
New submission from Denis S. Otkidach : Test script: -->8-- import asyncio @asyncio.coroutine def test(): with (yield from asyncio.Lock()): pass asyncio.run(test()) -->8-- Correct behavior without flag (warning is reported and points to correct line of code): --- $

[issue35165] Possible wrong method name in attribute references doc

2018-11-05 Thread Denis Osipov
Denis Osipov added the comment: Got it. But now docs says that overriding the __getattr__() method is enough to customize attribute access. It's not completely true. If I understand it correct, to make __getattr__() work every time you need to call it by __getattribute__ or raise

[issue35119] Customizing module attribute access example raises RecursionError

2018-11-04 Thread Denis Osipov
Change by Denis Osipov : -- keywords: +patch pull_requests: +9625 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue31583] 2to3 call for file in current directory yields error

2018-11-04 Thread Denis Osipov
Change by Denis Osipov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35165] Possible wrong method name in attribute references doc

2018-11-04 Thread Denis Osipov
New submission from Denis Osipov : 6.3.1. Attribute references says: "The primary must evaluate to an object of a type that supports attribute references, which most objects do. This object is then asked to produce the attribute whose name is the identifier. This production can be custo

[issue35119] Customizing module attribute access example raises RecursionError

2018-11-04 Thread Denis Osipov
Denis Osipov added the comment: I understand that it's expected behavior. But why don't use completely working example in the docs, which one could just copy and paste? It requires to add just seven chars) -- ___ Python tracker <ht

[issue35119] Customizing module attribute access example raises RecursionError

2018-10-30 Thread Denis Osipov
New submission from Denis Osipov : Customizing module attribute access example raises RecursionError: >>> import sys >>> from types import ModuleType >>> class VerboseModule(ModuleType): ... def __repr__(self): ... return f'Verbose {self.__name__}' .

[issue35017] socketserver accept a last request after shutdown

2018-10-26 Thread Denis Ledoux
Denis Ledoux added the comment: The pleasure is all mine. Thanks to you and the other contributors involved. For my first contribution to Python, I am glad everything went smoothly :). -- ___ Python tracker <https://bugs.python.org/issue35

[issue35017] socketserver accept a last request after shutdown

2018-10-26 Thread Denis Ledoux
Change by Denis Ledoux : -- pull_requests: +9461 ___ Python tracker <https://bugs.python.org/issue35017> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35017] socketserver accept a last request after shutdown

2018-10-18 Thread Denis Ledoux
Change by Denis Ledoux : -- keywords: +patch pull_requests: +9299 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35017> ___ ___ Py

[issue35017] socketserver accept a last request after shutdown

2018-10-18 Thread Denis Ledoux
New submission from Denis Ledoux : After the shutdown of a `BaseServer`, the server may accept a last single request if it is sent between the server socket polling and the polling timeout. This can be problematic for instance for a server restart for which you do not want to interrupt

[issue31118] Make super() work with staticmethod by using __class__ for both arguments to super()

2018-05-14 Thread Denis Ryzhkov
Denis Ryzhkov <den...@denisr.com> added the comment: Simple explanation: if you call a method of a parent, then you are using class information now, so your child method is not static any more. Please use classmethod decorator and super() with no arguments - it will use cls ar

[issue32171] Inconsistent results for fractional power of -infinity

2017-12-01 Thread Pierre Denis
Pierre Denis <pie.de...@skynet.be> added the comment: > So this justifies things like `sqrt(-0.0)` giving a zero result (rather than > being considered invalid) Well, I didn’t noticed that the wolf was already in the henhouse! This choice seems disputable for me because it is prec

[issue32171] Inconsistent results for fractional power of -infinity

2017-11-29 Thread Pierre Denis
Pierre Denis <pie.de...@skynet.be> added the comment: Thanks, Tim & Mark. This indeed clarifies and gives a good rationale on Python implementation. Nevertheless, despite the authority arguments, I continue to wonder what is the rationale for these specifications. Probably the deba

[issue32171] Inconsistent results for fractional power of -infinity

2017-11-29 Thread Pierre Denis
New submission from Pierre Denis <pie.de...@skynet.be>: Python returns inconsistent results when negative infinity is raised to a non-integer power. This happens with the ** operator as well as with the pow and math.pow functions. The most blatant symptom occurs with power 0.5,

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Denis Osipov
Denis Osipov <osipo...@list.ru> added the comment: Got it. Thank you for your help. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue31761] Possible error in devguide part about tests

2017-10-11 Thread Denis Osipov
New submission from Denis Osipov <osipo...@list.ru>: In Developer Guide says: "If you don’t have easy access to a command line, you can run the test suite from a Python or IDLE shell: >>> from test import autotest" But I can't run test from IDLE: Traceback (most

[issue31747] fatal error LNK1120 in PCbuild\python3dll.vcxproj

2017-10-10 Thread Denis Osipov
Denis Osipov <osipo...@list.ru> added the comment: Oops... I've tried to rebuild, it didn't help. But after deleting folder cpython\PCbuild\amd64 everything works well again. Sorry for false alarm. -- resolution: -> works for me stage: -> resolved status: op

[issue31747] fatal error LNK1120 in PCbuild\python3dll.vcxproj

2017-10-10 Thread Denis Osipov
New submission from Denis Osipov <osipo...@list.ru>: Since today (2017-10-10) I have compile error on Windows 10: $ PCbuild/build.bat -e -d -p x64 Using py -3.6 (found with py.exe) Fetching external libraries... bzip2-1.0.6 already exists, skipping. sqlite-3.14.2.0 already exists, skippi

[issue31583] 2to3 call for file in current directory yields error

2017-09-25 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- keywords: +patch pull_requests: +3744 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31583] 2to3 call for file in current directory yields error

2017-09-25 Thread Denis Osipov
New submission from Denis Osipov: 2to3 doesn't work if called for file in current directory with --add-suffix option. $ /d/repos/cpython/python.bat /d/repos/cpython/Tools/scripts/2to3 -n -W --add-suffix=3 test2to3.py Running Debug|x64 interpreter... WARNING: --write-unchanged-files/-W

[issue27426] Encoding mismatch causes some tests to fail on Windows

2017-09-25 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- keywords: +patch pull_requests: +3727 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2017-09-25 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- keywords: +patch pull_requests: +3726 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31498] Default values for zero in time.strftime()

2017-09-20 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <https://bu

[issue31498] Default values for zero in time.strftime()

2017-09-19 Thread Denis Osipov
Denis Osipov added the comment: Thank you for your answers. It's what I want to know. It looks like I shouldn't try to fix (to break) something that works well enough. If nobody minds I'll close the issue with not a bug resolution. -- ___ Python

[issue31498] Default values for zero in time.strftime()

2017-09-19 Thread Denis Osipov
Denis Osipov added the comment: Actually now Python time.strftime not always returns the same value as C strftime with the same arguments, because timemodule make some refining of raw argument values to avoid errors. -- ___ Python tracker <

[issue31498] Default values for zero in time.strftime()

2017-09-19 Thread Denis Osipov
Denis Osipov added the comment: Yes, C strftime returns the same. Inside of Python time.strftime() in Windows we give struct tm with inconsistent attributes (year, mon, mday and wday,yday) as argument for C strftime(). Before it timemodule does a lot of work to parse arguments

[issue31498] Default values for zero in time.strftime()

2017-09-18 Thread Denis Osipov
Denis Osipov added the comment: It seems strange to me that time.strftime() returns formatted date with wrong day of week and day of year values. So, I think it's probably a bug. But I'm just learning Python and programming and I think that it can be intentional behavior. If it's a bug I'd

[issue31498] Default values for zero in time.strftime()

2017-09-18 Thread Denis Osipov
Denis Osipov added the comment: If it's really a bug I could make PR with changes in timemodule.c (in gettmarg() and checktm() functions). But I'm not sure that it's not intended behavior. -- ___ Python tracker <rep...@bugs.python.org>

[issue31498] Default values for zero in time.strftime()

2017-09-17 Thread Denis Osipov
New submission from Denis Osipov: Now default values for zero in time.strftime returns string with day of week value 1: >>> time.strftime("%Y %m %d %H %M %S %w %j", (2000,)+(0,)*8) '2000 01 01 00 00 00 1 001' while 2000-01-01 is Saturday (=6th day of week). Now each

[issue31381] Unable to read the project file "pythoncore.vcxproj".

2017-09-17 Thread Denis Osipov
Denis Osipov added the comment: Fixed in PR 3397 (I guess). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31381] Unable to read the project file "pythoncore.vcxproj".

2017-09-07 Thread Denis Osipov
Denis Osipov added the comment: Thank you. Looking forward to it. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31381> ___ ___

[issue31381] Unable to read the project file "pythoncore.vcxproj".

2017-09-07 Thread Denis Osipov
New submission from Denis Osipov: Can't load pythoncore.vcxproj in VS2017 after PR 3375 bpo-31358: Pull zlib out of the repository #3375. During pcbuild.sln loading there is error message: D:\repos\cpython\PCbuild\pythoncore.vcxproj : error : Unable to read the project file

[issue31364] Possible problem with PR #3377

2017-09-06 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue31364] Possible problem with PR #3377

2017-09-06 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- pull_requests: +3391 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31364> ___ _

[issue31364] Possible problem with PR #3377

2017-09-06 Thread Denis Osipov
New submission from Denis Osipov: It looks like last PR #3377 changing pytime.c (adding #include ) causing problem with compilation. Now on my Win10 i have multiple warnings and errors about ws2def.h, winsock.h and winsock2.h (see attached file). -- components: Windows files

[issue30757] pyinstaller can be added to docs, py2exe ref can be updated

2017-06-25 Thread Denis Akhiyarov
Changes by Denis Akhiyarov <denis.akhiya...@gmail.com>: -- pull_requests: +2443 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30757] pyinstaller can be added to docs, py2exe ref can be updated

2017-06-25 Thread Denis Akhiyarov
New submission from Denis Akhiyarov: https://github.com/python/cpython/pull/1158 It is not clear why this FAQ item is written in addition to this document: https://github.com/python/cpython/blob/master/Doc/faq/windows.rst#how-do-i-make-python-scripts-executable https://github.com/python

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- versions: +Python 3.5, Python 3.6 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov
Denis Osipov added the comment: Tests on Windows buildbots passed. I've made PR for 3.5 and 3.6 backporting. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- pull_requests: +2067 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30584> ___ _

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-08 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- pull_requests: +2066 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30584> ___ _

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-07 Thread Denis Osipov
Denis Osipov added the comment: Using the numeric SID instead of localized name in test_access_denied works for me (I've made PR). -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-07 Thread Denis Osipov
Changes by Denis Osipov <osipo...@list.ru>: -- pull_requests: +2046 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30584> ___ _

[issue30584] test_os fails on non-English (Russian) Windows

2017-06-07 Thread Denis Osipov
New submission from Denis Osipov: test_os fails on non-English (Russian) Windows 7 Home Extended 6.1.7601 x64 == ERROR: test_access_denied (test.test_os.StatAttributeTests

[issue6818] remove/delete method for zipfile/tarfile objects

2016-05-25 Thread Denis Akhiyarov
Denis Akhiyarov added the comment: has this been merged? -- nosy: +Denis Akhiyarov ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/

[issue26636] SystemError while running tests: extra exception raised

2016-03-25 Thread Denis
Denis added the comment: Thank you! The error was that some calls in pycrypto code were aggregated and exceptions in those calls were ignored. Here is the patch for pycrypto that fixed the build. @@ -1427,7 +1429,9 @@ getStrongPrime (PyObject *self, PyObject *args, PyObject *kwargs

[issue26636] SystemError while running tests: extra exception raised

2016-03-24 Thread Denis
New submission from Denis: Looks like related to Issue23571 Probably same issue as in Django, but in other Python module. While compiling python-module-crypto: = ERROR: test_getStrongPrime_randfunc_bogus

[issue25841] In FancyURLopener error in example with http address.

2015-12-11 Thread Denis Savenko
New submission from Denis Savenko: In documentation from this page https://docs.python.org/3.5/library/urllib.request.html#examples in examples uses default address to python site with http. ( http://python.org/ ). But now python.org use https. When i try use example in ipython i get I/0

[issue6331] Add unicode script info to the unicode database

2015-10-17 Thread Denis Jacquerye
Changes by Denis Jacquerye <moy...@gmail.com>: -- nosy: +Denis Jacquerye ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6331> ___

[issue22612] Add block info to unicodedata

2015-10-17 Thread Denis Jacquerye
Changes by Denis Jacquerye <moy...@gmail.com>: -- nosy: +Denis Jacquerye ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22612> ___

[issue24504] os.listdir() error if the last folder starts not with the capital letter

2015-06-24 Thread Denis Gordeev
New submission from Denis Gordeev: My code is: mypath = 'Z:\Pr Files\norma' file_list = [ f for f in listdir(mypath) if isfile(join(mypath,f))] Error: Traceback (most recent call last): File C:\Documents and Settings\Administrator\Desktop\uni\click zhenilo workshop\noise.py, line 13

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Denis Sukhonin
Denis Sukhonin added the comment: It returns an integer. import os os.open('/tmp/test', os.O_RDONLY) 3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23346

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Denis Sukhonin
Denis Sukhonin added the comment: No, it throws 22. os.listdir(os.open('/tmp/test', os.O_RDONLY)) Traceback (most recent call last): File stdin, line 1, in module OSError: [Errno 22] Invalid argument -- ___ Python tracker rep...@bugs.python.org

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Denis Sukhonin
Denis Sukhonin added the comment: The same problem. os.listdir(os.open('/tmp/test/', os.O_RDONLY)) Traceback (most recent call last): File stdin, line 1, in module OSError: [Errno 22] Invalid argument -- ___ Python tracker rep...@bugs.python.org

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-28 Thread Denis Sukhonin
New submission from Denis Sukhonin: shutil.rmtree doesn't work correctly on FreeBSD 9.1. For example if I create a path /tmp/test and try to remove it, I get an exception: shutil.rmtree('/tmp/test') Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib

[issue22438] eventlet broke by python 2.7.x

2014-11-07 Thread Denis Bilenko
Denis Bilenko added the comment: gevent's ssl support is also broken by 2.7.9. https://github.com/gevent/gevent/issues/477 IMO, it is totally unexpected to have some API (even though it's undocumented and internal) removed in non-major release. Even though both gevent and eventlet can

[issue18587] urllib raises exception with string in 'errno' attribute

2013-07-29 Thread Denis
New submission from Denis: On 'connection refused' error urllib creates IOError with wrong arguents: args ('socket error', error(os-dependent-number, 'Connection refused')) It results to dirty hacks in Python code like 'if e.errno == socket error: ...' instead of traditional 'id e.errno

[issue15896] Sporadic EINVAL in nonblocking pipe os.read when forked child fails on Mac OS

2012-09-10 Thread Denis Bilenko
Changes by Denis Bilenko denis.bile...@gmail.com: -- nosy: +Denis.Bilenko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15896 ___ ___ Python-bugs

[issue10496] import site failed when Python can't find home directory

2011-04-01 Thread Denis Barmenkov
Denis Barmenkov denis.barmen...@gmail.com added the comment: I saw similar error on Python 2.6 installed on freeBSD. I had test SVN server and wrote pre-commit hook using python. When remote developer commited his changes to repository, hook called os.path.expanduser and exception was raised

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-20 Thread Denis S. Otkidach
Denis S. Otkidach denis.otkid...@gmail.com added the comment: Phillip, your argument about interfacing with code written in C doesn't work for built-in immutable types like str. Any subclass of str must call str.__new__ thus keeping proper internal state

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-19 Thread Denis S. Otkidach
Denis S. Otkidach denis.otkid...@gmail.com added the comment: Current behavior is unpythonic: documentation explicitly mentions isinstance as preferred way to check type (see http://docs.python.org/library/types.html ). Also 2.7 is the last minor version with str as main string type. So I

[issue8571] zlib causes a SystemError when decompressing a chunk 1GB

2010-05-07 Thread Denis Dmitriev
Denis Dmitriev dmitr...@deshaw.com added the comment: Is there a reason to keep inplen and max_length ints instead of making them Py_ssize_t too? I'm a little worried that keeping them ints will cause a similar problem further down the line

[issue8571] zlib causes a SystemError when decompressing a chunk 1GB

2010-04-29 Thread Denis Dmitriev
New submission from Denis Dmitriev dmitr...@deshaw.com: There's a bug in python's zlibmodule.c that makes it raise SystemError whenever it tries to decompress a chunk larger than 1GB is size. Here's an example of this in action: dmitr...@...:~/moo/zlib_bug cat zlib_bug.py import zlib def

[issue8571] zlib causes a SystemError when decompressing a chunk 1GB

2010-04-29 Thread Denis Dmitriev
Denis Dmitriev dmitr...@deshaw.com added the comment: Alright, I think this is caused by the following: static PyObject * PyZlib_objdecompress(compobject *self, PyObject *args) { int err, inplen, old_length, length = DEFAULTALLOC; int max_length = 0; The problem is that inplen, length

[issue7114] HTMLParser doesn't handle ![CDATA[ ... ]]

2009-12-08 Thread Denis
Denis pyt...@sokolov.cc added the comment: The CDATA sections are part of XML specification. http://www.w3.org/TR/REC-xml/#sec-cdata-sect HTML is not XML, so HTMLParser does the right thing here. -- nosy: +Denis ___ Python tracker rep

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2009-11-24 Thread Denis S. Otkidach
Denis S. Otkidach denis.otkid...@gmail.com added the comment: Here is a regexp I use to clean up text (note, that I don't touch compatibility characters that are also not recommended in XML; some other developers remove them too): # http://www.w3.org/TR/REC-xml/#NT-Char # Char ::= #x9 | #xA

[issue7101] tarfile: OSError with TarFile.add(..., recursive=True) about non-existing file

2009-10-10 Thread Denis Martinez
New submission from Denis Martinez deuns.marti...@gmail.com: I have written a server backup script (file attached) which archives a list of directories with tarfile and uploads the file to FTP. Today, the script hanged, with an exception: Exception in thread Thread-1: Traceback (most recent

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2009-06-25 Thread Denis S. Otkidach
Denis S. Otkidach denis.otkid...@gmail.com added the comment: Every blog engine I've even seen so far pass through comments from untrusted users to RSS/Atom feeds without proper validation causing broken XML in feeds. Sure, this is a bug in web applications, but DOM manipulation packages should

[issue1576598] ftplib doesn't follow standard

2009-03-30 Thread Denis S. Otkidach
Denis S. Otkidach denis.otkid...@gmail.com added the comment: Yes, it's a problem in Python library. I believe the patch proposed by Oleg in the issue821862 is the best solution to it. -- ___ Python tracker rep...@bugs.python.org http

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2009-02-06 Thread Denis S. Otkidach
New submission from Denis S. Otkidach denis.otkid...@gmail.com: ElementTree and minidom allow creation of not well-formed XML, that can't be parsed: from xml.etree import ElementTree element = ElementTree.Element('element') element.text = u'\0' xml = ElementTree.tostring(element, encoding

[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2008-09-21 Thread Denis
New submission from Denis [EMAIL PROTECTED]: PROBLEM: Some sites (e.g. https://itunesconnect.apple.com) sends cookies where version is 1 instead of 1. Cookielib chokes on it so none of the cookies work after that. PROBLEM CODE: def _cookie_from_cookie_tuple(self, tup, request