Andrew Svetlov added the comment:
Maybe. Agree with your decision to close bpo-34520 as duplicate.
--
___
Python tracker
<https://bugs.python.org/issue37
Andrew Svetlov added the comment:
See bpo-32363
--
___
Python tracker
<https://bugs.python.org/issue37281>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
Welcome!
Thanks for the fix!
--
___
Python tracker
<https://bugs.python.org/issue37278>
___
___
Python-bugs-list mailin
Change by Andrew Svetlov :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue37202>
___
___
Python-bugs-list
Andrew Svetlov added the comment:
Duplicate of #35998
--
resolution: -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder: -> test_asyncio: test_start_tls_server_1() TimeoutError on Fedora
29
___
Python tra
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +13939
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/14080
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
Finally fixed
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Thanks for the review, Victor!
I have had to fix it much earlier :(
--
___
Python tracker
<https://bugs.python.org/issue35
Change by Andrew Svetlov :
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset ef2152354f03a165c5e3adb53e2276934fabd50a by Andrew Svetlov in
branch 'master':
bpo-37279: Fix asyncio sendfile support when extra data are sent in fallback
mode. (GH-14075)
https://github.com/python/cpyt
Change by Andrew Svetlov :
--
pull_requests: +13956
pull_request: https://github.com/python/cpython/pull/14102
___
Python tracker
<https://bugs.python.org/issue37
Change by Andrew Svetlov :
--
pull_requests: +13957
pull_request: https://github.com/python/cpython/pull/14103
___
Python tracker
<https://bugs.python.org/issue37
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset e5d67f1e31381d28b24f6e1c0f8388d9bf0bfc5f by Andrew Svetlov in
branch '3.7':
[3.7] bpo-37279: Fix asyncio sendfile support when extra data are sent in
fallback mode. (GH-14075). (GH-14103)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
Ooops. Looks like a real problem, not test-only :(
--
___
Python tracker
<https://bugs.python.org/issue35998>
___
___
Pytho
Andrew Svetlov added the comment:
The use case is weird.
I don't think we need to do something with the issue.
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/is
Change by Andrew Svetlov :
--
nosy: -gvanrossum
___
Python tracker
<https://bugs.python.org/issue37294>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
>From my understanding yield inside __aiter__ is a forbidden construction. Even
>if parser allows it the statement doesn't make any sense.
I'm very interested to hear Yuri opinion.
--
___
Python
Andrew Svetlov added the comment:
The solution is called static analyzers and "type hints".
Mypy detects the absence of "await" pretty well.
In turn, CPython does the best in runtime mode for detecting not-awaited
awaitables when possible.
I think we should close the issu
Andrew Svetlov added the comment:
No idea what to do.
SSL support is obviously broken.
Current code is too complex to maintain.
Yuri has a full reimplementation of ssl_proto.py in uvloop.
It *seem* to work and can be backported.
I'm sick now, can be ready to work back in a day o
Andrew Svetlov added the comment:
I believe the issue is a duplicate for #37035 at least regarding traceback
logging.
It can be closed, OSError exceptions are not logged anymore.
--
___
Python tracker
<https://bugs.python.org/issue34
Change by Andrew Svetlov :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Don't log OSError exceptions in asyncio transports
___
Python tracker
<https://bugs.p
Andrew Svetlov added the comment:
> If a RuntimeWarning is warranted when a temporary variable is used, it's
> warranted when the value is used directly, without a temporary variable.
No, it's not. If "1/0" is present in never executed code block Python don
Andrew Svetlov added the comment:
Sounds like `.close()` is better name for described behavior.
--
___
Python tracker
<https://bugs.python.org/issue37
New submission from Andrew Pennebaker :
Compared to pip, NPM warns users when a dependency subtree about to be
installed, includes known vulnerabilities. This helps devs catch security
issues earlier, so they can update or replace critical dependencies.
Similarly, the dependency-check pip
Andrew Svetlov added the comment:
Adding new constants like socket.IPPROTO_UDPLITE is fine.
The question is: why we need a new function?
There is no set_send_checksum_coverage() on C level IIRC
--
nosy: +asvetlov
___
Python tracker
<ht
Andrew Svetlov added the comment:
We have no setsockopt() shortcut helpers.
socket.setblocking() uses fcntl() internally.
--
___
Python tracker
<https://bugs.python.org/issue37
Andrew Svetlov added the comment:
Sorry.
Please drop helper methods but keep IPPROTO_UDPLITE, UDPLITE_SEND_CSCOV,
UDPLITE_RECV_CSCOV constants.
--
___
Python tracker
<https://bugs.python.org/issue37
New submission from Andrew Bernard :
When parsing an mbox file, the Python mailbox library is confused by the
presence of lines starting with 'From' in the body of the text. A new
fragmentary message item is created, but this is wrong. The following sample
code and input demonst
Change by Andrew Bernard :
--
resolution: -> not a bug
___
Python tracker
<https://bugs.python.org/issue37357>
___
___
Python-bugs-list mailing list
Un
Andrew Bernard added the comment:
Not really a bug. Results from problems with the loose mbix format and lack of
standards. Nothing Python can do about it.
--
___
Python tracker
<https://bugs.python.org/issue37
Change by Andrew Svetlov :
--
versions: -Python 3.8
___
Python tracker
<https://bugs.python.org/issue37345>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
3.8 is in beta stage, public API is frozen
--
___
Python tracker
<https://bugs.python.org/issue37345>
___
___
Python-bug
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Agree with Caleb.
The more I think the more I doubt about the proposal.
Cancellation is for tasks, not for queues or locks.
When should I cancel a queue but cannot cancel a task?
--
___
Python tracker
<ht
Andrew Svetlov added the comment:
> Is it possible to implement add_reader/writer in ProactorEventLoop?
Sorry, no. There is no way IIUC.
Regarding a request for selecting event loop by a library.
1. You can call asyncio.set_event_loop_policy() already.
2. From my understanding, there is
Andrew Svetlov added the comment:
I doubt if we should split a proactor loop into two objects in two threads.
I see no strong objections but have a feeling that we'll get other problems in
this way. asyncio is just not designed for this mode.
The proposal looks like a very dirty hac
Andrew Svetlov added the comment:
I don't like to have not required parts like thread pool, time handlers, and
the exception handler executed in the auxiliary thread.
What's about an alternative proposal: embed into ProactorEventLoop not entire
SelectorEventLoop but selectors.Sele
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
There is an interesting discussion:
https://stackoverflow.com/questions/14499593/can-the-infamous-error-netname-deleted-error-be-considered-an-error-at-all
"[WinError 64] The specified network name is no longer available" is raised on
pending
Change by Andrew Svetlov :
--
pull_requests: +14164
pull_request: https://github.com/python/cpython/pull/14344
___
Python tracker
<https://bugs.python.org/issue35
Andrew Svetlov added the comment:
New changeset 6793cce155f8875b10efd746cb0b34cb72263af7 by Andrew Svetlov
(Xtreak) in branch 'master':
bpo-36889: Document asyncio Stream and StreamServer (GH-14203)
https://github.com/python/cpython/commit/6793cce155f8875b10efd746cb0b34
Andrew Svetlov added the comment:
Thanks, Karthikeyan!
The only thing that needs to be documented is Stream class itself.
Would you finish this job, please?
--
___
Python tracker
<https://bugs.python.org/issue36
Andrew Svetlov added the comment:
I wonder why do you need it? What is your use case?
A code snippet can help a lot.
--
___
Python tracker
<https://bugs.python.org/issue37
Andrew Svetlov added the comment:
Yes, Stream doc should be a combination of StreamReader and StreamWriter with
small changes/additions.
StreamReader and StreamWriter should be kept in the doc.
Regarding docstrings: there is no strong requirement (we don't provide
docstrings for all as
Andrew Svetlov added the comment:
Sorry, I still have no idea what is the code for PerfTimer class.
--
___
Python tracker
<https://bugs.python.org/issue37
Andrew Svetlov added the comment:
Got you.
iscoroutinefunction() is not reliable: it detects async functions only but
fails if we have a regular function that returns awaitable object.
I think AsyncContextDecorator is needed here to explicitly point that you want
to wrap async function
Andrew Svetlov added the comment:
Adding a new state for "not running and not pending but something in between"
is useless, it can make .running() result a little more accurate but doesn't
improve the real functionality.
The easy "fix" is documentation updatin
Andrew Svetlov added the comment:
Use asyncio transports or streams.
sock_recv() is a low-level API with a very limited audience.
wrapped ssl socket provides a synchronous interface only.
Perhaps we should raise an exception if SSLSocket is passed into asyncio
functions
Andrew Svetlov added the comment:
I don't mind, sorry.
Feel free to make a pull request with the fix though.
--
___
Python tracker
<https://bugs.python.org/is
Andrew Svetlov added the comment:
Is it ok to have
File
"/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py",
line 76 in __call__
so many times?
Looks very
Change by Andrew Svetlov :
--
pull_requests: +14211
pull_request: https://github.com/python/cpython/pull/14397
___
Python tracker
<https://bugs.python.org/issue36
Andrew Svetlov added the comment:
Yes, sure
--
nosy: +asvetlov
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset 0d671c04c39b52e44597491b893eb0b6c86b3d45 by Andrew Svetlov in
branch 'master':
bpo-35621: Support running subprocesses in asyncio when loop is executed in
non-main thread (GH-14344)
https://github.com/python/cpyt
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.9 -Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
New changeset c2cda638d63b98f5cf9a8ef13e15aace2b7e3f0b by Andrew Svetlov
(Zackery Spytz) in branch 'master':
bpo-37199: Fix test failures when IPv6 is unavailable or disabled (#14480)
https://github.com/python/cpyt
Andrew Svetlov added the comment:
Thanks!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Victor, backporting to 3.7 makes merge conflicts.
Do you think that I should backport manually?
--
___
Python tracker
<https://bugs.python.org/issue37
Andrew Svetlov added the comment:
Your code doesn't run the event loop, only creates it.
What do you expect?
--
___
Python tracker
<https://bugs.python.org/is
Andrew Svetlov added the comment:
It doesn't.
Loop is executed by asyncio.run() (recommended) or low-level
loop.run_until_complete() / loop.run_forever() calls.
Please note, this tracker is for working on Python itself, not for teaching
Python usage.
Please use other resources like f
Andrew Svetlov added the comment:
Thanks!
--
nosy: +asvetlov
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.or
Andrew Scheller added the comment:
I agree that this is ambiguous behaviour. The docs at
https://docs.python.org/3/library/tempfile.html#tempfile.SpooledTemporaryFile
say "This function operates exactly as TemporaryFile() does, except that data
is spooled in memory until the file
Andrew Svetlov added the comment:
Good point.
For proactor event loop set_wakeup_fd() is used for Ctrl+C handling.
Skipping this call for non-main thread in proactor implementation makes sense.
--
assignee: -> asvetlov
___
Python tracker
<
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Thanks for the report.
--
assignee: -> asvetlov
___
Python tracker
<https://bugs.python.org/issue37573>
___
___
Python-
New submission from Andrew Carter :
Current docs link:
https://docs.python.org/3/howto/logging-cookbook.html#implementing-structured-logging
GitHub commit link:
https://github.com/python/cpython/commit/4b88d6c6642450240a9dc22e6efbdc69baf890dd
The suggestion is that for structured logging, a
New submission from Andrew Yurisich :
I wanted to return a namedtuple from a concrete implementation of an
importlib.abc.Loader base class, and wasn't able to provide a __spec__ property
on the underlying class behind the namedtuple. All return values from
importlib.abc.Loader#create_m
Andrew Yurisich added the comment:
You're right, I was invoking the namedtuple on the same line that I was
defining it, freezing it in the process.
I split it to into two statements, and snuck the __spec__ attribute between
the definition and the instantiation.
I'll update the exam
Andrew Yurisich added the comment:
This issue was raised due to a misunderstanding of the namedtuple creation
process. After creating the fields, but before assigning them, __spec__ is
trivially added to namedtuple class' definition as a property.
Thanks again @serhiy.stor
Andrew Svetlov added the comment:
Hi. StreamReaderProtocol was leaked implementation detail, not a public
reusable class. The protocol has too many "gray zones" where its implementation
is not well defined or even wrong.
This situation prevents us from stream API improvements whi
Andrew Svetlov added the comment:
I still think that iscoroutinefunction should not be used for async/sync
decoration type autodetection.
A day ago stuck with a case when decorator used iscoroutinefunction() for
separation but returned a regular function wrapper that returns awaitable in
New submission from Andrew Collins :
Per the OpenSSL documentation:
"The current thread's error queue must be empty before the TLS/SSL I/O
operation is attempted, or SSL_get_error() will not work reliably."
https://www.openssl.org/docs/man1.1.1/man3/SSL_get_error.html
Modu
Andrew Yurisich added the comment:
If anyone is interested in the progress I was able to make as a result of this
discussion, feel free to check out
https://github.com/captain-kark/python-module-resources/blob/d85453ff4f5022127874a5842449d95bb5eda234/module_resources/module_resources.py
and
Change by Andrew Grant :
--
nosy: +Andrew Grant
___
Python tracker
<https://bugs.python.org/issue14465>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Donnellan:
Parsing an email containing a multipart Content-Type, along with a
Content-Transfer-Encoding containing an invalid (non-ASCII-decodable) byte will
fail.
email.feedparser.FeedParser._parsegen() calls
"self._cur.get('content-transfer-encoding
Changes by Andrew Donnellan :
--
pull_requests: +2613
___
Python tracker
<http://bugs.python.org/issue30835>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew DiPrinzio added the comment:
I have been able to use this flag on RHEL and Centos. Is it possible that this
has been completed?
--
nosy: +Andrew DiPrinzio
___
Python tracker
<http://bugs.python.org/issue9
Andrew Jaffe added the comment:
10.12.6 is out and the bug appears to be fixed...
--
resolution: out of date -> third party
status: pending -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Andrew Pinkham:
The new warehouse uses the author_email field to create a mailto link. Donald
Stufft recommended leaving out the author_email field while still specifying
the author field should a maintainer wish to have their name associated without
their email
Andrew Pinkham added the comment:
Judging from Éric's reaction on Github, I suspect there may be some reticence
to changing this code.
I've sub-classed the check command in the project I'm working on to demonstrate
what I would like the new behavior to be.
https://github.com/
New submission from Andrew Wall:
Python can parse and run this code:
log = list(r'..\Unknown\*.txt')
but not this:
'''
log = list(r'..\Unknown\*.txt')
'''
--
components: Interpreter Core
messages: 300670
nosy: quamrana
priority:
Andrew Wall added the comment:
My lazy way of programming is to piece together lines of code, going round and
round commenting and uncommenting sections until I get something that works.
My new lazy way of commenting out larger chunks of code will be:
r'''
... severa
New submission from Andrew Matte:
not a big deal but still
--
components: Interpreter Core
messages: 301496
nosy: mandrew
priority: normal
severity: normal
status: open
title: [[]]*int gives x of the same list that cannot be appended to or popped
from individually
versions: Python 3.5
Andrew Svetlov added the comment:
The patch consists from two changes: replacing static vars with module state
and using slot based way for constructing classes.
The first change is obvious but I not sure if we need second transformation
New submission from Andrew Lytvyn:
If you do not await gather, then if one of gather inner coroutines fails,
others keep working, but they should not.
```python
import asyncio
import logging
logging.basicConfig(level=logging.DEBUG)
loop = asyncio.get_event_loop()
async def success_coro
Andrew Svetlov added the comment:
Yuri, it looks like a serious bug.
I expected `success_coro(5)` cancelling but see print out.
--
components: +Library (Lib)
stage: -> needs patch
versions: +Python 3.7
___
Python tracker
<https://bugs.pyth
Andrew Lytvyn added the comment:
Guido, look. The point is that if you change run_forever with
run_until_complete, then behavior changes: success_coro(5) will not be executed.
I think that it's strange that behavior differs depending on entrypoint:
run_forever or run_untill_com
Andrew Svetlov added the comment:
The only _DummyThread usage is `threading.current_thread()`:
> If the caller's thread of control was not created through the threading
> module, a dummy thread object with limited functionality is returned.
--
nosy
Andrew Svetlov added the comment:
Well, to satisfy everybody we need to:
1. Implement `isAlive` for dummy thread
2. Add a deprecation warning for both Thread.isAlive and _DummyThread.isAlive
3. Remove isAlive in future Python release (3.8 for the deprecation, 3.8+2 for
removal).
4
Andrew Svetlov added the comment:
The strange thing is these tests are passed on our build bots.
In logs I see only ConnectionResetError. Can it be related to your
configuration?
--
___
Python tracker
<https://bugs.python.org/issue35
Andrew Svetlov added the comment:
Maybe this is the reason.
asycio test suite uses these ssl contexts:
https://github.com/python/cpython/blob/master/Lib/test/test_asyncio/utils.py#L72-L92
Maybe bumping used protocol version will help to pass tests on your box.
Would you try it
Andrew Svetlov added the comment:
IIRC two copies exist from very early development times when asyncio was not a
part of Python stdlib.
--
___
Python tracker
<https://bugs.python.org/issue35
New submission from Andrew Svetlov :
We do it for selector based loops already, let's be consistent.
I think the feature should be backported to 3.7 too.
--
components: asyncio
messages: 330903
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: E
Change by Andrew Svetlov :
--
assignee: -> asvetlov
___
Python tracker
<https://bugs.python.org/issue35380>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +10103
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35380>
___
___
Py
Andrew Dunai added the comment:
I've just stumbled upon this issue while looking for a good first issue to
contribute on. If the community agrees this is something that needs to be done,
I'll gladly work on this.
--
nosy: +and3rson
Andrew Dunai added the comment:
I see 2 most applicable ways to do it:
- Hide .parent and .name by mangling
- Define them within the mock class definition scope, but not within the class
itself.
As long as those are accessed only from within the mock class, I think second
method would be
Andrew Dunai added the comment:
I was considering wrapping a `unittest.mock._Call` class definition within a
function that would contain name & parent as local variables (arguments). Thus
they would be accessible within the `_Call` class, but wouldn't be accessible
from the outside
New submission from Andrew Svetlov :
As discussed with Yuri on
https://github.com/python/cpython/pull/10867#discussion_r238395192
Candidate functions to move into the helper modules:
* _set_nodelay()
* _ipaddr_info()
* _set_reuseport()
--
components: asyncio
messages: 330973
nosy
1401 - 1500 of 3160 matches
Mail list logo