[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2013-02-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue16389> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16474] More code coverage for imp module

2014-07-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Well, I've closed it as out-of-date. -- resolution: -> out of date stage: -> resolved ___ Python tracker <http://bugs.python.

[issue12842] Docs: first parameter of tp_richcompare() always has the correct type

2014-07-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in 71a0743f36db and 06bdd7e8fffd -- nosy: +asvetlov resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.2, Python 3.3 _

[issue22037] Poor grammar in asyncio TCP echo client example

2014-07-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in d19c58e13ac9 Thanks -- nosy: +asvetlov resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.or

[issue17709] http://docs.python.org/2.7/objects.inv doesn't support :func:`repr` or :exc:`Exception`

2014-07-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Cannot reproduce. -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue22055] Incomplete sentence in asyncio BaseEventLoop doc

2014-07-24 Thread Andrew Svetlov
New submission from Andrew Svetlov: Fixed in f578e1d717b7 and f578e1d717b7. Thanks. -- nosy: +asvetlov resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Bug can be reproduced if _PyBytes_Resize fails with out-of-memory error than NULL object decrefed. Buggy modules are _io, binascii and zlib. 3.4 hasn't the problem. Patch for 3.3 is attached. Fix goes to mimic 3.4 -- (replace Py_DECREF with Py_CLEAR),

[issue20434] Process crashes if not enough memory to import module

2014-01-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- keywords: +needs review stage: -> patch review ___ Python tracker <http://bugs.python.org/issue20434> ___ ___ Python-bugs-lis

[issue18882] Add threading.main_thread() function

2014-03-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Implementation uses the first choice: main_thread() returns the original _MainThread instance, even if it's dead in the child process. I'm sorry, would you guess desired documentation change? -- ___ Pyth

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Andrew Svetlov
New submission from Andrew Svetlov : On Windows there are tiny delay between call to os.unlink and real file removing. Periodically it leads to unittest crashes in cases like this: test.support.unlink(filename) f = open(filename, 'wb') Proposed solution: wait in support.unlink

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: patch for python 2 is attached -- Added file: http://bugs.python.org/file15455/python2.patch ___ Python tracker <http://bugs.python.org/issue7

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Problem can be reproduced with several run of test_bufio in both python versions. trunk contains more tests (+1 test case) so it's easer to catch 'access denied' exception on it. -- ___ Python

[issue7443] test.support.unlink issue on Windows platform

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: You right, problem is not in os.unlink (Windows call DeleteFile) itself. I have TortoiseSVN (very popular Explorer extension to work with Subversion) installed. This tool run TSVNCache.exe process to update own data in background. TSVNCache.exe receive

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Jason, as I see you implemented os.samefile (actually ntpath.samefile) but os.sameopenfile is still not implemented. Looks like it's easy to do: while GetFinalPathNameByHandle already accept file handle you can use CRT function _get_osfhandle(f

[issue5985] Implement os.path.samefile and os.path.sameopenfile on Windows

2009-12-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please note: patch for http://bugs.python.org/issue1578269 is already has implementation for samefile. It's easer to add sameopenfile is same way than maintain two different approaches. Unfortunately solution will work only starting from Windows Vist

[issue6727] ImportError when package is symlinked on Windows

2009-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue6727> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7316] Add a timeout functionality to common locking operations

2009-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue7316> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5596] memory leaks in py3k

2009-12-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue5596> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7566] Add ntpath.sameopenfile support for Windows

