[issue27828] Regression in http.cookies parsing with single key without value

2016-08-22 Thread Yuriy Zhuravlev
Yuriy Zhuravlev added the comment: >Any RFC I'm looking at says that the value is required, so your syntax is >simply not valid and is rejected by the parser. Perhaps but this cookies sets not by me (maybe JS ads widget or etc). And I can't fix it. I can't auth users because their c

[issue27828] Regression in cookie parsing with single key without value

2016-08-22 Thread Yuriy Zhuravlev
New submission from Yuriy Zhuravlev: After I migrated my site to Python 3.5 from 3.4 many users of my site have not been able to login. After small research I found out that users cookies there was a key without value and new Python get empty SimpleCookie result. Example for Python 3.5.2

[issue15944] memoryviews and ctypes

2015-08-05 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy added the comment: You don't need `raw=True`, `.cast('b')` already must do this. But unfortunately, is is not implemented yet. -- nosy: +cblp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15944

[issue12029] Catching virtual subclasses in except clauses

2015-01-21 Thread Yuriy Taraday
Yuriy Taraday added the comment: Can we move forward and land this patch? It seems to be working and for some reason it even makes that microbenchmark work faster. -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http

[issue21078] multiprocessing.managers.BaseManager.__init__'s serializer argument is not documented

2014-03-29 Thread Yuriy Taraday
Yuriy Taraday added the comment: Adding Benjamin Peterson as original author of multiprocessing (according to hg logs) -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21078

[issue21078] multiprocessing.managers.BaseManager.__init__'s serializer argument is not documented

2014-03-29 Thread Yuriy Taraday
Yuriy Taraday added the comment: Oh, sorry. -- nosy: -benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21078 ___ ___ Python-bugs

[issue21078] multiprocessing.managers.BaseManager.__init__'s serializer argument is not documented

2014-03-27 Thread Yuriy Taraday
New submission from Yuriy Taraday: We're going to use BaseManager for simple secure local RPC and for the secure part we can't use pickle, so we have to use serializer argument to switch to xmlrpclib. We need to be sure that argument won't go away so we need it to be documented and supported

[issue12029] Catching virtual subclasses in except clauses

2013-10-21 Thread Yuriy Taraday
Yuriy Taraday added the comment: Can someone please point out why do we have to do that dance with recursion limit? I've came upon this problem as well. I had some (bad) API I had to work with. It always raised the same exception with the only difference in the message. So I thought I could

[issue13355] random.triangular error when low = high=mode

2013-04-07 Thread Yuriy Senko
Yuriy Senko added the comment: Added validation of input data. Check whether low = mode = high. If low == high return low as a result. -- nosy: +Chaka_bum, asvetlov Added file: http://bugs.python.org/file29709/issue_13355.patch ___ Python tracker

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-07 Thread Yuriy Senko
Yuriy Senko added the comment: Patch ported from http://code.google.com/p/mock/issues/attachmentText?id=190aid=19name=mock.patchtoken=6pDNkNBcNLDftg-PsUE8roPb6T4%3A1363712167613 -- keywords: +patch nosy: +Chaka_bum, asvetlov Added file: http://bugs.python.org/file29713

[issue14902] test_logging failed

2012-07-03 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy c...@cblp.su added the comment: @vinay.sajip My time.timezone is -14400. What is yours? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902

[issue14902] test_logging failed

2012-07-03 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy c...@cblp.su added the comment: And datetime.datetime.now().tzinfo is always None. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902

[issue14902] test_logging failed

