[issue6596] urllib2 bug on CentOS

2009-07-29 Thread Anton
New submission from Anton : This code gives HTTP Error 500 on CentOS: - import urllib2 url = 'http://wm.exchanger.ru/asp/XMLWMList.asp?exchtype=1' t = urllib2.urlopen(url).read()

[issue6596] urllib2 bug on CentOS

2009-07-29 Thread Anton
Changes by Anton : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue6596> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6596] urllib2 bug on CentOS

2009-07-29 Thread Anton
Anton added the comment: % gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man -- infodir=/usr/share/info --enable-shared --enable-threads=posix --enable- checking=release --with-system-zlib --enable-__cxa_atexit --disable

[issue6596] urllib2 bug on CentOS

2009-07-30 Thread Anton
Anton added the comment: The same problem with gcc 4.3.2 -- ___ Python tracker <http://bugs.python.org/issue6596> ___ ___ Python-bugs-list mailing list Unsub

[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

[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, 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

[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

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-03-22 Thread Anton Benard
Changes by Anton Benard : -- nosy: +abenard ___ Python tracker <http://bugs.python.org/issue7833> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2568] Seconds range in time unit

2008-04-06 Thread Anton Fedorov
New submission from Anton Fedorov <[EMAIL PROTECTED]>: "%S Second as a decimal number [00,61]. (2) (2) The range really is 0 to 61; this accounts for leap seconds and the (very rare) double leap seconds." That is wrong. There NEVER can be two leap seconds in one moment,

[issue2568] Seconds range in time unit

2008-04-07 Thread Anton Fedorov
Anton Fedorov <[EMAIL PROTECTED]> added the comment: There no leap second in 2000th. But correct time request fails: >>> datetime.strptime('19951231T235960', '%Y%m%dT%H%M%S') Traceback (most recent call last): File "", li

[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

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

[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

[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

[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

[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

[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

[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-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

[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

[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-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

[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__

[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

[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:

[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

[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:

[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

[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
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: 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: 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: Thanks for the good offer, I will definitely use it. -- ___ Python tracker <https://bugs.python.org/issue42742> ___ ___ Pytho

[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

[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

[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

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-02-22 Thread Anton Korobeynikov
Changes by Anton Korobeynikov : -- nosy: +Anton.Korobeynikov ___ Python tracker <http://bugs.python.org/issue13241> ___ ___ Python-bugs-list mailing list Unsub

[issue13370] test_ctypes fails when building python with clang

2012-02-22 Thread Anton Korobeynikov
Changes by Anton Korobeynikov : -- nosy: +Anton.Korobeynikov ___ Python tracker <http://bugs.python.org/issue13370> ___ ___ Python-bugs-list mailing list Unsub

[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

[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

[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
Changes by anton-ryzhov : -- pull_requests: +650 ___ Python tracker <http://bugs.python.org/issue29858> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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'

[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

[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

[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' `

[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

[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:

[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:

[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:

[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

[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:

[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

[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:

[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:

[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

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-07-07 Thread Anton Tyurin
Anton Tyurin added the comment: The same error in the use of socket.send(). Is it possible to use size_t for len instead of int? According to http://www.python.org/dev/peps/pep-0353/ Py_ssize_t on x86 is typedef for int, and size_t has the same size. On x64 sizeof size_t is 8bit, that covers

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-07-07 Thread Anton Tyurin
Anton Tyurin added the comment: typo fix 8bite -> 8 bytes -- ___ Python tracker <http://bugs.python.org/issue18100> ___ ___ Python-bugs-list mailing list Un

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-07-08 Thread Anton Tyurin
Anton Tyurin added the comment: This issue is similar like http://bugs.python.org/issue9566. It seems reasonable to apply a similar fix. But why not use the types described in the signature functions in . In particular use for len size_t, and for n - ssize_t

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-07-09 Thread Anton Tyurin
Anton Tyurin added the comment: There seems to be no, because there's this bug is already fixed in Python 3, according to http://hg.python.org/cpython/file/c1a400501db6/Modules/socketmodule.c#l3290. But the use of Py_ssize_t (len and n) hides the potential type conve

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-07-09 Thread Anton Tyurin
Anton Tyurin added the comment: I could be wrong, but: ssize_t send(int socket, const void *buffer, size_t length, int flags); so length is size_t, but Py_ssize_t is ssize_t (signed to unsigned). PS. sorry for my bad English -- ___ Python tracker

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-07-12 Thread Anton Tyurin
Anton Tyurin added the comment: According to man send: only sendmsg() if input length argument overflows a ssize_t on OS X. But truncating extradata in sendall() without exception is bad idea, because sendall() never returns count of successfully sent bytes. So we'll never know

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

2012-07-16 Thread Anton Barkovsky
Anton Barkovsky added the comment: Here's a patch. -- keywords: +patch nosy: +anton.barkovsky Added file: http://bugs.python.org/file26403/environcopy.patch ___ Python tracker <http://bugs.python.org/is

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

2012-07-16 Thread Anton Barkovsky
Anton Barkovsky added the comment: A new patch with tests. -- Added file: http://bugs.python.org/file26404/environcopy_v2.patch ___ Python tracker <http://bugs.python.org/issue15

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

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

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2012-07-18 Thread Anton Barkovsky
Anton Barkovsky added the comment: Here's a patch with fix and tests. Note that class objects are not comparable and have the same type so they fall back on sorting by id. Should we sort them by name as a special case instead? -- keywords: +patch Added file: http://bugs.pytho

[issue13907] test_pprint relies on set/dictionary repr() ordering

2012-07-19 Thread Anton Barkovsky
Anton Barkovsky added the comment: This test breaks now even in CPython. Remove it and be done with it? -- nosy: +anton.barkovsky ___ Python tracker <http://bugs.python.org/issue13

[issue15433] argparse usage line is wrong

2012-07-23 Thread Anton Barkovsky
Changes by Anton Barkovsky : -- nosy: +anton.barkovsky ___ Python tracker <http://bugs.python.org/issue15433> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11466] getpass.getpass doesn't close tty file

2012-07-23 Thread Anton Barkovsky
Anton Barkovsky added the comment: The issue is still there. I hope someone fixes it before the release. -- nosy: +anton.barkovsky ___ Python tracker <http://bugs.python.org/issue11

[issue11466] getpass.getpass doesn't close tty file

2012-07-24 Thread Anton Barkovsky
Anton Barkovsky added the comment: I think I've found the root cause. On my system (also tested in 3.2) /dev/tty is opened successfully, but wrapping it in io.BufferedRandom fails. By the time the exception is raised, FileIO object is already created, and then it immediately gets de

[issue11466] getpass.getpass doesn't close tty file

2012-07-24 Thread Anton Barkovsky
Changes by Anton Barkovsky : Removed file: http://bugs.python.org/file26498/closewarning.patch ___ Python tracker <http://bugs.python.org/issue11466> ___ ___ Python-bug

[issue11466] getpass.getpass doesn't close tty file

2012-07-24 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26499/closewarning.patch ___ Python tracker <http://bugs.python.org/issue11466> ___ ___ Python-bug

[issue15447] A file is not properly closed by webbrowser._invoke

2012-07-25 Thread Anton Barkovsky
New submission from Anton Barkovsky : webbrowser._invoke opens /dev/null, never closes it and a warning is printed. I'm attaching a patch. The diff looks messy, but I'm just wrapping the code in a try-finally block, the rest is just indented. -- components: Library (

[issue15447] A file is not properly closed by webbrowser._invoke

2012-07-25 Thread Anton Barkovsky
Anton Barkovsky added the comment: The warning is printed by the file object when it closes itself in __del__: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='r+' encoding='UTF-8'> T

[issue15447] A file is not properly closed by webbrowser._invoke

2012-07-25 Thread Anton Barkovsky
Anton Barkovsky added the comment: To clarify, I discovered this when I was simply running webbrowser.open in REPL. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15447] A file is not properly closed by webbrowser._invoke

2012-07-25 Thread Anton Barkovsky
Anton Barkovsky added the comment: Adding a patch that uses subprocess.DEVNULL instead. Writing tests for webbrowser should be a separate issue, right? -- Added file: http://bugs.python.org/file26513/fileclose_devnull.patch ___ Python tracker

[issue14966] Fully document subprocess.CalledProcessError

2012-07-30 Thread Anton Barkovsky
Changes by Anton Barkovsky : -- nosy: +anton.barkovsky ___ Python tracker <http://bugs.python.org/issue14966> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15499] Sleep is hardcoded in webbrowser.UnixBrowser

2012-07-30 Thread Anton Barkovsky
New submission from Anton Barkovsky: webbrowser.UnixBrowser._invoke will sleep for at least 1 second after launching browser process and then probably 4 more seconds. These numbers are hardcoded and can't be modified which is especially problematic for testing. I think this code shou

[issue15501] Document exception classes in subprocess module

2012-07-30 Thread Anton Barkovsky
New submission from Anton Barkovsky: Exception classes from subprocess module are mentioned in the doc but do not have their own entries. I'm attaching patches for 3.3, 3.2 and 2.7 This issue supersedes #14966. -- assignee: docs@python components: Documentation

[issue15501] Document exception classes in subprocess module

2012-07-30 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26599/subprocess_doc_3.2.patch ___ Python tracker <http://bugs.python.org/issue15501> ___ ___ Pytho

[issue15501] Document exception classes in subprocess module

2012-07-30 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26600/subprocess_doc_2.7.patch ___ Python tracker <http://bugs.python.org/issue15501> ___ ___ Pytho

[issue15447] A file is not properly closed by webbrowser._invoke

2012-07-30 Thread Anton Barkovsky
Anton Barkovsky added the comment: An updated patch with the same issue fixed in Konqueror class. -- Added file: http://bugs.python.org/file26602/fileclose_devnull_v2.patch ___ Python tracker <http://bugs.python.org/issue15

[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-07-30 Thread Anton Barkovsky
New submission from Anton Barkovsky: Because of the way webbrowser.UnixBrowser.open generates command-line arguments the resulting list sometimes looks like this: ['chromium', '', 'http://www.example.org/'] This seems to work fine with chro

[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-07-30 Thread Anton Barkovsky
Changes by Anton Barkovsky : Removed file: http://bugs.python.org/file26607/webbrowser_args.patch ___ Python tracker <http://bugs.python.org/issue15509> ___ ___ Python-bug

[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-07-30 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26608/webbrowser_args.patch ___ Python tracker <http://bugs.python.org/issue15509> ___ ___ Python-bug

[issue15557] Tests for webbrowser module

2012-08-04 Thread Anton Barkovsky
New submission from Anton Barkovsky: Attaching a patch with some tests for webbrowser module. The tests fail unless #15509 is fixed. They also print lots of warnings unless #15447 is fixed. -- components: Tests files: test_webbrowser.patch keywords: patch messages: 167423 nosy

[issue15447] A file is not properly closed by webbrowser._invoke

2012-08-04 Thread Anton Barkovsky
Anton Barkovsky added the comment: Added tests in #15557. -- ___ Python tracker <http://bugs.python.org/issue15447> ___ ___ Python-bugs-list mailing list Unsub

[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-08-04 Thread Anton Barkovsky
Anton Barkovsky added the comment: Added tests in #15557. -- ___ Python tracker <http://bugs.python.org/issue15509> ___ ___ Python-bugs-list mailing list Unsub

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26738/subprocess_doc_2.7_v2.patch ___ Python tracker <http://bugs.python.org/issue15501> ___ ___ Pytho

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26739/subprocess_doc_3.2_v2.patch ___ Python tracker <http://bugs.python.org/issue15501> ___ ___ Pytho

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky
Changes by Anton Barkovsky : Added file: http://bugs.python.org/file26740/subprocess_doc_3.3_v2.patch ___ Python tracker <http://bugs.python.org/issue15501> ___ ___ Pytho

[issue15501] Document exception classes in subprocess module

2012-08-09 Thread Anton Barkovsky
Anton Barkovsky added the comment: Updated. -- ___ Python tracker <http://bugs.python.org/issue15501> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15619] set.pop() documentation is confusing

2012-08-10 Thread Anton Barkovsky
New submission from Anton Barkovsky: I've seen people being confused by the documentation for set.pop() method. It makes it look like the element is selected randomly while it's just unspecified. I'm attaching a patch that clarifies the doc, tested on 3.3, 3.2 and 2.7

[issue15557] Tests for webbrowser module

2012-08-12 Thread Anton Barkovsky
Anton Barkovsky added the comment: Thanks for the review, I've updated the patch. -- Added file: http://bugs.python.org/file26774/test_webbrowser_v2.patch ___ Python tracker <http://bugs.python.org/is

[issue15557] Tests for webbrowser module

2012-08-12 Thread Anton Barkovsky
Anton Barkovsky added the comment: Updated, added separate helper methods and 'test' and 'http://www.example.com/' are no longer hardcoded. > The helper methods could default to the most common string arguments so that > you will only need to define and pass the

[issue15557] Tests for webbrowser module

2012-09-03 Thread Anton Barkovsky
Anton Barkovsky added the comment: I think you forgot to write `test_open_with_autoraise_false` for Chrome tests. -- ___ Python tracker <http://bugs.python.org/issue15

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

2014-04-21 Thread Anton Afanasyev
New submission from Anton Afanasyev: This issue results in redundant memory consumption for e.g. in this case: from itertools import * def test_islice(): items, lookahead = tee(repeat(1, int(1e9))) lookahead = islice(lookahead, 10

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

2014-04-21 Thread Anton Afanasyev
Anton Afanasyev added the comment: Added patch for 2.7 version (no need to change '__reduce__()' method since it's not implemented). -- Added file: http://bugs.python.org/file34991/issue21321_2.7_e3217efa6edd.diff ___ Python

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

2014-04-22 Thread Anton Afanasyev
Anton Afanasyev added the comment: Hi Raymond, do you mean allocation exceptions handling should be more accurate? Attaching fixed version for 3.4 branch. -- Added file: http://bugs.python.org/file35003/issue21321_3.4_8c8315bac6a8_2.diff ___ Python

  1   2   >