2009-12-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue7566> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2009-03-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: I can reproduce this problem on Windows Vista, fresh py3k sources. Looks like bug occurs only with Latin-1 characters. At least Cyrillic works ok. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2009-03-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my understanding (after tracing/debugging) problem lies in import.c find_module tries to convert path from unicode to bytestring using Py_FileSystemDefaultEncoding (line 1397). For Windows it is 'mbcs'. Conversion done with decode_mbcs (un

[issue4015] [patch] make installed scripts executable on windows

2009-03-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: optional .bat file generating - probably not bad idea. But I definitely don't want to see this issue as default. Maybe just tool for generating bat files for desired packages based on package metadata for scripts can be solution? -- nosy: +asv

[issue5604] imp.find_module() mixes UTF8 and MBCS

2009-03-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Problem fixed, patch attached I inserted conversion path parameters to using Py_FileSystemDefaultEncoding for: * load_module * load_compiled * load_dynamic * load_source * load_package find_module is already has conversion. -- Added file: http

[issue5604] imp.find_module() mixes UTF8 and MBCS

2009-03-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank you. On Mon, Mar 30, 2009 at 3:13 PM, Hirokazu Yamamoto wrote: > > Hirokazu Yamamoto added the comment: > > PyMem_Free is needed when "es" is used with PyArg_ParseTuple. See other > part of import.c. I did same mistake before.

[issue5604] imp.find_module() mixes UTF8 and MBCS

2009-03-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: According to Hirokazu Yamamoto memory cleanup added. Patch is updated. -- Added file: http://bugs.python.org/file13486/import.zip ___ Python tracker <http://bugs.python.org/issue5

[issue5604] imp.find_module() mixes UTF8 and MBCS

2009-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Continuing work over import.c I fixed bad error message encoding in generated ImportError exception. Tests for checking in case of non-ascii characters added. -- Added file: http://bugs.python.org/file13520/import.zip

[issue5604] imp.find_module() mixes UTF8 and MBCS

2009-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Martin von Loewis added to nosy list -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue5604> ___ ___ Python-bug

[issue5619] Pass MS CRT debug flags into subprocesses

2009-03-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Patch for multiprocessing added. Using with regrtest -n option now allows to pass all regression test stack without any popup assertion dialog on Windows box. Probably have to be backported to Python 2.7 branch -- components: +Tests versions: +Python

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Maybe also let's look on setuptools solution.It can make windows executable for 'entry point scripts'. Also there are family scripts for single entry point: * easy_install.exe * easy_install-2.5.exe * easy_install-2.5-script.py * easy_insta

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Problem in _multiprocessing is: FILE* fp = _fdopen(...); int fd = _fileno(fp); _close(fd); _fclose(fp); // raises assertion At process exit system tries to close all opened FILE* by _fcloseall, but file closed by descriptor _close has invalid state and _fclose

[issue5604] imp.find_module() mixes UTF8 and MBCS

2009-04-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Martin, can you review latest patch and apply it if this one is correct. I want to start working on conversion import.c to use unicode strings (we spoke about Tuesday) this weekend. It will be nice if I will have synchronized svn before making new changes

[issue5604] imp.find_module() mixes UTF8 and MBCS

2009-04-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Continuing work on problem I figured out: * on Windows it's impossible to convert filenames to file system encoding without and don't miss something. * Windows can work properly only with unicode (wchar_t) characters. * all other systems feels i

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: After looking in #4352 deep I figured out what true separation of filesystem default encoding and utf8 python namespace is really too complicated. For example import call stack chain converts module name from utf-8 to filesystem in import.c:find_module

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue8611> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-05-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm skeptical about surrogates particularly for that problem. >From my perspective the solution is only to use native unicode support for >windows file operation functions. Conversions utf-8 -> mbcs -> utf8 will loose encoding information

[issue27886] Docs: the difference between rename and replace is not obvious

2016-08-28 Thread Andrew Svetlov
New submission from Andrew Svetlov: Hi. On reading the doc for pathlib I've stuck with `.rename()` and `.replace()` (https://docs.python.org/3/library/pathlib.html#pathlib.Path.rename). What's the difference? Going to pathlib's source code I've figured out that metho

[issue27886] Docs: the difference between rename and replace is not obvious

2016-08-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Just keeping the reference to `os.rename()`: https://docs.python.org/3/library/os.html#os.rename Aha, `os.rename` says: "On Unix, if dst exists and is a file, it will be replaced silently if the user has permission." and "On Windows, if dst

[issue17215] documentation misprints

2013-02-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. July, would you fill Licence agreement http://www.python.org/psf/contrib/? -- nosy: +asvetlov resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python track

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17338> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17330] Stop checking for directory cache invalidation in importlib

2013-03-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17330> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17351] Remove explicit "object" inheritance in Python 3 docs

2013-03-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17351> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17365] Remove Python 2 code from test_print

2013-03-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Terry. The patch LGTM except unicode literals part. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17

[issue17373] Add inspect.Signature.from_callable()

2013-03-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree in general, but you need to update the docs also. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17

[issue17385] Use deque instead of list the threading.Condition waiter queue

2013-03-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17385> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17423] libffi on 32bit is broken on linux

2013-03-14 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17423> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17462] argparse FAQ: how it is different from optparse

2013-03-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: The patch is welcome -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17462> ___ ___ Python-bugs-list mailin

[issue17463] Fix test discovery for test_pdb.py

2013-03-18 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: asvetlov priority: normal severity: normal status: open title: Fix test discovery for test_pdb.py versions: Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue17

[issue17463] Fix test discovery for test_pdb.py

2013-03-18 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue17365] Remove Python 2 code from test_print

