Change by Denis Laxalde :
--
keywords: +patch
pull_requests: +28758
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30557
___
Python tracker
<https://bugs.python.org/issu
New submission from Denis Laxalde :
On my (Debian 10) system, 'pydoc -k' crashes as follows:
$ python3 -m pydoc -k foo
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
Denis Laxalde added the comment:
The assertion at stake looks redundant since we already check that
`'{}'.format(OkayEnum.one) == '1'` (the line above) and that `OkayEnum.one ==
'1'` (3 lines above).
--
nosy: +dlax
Change by Denis Laxalde :
--
nosy: +dlax
___
Python tracker
<https://bugs.python.org/issue42414>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Denis Laxalde :
--
nosy: +dlax
___
Python tracker
<https://bugs.python.org/issue44353>
___
___
Python-bugs-list mailing list
Unsubscribe:
Denis S. Otkidach added the comment:
Re: msg393586
> See my comment in the PR for a suggestion about an alternative structure for
> wait_for, which may avoid this gap and hence prevent the leak (but I have not
> tested it!)
Unfortunately this didn't close the gap, so the leak
Denis S. Otkidach added the comment:
The original problem can be fixed by wrapping await into try-except block:
```
async def create_connection(ssl_obj):
loop = asyncio.get_event_loop()
connector = loop.create_connection(MyEchoClientProtocol, '127.0.0.1', 5000,
s
Change by Denis S. Otkidach :
--
keywords: +patch
pull_requests: +24737
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26097
___
Python tracker
<https://bugs.python.org/issu
Change by Denis S. Otkidach :
--
pull_requests: +24738
pull_request: https://github.com/python/cpython/pull/26097
___
Python tracker
<https://bugs.python.org/issue37
Denis S. Otkidach added the comment:
The current solutions doesn't look correct. It swallows cancelling causing task
to hang: https://bugs.python.org/issue42130 .
Proposed test case calls cancel for inner future and set_result for outer task
in the same loop step. The old (prior to
Denis Roussel added the comment:
Of course. Wanted a shortcut. Can close it if you want.
--
___
Python tracker
<https://bugs.python.org/issue43029>
___
___
Pytho
Denis Roussel added the comment:
Indeed, can do
assertNotEquals(len(the_list), len(set(the_list))
--
___
Python tracker
<https://bugs.python.org/issue43
Change by Denis Roussel :
--
keywords: +patch
pull_requests: +23154
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24336
___
Python tracker
<https://bugs.python.org/issu
New submission from Denis Roussel :
Allows to test uniqueness of members of a list
--
components: Tests
messages: 385700
nosy: rousseldenis
priority: normal
severity: normal
status: open
title: unittest: Add assertUniqeIn
___
Python tracker
<ht
Denis Kasak added the comment:
Anything still left to do that is stalling this? I just got bitten by it when
trying to use modulefinder.
--
nosy: +dkasak
___
Python tracker
<https://bugs.python.org/issue40
Change by Denis S. Otkidach :
--
nosy: +ods
___
Python tracker
<https://bugs.python.org/issue42130>
___
___
Python-bugs-list mailing list
Unsubscribe:
Denis S. Otkidach added the comment:
The current error message is way too cryptic anyway. And restricting it to the
set type only, as in docs, will certainly break a lot of code (passing a list
is quite common).
--
___
Python tracker
<ht
Change by Denis S. Otkidach :
--
nosy: +ods
___
Python tracker
<https://bugs.python.org/issue42140>
___
___
Python-bugs-list mailing list
Unsubscribe:
denis added the comment:
I do confirm that different terminals react differently (xterm doesn't hang)
Definitely not a python bug
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https:
New submission from denis :
Python 3.8.5, Python 3.7.3
When trying to print invalid unicode, interpreter goes to a completely
unresponsive state
>>> print("\x9b")
eyboardInterrupt
>>> print("\xa5")
¥
>>> print("\x95")
>>&
New submission from Denis Vieira :
On my Python projects i like to use the logger.exception() method without any
other message.
I'm forced to send an empty string on every call.
logger.exception('')
It would be nice the exception method have the expected parameter "m
New submission from Kaveshnikov Denis :
Hi, I found that if to call run_until_complete() in the task while the event
loop will be running, a coroutine sent to run_until_complete() will be
performed despite the exception raised from run_until_complete().
It seems to me, it would be better to
Denis S. Otkidach added the comment:
It's fixed in 3.8 final, but the problem persists in 3.7.5
--
versions: -Python 3.8
___
Python tracker
<https://bugs.python.org/is
Change by Denis S. Otkidach :
--
nosy: +ods
___
Python tracker
<https://bugs.python.org/issue34364>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Denis S. Otkidach :
Minimal example to reproduce:
-->8--
>>> with open('f_bug.py', 'w') as fp:
... fp.write('f"{a b}"')
...
8
>>> import f_bug
Traceback (most recent call last):
File "", line
New submission from Denis S. Otkidach :
Test script:
-->8--
import asyncio
@asyncio.coroutine
def test():
with (yield from asyncio.Lock()):
pass
asyncio.run(test())
-->8--
Correct behavior without flag (warning is reported and points to correct line
of code):
---
$
Denis Osipov added the comment:
Got it.
But now docs says that overriding the __getattr__() method is enough to
customize attribute access. It's not completely true.
If I understand it correct, to make __getattr__() work every time you need to
call it by __getattribute__ or
Change by Denis Osipov :
--
keywords: +patch
pull_requests: +9625
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Denis Osipov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Denis Osipov :
6.3.1. Attribute references says:
"The primary must evaluate to an object of a type that supports attribute
references, which most objects do. This object is then asked to produce the
attribute whose name is the identifier. This production can be custo
Denis Osipov added the comment:
I understand that it's expected behavior. But why don't use completely working
example in the docs, which one could just copy and paste? It requires to add
just seven chars)
--
___
Python track
New submission from Denis Osipov :
Customizing module attribute access example raises RecursionError:
>>> import sys
>>> from types import ModuleType
>>> class VerboseModule(ModuleType):
... def __repr__(self):
... return f'Verbose {self.__name_
Denis Ledoux added the comment:
The pleasure is all mine.
Thanks to you and the other contributors involved. For my first contribution to
Python, I am glad everything went smoothly :).
--
___
Python tracker
<https://bugs.python.org/issue35
Change by Denis Ledoux :
--
pull_requests: +9461
___
Python tracker
<https://bugs.python.org/issue35017>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Denis Ledoux :
--
keywords: +patch
pull_requests: +9299
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35017>
___
___
Py
New submission from Denis Ledoux :
After the shutdown of a `BaseServer`, the server may accept a last single
request if it is sent between the server socket polling and the polling timeout.
This can be problematic for instance for a server restart for which you do not
want to interrupt the
Denis Ryzhkov added the comment:
Simple explanation: if you call a method of a parent, then you are using class
information now, so your child method is not static any more. Please use
classmethod decorator and super() with no arguments - it will use cls argument
implicitly
--
nosy
Pierre Denis added the comment:
> So this justifies things like `sqrt(-0.0)` giving a zero result (rather than
> being considered invalid)
Well, I didn’t noticed that the wolf was already in the henhouse! This choice
seems disputable for me because it is precisely a case where f(-0.0)
Pierre Denis added the comment:
Thanks, Tim & Mark. This indeed clarifies and gives a good rationale on Python
implementation. Nevertheless, despite the authority arguments, I continue to
wonder what is the rationale for these specifications. Probably the debate
should move to the stand
New submission from Pierre Denis :
Python returns inconsistent results when negative infinity is raised to a
non-integer power. This happens with the ** operator as well as with the pow
and math.pow functions. The most blatant symptom occurs with power 0.5, which
is expectedly equivalent to a
Denis Osipov added the comment:
Got it. Thank you for your help.
--
___
Python tracker
<https://bugs.python.org/issue31761>
___
___
Python-bugs-list mailin
New submission from Denis Osipov :
In Developer Guide says:
"If you don’t have easy access to a command line, you can run the test suite
from a Python or IDLE shell:
>>> from test import autotest"
But I can't run test from IDLE:
Traceback (most recent call last
Denis Osipov added the comment:
Oops... I've tried to rebuild, it didn't help. But after deleting folder
cpython\PCbuild\amd64 everything works well again.
Sorry for false alarm.
--
resolution: -> works for me
stage: -> resolved
status
New submission from Denis Osipov :
Since today (2017-10-10) I have compile error on Windows 10:
$ PCbuild/build.bat -e -d -p x64
Using py -3.6 (found with py.exe)
Fetching external libraries...
bzip2-1.0.6 already exists, skipping.
sqlite-3.14.2.0 already exists, skipping.
xz-5.2.2 already
Changes by Denis Osipov :
--
keywords: +patch
pull_requests: +3744
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31583>
___
___
Py
New submission from Denis Osipov:
2to3 doesn't work if called for file in current directory with --add-suffix
option.
$ /d/repos/cpython/python.bat /d/repos/cpython/Tools/scripts/2to3 -n -W
--add-suffix=3 test2to3.py
Running Debug|x64 interpreter...
WARNING: --write-unchanged-fil
Changes by Denis Osipov :
--
keywords: +patch
pull_requests: +3727
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Changes by Denis Osipov :
--
keywords: +patch
pull_requests: +3726
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue16322>
___
___
Py
Changes by Denis Osipov :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue31498>
___
___
Denis Osipov added the comment:
Thank you for your answers. It's what I want to know. It looks like I shouldn't
try to fix (to break) something that works well enough.
If nobody minds I'll close the issue with not a bug resolution.
--
___
Denis Osipov added the comment:
Actually now Python time.strftime not always returns the same value as C
strftime with the same arguments, because timemodule make some refining of raw
argument values to avoid errors.
--
___
Python tracker
<ht
Denis Osipov added the comment:
Yes, C strftime returns the same. Inside of Python time.strftime() in Windows
we give struct tm with inconsistent attributes (year, mon, mday and wday,yday)
as argument for C strftime().
Before it timemodule does a lot of work to parse arguments of
Denis Osipov added the comment:
It seems strange to me that time.strftime() returns formatted date with wrong
day of week and day of year values. So, I think it's probably a bug.
But I'm just learning Python and programming and I think that it can be
intentional behavior.
If it
Denis Osipov added the comment:
If it's really a bug I could make PR with changes in timemodule.c (in
gettmarg() and checktm() functions). But I'm not sure that it's not intended
behavior.
--
___
Python tracker
<https://bugs.pyt
New submission from Denis Osipov:
Now default values for zero in time.strftime returns string with day of week
value 1:
>>> time.strftime("%Y %m %d %H %M %S %w %j", (2000,)+(0,)*8)
'2000 01 01 00 00 00 1 001'
while 2000-01-01 is Saturday (=6th day of week).
N
Denis Osipov added the comment:
Fixed in PR 3397 (I guess).
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Denis Osipov added the comment:
Thank you. Looking forward to it.
--
___
Python tracker
<http://bugs.python.org/issue31381>
___
___
Python-bugs-list mailin
New submission from Denis Osipov:
Can't load pythoncore.vcxproj in VS2017 after PR 3375 bpo-31358: Pull zlib out
of the repository #3375.
During pcbuild.sln loading there is error message:
D:\repos\cpython\PCbuild\pythoncore.vcxproj : error : Unable to read the
project
Changes by Denis Osipov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue31364>
___
Changes by Denis Osipov :
--
pull_requests: +3391
___
Python tracker
<http://bugs.python.org/issue31364>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Denis Osipov:
It looks like last PR #3377 changing pytime.c (adding #include )
causing problem with compilation. Now on my Win10 i have multiple warnings and
errors about ws2def.h, winsock.h and winsock2.h (see attached file).
--
components: Windows
files
Changes by Denis Akhiyarov :
--
pull_requests: +2443
___
Python tracker
<http://bugs.python.org/issue30757>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Denis Akhiyarov:
https://github.com/python/cpython/pull/1158
It is not clear why this FAQ item is written in addition to this document:
https://github.com/python/cpython/blob/master/Doc/faq/windows.rst#how-do-i-make-python-scripts-executable
https://github.com/python
Changes by Denis Osipov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue30584>
___
Changes by Denis Osipov :
--
versions: +Python 3.5, Python 3.6
___
Python tracker
<http://bugs.python.org/issue30584>
___
___
Python-bugs-list mailing list
Unsub
Denis Osipov added the comment:
Tests on Windows buildbots passed. I've made PR for 3.5 and 3.6 backporting.
--
___
Python tracker
<http://bugs.python.org/is
Changes by Denis Osipov :
--
pull_requests: +2067
___
Python tracker
<http://bugs.python.org/issue30584>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Denis Osipov :
--
pull_requests: +2066
___
Python tracker
<http://bugs.python.org/issue30584>
___
___
Python-bugs-list mailing list
Unsubscribe:
Denis Osipov added the comment:
Using the numeric SID instead of localized name in test_access_denied works for
me (I've made PR).
--
___
Python tracker
<http://bugs.python.org/is
Changes by Denis Osipov :
--
pull_requests: +2046
___
Python tracker
<http://bugs.python.org/issue30584>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Denis Osipov:
test_os fails on non-English (Russian) Windows 7 Home Extended 6.1.7601 x64
==
ERROR: test_access_denied (test.test_os.StatAttributeTests
Denis Akhiyarov added the comment:
has this been merged?
--
nosy: +Denis Akhiyarov
___
Python tracker
<http://bugs.python.org/issue6818>
___
___
Python-bugs-list m
Denis added the comment:
Thank you!
The error was that some calls in pycrypto code were aggregated and exceptions
in those calls were ignored.
Here is the patch for pycrypto that fixed the build.
@@ -1427,7 +1429,9 @@ getStrongPrime (PyObject *self, PyObject *args, PyObject
*kwargs
New submission from Denis:
Looks like related to Issue23571
Probably same issue as in Django, but in other Python module.
While compiling python-module-crypto:
=
ERROR: test_getStrongPrime_randfunc_bogus
New submission from Denis Savenko:
In documentation from this page
https://docs.python.org/3.5/library/urllib.request.html#examples in examples
uses default address to python site with http. ( http://python.org/ ). But now
python.org use https. When i try use example in ipython i get I/0
Changes by Denis Jacquerye :
--
nosy: +Denis Jacquerye
___
Python tracker
<http://bugs.python.org/issue22612>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Denis Jacquerye :
--
nosy: +Denis Jacquerye
___
Python tracker
<http://bugs.python.org/issue6331>
___
___
Python-bugs-list mailing list
Unsubscribe:
Denis Gordeev added the comment:
Oh, sorry. Forgot about it.
--
resolution: -> not a bug
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Denis Gordeev:
My code is:
mypath = 'Z:\Pr Files\norma'
file_list = [ f for f in listdir(mypath) if isfile(join(mypath,f))]
Error:
Traceback (most recent call last):
File "C:\Documents and Settings\Administrator\Desktop\uni\click zhenilo
workshop\noise.p
Denis Sukhonin added the comment:
The same problem.
>>> os.listdir(os.open('/tmp/test/', os.O_RDONLY))
Traceback (most recent call last):
File "", line 1, in
OSError: [Errno 22] Invalid argument
--
___
Python tra
Denis Sukhonin added the comment:
No, it throws 22.
>>> os.listdir(os.open('/tmp/test', os.O_RDONLY))
Traceback (most recent call last):
File "", line 1, in
OSError: [Errno 22] Invalid argument
--
___
Python tra
Denis Sukhonin added the comment:
It returns an integer.
>>> import os
>>> os.open('/tmp/test', os.O_RDONLY)
3
--
___
Python tracker
<ht
New submission from Denis Sukhonin:
shutil.rmtree doesn't work correctly on FreeBSD 9.1.
For example if I create a path /tmp/test and try to remove it, I get an
exception:
>>> shutil.rmtree('/tmp/test')
Traceback (most recent call last):
File "", line 1, in
Denis Bilenko added the comment:
gevent's ssl support is also broken by 2.7.9.
https://github.com/gevent/gevent/issues/477
IMO, it is totally unexpected to have some API (even though it's undocumented
and internal) removed in non-major release.
Even though both gevent and event
New submission from Denis:
On 'connection refused' error urllib creates IOError with wrong arguents:
args ('socket error', error(, 'Connection refused'))
It results to dirty hacks in Python code like
'if e.errno == "socket error"
Changes by Denis Bilenko :
--
nosy: +Denis.Bilenko
___
Python tracker
<http://bugs.python.org/issue15896>
___
___
Python-bugs-list mailing list
Unsubscribe:
Denis Barmenkov added the comment:
I saw similar error on Python 2.6 installed on freeBSD.
I had test SVN server and wrote pre-commit hook using python. When remote
developer commited his changes to repository, hook called os.path.expanduser
and exception was raised:
# File "
Denis S. Otkidach added the comment:
Phillip, your argument about interfacing with code written in C doesn't work
for built-in immutable types like str. Any subclass of str must call
str.__new__ thus keeping proper internal state.
--
___
P
Denis S. Otkidach added the comment:
Current behavior is unpythonic: documentation explicitly mentions isinstance as
preferred way to check type (see http://docs.python.org/library/types.html ).
Also 2.7 is the last minor version with str as "main" string type. So I believe
it
Denis Dmitriev added the comment:
Is there a reason to keep inplen and max_length ints instead of making them
Py_ssize_t too? I'm a little worried that keeping them ints will cause a
similar problem further down the line.
--
___
Python tr
Denis Dmitriev added the comment:
Alright, I think this is caused by the following:
static PyObject *
PyZlib_objdecompress(compobject *self, PyObject *args)
{
int err, inplen, old_length, length = DEFAULTALLOC;
int max_length = 0;
The problem is that inplen, length, old_length, and
New submission from Denis Dmitriev :
There's a bug in python's zlibmodule.c that makes it raise SystemError whenever
it tries to decompress a chunk larger than 1GB is size. Here's an example of
this in action:
dmitr...@...:~/moo/zlib_bug> cat zlib_bug.py
import zlib
def
Denis added the comment:
The CDATA sections are part of XML specification.
http://www.w3.org/TR/REC-xml/#sec-cdata-sect
HTML is not XML, so HTMLParser does the right thing here.
--
nosy: +Denis
___
Python tracker
<http://bugs.python.org/issue7
Denis S. Otkidach added the comment:
Here is a regexp I use to clean up text (note, that I don't touch
"compatibility characters" that are also not recommended in XML; some
other developers remove them too):
# http://www.w3.org/TR/REC-xml/#NT-Char
# Char ::= #x9 | #xA | #xD
New submission from Denis Martinez :
I have written a server backup script (file attached) which archives a
list of directories with tarfile and uploads the file to FTP. Today, the
script hanged, with an exception:
Exception in thread Thread-1:
Traceback (most recent call last):
File "
Denis S. Otkidach added the comment:
Every blog engine I've even seen so far pass through comments from
untrusted users to RSS/Atom feeds without proper validation causing
broken XML in feeds. Sure, this is a bug in web applications, but DOM
manipulation packages should prevent from cre
Denis S. Otkidach added the comment:
Yes, it's a problem in Python library. I believe the patch proposed by
Oleg in the issue821862 is the best solution to it.
--
___
Python tracker
<http://bugs.python.org/issu
New submission from Denis S. Otkidach :
ElementTree and minidom allow creation of not well-formed XML, that
can't be parsed:
>>> from xml.etree import ElementTree
>>> element = ElementTree.Element('element')
>>> element.text = u'\0'
>
New submission from Denis <[EMAIL PROTECTED]>:
PROBLEM:
Some sites (e.g. https://itunesconnect.apple.com) sends cookies where
version is "1" instead of 1. Cookielib chokes on it so none of the
cookies work after that.
PROBLEM CODE:
def _cookie_from_cookie_tuple(se
99 matches
Mail list logo