[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__}' .

[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

[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