2013-04-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks, Berker -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue17206] Py_XDECREF() expands its argument multiple times

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17206> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue1521051> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13249] argparse.ArgumentParser() lists arguments in the wrong order

2013-04-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in 4712f9f8a90d, 5e5081cdc086, e4beda7cca2f. Thanks. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue17552] socket.sendfile()

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17552> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16705] Use concrete classes inherited from OSError instead of errno check

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- dependencies: +Errno checking replaced by concrete classes inherited from OSError ___ Python tracker <http://bugs.python.org/issue16

[issue17650] There is no exception correspond to errno EROFS

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17650> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16705] Use concrete classes inherited from OSError instead of errno check

2013-04-07 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- dependencies: +There is no exception correspond to errno EROFS ___ Python tracker <http://bugs.python.org/issue16705> ___ ___ Pytho

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: NEWS updated, thanks. -- ___ Python tracker <http://bugs.python.org/issue17502> ___ ___ Python-bugs-list mailing list Unsub

[issue17651] Errno checking replaced by concrete classes inherited from OSError

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: I've asked atykhonov for that because we have two sets: 1. Can be done with current exception classes 2. errno values doesn't have concrete OSError inherited exception and we have to make decision: add new exceptions or use errno check. This i

[issue17650] There is no exception correspond to errno EROFS

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry for reopening. Do you really sure that ENOTCONN and EINVAL doesn't worth to have separate sublasses? The same question about Not Supported family. I don't force to make new exception classes, just like to figure out the status quo. If we

[issue17570] Improve devguide Windows instructions

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, but you cannot just rewrite ./python.exe to just python.exe At least in http://docs.python.org/devguide/buildbots you have to make probably three sections: 1. for linux users to use just ./python 2. for Mac ./python.exe 3. for Windows /PCBuild

[issue17650] There is no exception correspond to errno EROFS

2013-04-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ok. Antoine's comment is clean. Let's close the issue. -- status: pending -> closed ___ Python tracker <http://bugs.pytho

[issue17651] Errno checking replaced by concrete classes inherited from OSError

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks like the patch is out-of-date and tests doesn't pass. Would you push updated version? -- ___ Python tracker <http://bugs.python.org/is

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

2013-04-11 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: -Python 3.2 ___ Python tracker <http://bugs.python.org/issue13355> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Test for the issue_13355.patch is incorrect, please fix. -- ___ Python tracker <http://bugs.python.org/issue13355> ___ ___ Pytho

[issue900112] cgi.fieldStorage doesn't grok standards env. variables

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: I've found the stable link to CGI 1.1 spec at http://tools.ietf.org/html/draft-robinson-www-interface-00 Links to spec from the issue looks like broken. Please, can you describe why we need to convert, say, HTTP_USER_AGENT to user-agent? I see in the

[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: I like the patch but please add tests also. We need to put new behavior in stone :) Take a look on comments to the patch also. -- ___ Python tracker <http://bugs.python.org/issue1521

[issue16658] Missing "return" in HTTPConnection.send()

2013-04-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: LGTM, will commit if no objects. Let's leave encoding problems for upcoming issue. Please file new one if needed. -- ___ Python tracker <http://bugs.python.org/is

[issue900112] cgi.fieldStorage doesn't grok standards env. variables

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Sentil -- ___ Python tracker <http://bugs.python.org/issue900112> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17688] Wrong signature for richcmpfunc in documentation

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks. -- nosy: +asvetlov resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.4 ___ Python tracker <http://bugs.python.or

[issue6696] Profile objects should be documented

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Cool! Thanks. -- ___ Python tracker <http://bugs.python.org/issue6696> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16658] Missing "return" in HTTPConnection.send()

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed for 3.3 and 3.4. As I see 2.7 has no this problem. Close the issue. Thanks for all. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bug

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

2013-04-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Pushed. Yuriy Senko, thanks for patch. But, please, be more accurate with tests for another one. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python track

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

2013-04-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Reverted. Sorry. -- ___ Python tracker <http://bugs.python.org/issue13355> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2013-04-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Serhiy. Better to direcly use OSError than IOError alias. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue2

