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()
Changes by Anton :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue6596>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.p
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
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
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
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
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 Khirnov added the comment:
Ping yet again. Can anyone please look at this?
--
___
Python tracker
<https://bugs.python.org/issue39100>
___
___
Python-bug
Changes by Anton Benard :
--
nosy: +abenard
___
Python tracker
<http://bugs.python.org/issue7833>
___
___
Python-bugs-list mailing list
Unsubscribe:
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,
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
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
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 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: +23636
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24874
___
Python tracker
<https://bugs.python.org/issu
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
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
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 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
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
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
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
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
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 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
Change by Anton Barkovsky :
--
nosy: -anton.barkovsky
___
Python tracker
<https://bugs.python.org/issue15373>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 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:
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
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
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:
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:
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:
Thanks for the good offer, I will definitely use it.
--
___
Python tracker
<https://bugs.python.org/issue42742>
___
___
Pytho
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 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
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
Changes by Anton Korobeynikov :
--
nosy: +Anton.Korobeynikov
___
Python tracker
<http://bugs.python.org/issue13241>
___
___
Python-bugs-list mailing list
Unsub
Changes by Anton Korobeynikov :
--
nosy: +Anton.Korobeynikov
___
Python tracker
<http://bugs.python.org/issue13370>
___
___
Python-bugs-list mailing list
Unsub
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
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-ryzhov added the comment:
Related to http://bugs.python.org/issue24298
--
___
Python tracker
<http://bugs.python.org/issue29858>
___
___
Python-bugs-list m
Changes by anton-ryzhov :
--
pull_requests: +650
___
Python tracker
<http://bugs.python.org/issue29858>
___
___
Python-bugs-list mailing list
Unsubscribe:
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'
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:
This issue was fixed in:
git319c0345cdd8fddb49d235462e71883f1dd51b99
--
nosy: +apatrushev
___
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:
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
Change by Anton Patrushev :
--
nosy: +socketpair
___
Python tracker
<https://bugs.python.org/issue32395>
___
___
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: +apatrushev
___
Python tracker
<https://bugs.python.org/issue34137>
___
___
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 Barkovsky :
--
nosy: +anton.barkovsky
___
Python tracker
<https://bugs.python.org/issue27261>
___
___
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/issue23794>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Anton Barkovsky :
--
nosy: +anton.barkovsky
___
Python tracker
<https://bugs.python.org/issue34961>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Anton Tyurin added the comment:
typo fix
8bite -> 8 bytes
--
___
Python tracker
<http://bugs.python.org/issue18100>
___
___
Python-bugs-list mailing list
Un
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
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
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
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
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
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
Changes by Anton Barkovsky :
--
nosy: +anton.barkovsky
___
Python tracker
<http://bugs.python.org/issue10017>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Anton Barkovsky :
--
nosy: +anton.barkovsky
___
Python tracker
<http://bugs.python.org/issue15433>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Anton Barkovsky :
Removed file: http://bugs.python.org/file26498/closewarning.patch
___
Python tracker
<http://bugs.python.org/issue11466>
___
___
Python-bug
Changes by Anton Barkovsky :
Added file: http://bugs.python.org/file26499/closewarning.patch
___
Python tracker
<http://bugs.python.org/issue11466>
___
___
Python-bug
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 (
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
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
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
Changes by Anton Barkovsky :
--
nosy: +anton.barkovsky
___
Python tracker
<http://bugs.python.org/issue14966>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Anton Barkovsky :
Added file: http://bugs.python.org/file26599/subprocess_doc_3.2.patch
___
Python tracker
<http://bugs.python.org/issue15501>
___
___
Pytho
Changes by Anton Barkovsky :
Added file: http://bugs.python.org/file26600/subprocess_doc_2.7.patch
___
Python tracker
<http://bugs.python.org/issue15501>
___
___
Pytho
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
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
Changes by Anton Barkovsky :
Removed file: http://bugs.python.org/file26607/webbrowser_args.patch
___
Python tracker
<http://bugs.python.org/issue15509>
___
___
Python-bug
Changes by Anton Barkovsky :
Added file: http://bugs.python.org/file26608/webbrowser_args.patch
___
Python tracker
<http://bugs.python.org/issue15509>
___
___
Python-bug
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
Anton Barkovsky added the comment:
Added tests in #15557.
--
___
Python tracker
<http://bugs.python.org/issue15447>
___
___
Python-bugs-list mailing list
Unsub
Anton Barkovsky added the comment:
Added tests in #15557.
--
___
Python tracker
<http://bugs.python.org/issue15509>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
Anton Barkovsky added the comment:
Updated.
--
___
Python tracker
<http://bugs.python.org/issue15501>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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 - 100 of 160 matches
Mail list logo