[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Andrew McNamara
Andrew McNamara added the comment: Okay, while I am sympathetic to the points raised by the people asking for this enhancement, I'm persuaded to reject it by the arguments that the potential benefit is outweighed by the increase in complexity (code and documentation). While the att

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Andrew McNamara
Andrew McNamara added the comment: Note that there is one case that cannot easily be addressed via pre-processing: where the comment character coincidently appears at the start of a line within a multi-line quoted field. For example: # This is a comment 1, 2, "This is field^M #3"

[issue7917] list of list created by *

2010-02-12 Thread Andrew Chong
Changes by Andrew Chong : -- nosy: sledge76 severity: normal status: open title: list of list created by * versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue7

[issue7917] list of list created by *

2010-02-12 Thread Andrew Chong
New submission from Andrew Chong : This shows unexpected behavior. >>> data2 = [[]] * 4 >>> print data2 [[], [], [], []] >>> data2[0] += [(0,1)] >>> print data2 [[(0, 1)], [(0, 1)], [(0, 1)], [(0, 1)]] I added a tuple to only 0th list, but it got added

[issue7917] list of list created by *

2010-02-12 Thread Andrew Chong
Andrew Chong added the comment: But this works fine. >>> data = [] >>> data += [[]] >>> data += [[]] >>> data += [[]] >>> data += [[]] >>> print data [[], [], [], []]

[issue7846] Fnmatch cache is never cleared during usage

2010-02-16 Thread Andrew Clegg
Andrew Clegg added the comment: Hi, I used a global name for a couple of reasons: it is consistent with the cache itself and the size of the cache being defined in the same place; and because I wanted to allow the value to be modified by users. I used the leading underscore to give a weak

[issue5088] optparse: inconsistent default value for append actions

2010-02-16 Thread Andrew McNabb
Andrew McNabb added the comment: I think that optparse is doing the right thing here. I think that your code example should be changed to: import optparse parser = optparse.OptionParser() parser.add_option("-o", "--option", action = "append") options, a

[issue7846] Fnmatch cache is never cleared during usage

2010-02-17 Thread Andrew Clegg
Andrew Clegg added the comment: "If you give something an _, then it is not considered part of the public API and it (the internal API, not the value) is subject to change, which means you should *not* suggest that users change it. If they find it and want to change it anyway, that&#x

[issue7953] RawIOBase.read fails with an AttributeError

2010-02-17 Thread Andrew McNabb
New submission from Andrew McNabb : I was trying to open stdin in binary mode and ran the following: >>> RawIOBase(sys.stdin.fileno()).read() Traceback (most recent call last): File "", line 1, in AttributeError: 'RawIOBase' object has no attribute 'readi

[issue7954] detach method has no docstring

2010-02-17 Thread Andrew McNabb
Andrew McNabb added the comment: Oops. I had run "pydoc" instead of "pydoc3", so I was getting the 2.6 version of the io docstrings instead of the 3.1 version. By the way, it took about an hour to find out how to get Python 3 to treat stdin as bytes instead of unicode.

[issue7955] TextIOWrapper Buffering Inconsistent Between _io and _pyio

2010-02-17 Thread Andrew McNabb
New submission from Andrew McNabb : The following snippet behaves differently in the C IO implementation than in the Python IO implementation: import sys sys.stdout.write('unicode ') sys.stdout.buffer.write(b'bytes ') To test this, I have created two scripts, test

[issue7955] TextIOWrapper Buffering Inconsistent Between _io and _pyio

2010-02-18 Thread Andrew McNabb
Andrew McNabb added the comment: This seems like a common need (particularly for stdout and stderr), and setting `stdout._CHUNK_SIZE = 1` is relying on an implementation detail. 1) Can the documentation for TextIOWrapper be updated to clearly describe this extra buffering (how often

[issue7955] TextIOWrapper Buffering Inconsistent Between _io and _pyio

2010-02-18 Thread Andrew McNabb
Andrew McNabb added the comment: I would imagine that this would come up in most programs that read data from a pipe or from a socket (which are binary data) and then output to stdout or stderr. I ran across the problem in my first non-trivial port to Python 3, and it seems like a common

[issue7968] __dict__ Exception using class attributes

2010-02-19 Thread Andrew Shuiu
New submission from Andrew Shuiu : Interpreter do not fill in __dict__ attribute of a class which has atributes. dir() shows them, but not __dict__. It works only when attributes are created dynamically at runtime, such as class.attribute = value, not in class definition. Behaviour is the

[issue7968] __dict__ Exception using class attributes

2010-02-19 Thread Andrew Shuiu
Andrew Shuiu added the comment: Hello Murray, That seems a little strange to me, because if an object is instance of a class, it should inherit all of it attributes. Is it an optimization issue? because I observed that all instances of a class that has such "static" attributes, s

[issue5315] signal handler never gets called

2010-03-02 Thread Andrew McNabb
Andrew McNabb added the comment: I'm seeing something very similar to this. In my case, I have a single-threaded program, and select fails to be interrupted by SIGCHLD. I'm still tracking down more details, so I'll report back if I find more information. --

[issue5315] signal handler never gets called

2010-03-02 Thread Andrew McNabb
Andrew McNabb added the comment: Sorry for the noise. It turns out that my problem was unrelated. -- ___ Python tracker <http://bugs.python.org/issue5

[issue8127] Add link to PortingPythonToPy3k to What's New documentation

2010-03-12 Thread Andrew McNabb
New submission from Andrew McNabb : The What's New documentation for Python 3.0 and 3.1 have sections called "Porting to Python 3.0". It would be great to add a link to the Python wiki page about porting Python to Python 3: http://wiki.python.org/moin/PortingPythonToPy3k

[issue8127] Add link to PortingPythonToPy3k to What's New documentation

2010-03-12 Thread Andrew McNabb
Andrew McNabb added the comment: What advice in particular do you consider bad? I would be happy to submit some changes to the wiki page for anything that's wrong. I think it would be great to have a reviewed version in the documentation directly, but I think the world needs a little

[issue8127] Add link to PortingPythonToPy3k to What's New documentation

2010-03-12 Thread Andrew McNabb
Andrew McNabb added the comment: By the way, I just noticed your notes on the wiki page and added a response/question. It seems that the advice that you consider bad is the official porting story (upgrade to 2.6 and use 2to3). I agree that it's easier and better to not drop support fo

[issue8127] Add link to PortingPythonToPy3k to What's New documentation

2010-03-12 Thread Andrew McNabb
Andrew McNabb added the comment: Thanks for your advice. I just signed up for the python-porting list, and I'll start a discussion there. I'm trying to improve the wiki page to address your concerns. There are multiple valid approaches to take, and I'm trying to make the

[issue2919] Merge profile/cProfile in 3.0

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

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

2010-04-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Florent, sorry. I have no Windows workstation now, so I cannot follow this issue. -- ___ Python tracker <http://bugs.python.org/issue7

[issue8354] siginterrupt with flag=False is reset when signal received

2010-04-08 Thread Andrew Bennetts
New submission from Andrew Bennetts : The effect of signal.siginterrupt(somesig, False) is reset the first time a that signal is received. This is not the documented behaviour, and I do not think this is a desireable behaviour. It renders siginterrupt effectively useless at providing the

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-09 Thread Andrew Bennetts
Andrew Bennetts added the comment: Note that a trivial untilConcludes isn't correct for select if a timeout was passed. If a select(..., 60) was interrupted after 59 seconds, you probably want to restart it with a timeout of 1 second, not 60. The SocketServer_eintr.diff patch has this

[issue850728] Semaphore.acquire() timeout parameter

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

[issue8354] siginterrupt with flag=False is reset when signal received

2010-04-15 Thread Andrew Bennetts
Andrew Bennetts added the comment: Your patches look good to me. (They don't fix platforms without sigaction, but as you say they probably don't have siginterrupt, and even if they do they will still have an unfixable race.) What's the next step? I can't see an button

[issue8354] siginterrupt with flag=False is reset when signal received

2010-04-15 Thread Andrew Bennetts
Andrew Bennetts added the comment: Are there any platforms that define HAVE_SIGINTERRUPT but that do not define HAVE_SIGACTION? If there are, then yes I expect they would fail that test. It would be a shame to delay this fix just because it doesn't fix all platforms... is it possib

[issue8354] siginterrupt with flag=False is reset when signal received

2010-04-15 Thread Andrew Bennetts
Andrew Bennetts added the comment: FWIW, comparing the "change history" sections of <http://www.opengroup.org/onlinepubs/95399/functions/siginterrupt.html> and <http://www.opengroup.org/onlinepubs/95399/functions/sigaction.html> suggests that sigaction predates

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-04-15 Thread Andrew Bennetts
Changes by Andrew Bennetts : -- nosy: +spiv ___ Python tracker <http://bugs.python.org/issue8407> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8354] siginterrupt with flag=False is reset when signal received

2010-04-15 Thread Andrew Bennetts
Andrew Bennetts added the comment: > I'm not exactly sure how we will know if it is expected to fail, > though. I don't think `HAVE_SIGACTION` is exposed nicely to Python > right now. It might be useful to have the contents of pyconfig.h exposed as a dict somehow.

[issue1054967] bdist_deb - Debian packager

2010-04-28 Thread Andrew Straw
Andrew Straw added the comment: Barry, stdeb does much of what you're describing. (Try the "python setup.py sdist_dsc" command.) I'm not particularly pleased with the stdeb codebase as it stands, but it does work reasonably well, and I'd like to see progress in this

[issue1054967] bdist_deb - Debian packager

2010-04-29 Thread Andrew Straw
Andrew Straw added the comment: Barry, I'm sorry I still don't understand what you think is the essential distinction. A debian source package (.dsc, .orig.tar.gz, and .diff.gz files) is simply made from a (patched) source directory, including the debian/ directory, and an upstre

[issue1054967] bdist_deb - Debian packager

2010-04-29 Thread Andrew Straw
Andrew Straw added the comment: I see. So is copying the debian/ directory into its desired location a possibility for you, either manually or via a new distutils commands that shares 99% of its code with sdist_dsc? It doesn't seem like enough of a difference to start a new pr

[issue1054967] bdist_deb - Debian packager

2010-05-03 Thread Andrew Straw
Andrew Straw added the comment: I have moved the recent discussion on stdeb to a thread on the distutils-sig. -- ___ Python tracker <http://bugs.python.org/issue1054

[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Andrew Bennetts
New submission from Andrew Bennetts : set.difference(s), when s is also a set, basically does:: res = set() for elem in self: if elem not in other: res.add(elem) This is wasteful when len(self) is much greater than len(other): $ python -m timeit -s "s = set(

[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Andrew Bennetts
Andrew Bennetts added the comment: Oops, obvious bug in this patch. set('abc') - set('bcd') != set('bcd') - set('abc'). I'll see if I can make a more sensible improvement. See also <http://bugs.python

[issue8685] set(range(100000)).difference(set()) is slow

2010-05-11 Thread Andrew Bennetts
Andrew Bennetts added the comment: Ok, this time test_set* passes :) Currently if you have large set and small set the code will do len(large) lookups in the small set. When large is >> than small, it is cheaper to copy large and do len(small) lookups in large. On my laptop

[issue8685] set(range(100000)).difference(set()) is slow

2010-05-12 Thread Andrew Bennetts
Changes by Andrew Bennetts : Added file: http://bugs.python.org/file17306/set-mem.py ___ Python tracker <http://bugs.python.org/issue8685> ___ ___ Python-bugs-list mailin

[issue8685] set(range(100000)).difference(set()) is slow

2010-05-12 Thread Andrew Bennetts
Andrew Bennetts added the comment: Regarding memory, good question... but this patch turns out to be an improvement there too. This optimisation only applies when len(x) > len(y) * 4. So the minimum size of the result is a set with 3/4 of the elems of x (and possibly would be a full c

[issue1575] typo in README

2007-12-08 Thread Andrew Dalke
New submission from Andrew Dalke: Current text in README: See Mac/OSX/README for more information on framework and universal builds. Should be See Mac/README for more information on framework and universal builds. because r46719 moved Mac/OSX/* one level up

[issue1367711] Remove usage of UserDict from os.py

2008-01-12 Thread Andrew Dalke
Andrew Dalke added the comment: I was optimization tuning and wondered why UserDict was imported by os. Replacing UserDict with dict passes all existing regression tests. I see the concerns that doing that replacement is not future proof. Strange then that Cookie.py is acceptable. There

[issue1367711] Remove usage of UserDict from os.py

2008-01-12 Thread Andrew Dalke
Andrew Dalke added the comment: I should have added my preference. I would like to see UserDict replaced with dict. I didn't like seeing the extra import when I was doing my performance testing, through truthfully it's not a bit overhead. As for future-proofing, of course when

[issue1367711] Remove usage of UserDict from os.py

2008-01-13 Thread Andrew Dalke
Andrew Dalke added the comment: Ahh, so the bug here that the environ dict should use neither UserDict nor dict, it should implement the core {get,set,del}item and keys and use DictMixin. Martin mentioned that the patch doesn't support setdefault. He didn't note though that the cu

[issue1747858] chown broken on 64bit

2008-01-16 Thread Andrew Ferguson
Andrew Ferguson added the comment: The idea of dynamic typing it seems quite heavy to me, but I'm not a Python hacker, so I don't know what's the norm. Notice that os.stat() does "PyInt_FromLong((long)st->st_uid)" on the stat structure's st_uid field. On m

[issue1889] string literal documentation differs from implementation

2008-01-21 Thread Andrew Dalke
New submission from Andrew Dalke: The reference manual documentation for raw string literals says """Note also that a single backslash followed by a newline is interpreted as those two characters as part of the string, *not* as a line continuation.""" This is not

[issue2009] Grammar change to prevent shift/reduce problem with varargslist

2008-02-04 Thread Andrew Dalke
New submission from Andrew Dalke: I wrote a translator from the CFG used in the Grammar file into a form for PLY. I found one problem with varargslist: ((fpdef ['=' test] ',')* ('*' NAME [',' '**' NAME] | '**'

[issue2011] compiler.parse("1; ") adds unexpected extra Discard(Const(None)) to parse tree

2008-02-04 Thread Andrew Dalke
New submission from Andrew Dalke: Python 2.6a0 (trunk:60565M, Feb 4 2008, 01:21:28) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from compiler import parse &

[issue2011] compiler.parse("1; ") adds unexpected extra Discard(Const(None)) to parse tree

2008-02-04 Thread Andrew Dalke
Andrew Dalke added the comment: This really is a minor point. I don't track the 3K list and I see now that the compiler module won't be in Python 3k - good riddance - so feel free to discard this as well as the other open compiler module bugs. I want to experiment with adding instr

[issue2009] Grammar change to prevent shift/reduce problem with varargslist

2008-02-05 Thread Andrew Dalke
Andrew Dalke added the comment: I've been working from the Grammar file from CVS for 2.6 ... I thought. For example, I see "# except_clause: 'except' [test [('as' | ',') test]]" which is a 2.6-ism. "svn log" says it hasn't changed s

[issue1124861] subprocess fails on GetStdHandle in interactive GUI

2008-02-15 Thread Andrew Trusty
Andrew Trusty added the comment: I agree with Daniel, I think this bug or a variant is still present in 2.5.1 because my wxPython app on Windows XP would fail to execute a Popen with only stdout using PIPE but succeeded with the described workaround of having stdout, stderr, and stdin set to

[issue1225769] Proposal to implement comment rows in csv module

2008-04-15 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: I think it's a reasonable enough request - I've certainly had to process CSV files with comments. Iain - appologies for not looking at your request before now - 3 years is a pretty poor response time. Some thoughts: * th

[issue2697] Logging ancestors ignored after configuration

2008-04-26 Thread andrew cooke
New submission from andrew cooke <[EMAIL PROTECTED]>: I am seeing some odd behaviour with logging which would be explained if loggers that are not defined explicitly (but which are controlled via their ancestors) must be created after the logging system is configured via fileConfig(). Th

[issue2697] Logging ancestors ignored after configuration

2008-05-05 Thread andrew cooke
andrew cooke <[EMAIL PROTECTED]> added the comment: Got more important things than this to worry about, but yes, original response not very helpful. In a perfect world this might be either justified more clearly or addressed. OTOH, I get the impression hardly anyone uses this package

[issue4190] IDLE (2.6) doesn't stay open

2008-10-23 Thread Andrew Shaw
New submission from Andrew Shaw <[EMAIL PROTECTED]>: Downloaded Python 2.6 for Mac OS X. When launching IDLE.app, it puts the icon on the dock for a second, then disappears. Nothing else ever happens. X11 does not open either. -- components: IDLE messages: 7515

[issue416670] MatchObjects not deepcopy()able

2008-11-03 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: One reason why this issue has been having less impact is that a bug in some versions of the copy.py code meant it was ignoring the __deepcopy__ stubs and using the pickle logic to copy _sre objects - so, if you run the right

[issue416670] MatchObjects not deepcopy()able

2008-11-04 Thread Andrew McNamara
Changes by Andrew McNamara <[EMAIL PROTECTED]>: -- versions: +Python 2.5.3, Python 2.6 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.

[issue1711800] SequenceMatcher bug with insert/delete block after "replace"

2008-11-21 Thread Andrew Inglis
Andrew Inglis <[EMAIL PROTECTED]> added the comment: Are there any updates for this issue? I am having the same problem, or, lack of feature, with SequenceMatcher. Gabriel, Differ doesn't seem to have the functionality, or an easy way to patch it to get the functionality, that C

[issue4025] C99 comments in Python 2.6 break build on AIX 6.1

2008-12-02 Thread Andrew Paprocki
Andrew Paprocki <[EMAIL PROTECTED]> added the comment: summary of compiler errors/warnings i just hit in the same situation with stock Python-2.6.tgz: >>>>>>>>>>>>>> c++ style comment used "Objects/frameobject.c", line 520.9: 1506-0

[issue4499] redefinition of TILDE macro on AIX platform

2008-12-02 Thread Andrew Paprocki
New submission from Andrew Paprocki <[EMAIL PROTECTED]>: "Include/token.h", line 42.9: 1506-236 (W) Macro name TILDE has been redefined. "Include/token.h", line 42.9: 1506-358 (I) "TILDE" is defined on line 250 of /usr/include/sys/ioctl.h. -- c

[issue4025] C99 comments in Python 2.6 break build on AIX 6.1

2008-12-03 Thread Andrew Paprocki
Andrew Paprocki <[EMAIL PROTECTED]> added the comment: The list of files/lines I posted yesterday was all that I had to change to get it to build here (where a C++ style comment is a syntax error), so it doesn't seem like a massive change. ___ Pyt

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
Changes by Andrew Price <[EMAIL PROTECTED]>: -- nosy: +AndyP ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4483> ___ ___ Python

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
Andrew Price <[EMAIL PROTECTED]> added the comment: I'm running the same distro as Leger and I was having the same problem. Now I've applied dbm.diff and with a clean build I'm seeing this: building '_dbm' extension gcc -pthread -fPIC -fno-strict-aliasing -DNDEBU

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
Andrew Price <[EMAIL PROTECTED]> added the comment: In Debian Lenny libgbdm-dev provides two libs, libgdbm and libgdbm_compat: [EMAIL PROTECTED]:~$ objdump -t /usr/lib/libgdbm.a | grep dbm_firstkey *UND* gdbm_firstkey 0140 g F .text 0056 gdbm_fi

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
Andrew Price <[EMAIL PROTECTED]> added the comment: Skip, the new patch makes it fail with (highlights): ... File "/home/andy/src/python3/Python-3.0/Lib/distutils/ccompiler.py", line 844, in has_function import tempfile File "/home/andy/src/python3/Python-3.0/Lib/

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
Andrew Price <[EMAIL PROTECTED]> added the comment: Skip, your simplified patch works for me. Makes it build fine with the following snippet: building '_dbm' extension gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_GDBM_DASH_ND

[issue4732] Object allocation stress leads to segfault on RHEL

2008-12-23 Thread Andrew Gillis
New submission from Andrew Gillis : Allocating large numbers of strings objects has been causing Python to segfault on RHEL. Originally detected when sending large data structures over XMLRPC, but also happens when appending large numbers of small strings to a list and calling join in the list

[issue4753] Faster opcode dispatch on gcc

2009-01-11 Thread Andrew Bennetts
Changes by Andrew Bennetts : -- nosy: +spiv ___ Python tracker <http://bugs.python.org/issue4753> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4986] Augmented Assignment / Operations Confusion in Documentation

2009-01-18 Thread andrew cooke
New submission from andrew cooke : There's a small confusion in terminology in the documentation related to methods that implement augmented assignment. The "Expressions" section of the language reference ("Simple statements") refers to augmented assignment - h

[issue4986] Augmented Assignment / Operations Confusion in Documentation

2009-01-18 Thread andrew cooke
andrew cooke added the comment: thanks! ___ Python tracker <http://bugs.python.org/issue4986> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue37179] asyncio loop.start_tls() provide support for TLS in TLS

2022-03-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36098] asyncio: ssl client-server with "slow" read

2022-03-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for checking -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46955] The documentation mentions asyncio.Server. It does not exist.

2022-03-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.11, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46955> ___ ___ Python-bugs-list mailin

[issue46955] The documentation mentions asyncio.Server. It does not exist.

2022-03-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset da80d6b2f3beff519cb1457d5e055168c89f7224 by Stefan Zabka in branch 'main': bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760) https://github.com/python/cpython/commit/da80d6b2f3beff519cb1457d5e0551

[issue46955] The documentation mentions asyncio.Server. It does not exist.

2022-03-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue30740] SSLError when cancelling an SSL connection

2022-03-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue30740> ___ ___

[issue33886] SSL on aiomysql hangs on reconnection

2022-03-09 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue33886> ___ ___

[issue45033] Calls to PyErr_PrintEx in destructors cause calling async functions to incorrectly return None

2022-03-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: 'catch (boost::python::error_already_set e)' is equal to `except BaseException as e:` In Python, blind catching base exception is dangerous, the code should re-raise it usually. The same is true for boost::python usage. > how would it tell t

[issue36709] Asyncio SSL keep-alive connections raise errors after loop close.

2022-03-09 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue46771] Add some form of cancel scopes

2022-03-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: The implementation has landed, docs are still required. -- ___ Python tracker <https://bugs.python.org/issue46771> ___ ___

[issue46892] Async Call-Stack Reconstruction

2022-03-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: > We’d like to merge our implementation into CPython Could you provide a link first, please? -- ___ Python tracker <https://bugs.python.org/issu

[issue46892] Async Call-Stack Reconstruction

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: The idea looks interesting. The devil in the details I guess. I'm curious what is the memory and performance penalty. Waiting for the PR as the discussion starting point. -- ___ Python tracker &

[issue46994] Accept explicit contextvars.Context in asyncio create_task() API

2022-03-12 Thread Andrew Svetlov
New submission from Andrew Svetlov : Now asyncio creates a new context copy on task creation. It is the perfect behavior *by default* and should stay as is. However, sometimes passing an explicit context into a task and using back the context modified by task code is desired. The most

[issue46994] Accept explicit contextvars.Context in asyncio create_task() API

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +29936 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31837 ___ Python tracker <https://bugs.python.org/issu

[issue46995] Make Task.set_name() mandatory for third-parties

2022-03-12 Thread Andrew Svetlov
New submission from Andrew Svetlov : The method was introduced by Python 3.8 Let's raise DeprecationWarning if third-party task implementation doesn't support it. Convert the depreciation into a strict error in Python 3.13 -- components: asyncio messages: 414990 nosy

[issue46995] Make Task.set_name() mandatory for third-parties

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +29937 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31838 ___ Python tracker <https://bugs.python.org/issu

[issue39951] Ignore specific errors when closing ssl connections

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40977] asyncio.trsock.TransportSocket says some APIs will be prohibited in 3.9

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in Python 3.10 -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44795] asyncio.run does not allow for graceful shutdown of main task

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please use TaskGroup from Python 3.11 for structural concurrency. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44373] make Event an Awaitable

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please re-read the rejection reason: https://bugs.python.org/issue33544#msg316962 -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41879] Outdated description of async iterables in documentation of async for statement

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32181] runaway Tasks with Task.cancel() ignored.

2022-03-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28534] Replace asynchat

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Superseded by #28533 -- nosy: +asvetlov resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Remove asyncore, asynchat and smtpd modules ___ Python tracker <https://

[issue44221] ImportError: sys.meta_path is None, Python is likely shutting down

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Reproducer is missing -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44604] [Enhancement] Asyncio task decorator to provide interface to define async DAGs (similar to dask's delayed interface)

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: TaskGroup has landed, aiodag is present on pypi. Closing. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue22476] asyncio task chapter confusion about 'task', 'future', and 'schedule'

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Docs were rewritten from scratch in Python 3.8, they are much better now. -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue25230] asyncio/Windows: Unix datagram sockets not supported

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Implemented a long time ago, closing -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28464] BaseEventLoop.close should shutdown executor before marking itself closed

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: loop.shutdown_default_executor() exists for it, asyncio.run() calls the method -- nosy: +asvetlov resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue32396] Implement method to write/read to serials without blocking on windows with asyncio

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: No activity, closing. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35392] Create asyncio/sockutils.py

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: I support the idea but we have no PR yet. The request is not very strong. Anyway, if you still want such change -- please recreate an issue. -- resolution: -> postponed stage: -> resolved status: open -&g

<    1   2   3   4   5   6   7   8   9   10   >