[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2013-04-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: No, PEP3121 patch is not ready yet but PEP384 has been applied. -- ___ Python tracker <http://bugs.python.org/issue15

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-04-21 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17810> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Actually stdin/stdout/stderr are string streams if universal_newline is True -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue17

[issue22882] [patch] Linux packages you need to compile Python with all dependencies

2014-11-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: For Ubuntu/debian you can just run: $ sudo apt-get build-dep python3 -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue22

[issue23057] asyncio loop on Windows should stop on keyboard interrupt

2014-12-15 Thread Andrew Svetlov
New submission from Andrew Svetlov: See http://stackoverflow.com/questions/27480967/why-does-the-asyncios-event-loop-suppress-the-keyboardinterrupt-on-windows for details -- components: asyncio messages: 232678 nosy: asvetlov, gvanrossum, haypo, yselivanov priority: normal severity

[issue20606] Operator Documentation Example doesn't work

2015-01-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Closed -- nosy: +asvetlov resolution: -> duplicate stage: -> resolved superseder: -> operator.setitem example no longer works in Python 3 due to lazy map ___ Python tracker <http://bugs.python.or

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-01-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue4395> ___ ___ Python-bug

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-01-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue4395> ___ ___ Python-bugs-list mailing list Un

[issue22729] `wait` and `as_completed` depend on private api

2015-01-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: -1. Sorry, I don't see the reason for making custom `Future` class. Can you elaborate? -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/is

[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-16 Thread Andrew Svetlov
Andrew Svetlov added the comment: I guess R. David Murray asked you to make the least minimal change, even it breaks the formatting rules. Paragraph reflow is safe when it's done by the Core Developer but it requires additional check (and probably mercurial conflict errors on merging the c

[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm with Antoine. Yes, GIL is extremely important but please don't put GIL mentions everywhere. On Sun, Jan 18, 2015 at 4:39 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Please let's stop it. Mentioning th

[issue21354] PyCFunction_New no longer exposed by python DLL breaking bdist_wininst installers

2015-02-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm sorry. The patch is correct from my perspective if we want to make bdist_install just working. Or as an option I can restore PyCFunction_New function declaration. What do you prefer? -- ___ Python tr

[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()

2015-06-08 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue24411> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()

2015-06-08 Thread Andrew Svetlov
New submission from Andrew Svetlov: Now those methods use lock for querying queue size, like def qsize(self): with self.mutex: return self._qsize() The lock is not necessary because thread context switch may be done *after* returning from mutex protected code but

[issue24411] Drop redundant lock in queue.Queue methods qsize(), empty() and full()

2015-06-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Raymond, is there known custom third-party queue class derived from queue.Queue? I believe all those are in stdlib only. Also locking guarantee is promised by comment in source code only, documentation says nothing about it. I believe proposed change will

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue24400> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25074] Bind logger and waninigs modules for asyncio __del__ methods

2015-09-11 Thread Andrew Svetlov
New submission from Andrew Svetlov: See https://github.com/KeepSafe/aiohttp/issues/497 for the reason. Desctructors and descendant code (`loop.call_exception_handler()`) can be called on interpreter shutdown stage, which leads to printouts like 'None object has no attribute &q

[issue25074] Bind logger and waninigs modules for asyncio __del__ methods

2015-09-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: > You should try to implement something in aiohttp or even in the application > to cleanup objects at exit. For example, it's probably wrong if you still > have tasks when the event loop is closed. Especially if tasks are still > pending. T

[issue24598] asyncio: add background task detecting reference cycles

2015-09-16 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue24598> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25214] asyncio ssl transport regression

2015-09-22 Thread Andrew Svetlov
New submission from Andrew Svetlov: Before using SSL BIO (which is great itself BTW) I has a way to access peers certificate by `ssl_transp.get_extra_info('socket').getpeercert()` call. Now socket is a regular socket without `.getpeercert()` method. I use hack like `ssl_transp._ss

[issue25214] asyncio ssl transport regression

2015-09-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: I've missed your patch, sorry. Everything is fixed by http://bugs.python.org/issue25114 -- resolution: -> duplicate stage: -> resolved ___ Python tracker <http://bugs.python.

[issue25214] asyncio ssl transport regression

2015-09-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: BTW for fingerprint check for self-signed certs I need binary form of certificate `ssl_obj.getpeercert(binary_form=True)` but `transp.get_extra_info('peercert')` returns a dict-based form. -- ___ Pyth

[issue25208] improvements to the asyncio documentation

2015-09-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks! -- nosy: +asvetlov resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker <http://bugs.python.or

[issue25284] Spec for BaseEventLoop.run_in_executor(executor, callback, *args) is outdated in documentation

2015-09-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in 9a10055e12fa d7d18ef3e05c 1465b18ef4fc -- nosy: +asvetlov resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.4, Python 3.6 ___ Python tracker <http://bug

[issue25501] Use async/await through asyncio docs

2015-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Also sphinx (pygments actually) still do not support async/await syntax highlighting yet. -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue25

<    20   21   22   23   24   25   26   >