Anton Agestam added the comment:
As a consumer of `get_type_hints()` I think it'd be valuable to even have
partially resolved types. My use case is that I provide an `Annotated` alias
with a marker, and all I care about when inspecting user type hints is whether
or not the arguments
Anton Khirnov added the comment:
Ping yet again. Can anyone please look at this?
--
___
Python tracker
<https://bugs.python.org/issue39100>
___
___
Python-bug
Anton Bryl added the comment:
> Also, how do you make your keyboard a Cyrillic keyboard.
On Windows, just install a keyboard layout for e.g. Russian. As soon as you
switch to it, all Ctrl+Letter combinations stop working. Switch back to EN, and
everything's working again.
As the
Anton Bryl added the comment:
Tried the tkinter example.
The exact same problem occurs there as well: when a Cyrillic layout is on,
Ctrl+Letter combinations do not work (it's in fact not just Ctrl+C and Ctrl+V,
but apparently all of
New submission from Anton Bryl :
Ctrl+C and Ctrl+V key combinations in IDLE on Windows do not work with Cyrillic
keyboard layout. It is unexpected, as well as inconvenient when editing string
constants.
--
assignee: terry.reedy
components: IDLE
messages: 408345
nosy: anton.bryl
Change by Anton Barkovsky :
--
nosy: -anton.barkovsky
___
Python tracker
<https://bugs.python.org/issue15373>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anton Abrosimov added the comment:
I think now is a good time for such a change. `FrameSummary`,` StackSummary`
and `TracebackException` can be left backward compatible. And PEP 657 already
breaks backward compatibility of output parsers
New submission from Anton Abrosimov :
1. Move internal dependencies (`FrameSummary`, `StackSummary`) to class
attributes. Reduce coupling.
2. Separate receiving, processing and presenting traceback information.
How to replace `repr` with `pformat` in `FrameSummary`?
def __init__
Anton Grübel added the comment:
Even it is a private method, it is essential, when you use
Snapshot.filter_traces(). Creating a Filter without implementing this method
will just result in a runtime error.
https://github.com/python/cpython/blob/029cb4a6adacb650dbfc8ea71d2875ab771fe92e/Lib
Change by Anton Grübel :
--
keywords: +patch
pull_requests: +26042
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27527
___
Python tracker
<https://bugs.python.org/issu
New submission from Anton Grübel :
during some work on typeshed I found the BaseFilter class in tracemalloc and it
totally looks like and is used as a typical abstract class.
I will also directly create the PR :) if you think I'm missing something, I'm
happy to hear some othe
Anton Grübel added the comment:
I'm still super happy to had the chance to contribute a bit to Python and it
will be available already in version 3.10 <3
Thanks Serhiy & Lukasz!
--
___
Python tracker
<https://bugs.python
Anton Grübel added the comment:
I know that :) , it is just weird to do also do the type check on an empty
string, which can be replaced with str directly, but as far as I know it is
usually better to use isinstance instead of type.
--
___
Python
New submission from Anton G. :
When I did some work on typeshed I found some weird syntax in pipes.py.
if type(cmd) is not type(''):
which can easily be changed to
if not isinstance(cmd, str):
There are two occurrences and I will directly create the PR :)
--
component
Anton Khirnov added the comment:
Quoting Andrei Kulakov (2021-07-03 16:03:34)
> Anton: thanks for the report! In the message you say you are not sure
> of the solution, and because of that not sending a patch, but then you
> created the PR; - please clarify.
I didn't sen
Anton Khirnov added the comment:
Quoting R. David Murray (2021-07-06 18:59:56)
> How are you encountering this error? The following program runs without
> exception for me on master:
>
> from email import message_from_binary_file
> from email.policy impor
Christoph Anton Mitterer added the comment:
I guess that the translation from CRLF to LF simply happens before the size
restriction is enforced (which is good so, btw), so effectively it:
will not *read* at most size characters from the stream, but *return* at most
size characters from it
Change by Anton Khirnov :
--
keywords: +patch
pull_requests: +23636
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24874
___
Python tracker
<https://bugs.python.org/issu
New submission from Anton Khirnov :
On parsing an email where the display name in an address ends on a dot
immediately followed by angle-addr, accessing the resulting mailbox
display_name throws
/usr/lib/python3.9/email/_header_value_parser.py in value(self)
589 if self[0
Change by Anton Khirnov :
--
keywords: +patch
pull_requests: +23633
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24872
___
Python tracker
<https://bugs.python.org/issu
New submission from Christoph Anton Mitterer :
Hey.
It seems there is no way to determine the newline value (None, '', \n, \r,
\r\n) of a given text stream.
.newlines rather gives the newlines that have been encountered so far.
Just like .encoding and .errors this would be quite
Christoph Anton Mitterer added the comment:
"a n > 0size" should have read "a size > 0"
--
___
Python tracker
<https://bugs.python.org/issue43336>
___
___
New submission from Christoph Anton Mitterer :
Hey.
It would be nice if the following behaviour could be definitely clarified:
When reading from a text stream with readline(size) with a n > 0size it says:
"If size is specified, at most size characters will be read."
Also, dep
Christoph Anton Mitterer added the comment:
btw, just something for the record:
I think the example given in msg109117 above is wrong:
Depending on the read size it will produce different results, given how split()
works:
Imagine a byte sequence:
>>> b"\0foo\0barbaz\0\0ab
Christoph Anton Mitterer added the comment:
Oh, what a pity,...
Seemed like a pretty common use case, which is unnecessarily prone to buggy or
inefficient (user-)implementations.
--
___
Python tracker
<https://bugs.python.org/issue1152
Christoph Anton Mitterer added the comment:
Just wondered whether this is still being considered?
Cheers,
Chris.
--
nosy: +calestyo
___
Python tracker
<https://bugs.python.org/issue1152
Christoph Anton Mitterer added the comment:
Well but if that's anyway one of its actual major use cases, wouldn't it make
sense to properly support it?
Especially when one has a large set of identical options (which is then even
more likely to also include mutually exclusive on
Change by Christoph Anton Mitterer :
Added file: https://bugs.python.org/file49822/test-no-parent.py
___
Python tracker
<https://bugs.python.org/issue43259>
___
___
Pytho
Christoph Anton Mitterer added the comment:
Okay the problem seems to be that I didn't give you the exact details on what I
do.
Actually, the group (which then contains the mutually exclusive group) is
contained in a "shared" parent parser, which I then use in the subparse
New submission from Christoph Anton Mitterer :
Hey.
AFAIU, the sole purpose of ArgumentParser.add_argument_group() is for the
grouping within the help output.
It would be nice, if one could create a mutually exclusive group (with
ArgumentParser.add_mutually_exclusive_group) from/within such
Change by Christoph Anton Mitterer :
--
nosy: +calestyo
___
Python tracker
<https://bugs.python.org/issue39617>
___
___
Python-bugs-list mailing list
Unsub
Anton Abrosimov added the comment:
Link to python-ideas thread:
https://mail.python.org/archives/list/python-id...@python.org/thread/XNXCUJVNOOVPAPL6LF627EOCBUUUX2DG/
--
___
Python tracker
<https://bugs.python.org/issue42
Anton Hvornum added the comment:
Missed that function, but they would behave the same without explicitly use the
function call.
--
___
Python tracker
<https://bugs.python.org/issue42
New submission from Anton Hvornum :
I would like to propose that the `pathlib.Path()` gets a `in` operator, much
like that ipaddress has IP in Subnet, it would be nice if we could be able to
do:
```
import pathlib
pathlib.Path('/home/Torxed/machine.qcow2')
pathlib.Path(
Anton Abrosimov added the comment:
Thanks for the good offer, I will definitely use it.
--
___
Python tracker
<https://bugs.python.org/issue42742>
___
___
Pytho
Anton Abrosimov added the comment:
This Mixin only works with dataclass objects. And uses the private
functionality of the dataclasses. So dataclasses.py is the right place for
this. I think I can do enough tests.
And I think that this is too little for a standalone project
Anton Abrosimov added the comment:
I think the second option looks better.
More pythonic.
No need to create new classes
No typing hacks.
Mixin can be easily expanded.
Yes, I will do refactoring, typing, documentation and tests in PR.
--
___
Python
Anton Abrosimov added the comment:
An alternative way:
from collections.abc import Mapping
from dataclasses import dataclass, fields, _FIELDS, _FIELD
class DataclassMappingMixin(Mapping):
def __iter__(self):
return (f.name for f in fields(self))
def __getitem__(self, key
Anton Abrosimov added the comment:
Thanks for the answer, I agree.
The implementation should be like this?
from collections.abc import Mapping
from dataclasses import dataclass, fields, _FIELDS, _FIELD
class _DataclassMappingMixin(Mapping):
def __iter__(self):
return (f.name for
New submission from Anton Abrosimov :
I want to add `abc.Mapping` extension to `dataclasses.dataclass`.
Motivation:
1. `asdict` makes a deep copy of the `dataclass` object. If I only want to
iterate over the `field` attributes, I don't want to do a deep copy.
2. `dict(my_dataclass)` c
Change by Christoph Anton Mitterer :
--
nosy: +calestyo
___
Python tracker
<https://bugs.python.org/issue29447>
___
___
Python-bugs-list mailing list
Unsub
Christoph Anton Mitterer added the comment:
Next to code readability, there's IMO one could reason to properly support this
would be a clean and easy way to get proper help strings for such options.
Of course I can do something like:
parser = argparse.ArgumentParser()
parser.add_arg
Paul Anton Letnes added the comment:
I've encountered an issue on anaconda python on windows 10 v1909 which I
suspect is related. It looks like no dates in 1970 can be converted to
datetime.timestamp():
Python 3.8.2 (default, Apr 14 2020, 19:01:40) [MSC v.1916 64 bit (AMD64)]
Lord Anton Hvornum added the comment:
I agree with Jan-Philip Gehrcke, would have been nice to have had this.
Pretty pissed reading through this ancient issue.
In regards to how people treat other volunteers: We're all working for free,
and I think expectations from people
New submission from Anton Khirnov :
When parsing a (broken) mail from linux-me...@vger.kernel.org (message-id
20190212181908.horde.peighvv2khy9ekuy8ta8...@webmail.your-server.de, headers
attached) with email.policy.SMTP, I get an AttributeError on trying to read the
'to' header:
Lord Anton Hvornum added the comment:
xtreak: You are correct, that was a typo. My apologies.
--
___
Python tracker
<https://bugs.python.org/issue38825>
___
___
New submission from Lord Anton Hvornum :
https://docs.python.org/3.8/library/shutil.html#shutil.disk_usage
There's no mention that this helper function simply calls `os.statvfs()` in the
background. Something that is quite troubling when you're trying to get
disk_usage (or disk-i
Anton Bryzgalov added the comment:
Example code (also is attached to the issue):
import asyncio
async def count_smth(seconds: int) -> int:
await asyncio.sleep(seconds)
return seconds * 3
async def small_job(d: dict, key: str, seconds: int) -> None:
d[key] += await coun
New submission from Paul Anton Letnes :
Python 3.7 and 3.8 installed from the Windows Store do not start under git
bash. Rather, they give some variation of this error message:
bash: /c/Users/pa/AppData/Local/Microsoft/WindowsApps/python: Permission denied
However, the permissions are rwxr
Anton Barkovsky added the comment:
Do you have any evidence to believe that this is caused by a bug in CPython
itself or its stdlib? If not, it's probably an issue with your code, libraries,
or environment, and so out of scope in this tracker.
--
nosy: +anton.bark
Change by Anton Barkovsky :
--
nosy: +anton.barkovsky
___
Python tracker
<https://bugs.python.org/issue34961>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Anton Barkovsky :
--
nosy: +anton.barkovsky
___
Python tracker
<https://bugs.python.org/issue23794>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anton Barkovsky added the comment:
I'm willing to try to fix this behavior.
I just want to check that this would not be considered breaking backwards
compatibility. I can imagine in theory some code relying on it, but I would say
that it would be relying on a bug. If some code is p
Change by Anton Barkovsky :
--
nosy: +anton.barkovsky
___
Python tracker
<https://bugs.python.org/issue27261>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anton Patrushev added the comment:
0x1e listed as linebreak char in tests:
Lib/test/test_unicodedata.py:317
--
nosy: +apatrushev
___
Python tracker
<https://bugs.python.org/issue34
Change by Anton Patrushev :
--
nosy: +apatrushev
___
Python tracker
<https://bugs.python.org/issue34137>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Anton Patrushev :
--
nosy: +apatrushev
___
Python tracker
<https://bugs.python.org/issue27794>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Anton Patrushev :
--
nosy: +socketpair
___
Python tracker
<https://bugs.python.org/issue32395>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anton Patrushev added the comment:
I created small script showing the error.
--
nosy: +apatrushev
versions: +Python 3.7
Added file: https://bugs.python.org/file47714/test.py
___
Python tracker
<https://bugs.python.org/issue33
New submission from Anton Patrushev :
The issue is invalid. I just added the following lines to the end of your main:
```
line = await asyncio.wait_for(process.stderr.readline(), 10)
print(line)
```
and got additional info:
```
b'/bin/bash: echo local: command not found\n'
`
Anton Patrushev added the comment:
This issue was fixed in:
git319c0345cdd8fddb49d235462e71883f1dd51b99
--
nosy: +apatrushev
___
Python tracker
<https://bugs.python.org/issue33
Anton Patrushev added the comment:
The same problem is reproducible with different but obvious way on Python 2.7.
--
versions: +Python 2.7
___
Python tracker
<https://bugs.python.org/issue33
Anton Patrushev added the comment:
I found when this "feature" was implemented:
gitff2d9b71547d95566416fa968872910ca9c4adb1
Part of commit message:
```
in command-line options, and in two phases at that: first, we expand
'install_base' and 'install_platbase'
Lord Anton Hvornum added the comment:
Historically Windows have struggled with /32 assigned networks.
Trying to push such a network address to a Windows machine has usually (not
all cases) rendered it connection-less, where as switches, routers, *nix
etc have never had any major issues with the
Lord Anton Hvornum added the comment:
I was actually just thinking about the same thing, why not just add a
optional flag to the already existing function.
I get that people are way into backward compatibility, and I won't get into
a religious fight over that particular topic as long as th
Lord Anton Hvornum added the comment:
And this definition is some how immutable?
On Tue, Sep 26, 2017 at 10:19 PM Serhiy Storchaka
wrote:
>
> Serhiy Storchaka added the comment:
>
> Because this is a definition of
Lord Anton Hvornum added the comment:
This is still a very strange behavior and I can't see why this still
shouldn't return a IP address.
if the broadcast, network and host address are all the same, that should
call for a exceptional behavior from the library.
Because 127.0.0.1/32
New submission from Lord Anton Hvornum:
https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network.hosts
I couldn't find anywhere in the documentation mentioning the fact that doing
the following would return nothing:
>>> import ipaddress
>>> net = ipaddres
New submission from Anton Khirnov:
The documentation for the "new API" -- email.contentmanager.raw_data_manager --
claims that passing a list of messages to set_content() will create a multipart
message. However, it fails with "KeyError: 'builtins.list'" and from
Lord Anton Hvornum added the comment:
Seeing as I'm the one who built the server, it sure is out of spec :)
I could also quickly correct for this "issue" server-side.
So this is more of a "style guideline" change client-side - If no one opposes
of keeping comman
Lord Anton Hvornum added the comment:
Turns out, this goes for a lot more commands, such as:
```
Traceback (most recent call last):
File "mail.py", line 12, in
smtp_server.sendmail(fromaddr, toaddrs, msg)
File "/usr/lib/python3.6/smtplib.py", line 866, i
New submission from Lord Anton Hvornum:
```
File "mail.py", line 9, in
smtp_server.starttls(context)
File "/usr/lib/python3.6/smtplib.py", line 748, in starttls
self.ehlo_or_helo_if_needed()
File "/usr/lib/python3.6/smtplib.py", line 600, in ehlo_or_
Changes by anton-ryzhov :
--
pull_requests: +650
___
Python tracker
<http://bugs.python.org/issue29858>
___
___
Python-bugs-list mailing list
Unsubscribe:
anton-ryzhov added the comment:
Related to http://bugs.python.org/issue24298
--
___
Python tracker
<http://bugs.python.org/issue29858>
___
___
Python-bugs-list m
New submission from anton-ryzhov:
If we wrap function with bound method, which is also a wrapper around function,
`inspect.signature` will not do `skip_bound_arg`.
It will use `inspect.unwrap` and pass by bound method from outer function to
inner one.
Reproduce:
```
import functools, inspect
Anton Sychugov added the comment:
Christian, thanks a lot for your comment and for patch you provide. It becomes
much clearer.
I'll be watching for #17305.
--
___
Python tracker
<http://bugs.python.org/is
Anton Sychugov added the comment:
Yes, I misspelled, match_hostname() fails with ssl.CertificateError.
--
___
Python tracker
<http://bugs.python.org/issue28
Changes by Anton Sychugov :
--
assignee: -> christian.heimes
components: +SSL
nosy: +christian.heimes
___
Python tracker
<http://bugs.python.org/issu
Changes by Anton Sychugov :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue28414>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Anton Sychugov:
In accordance with http://tools.ietf.org/html/rfc6125#section-6.4.2:
"If the DNS domain name portion of a reference identifier is an
internationalized domain name, then an implementation MUST convert any U-labels
[IDNA-DEFS] in the domain name to A-l
Changes by Anton Backer :
Removed file: http://bugs.python.org/file43924/581663cb2d4d.diff
___
Python tracker
<http://bugs.python.org/issue27639>
___
___
Python-bug
Changes by Anton Backer :
--
keywords: +patch
Added file: http://bugs.python.org/file43924/581663cb2d4d.diff
___
Python tracker
<http://bugs.python.org/issue27
Changes by Anton Backer :
--
hgrepos: +351
___
Python tracker
<http://bugs.python.org/issue27639>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Anton Backer:
The docs for UserList say:
> List operations which return a new sequence attempt to create an instance of
> the actual implementation class.
However, UserList([])[:] returns a list, not a UserList.
--
components: Library (Lib)
files: patch
me
New submission from anton-ryzhov:
JSON doesn't allow to have non-sting keys in objects, so json.dumps converts
its to string. But if several keys has one string representation — we'll get
damaged result as follows:
>>> import json
>>> json.dumps({1: 2, "1"
New submission from Anton Tagunov:
Invalid example at this page: https://docs.python.org/3.6/library/random.html
'.items()' is missed in the line below:
>>> population = [val for val, cnt in weighted_choices for i in range(cnt)]
The correct variant:
>>> popul
Changes by Anton Barkovsky :
--
nosy: +anton.barkovsky
___
Python tracker
<http://bugs.python.org/issue22452>
___
___
Python-bugs-list mailing list
Unsubscribe:
Paul Anton Letnes added the comment:
I believe someone should also commit the following command:
hg rm Misc/porting
in the main python repository, since the contents of this file are now found in
the devguide.
--
___
Python tracker
<h
New submission from Anton Astafiev:
I have a use-case when I need to forward InteractiveConsole through Unix/TCP
socket. Expected implementation:
class InteractiveSocket(InteractiveConsole):
def __init__(self, socket):
self._socket = socket
...
def raw_input(...):
# read from
Paul Anton Letnes added the comment:
I created a patch to the devguide with some rewording as necessary. As I am not
an expert on porting Python, it would be great if someone could point out any
mistakes I made. The new FAQ is at the very bottom of the file, as I didn't
find any
Paul Anton Letnes added the comment:
The format (xz vs bzip2) might not matter much, but I'd say consistency does.
I'd make the formats identical just for the sake of standardization.
Where is this decided? In some (post)build script?
--
nosy
Anton Barkovsky added the comment:
Yeah, my love for keyword arguments is a bit too big sometimes.
--
Added file: http://bugs.python.org/file35934/code_flags_argparse_v2.patch
___
Python tracker
<http://bugs.python.org/issue21
Anton Barkovsky added the comment:
That's not a very likely scenario and I think the distinction between arguments
that are passed to the script and interpreter flags is fairly obvious.
--
___
Python tracker
<http://bugs.python.org/is
Anton Barkovsky added the comment:
Here's a patch that checks both sys.flags and sys.argv and uses argparse.
--
Added file: http://bugs.python.org/file35933/code_flags_argparse.patch
___
Python tracker
<http://bugs.python.org/is
Anton Barkovsky added the comment:
> 1. How should python3 -q -mcode behave?
I've only now found out about sys.flags. I think we should check for -q both
before -m and after, because why not?
> 2. If we add this patch, should we also attempt to emulate other command line
> o
Anton Barkovsky added the comment:
Here's a patch.
--
keywords: +patch
nosy: +anton.barkovsky
Added file: http://bugs.python.org/file35932/code.patch
___
Python tracker
<http://bugs.python.org/is
Anton Afanasyev added the comment:
Antoine, not sure about 2.7. The issue first arose for me at Python 2.7, so I
would prefer "issue21321_2.7_e3217efa6edd_4.diff" patch be applied.
--
___
Python tracker
<http://bugs.python.o
Anton Afanasyev added the comment:
Hi Antoine,
oops you are right about leaks: fixed them in new attached patch.
As for testing changes in "reduce()": they are already covered by
"self.pickletest(islice(range(100), *args))". Function "pickletest()" covers
case
Changes by Anton Afanasyev :
Added file: http://bugs.python.org/file35086/issue21321_2.7_e3217efa6edd_4.diff
___
Python tracker
<http://bugs.python.org/issue21
Changes by Anton Afanasyev :
Added file: http://bugs.python.org/file35087/issue21321_3.4_8c8315bac6a8_4.diff
___
Python tracker
<http://bugs.python.org/issue21
1 - 100 of 160 matches
Mail list logo