2012-05-24 Thread Yuriy Syrovetskiy
New submission from Yuriy Syrovetskiy c...@cblp.su: rev 152c78b94e41 test test_logging failed -- Traceback (most recent call last): File /home/cblp/my/cpython_default/Lib/test/test_logging.py, line 2903, in test_time self.assertEqual(f.formatTime(r), '1993-04-21 08:03:00,123

[issue14902] test_logging failed

2012-05-24 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy c...@cblp.su added the comment: My local timezone is Europe/Moscow, UTC+4, no daylight saving since 2011. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14902

[issue14855] IPv6 support for logging.handlers

2012-05-23 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy c...@cblp.su added the comment: Can the datagramHandler.host change during execution? If so, the address family of the socket can change. So, we should create a socket for every new message. Check my patch #2. Also I extended socket.create_connection to support UDP

[issue14855] IPv6 support for logging.handlers

2012-05-23 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy c...@cblp.su added the comment: test_logging is not broken, but just fails. test test_logging failed -- Traceback (most recent call last): File /home/cblp/my/cpython_default/Lib/test/test_logging.py, line 2903, in test_time self.assertEqual(f.formatTime(r), '1993-04-21

[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Yuriy Syrovetskiy
New submission from Yuriy Syrovetskiy c...@cblp.su: IPv4 operations may fail on IPv6 systems, and vice versa. So we have to create sockets with the proper address family. Maybe this behaviour could be incapsulated in socket object, but didn't find a good way to do it. No documentation

[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy c...@cblp.su added the comment: More correct description: IPv4 operations may fail on IPv6 systems, and vice versa; so we have to detect the proper address family before creating a socket. -- ___ Python tracker rep

[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy c...@cblp.su added the comment: On my computer, connect() on a UDP socket always finishes successfully. What's wrong? I tried that C example from man getaddrinfo(3). -- ___ Python tracker rep...@bugs.python.org http

[issue11461] Reading UTF-16 with codecs.readline() breaks on surrogate pairs

2011-03-10 Thread Yuriy Pilgun
New submission from Yuriy Pilgun p...@ukrpost.net: Reading UTF-16 text file with module 'codecs' fails, if surrogate pair is located at 72-character boundary. Attached python script fails with message: UnicodeDecodeError: 'utf16' codec can't decode bytes in position 70-71: unexpected end

[issue10880] do_mkvalue and 'boolean'

2011-02-27 Thread Yuriy
Yuriy iro...@mail.ru added the comment: +test_var = Py_BuildValue(?, 0); +if (PyBool_Check(test_var) test_var == Py_True) { +PyErr_SetString(TestError, Failed to Create boolean); +return NULL; +} + +test_var = Py_BuildValue(?, 1); +if (PyBool_Check

[issue10880] do_mkvalue and 'boolean'

2011-02-27 Thread Yuriy
Yuriy iro...@mail.ru added the comment: sorry ^_^ +test_var = Py_BuildValue(?, 0); +if (!PyBool_Check(test_var) || test_var == Py_True) { +PyErr_SetString(TestError, Failed to Create boolean); +return NULL; +} + +test_var = Py_BuildValue(?, 1

[issue10880] do_mkvalue and 'boolean'

2011-01-10 Thread Yuriy
New submission from Yuriy iro...@mail.ru: If a value created by Py_VaBuildValue and parameter b is transfered - a PyLong_Type value is returned despite of the fact that it would be reasonable if PyBool_Type were returned. Are there any reasons for this? modsupport.c Ln 214

[issue10880] do_mkvalue and 'boolean'

2011-01-10 Thread Yuriy
Yuriy iro...@mail.ru added the comment: Thank you, how is it possible to ask the developers to add such a flag? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10880

[issue10880] do_mkvalue and 'boolean'

2011-01-10 Thread Yuriy
Yuriy iro...@mail.ru added the comment: case 'g': { int n; n = va_arg(*p_va, int); if (n == 0) Py_RETURN_FALSE; else

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Yuriy Taraday
New submission from Yuriy Taraday yorik@gmail.com: I have straight IP in my proxy exception list like 192.168.0.2 without mask specification. The proxy_bypass_macosx_sysconf function verifies each item in this list by regexp r(\d+(?:\.\d+)*)(/\d+)? that produces two groups: IP and mask

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Yuriy Taraday
Yuriy Taraday yorik@gmail.com added the comment: The strange thing is that in both 2.7 and 3.1 branches there is no such code at all. Inernet Config is used there without mentioning any exceptions despite the fact that ic module is marked as deprecated and proxy bypass is real

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Yuriy Taraday
Yuriy Taraday yorik@gmail.com added the comment: I'm completely lost 2.7 tree in svn. My last post was about 3.1.2 release. As I understand, System Configuration framework is being used since 2.6.5 and 3.2. So, this bug is about all this versions. -- versions: +Python 2.7, Python

[issue8006] os.popen in Python 3.1

2010-03-20 Thread Yuriy Taraday
Yuriy Taraday yorik@gmail.com added the comment: os.popen is obsolete and as I understand is removed from 3k. Use subprocess module instead. http://docs.python.org/library/os.html?highlight=popen#os.popen -- nosy: +yorik.sar ___ Python tracker

[issue8117] TimedRotatingFileHandler doesn't rotate log file at startup.

2010-03-12 Thread Yuriy Taraday
Yuriy Taraday yorik@gmail.com added the comment: Can this change be included in the 2.6 release? It's small enough but necessary for our current development. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8117

[issue8117] TimedRotatingFileHandler doesn't rotate log file at startup.

2010-03-11 Thread Yuriy Taraday
New submission from Yuriy Taraday yorik@gmail.com: Screnario: - start logging, log something; - stop logging (stop application, for example); - start logging again after rotate interval passes. log4j's RotatingFileAppender's behavior: After restart, logfile is rotated if nessesary