New submission from Mikhail Terekhov :
It is not clear from documentation what happens with awaitable objects when
these are canceled.
--
assignee: docs@python
components: Documentation, asyncio
messages: 409801
nosy: asvetlov, docs@python, termim, yselivanov
priority: normal
severity
New submission from Mikhail :
Hello! This is a very useful feature when a Path-object gets a list (or
generator, as it is now) of files/dirs in self.dir, I think. Right now this is
the .iterdir() function, but sometimes you only need `dirs` of that path (for
example, I really needed the
Mikhail added the comment:
I also checked this behavior in Jython and IPython, and there errors are
explicitly caused when putting/calling such values (I also checked on
MicroPython online version, everything just hangs there). For IPython I created
an issue on their Github, I'm thinki
Mikhail added the comment:
I did a little experiment, and it turned out that the problem is not in the
IDLE, but inside Python itself. With this case, the same behavior remains
inside the terminal version of Python, and IPython also produces a similar
error
Mikhail added the comment:
Hello again!
I found another kind of bug, where the autosupplement window doesn't show up.
In order for the bug to occur, you need to put a non-string value into
`locals()`.
Example:
```
locals()['arg'] = 123 # or locals().setdefault('arg&
Change by Mikhail :
--
nosy: +tetelevm
___
Python tracker
<https://bugs.python.org/issue43654>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mikhail added the comment:
Yes, this is exactly the same problem as `issue42225`. I suspected it was a
Tkinter problem, and also thought that Python might be under the hood catching
C method call errors.
But since you know about this problem, and in more detail than I have written
here
Mikhail added the comment:
I checked the behavior, and found out that it depends on the font. I have "Noto
Sans Mono", and if I enter, for example, '\u2709', IDLE crashes. But if I put
another font, for example 'Dejavu Mono', just a blank line is displayed. Als
New submission from Mikhail :
Hi! I'm not sure if it's an IDLE, library, Xserver or font error, but either
way, IDLE is behaving incorrectly. I have installed 3.8 and 3.9 versions, and
on both it works, I do not know about the others, but I suspect that on the
others, this error a
Change by Mikhail Khvoinitsky :
--
keywords: +patch
pull_requests: +22485
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23617
___
Python tracker
<https://bugs.python.org/issu
New submission from Mikhail Khvoinitsky :
Example which works:
parser.add_argument('--test', nargs='+', metavar=('TEST', 'TEST2'))
Example which doesn't work:
parser.add_argument('test', nargs='+', metavar=(
Change by Mikhail Golubev :
--
keywords: +patch
nosy: +east825
nosy_count: 3.0 -> 4.0
pull_requests: +21535
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22532
___
Python tracker
<https://bugs.python.org/i
New submission from Mikhail Golubev :
TypeAlias is already included in typing_extensions package, making it available
for pre-3.10 versions of Python. I'd like port this implementation to the
upstream version of typing.
--
components: Library (Lib)
messages: 377890
Change by Mikhail Terekhov :
--
keywords: +patch
pull_requests: +21475
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22446
___
Python tracker
<https://bugs.python.org/issu
New submission from Mikhail Terekhov :
CCompiler.has_function does not delete temporary files. Depending on the
check result it leaves temporary C source, object and executable files.
--
components: Distutils
messages: 377646
nosy: dstufft, eric.araujo, termim
priority: normal
New submission from Mikhail Gerasimov :
Compare:
https://docs.python.org/3.6/library/asyncio-sync.html#asyncio.Lock
https://docs.python.org/3.8/library/asyncio-sync.html#asyncio.Lock
First version is much more detailed.
It allows to avoid confusions like one with unlocking order:
https
Change by Mikhail Terekhov :
--
pull_requests: +8168
___
Python tracker
<https://bugs.python.org/issue32258>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Mikhail Terekhov :
--
keywords: +patch
pull_requests: +8167
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34335>
___
_
New submission from Mikhail Terekhov :
Couple of examples in in asyncio documentation mix @asyncio.coroutine decorator
and await.
--
components: asyncio
messages: 323121
nosy: asvetlov, termim, yselivanov
priority: normal
severity: normal
status: open
title: Fix examples in asyncio
Mikhail added the comment:
This file was taken from
https://docs.python.org/3.7/archives/python-3.7.0rc1-docs-pdf-a4.zip
Hashes
CRC32: 327CF408
MD5: 7EBEB565C1EA7E52F366B5C734500FAC
SHA-1: 09727C07C45965E4E43664B727E7CAECC4F3CD89
SHA-256
New submission from Mikhail :
Hello, Python Team,
In reference.pdf I came across truncated lines in Python syntax that are not
wrapped and carried forward to the next line, but instead run across the right
margin.
Examples
"2.3 Identifiers and keywords" line contains
New submission from Mikhail :
The presence of the restriction of recursion prevent making nested conditions
for the superformatter: https://github.com/ebrehault/superformatter
for example:
import string
class SuperFormatter(string.Formatter):
"""World's simp
Change by Mikhail Zakharov :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue33229>
___
___
Python-bugs-list
Mikhail Zakharov added the comment:
OK, I got it. Sorry for disturbing you.
The should be called like: io.SEEK_*
--
___
Python tracker
<https://bugs.python.org/issue33
Mikhail Zakharov added the comment:
Seems in my, quite old 3.4.5 version, it doesn't work:
$ python3
Python 3.4.5 (default, Jun 1 2017, 13:52:39)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license&q
New submission from Mikhail Zakharov :
Documentation for io.IOBase class and it's seek() method at
https://docs.python.org/3/library/io.html mentions SEEK_* constants like:
"SEEK_SET or 0 – start of the stream (the default); offset should be zero
or positive
SEEK_CUR or 1
New submission from Mikhail Afanasev :
I have noticed few misspellings in Python source code comments while doing some
research with the help of spelling and grammatic tools. I double checked all of
them and corrected.
There is just one docstring affected. All the other changes are in Python
Change by Mironov Mikhail :
--
keywords: +patch
pull_requests: +3850
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31678>
___
___
Py
Mikhail Gerasimov added the comment:
STINNER Victor, thanks for explanation!
I don't know if this issue has practical disadvantages, but such behavior seems
to be confusing, especially, since it can be reproduced with event_loop.time()
and asyncio doc says nothing about resolution -
New submission from Mikhail:
Originally faced here:
https://stackoverflow.com/q/46306660/1113207
Simple code to reproduce:
import asyncio
import time
async def main():
while True:
asyncio.ensure_future(asyncio.sleep(1))
t0 = time.time
Mikhail added the comment:
So, I tried the modified patch (see
http://aldan.algebra.com/~mi/tmp/patch-issue30345) -- and now I simply get a
different variable name in the error-message:
(gdb) py-bt
Python Exception Variable 'func' not found.:
Error occurred in Python command: Vari
Mikhail added the comment:
The actual stack, which I'm trying to debug, begins like this:
#0 0xbfbfd34e in ?? ()
#1 0x2a9ec81e in ?? () from /opt/lib/qt5/libQt5WebKit.so.5
#2 0x2acf0efe in ?? () from /opt/lib/qt5/libQt5WebKit.so.5
#3 0x2acd8b74 in ?? () from /opt/lib/qt5/libQt5WebKit
Mikhail added the comment:
I rebuilt my python-3.6.1 with the path
(https://github.com/python/cpython/commit/d05f7fdf6cf77724bd3064fb5a0846ef5cfe0c88)
and tried debugging again -- same problem:
% gdb7121 /opt/bin/python3.6
...
(gdb) r SCRIPT.py
Thread 1 received signal SIGSEGV, Segmentation
Mikhail added the comment:
SOLVED:
I found a solution. It turned out that on the Windows x64 need to use
'-DMS_WIN64' compiler option.
Three days wasted.
And although no one helped me, I felt that mentally you were with me, guys.
Thank you! ;)
--
resolution: -> not
Mikhail added the comment:
I made a small correction to the project. But the essence has not changed.
With Microsoft Visual C++ Build Tools everything is fine. But I would like to
use the GCC.
--
Added file: http://bugs.python.org/file45755/PyAPITests.zip
Changes by Mikhail :
Removed file: http://bugs.python.org/file45754/PyAPITests.zip
___
Python tracker
<http://bugs.python.org/issue28865>
___
___
Python-bugs-list mailin
Mikhail added the comment:
Project included.
building output in the console:
running build_ext
building '_PyAPITests' extension
swigging PyAPITests.i to PyAPITests_wrap.c
z:\PortableApps\MyApps\Dev\SWIGWin\swigwin-3.0.10\swig.exe -python -py3 -o
PyAPITests_wrap.c PyAPITests.i
z:\Po
New submission from Mikhail:
Windows 10 x64
Python 3.4, 3.5, Anaconda3 4.2 - x64
SWIG 3.0.8, 3.0.10
MinGW32/64 - TDM-GCC-64 5.1.0-2, x86_64-5.3.0-win32-sjlj-rt_v4-rev0,
x86_64-6.2.0-win32-sjlj-rt_v5-rev1
The code in C compiles fine, there are no warnings. But then, in the finished
module
New submission from Mikhail Korobov:
Docs currently say that urllib.parse.SplitResult is a subclass of tuple,
without saying that it is namedtuple. What do you think about documenting it as
a namedtuple? It has an useful _replace method which allows to change some part
of URL before passing
Mikhail Gulyaev added the comment:
Thanks for attention
--
___
Python tracker
<http://bugs.python.org/issue25838>
___
___
Python-bugs-list mailing list
Unsub
Mikhail Gulyaev added the comment:
You right I found who resend requests!
My request is goes through httplb2(which use httplib and resends request on
failure), but the issue is that if request body contains file and then that
file is read out and on retry there is nothing to read since we
Changes by Mikhail Gulyaev :
Added file: http://bugs.python.org/file41288/Выделение_061.png
___
Python tracker
<http://bugs.python.org/issue25838>
___
___
Python-bug
Changes by Mikhail Gulyaev :
Added file: http://bugs.python.org/file41287/Выделение_059.png
___
Python tracker
<http://bugs.python.org/issue25838>
___
___
Python-bug
Changes by Mikhail Gulyaev :
Added file: http://bugs.python.org/file41286/Выделение_058.png
___
Python tracker
<http://bugs.python.org/issue25838>
___
___
Python-bug
Mikhail Gulyaev added the comment:
> Why can’t you do the file rewinding yourself, when you retry the request?
Actually I'm not retry to send a request. This behavior I met for httplib
library while I'm send a single request, httplib send it to exist connection
and then recreates
Changes by Mikhail Gulyaev :
--
keywords: +patch
Added file: http://bugs.python.org/file41284/httplib.patch
___
Python tracker
<http://bugs.python.org/issue25
New submission from Mikhail Gulyaev:
Hello guys!
Recently I recived some strange behavior for sending http requests using httplib
My python script uses httplib and interacts with a web server which have a
keep-alive timeout 5 seconds. Script makes PUT requests and sends files to
server. At
New submission from Mikhail Terekhov:
On 64-bit Linux freeze.py uses lib instead of lib64 when constructing
path to Makefile etc. Using sysconfig fixes this issue.
Without encodings.ascii resulting program fails with the following error:
Fatal Python error: Py_Initialize: Unable to get the
Changes by Mikhail Terekhov :
--
nosy: +termim
___
Python tracker
<http://bugs.python.org/issue24769>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mikhail Korobov added the comment:
Shouldn't this fix be mentioned in
https://docs.python.org/3.5/whatsnew/3.5.html#optimizations ?
--
___
Python tracker
<http://bugs.python.org/is
Changes by Mikhail Korobov :
--
nosy: +kmike
___
Python tracker
<http://bugs.python.org/issue22003>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mikhail added the comment:
Yes. I agree. Closed.
Sorry for the panic :)
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue20972>
___
_
Mikhail added the comment:
I noticed that after installing the file python34.dll belongs to the owner of
the "system". While the other files in the system32 folder belonging to the
owner of the "TrustedInstaller".
Possibly this is a problem. My file manager just does
Mikhail added the comment:
>For my successful install, I 1) ran the installer by the classic
>double-click-the-icon method, 2) installed for all users, 3) gave elevated
>privileges when it asked, and 4) left all options at default.
Yes. And I did so.
This is a very strange problem
Mikhail added the comment:
Python installation log included.
MSI (s) (48:2C) [01:28:13:006]: Executing op:
SetTargetFolder(Folder=C:\Windows\system32\)
MSI (s) (48:2C) [01:28:13:006]: Executing op: SetSourceFolder(Folder=1\)
MSI (s) (48:2C) [01:28:13:006]: Executing op:
FileCopy(SourceName
New submission from Mikhail:
The Windows x86-64 MSI Installer (python-3.4.0.amd64.msi,
python-3.3.4.amd64.msi...) does not install python3X.dll in windows\system32 or
windows\SysWOW64 folder.
I select an option "install for all users"
Windows 7 64 bit
(The Windows x86 MSI insta
Mikhail Traskin added the comment:
Peter, thank you for letting me know that views work with list, I was not aware
of this. This is indeed the best solution and it also keeps the DictWriter
interface unchanged.
Terry, attached patch contains the DictWriter change and a test case in
Mikhail Traskin added the comment:
> What is the purpose in touching fieldnames [...]
Wrapping the fieldnames property and tupleizing it guarantees that fieldnames
and _fieldset fields are consistent.
Otherwise, having a separate _fieldset field means that someone who is
modifying
Mikhail Korobov added the comment:
my copy-paste went wrong, last statement in the example should be
>>> pickle.dumps(dct, protocol=1, fix_imports=False)
b'ccollections\ndefaultdict\nq\x00)Rq\x01.'
--
___
Python tracker
<
New submission from Mikhail Korobov:
I think REVERSE_IMPORT_MAPPING is wrong (see
http://hg.python.org/cpython/file/7272ef213b7c/Lib/_compat_pickle.py#l80 ). It
relies on dictionary items order and maps 'collections' module to either
UserString or UserList. This makes it imp
Mikhail Traskin added the comment:
Any way is fine with me. If you prefer to avoid having public filedset
property, please use the attached patch.
--
Added file: http://bugs.python.org/file30605/csvdictwriter.v2.patch
___
Python tracker
<h
New submission from Mikhail Traskin:
_dict_to_list method of the csv.DictWriter objects created with
extrasaction="raise" uses look-up in the list of field names to check if
current row has any unknown fields. This results in O(n^2) execution time and
is very slow if there ar
Changes by Mikhail Korobov :
--
nosy: +kmike
___
Python tracker
<http://bugs.python.org/issue6784>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mikhail Afanasyev added the comment:
The bug is not only wget-specific. It was discovered while making APT proxy, so
at least Debian APT fetcher has the same problem.
--
___
Python tracker
<http://bugs.python.org/issue15
New submission from Mikhail Afanasyev:
When using BaseHTTPServer with ThreadingMixIn, sometimes the wrong data is
served.
The attached script requests normal URL and URLs which are not found in
multiple threads using wget (which only saves pages if it gets 200 OK status).
Every once in a
Changes by Mikhail Korobov :
--
nosy: +kmike
___
Python tracker
<http://bugs.python.org/issue15027>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mikhail I. Izmestev added the comment:
I have strange behavior too:
im@cgt-serv ~ $ python
Python 2.6.6 (r266:84292, Feb 28 2011, 09:01:15)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> f
Mikhail Novikov added the comment:
Updated patch to work properly with verbosity.
--
Added file: http://bugs.python.org/file23484/i13125-2.patch
___
Python tracker
<http://bugs.python.org/issue13
Mikhail Novikov added the comment:
I modified the tests so that they don't do prints to stdout. For that I
replaced print with warnings in the "ParseError" exception except and replaced
os.system with subprocess.getoutput.
--
keywords: +patch
nosy: +freiksenet
A
New submission from Mikhail Terekhov :
For some time now my builds of python 3.2 on x86_64 platform in SuSE OBS are
failing depending on the phase of the moon. The spec file for the python3-base
package uses 'make profile-opt' command to build and Makefile.pre.in uses
pybench.py f
New submission from Mikhail Kovtun :
This bug appears in Python 2.4, 2.5, 2.6; not tested in Python 2.7.
How to reproduce on Linux:
{{{
$ mkdir ~/testsymlinks
$ cd ~/testsymlinks
$ mkdir adir
$ ln -s ../adir adir/blink
$ mkdir -p adir/cdir/ddir
$ ln -s adir/cdir/ddir/.. xlink
$ ln -s xlink
New submission from Mikhail Terekhov :
When I try to build msi installer for my module that contains files with long
names it crashes with the following traceback
C:\home\python\dist_msi_bug>python setup.py bdist_msi
running bdist_msi
running build
running build_scripts
installing to bu
New submission from Mikhail Bessonov :
The first argument of some methods generated by collections.namedtuple
differs from 'self'. It upsets a number of code checkers, notably
PyChecker, because in most cases it is indeed an error. As a result,
the code using collections.namedtupl
New submission from Mikhail Terekhov <[EMAIL PROTECTED]>:
pack/unpack behavior changes unexpectedly depending on the byte order:
l:/tmp >uname -pmiovs
Linux #1 SMP 2008-10-14 22:17:43 +0200 x86_64 x86_64 x86_64 GNU/Linux
l:/tmp >python
python
Python 2.5.1 (r251:54863, Aug 1 20
New submission from Mikhail Gusarov <[EMAIL PROTECTED]>:
Debian bug#501763
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501763):
when using the autodoc extension similiar to this template:
.. automodule:: mvpa.misc.exceptions
:members:
:undoc-members:
:show-inheritance:
:n
New submission from Mikhail Gusarov <[EMAIL PROTECTED]>:
Debian bug #501629 (http://bugs.debian.org/cgi-bin/bugreport.cgi?
bug=501629).
Both sphinx-build and sphinx-quicksetup attempt (and fail) to use ansi
color sequences, even when TERM=dumb (for example, when run from an
emacs shell
Changes by Mikhail Gusarov <[EMAIL PROTECTED]>:
Added file: http://bugs.python.org/file9998/sphinx-quickstart.1
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
New submission from Mikhail Gusarov <[EMAIL PROTECTED]>:
I just created manpages for sphinx-build and sphinx-quickstart as a
part of Sphinx debianization.
Feel free to use/change/improve - I'm releasing them under BSD license,
matching rest of Sphinx.
--
assignee: g
Mikhail Zabaluev added the comment:
Wow, it's exciting to receive followups 6+ years after filing the bug.
> Could you come up with a patch ?
No, I don't do much Python development these days.
Tracker <[EMAIL PROTECTED]>
<http://bugs.
79 matches
Mail list logo