[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2022-03-20 Thread Anton Agestam
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

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2022-01-30 Thread Anton Khirnov
Anton Khirnov added the comment: Ping yet again. Can anyone please look at this? -- ___ Python tracker <https://bugs.python.org/issue39100> ___ ___ Python-bug

[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread Anton Bryl
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

[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread Anton Bryl
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

[issue46052] Ctrl+C, Ctrl+V in IDLE on Windows do not work with Cyrillic keyboard layout

2021-12-11 Thread Anton Bryl
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

[issue15373] copy.copy() does not properly copy os.environment

2021-09-21 Thread Anton Barkovsky
Change by Anton Barkovsky : -- nosy: -anton.barkovsky ___ Python tracker <https://bugs.python.org/issue15373> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45158] Refactor traceback.py to make TracebackException more extensible.

2021-09-09 Thread Anton Abrosimov
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

[issue45158] Refactor traceback.py to make TracebackException more extensible.

2021-09-09 Thread Anton Abrosimov
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__

[issue44803] change tracemalloc.BaseFilter to an abstract class

2021-08-05 Thread Anton Grübel
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

[issue44803] change tracemalloc.BaseFilter to an abstract class

2021-08-01 Thread Anton Grübel
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

[issue44803] change tracemalloc.BaseFilter to an abstract class

2021-08-01 Thread Anton Grübel
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

[issue44711] Optimize type check in pipes.py

2021-07-29 Thread Anton Grübel
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

[issue44711] Optimize type check in pipes.py

2021-07-22 Thread Anton Grübel
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

[issue44711] Optimize type check in pipes.py

2021-07-22 Thread Anton G.
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

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-07 Thread Anton Khirnov
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

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-07-07 Thread Anton Khirnov
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

[issue43336] document whether io.TextIOBase.readline(size>0) will always read the full newline

2021-03-17 Thread Christoph Anton Mitterer
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

[issue43501] email._header_value_parse throws AttributeError on display name ending with dot

2021-03-15 Thread Anton Khirnov
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

[issue43501] email._header_value_parse throws AttributeError on display name ending with dot

2021-03-15 Thread Anton Khirnov
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

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2021-03-15 Thread Anton Khirnov
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

[issue43337] export the set newline value on TextIOBase/TextIOWrapper

2021-02-26 Thread Christoph Anton Mitterer
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

[issue43336] document whether io.TextIOBase.readline(size>0) will always read the full newline

2021-02-26 Thread Christoph Anton Mitterer
Christoph Anton Mitterer added the comment: "a n > 0size" should have read "a size > 0" -- ___ Python tracker <https://bugs.python.org/issue43336> ___ ___

[issue43336] document whether io.TextIOBase.readline(size>0) will always read the full newline

2021-02-26 Thread Christoph Anton Mitterer
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

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2021-02-22 Thread Christoph Anton Mitterer
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

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2021-02-22 Thread Christoph Anton Mitterer
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

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2021-02-21 Thread Christoph Anton Mitterer
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

[issue43259] argparse: allow add_mutually_exclusive_group on add_argument_group

2021-02-21 Thread Christoph Anton Mitterer
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

[issue43259] argparse: allow add_mutually_exclusive_group on add_argument_group

2021-02-19 Thread Christoph Anton Mitterer
Change by Christoph Anton Mitterer : Added file: https://bugs.python.org/file49822/test-no-parent.py ___ Python tracker <https://bugs.python.org/issue43259> ___ ___ Pytho

[issue43259] argparse: allow add_mutually_exclusive_group on add_argument_group

2021-02-19 Thread Christoph Anton Mitterer
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

[issue43259] argparse: allow add_mutually_exclusive_group on add_argument_group

2021-02-18 Thread Christoph Anton Mitterer
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

[issue39617] max_workers argument to concurrent.futures.ProcessPoolExecutor is not flexible enough

2021-02-04 Thread Christoph Anton Mitterer
Change by Christoph Anton Mitterer : -- nosy: +calestyo ___ Python tracker <https://bugs.python.org/issue39617> ___ ___ Python-bugs-list mailing list Unsub

[issue42742] Add abc.Mapping to dataclass

2020-12-29 Thread Anton Abrosimov
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

[issue42758] pathlib.Path to support the "in" operator (x in y)

2020-12-28 Thread Anton Hvornum
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

[issue42758] pathlib.Path to support the "in" operator (x in y)

2020-12-27 Thread Anton Hvornum
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(&#x

[issue42742] Add abc.Mapping to dataclass

2020-12-25 Thread Anton Abrosimov
Anton Abrosimov added the comment: Thanks for the good offer, I will definitely use it. -- ___ Python tracker <https://bugs.python.org/issue42742> ___ ___ Pytho

[issue42742] Add abc.Mapping to dataclass

2020-12-25 Thread Anton Abrosimov
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

[issue42742] Add abc.Mapping to dataclass

2020-12-25 Thread Anton Abrosimov
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

[issue42742] Add abc.Mapping to dataclass

2020-12-25 Thread Anton Abrosimov
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

[issue42742] Add abc.Mapping to dataclass

2020-12-25 Thread Anton Abrosimov
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

[issue42742] Add abc.Mapping to dataclass

2020-12-25 Thread Anton Abrosimov
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

[issue29447] Add/check os.PathLike support for the tempfile module's 'dir' arguments

2020-07-17 Thread Christoph Anton Mitterer
Change by Christoph Anton Mitterer : -- nosy: +calestyo ___ Python tracker <https://bugs.python.org/issue29447> ___ ___ Python-bugs-list mailing list Unsub

[issue11354] argparse: nargs could accept range of options count

2020-07-09 Thread Christoph Anton Mitterer
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

[issue36439] Inconsistencies with datetime.fromtimestamp(t) when t < 0

2020-06-10 Thread Paul Anton Letnes
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)]

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2020-02-26 Thread Lord Anton Hvornum
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

[issue39100] email.policy.SMTP throws AttributeError on invalid header

2019-12-19 Thread Anton Khirnov
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:

[issue38825] shutil.disk_usage - Lacking documentation

2019-11-17 Thread Lord Anton Hvornum
Lord Anton Hvornum added the comment: xtreak: You are correct, that was a typo. My apologies. -- ___ Python tracker <https://bugs.python.org/issue38825> ___ ___

[issue38825] psutil.disk_usage - Lacking documentation

2019-11-16 Thread Lord Anton Hvornum
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

[issue38817] Immutable types inplace operations work incorrect in async

2019-11-15 Thread Anton Bryzgalov
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

[issue38734] Python 3.7 and 3.8 in Windows Store do not start under git bash

2019-11-07 Thread Paul Anton Letnes
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

[issue34965] Python on Docker container using flask is going down after sometime

2018-10-12 Thread Anton Barkovsky
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

[issue34961] Global scoping when shadowing local names in class definitions

2018-10-12 Thread Anton Barkovsky
Change by Anton Barkovsky : -- nosy: +anton.barkovsky ___ Python tracker <https://bugs.python.org/issue34961> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23794] http package should support HTTP/2

2018-10-12 Thread Anton Barkovsky
Change by Anton Barkovsky : -- nosy: +anton.barkovsky ___ Python tracker <https://bugs.python.org/issue23794> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27261] io.BytesIO.truncate does not work as advertised

2018-10-12 Thread Anton Barkovsky
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

[issue27261] io.BytesIO.truncate does not work as advertised

2018-10-12 Thread Anton Barkovsky
Change by Anton Barkovsky : -- nosy: +anton.barkovsky ___ Python tracker <https://bugs.python.org/issue27261> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34256] Python treats ASCII record seperator ('\x1e') as a newline

2018-07-28 Thread Anton Patrushev
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

[issue34137] Add Path.lexist() to pathlib

2018-07-26 Thread Anton Patrushev
Change by Anton Patrushev : -- nosy: +apatrushev ___ Python tracker <https://bugs.python.org/issue34137> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

2018-07-26 Thread Anton Patrushev
Change by Anton Patrushev : -- nosy: +apatrushev ___ Python tracker <https://bugs.python.org/issue27794> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32395] asyncio.StreamReader.readuntil is not general enough

2018-07-26 Thread Anton Patrushev
Change by Anton Patrushev : -- nosy: +socketpair ___ Python tracker <https://bugs.python.org/issue32395> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33678] selector_events.BaseSelectorEventLoop.sock_connect should preserve socket type

2018-07-26 Thread Anton Patrushev
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

[issue31830] asyncio.create_subprocess_exec doesn't capture all stdout output

2018-07-26 Thread Anton Patrushev
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' `

[issue33837] Closing asyncio.Server on asyncio.ProactorEventLoop causes all active servers to stop listening

2018-07-26 Thread Anton Patrushev
Anton Patrushev added the comment: This issue was fixed in: git319c0345cdd8fddb49d235462e71883f1dd51b99 -- nosy: +apatrushev ___ Python tracker <https://bugs.python.org/issue33

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2018-07-25 Thread Anton Patrushev
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

[issue33193] Cannot create a venv on Windows when directory path contains dollar character

2018-07-25 Thread Anton Patrushev
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'

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
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

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
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

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
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

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
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

[issue31597] ipaddress.hosts() doesn't return anything on a /32 "network"

2017-09-26 Thread Lord Anton Hvornum
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

[issue30820] email.contentmanager.raw_data_manager fails to create multipart messages

2017-06-30 Thread Anton Khirnov
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

[issue29860] smtplib.py doesn't capitalize EHLO.

2017-03-20 Thread Lord Anton Hvornum
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

[issue29860] smtplib.py doesn't capitalize EHLO.

2017-03-20 Thread Lord Anton Hvornum
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

[issue29860] smtplib.py doesn't capitalize EHLO.

2017-03-20 Thread Lord Anton Hvornum
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_

[issue29858] inspect.signature includes bound argument for wrappers around decorated bound methods

2017-03-20 Thread anton-ryzhov
Changes by anton-ryzhov : -- pull_requests: +650 ___ Python tracker <http://bugs.python.org/issue29858> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29858] inspect.signature includes bound argument for wrappers around decorated bound methods

2017-03-20 Thread anton-ryzhov
anton-ryzhov added the comment: Related to http://bugs.python.org/issue24298 -- ___ Python tracker <http://bugs.python.org/issue29858> ___ ___ Python-bugs-list m

[issue29858] inspect.signature includes bound argument for wrappers around decorated bound methods

2017-03-20 Thread anton-ryzhov
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

[issue28414] SSL match_hostname fails for internationalized domain names

2016-10-12 Thread Anton Sychugov
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

[issue28414] SSL match_hostname fails for internationalized domain names

2016-10-11 Thread Anton Sychugov
Anton Sychugov added the comment: Yes, I misspelled, match_hostname() fails with ssl.CertificateError. -- ___ Python tracker <http://bugs.python.org/issue28

[issue28414] SSL match_hostname fails for internationalized domain names

2016-10-11 Thread Anton Sychugov
Changes by Anton Sychugov : -- assignee: -> christian.heimes components: +SSL nosy: +christian.heimes ___ Python tracker <http://bugs.python.org/issu

[issue28414] SSL match_hostname fails for internationalized domain names

2016-10-11 Thread Anton Sychugov
Changes by Anton Sychugov : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue28414> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28414] SSL match_hostname fails for internationalized domain names

2016-10-11 Thread Anton Sychugov
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

[issue27639] UserList.__getitem__ doesn't account for slices

2016-07-28 Thread Anton Backer
Changes by Anton Backer : Removed file: http://bugs.python.org/file43924/581663cb2d4d.diff ___ Python tracker <http://bugs.python.org/issue27639> ___ ___ Python-bug

[issue27639] UserList.__getitem__ doesn't account for slices

2016-07-28 Thread Anton Backer
Changes by Anton Backer : -- keywords: +patch Added file: http://bugs.python.org/file43924/581663cb2d4d.diff ___ Python tracker <http://bugs.python.org/issue27

[issue27639] UserList.__getitem__ doesn't account for slices

2016-07-27 Thread Anton Backer
Changes by Anton Backer : -- hgrepos: +351 ___ Python tracker <http://bugs.python.org/issue27639> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27639] UserList.__getitem__ doesn't account for slices

2016-07-27 Thread Anton Backer
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

[issue26724] Serialize dict with non-string keys to JSON — unexpected result

2016-04-09 Thread anton-ryzhov
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"

[issue25490] small mistake in example for random.choice()

2015-10-27 Thread Anton Tagunov
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

[issue22452] addTypeEqualityFunc is not used in assertListEqual

2015-08-18 Thread Anton Barkovsky
Changes by Anton Barkovsky : -- nosy: +anton.barkovsky ___ Python tracker <http://bugs.python.org/issue22452> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-08-03 Thread Paul Anton Letnes
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

[issue24595] InteractiveInterpreter always prints to stdout

2015-07-09 Thread Anton Astafiev
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

[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-06-23 Thread Paul Anton Letnes
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

[issue20741] Documentation archives should be available also in tar.xz format

2015-06-19 Thread Paul Anton Letnes
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

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
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

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
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

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
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

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
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

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
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

[issue21321] itertools.islice() doesn't release reference to the source iterator when the slice is exhausted

2014-04-29 Thread Anton Afanasyev
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

[issue21321] itertools.islice() doesn't release reference to the source iterator when the slice is exhausted

2014-04-29 Thread Anton Afanasyev
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

[issue21321] itertools.islice() doesn't release reference to the source iterator when the slice is exhausted

2014-04-28 Thread Anton Afanasyev
Changes by Anton Afanasyev : Added file: http://bugs.python.org/file35086/issue21321_2.7_e3217efa6edd_4.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21321] itertools.islice() doesn't release reference to the source iterator when the slice is exhausted

2014-04-28 Thread Anton Afanasyev
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   2   >