New submission from Michael :
dict with three type parameters is legal (e.g., dict[str, str, str]), where I
expected a TypeError. When using typing.Dict, it does raise a TypeError.
Example in python 3.9:
>>> from typing import Dict
>>> Dict[str, str, str] # Raises a Type
Michael added the comment:
Same for list btw
Python 3.9.6 (default, Jul 7 2021, 11:41:04)
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> list[str, str, str]
list[str, s
Change by Michael :
--
title: dict with more than two type parameters doesn't raise a TypeError ->
dict/list with more than two type parameters doesn't raise a TypeError
___
Python tracker
<https://bugs.pytho
Michael added the comment:
Looks like a duplicate of my previous issue
https://bugs.python.org/issue29759
Unfortunately some frameworks like Gunicorn are extensively using signal
handlers for their internal purposes.
--
nosy: +mapozyan
Michael added the comment:
Reproducing issue with attached test (Python 3.8.2 on Ubuntu 16.04).
--
Added file: https://bugs.python.org/file49130/mp-signal-bug-python3.8.py
___
Python tracker
<https://bugs.python.org/issue38
Michael added the comment:
Attached working patch.
Tested with signal handler set in Lib/test/_test_multiprocessing.py:
2329a2330,2331
> def signal_handler(signum, frame):
> pass
2335a2338
> cls.old_handler = signal.signal(signal.SIGTERM, signal_handler)
Michael added the comment:
If `task_handler._state = TERMINATE` is done before call to
_help_stuff_finish(), then the following loop `while task_handler.is_alive()
and inqueue._reader.poll()` in that function won't work as `is_alive()` will
obviously return
Michael added the comment:
I found a couple of other cases when deadlock still occurs.
1. _help_stuff_finish may remove sentinels from the queue. Some of the workers
will then never get a signal to terminate.
2. worker handler thread may be terminated too late, so it may spawn new
workers
New submission from Michael:
Following code snippet causes a deadlock on Linux:
"""
import multiprocessing.pool
import signal
def signal_handler(signum, frame):
pass
if __name__ == '__main__':
signal.signal(signal.SIGTERM, signal_handler)
pool =
Michael added the comment:
This patch kind of solves the issue. Not a nice one, but perhaps the safest one.
https://github.com/michael-a-cliqz/cpython/commit/1536c8c8cfc5a87ad4ab84d1248cb50fefe166ae
--
___
Python tracker
<http://bugs.python.
Changes by Michael :
--
type: -> behavior
versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
___
Python tracker
<http://bugs.python.org/issu
Michael added the comment:
Hi,
Attached is the updated patch by Sven Brauch from the original mailing list
thread bringing column offset reporting for attributes in line with everything
else.
The offsets for bar before the patch:
foo[bar] = 4
foo(bar) = 4
foo.bar = 0
After:
foo[bar] = 4
New submission from Michael:
if I import any python script in the beginning of the code in then I haver next
errors:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File
Michael added the comment:
thanks David,
scripts which I imported were relying on some librarary which I did not
understand. I was able to get rid of it and I don't have these errors any more.
It was bug in my program. Thank you again.
--
resolution: -> fixed
status: open -
New submission from Michael :
If you look at the documentation for os.chmod(), it says:
"mode may take one of the following values (as defined in the stat
module)..."
and then lists a number of constants from the stat module (stat.S_ISUID,
stat.S_ISGID, etc.)
I cannot seem to
Michael added the comment:
The patch issue17214 did fix this issue in my 3.4.2 install on Ubuntu LTS.
It triggered however another bug:
File "/usr/local/lib/python3.4/urllib/request.py", line 646, in http_error_302
path = urlparts.path if urlpaths.path else "/"
NameE
Michael added the comment:
I should have looked more closely.
The typo is part of the patch. It should be corrected there.
--
___
Python tracker
<http://bugs.python.org/issue17
Hi,
here is a code sample that shows the problem I ran into:
test.py:
=
import pickle
class aList(list):
def __init__(self, arg):
# w/o this call, pickle works...
list.__init__(self, arg)
pass
A = aList([1,2])
B = aList([A, 3])
the_data = {'a'
Change by Michael Felt :
--
nosy: -Michael.Felt
___
Python tracker
<https://bugs.python.org/issue40170>
___
___
Python-bugs-list mailing list
Unsubscribe:
Michael McCoy added the comment:
Checking my comment history here, a past me was terribly bad at linking the
correct PR on github.This is the correct link:
https://github.com/python/cpython/pull/6461
On Mon, Feb 7, 2022 at 10:12 AM Guido van Rossum
wrote:
>
> Guido van Rossum add
New submission from Michael Hupfer :
Hi there,
connecting a multiprocessing.connection.Client to an ipv6 address is not
possible, since the address family is not passed into the constructor of class
SocketClient. The constructor determines the family by calling
address_type(address), which
Changes by Michael Hoffman:
--
components: Distutils
severity: normal
status: open
title: Option to ignore ~/.pydistutils.cfg
type: rfe
versions: Python 2.6
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
Changes by Michael Hoffman:
--
title: Option to ignore ~/.pydistutils.cfg -> Option to ignore or substitute
~/.pydistutils.cfg
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Michael Hoffman added the comment:
Agree with isandler. This is not a bug.
--
nosy: +hoffman
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/iss
New submission from Michael Hoffman:
It would be useful if setup.py instances had an option to ignore
~/.pydistutils.cfg or substitute it with another file. For example, this
would be highly useful to people who maintain a system site-packages
directory along with one in their own home directory
New submission from Michael Hoffman:
See <http://docs.python.org/lib/optparse-callback-example-6.html> where
it says 'either "-" or "-" can be option arguments'. One of these should
be --. The same error occurs several times on the same page.
Not
New submission from Michael Lawrence:
TCL Perl , resources , sometimes with the python tool kit , i'd want
certin compontents removed ,
namely tcl/tk ; on a custom Installer Do you have windows TCL/TK
(YES/no) (Yes) and the gui option panel to repoiit items add perl ruby
ponteirs etc.
Michael Hoffman added the comment:
At the very least could you change the "--" to be the verbatim class
that shows up properly beneath? There has to be another solution that
would result in the docs at least being correct even if we can't get
LaTeX to do exact
Michael Hoffman added the comment:
Also, see http://bugs.python.org/issue798006 which shows how to fix a
similar problem elsewhere in the docs.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
Michael Torrie added the comment:
I had a situation where I was talking to a Sharp MFD printer. Their web
server apparently does not serve chunked data properly. However the
patch posted here put it in an infinite loop.
Somewhere around line 525 in the python 2.4 version of httplib.py, I had
Michael Forbes added the comment:
This appears to have been a bug with the intel compilers. With the latest
version 10.1 20070913 everything seems to work.
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/iss
Michael Foord added the comment:
See issue 10548. There is some resistance to expectedFailure masking errors in
setUp/tearDown as these aren't the place where you would normally expect the
expected failure...
--
___
Python tracker
Michael Foord added the comment:
I think Twisted uses the tearDown to fail tests as well. As we have two use
cases perhaps we should allow expectedFailure to work with failues in tearDown?
(And if we do that it should cover setUp as well for symmetry or it becomes a
morass of special cases
Michael Foord added the comment:
Well, it would be nice for the Python test suite, maybe not so useful for
external users of the api. Something for regrtest rather than unittest I think.
--
___
Python tracker
<http://bugs.python.org/issue12
New submission from Michael Brooks :
Open the attached file "red_test.html" in a browser. The "bad" elements are
blue because the style tag isn't parsed by any known browser. However, the
HTMLParser library will incorrectly recognize them.
--
compon
New submission from Michael Brooks :
The HTML tag at the bottom of this page correctly identified has having cdata
like properties and trigger set_cdata_mode(). Due to the cdata properties of
this tag, the only way to end the data segment is with a closing
tag, NO OTHER tag can close this
Changes by Michael Brooks :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue13358>
___
___
Python-bugs-list mailing list
Unsubscri
Michael Brooks added the comment:
Yes, I am running the latest version, which is python 2.7.2.
On Sun, Nov 6, 2011 at 12:14 PM, Ezio Melotti wrote:
>
> Ezio Melotti added the comment:
>
> Thanks for the report.
> Could you try with the latest 2.7 and see if you can reproduc
Michael Brooks added the comment:
Yes I am running python 2.7.2.
On Sun, Nov 6, 2011 at 12:52 PM, Ezio Melotti wrote:
>
> Ezio Melotti added the comment:
>
> Have you tried with the latest 2.7? (see msg147170)
>
> --
> nosy: +ezio.melotti
>
Michael Brooks added the comment:
Python 2.7.3 is still affected by both of these issues.
On Sun, Nov 6, 2011 at 12:56 PM, Ezio Melotti wrote:
>
> Ezio Melotti added the comment:
>
> I mean 2.7.3 (i.e. the development version).
> You need to get a clone of Python as explain
Michael Brooks added the comment:
This one should also have a priority change. Tested python 2.7.3
--MIke
On Sun, Nov 6, 2011 at 12:54 PM, Michael Brooks wrote:
>
> Michael Brooks added the comment:
>
> Yes I am running python 2.7.2.
>
> On Sun, Nov 6, 2011 at 12:52 PM, Ez
Michael Foord added the comment:
On OS X Lion, with XCode 4.2 installed, I find the following works (no need to
install macports):
./configure CC=gcc-4.2 --prefix=/dev/null --with-pydebug
--
nosy: +michael.foord
___
Python tracker
<h
Michael Foord added the comment:
Ah, it seems I have XCode 3.2.6 installed alongside XCode 4.2.
--
___
Python tracker
<http://bugs.python.org/issue13241>
___
___
Changes by Michael Foord :
--
nosy: -michael.foord
___
Python tracker
<http://bugs.python.org/issue11812>
___
___
Python-bugs-list mailing list
Unsubscribe:
Michael Foord added the comment:
I think your proposed workaround is good enough and no extra effort to type
than the suggested change to assertIsInstance.
-1 on a new method
I think the behaviour of isinstance is clear enough that people who
misunderstand what assertIsInstance is doing
Michael Brooks added the comment:
Has anyone else been able to verify this?
On Mon, Nov 7, 2011 at 7:46 AM, Michael Brooks wrote:
>
> Michael Brooks added the comment:
>
> This one should also have a priority change. Tested python 2.7.3
>
> --MIke
>
> On Sun, Nov 6, 2
Michael Brooks added the comment:
Ok so until you fix this bug, i'll be overriding HTMLParser with my fix,
becuase this is a blocking issue for my project. My HTMLParser must behave
like a browser, period end of story.
Thanks.
On Thu, Nov 17, 2011 at 9:24 AM, Ezio Melotti wrote:
>
Michael Brooks added the comment:
Oah, then there is a misunderstanding. No browser will parse the html
that is declared within a javascript variable, it must be treated as a
continues data segment (with cdata properties) until the exit
is encountered (and if this tag found anywhere, even
Michael Foord added the comment:
Note that this works for me on a Macbook Air that has never had Snow Leopard,
nor XCode 3 installed.
As far as I can tell non-llvm gcc *is* installed by XCode 4.2: /usr/bin/gcc-4.2
--
___
Python tracker
<h
Changes by Michael Foord :
--
nosy: -michael.foord
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue10278>
___
___
Python-bug
New submission from Michael Kraus :
It would be very helpful to have the ability to specify a LIBFFI-PATH during
Python configuration via
./configure --with-system-ffi=LIBFFI-PATH
We are using the Intel compiler to build Python, NumPy, SciPy, and Cython on a
SuSE Linux Enterprise Server
New submission from Michael Foord :
Where os.listdir encounters undecodable bytes from the filesystem it uses the
surrogateescape handler. As the resulting strings are invalid they can't be
encoded without an errorhandler, and so can't be printed (for example).
This should be
Michael Foord added the comment:
I'd like to commit this patch. What's your real name Trundle, for the NEWS
entry?
--
assignee: -> michael.foord
___
Python tracker
<http://bugs.pytho
Michael Foord added the comment:
No longer reproducable on CPython. Unfortunately still an issue with unittest2.
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Changes by Michael Foord :
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue11764>
___
___
Python-bugs-list
Michael Foord added the comment:
Andreas, is this still needed and valid?
--
assignee: -> michael.foord
___
Python tracker
<http://bugs.python.org/issu
Michael Foord added the comment:
traceback patch looks good. Thanks for the unittest2 patch as well.
--
___
Python tracker
<http://bugs.python.org/issue8
Michael Foord added the comment:
Thanks
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue13675>
___
___
New submission from Michael Foord :
Reported by a user. Reported on Windows but probably not Windows specific.
If IDLE doesn't have permission to read the recent-files.lst file then it
crashes. (When launched with pythonw.exe on Windows it silently fails to open
with no error message t
New submission from Michael Kesper :
http://docs.python.org/library/string.html#format-specification-mini-language
mentions:
Changed in version 2.7: Added the ',' option (see also PEP 378).
PEP 378 tells me:
The ',' option is defined as shown above for types 'd&
New submission from Michael Mulich :
While working on porting wsgi_intercept to Python 3 I came across a recursion
issue with http.client.HTTPSConnection. The following is an lesser extraction
of the traceback:
Traceback (most recent call last):
File ".../wsgi_intercept
New submission from Michael Goderbauer :
Mac OS X provides a socket-based API to communicate with Kernel Extensions
(KEXTs) called "KEXT Controls". For this, Mac OS X defines PF_SYSTEM as a new
socket domain which supports the SYSPROTO_CONTROL protocol.
Right now the PF_SYSTEM doma
New submission from Michael Foord :
Implementing a custom __dir__ method is fiddly because there is no way of
obtaining the standard list of attributes that dir would return.
Moving the relevant parts of the dir implementation into object.__dir__ would
allow a custom __dir__ to obtain the
Michael Foord added the comment:
Sure, let's do it. Fabio, care to provide patch with tests and doc changes?
(For 3.3.)
--
___
Python tracker
<http://bugs.python.org/is
Michael Foord added the comment:
Unless Terry wants to contribute a fix I suggest closing this.
--
___
Python tracker
<http://bugs.python.org/issue11906>
___
___
Michael Foord added the comment:
> Interactive mode is an approved method of running Python code, along with
> batch mode.
That is not guaranteed for any particular piece of Python code in the standard
library. In particular it is not amenable to test automation, so it is
certainly
Michael Foord added the comment:
> it should run interactively as documented.
Where is it documented that all tests will run from the IDLE prompt?
I have *never* heard this claim before. I have nothing against tests supporting
this, but those who want it to happen will have to do the w
Michael Mulich added the comment:
Looks like someone fixed this before distutils2 was merged into cpython as
packaging. Thanks.
--
resolution: -> works for me
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
michael mulich added the comment:
Sure, I'll have a look. I'm only getting back into the swing of
things, but hopefully I can get more involved. Trying to do one or two
small tasks a night.
-Michael Mulich (pumazi)
On Mon, Jun 6, 2011 at 11:33 AM, Éric Araujo wrote:
>
> Ér
Changes by Michael Mulich :
--
nosy: +michael.mulich
___
Python tracker
<http://bugs.python.org/issue8371>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Michael Mulich :
--
nosy: +michael.mulich
___
Python tracker
<http://bugs.python.org/issue8501>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Michael Mulich :
--
nosy: +michael.mulich
___
Python tracker
<http://bugs.python.org/issue8591>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Michael Mulich :
--
nosy: +michael.mulich
___
Python tracker
<http://bugs.python.org/issue11880>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Michael Mulich :
--
nosy: +michael.mulich
___
Python tracker
<http://bugs.python.org/issue8668>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Michael Mulich :
A package's metadata (dist-info) should be available to it while running the
test command (pysetup run test)?
The use case:
I've written a test for a function that is supposed to find the default
configuration or one provided in a users loca
Changes by Michael Mulich :
--
title: pysetup run test -> test command is not loading the distribution metadata
___
Python tracker
<http://bugs.python.org/issu
Michael Mulich added the comment:
The RESOURCES implement in install_distinfo command should probably be a
separate case, no?
--
___
Python tracker
<http://bugs.python.org/issue12
Changes by Michael Mulich :
--
nosy: +michael.mulich
___
Python tracker
<http://bugs.python.org/issue12279>
___
___
Python-bugs-list mailing list
Unsubscribe:
Michael Foord added the comment:
Config options are for when developers can't make decisions. Given that there
are valid use cases please just allow it. A --strict option is fine... (but
no-one will use it I suspect)
--
___
Python tracker
Changes by Michael Foord :
--
assignee: -> michael.foord
___
Python tracker
<http://bugs.python.org/issue11218>
___
___
Python-bugs-list mailing list
Unsubscri
Michael Foord added the comment:
Yes, allowing it by default. :-)
--
___
Python tracker
<http://bugs.python.org/issue10530>
___
___
Python-bugs-list mailin
Michael Foord added the comment:
I don't think this is something that belongs in unittest - it's not something
particularly useful (or at least particularly requested) outside of the python
test suite. No reason that a WatchfulTestRunner couldn't l
Changes by Michael Foord :
--
nosy: +michael.foord
___
Python tracker
<http://bugs.python.org/issue12341>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Michael Mulich :
packaging.pypi.dist should abstract download errors, especially those from
external sources. Download errors are currently reported from urllib. We should
probably be using packaging.errors.PackagingPyPIError in this situation. Other
suggestions?
Example
New submission from Michael Mulich :
The packaging.pypi.simple.Crawler blindly follows external download URLs. The
crawler should honor a list of allowed hosts (see also the hosts parameter)
before attempting to download from an external source.
Éric Araujo has also pointed out that
New submission from Michael Foord :
In Python 3 the following code prints "False" because the use of super() has
caused the __class__ descriptor to be omitted from the class namespace. Remove
the use of super and it prints "True".
class X(object):
def __init__(
Michael Foord added the comment:
The basic idea of the patch is good, but instead of introducing _MAX_LENGTH,
maxDiff should be reused.
--
___
Python tracker
<http://bugs.python.org/issue11
Michael Foord added the comment:
Sorry, ignore that. I see that the patch already passes maxDiff to truncate_str.
--
___
Python tracker
<http://bugs.python.org/issue11
Michael Grazebrook added the comment:
Thank you.
On 25/06/2011 13:38, Raymond Hettinger wrote:
> Changes by Raymond Hettinger:
>
>
> --
> resolution: -> fixed
> status: open -> closed
>
> ___
> Python tracker
>
Michael Foord added the comment:
I have a feeling I added the arguments to TestResult.__init__ to allow it to be
used as a silent test result directly in place of TextTestResult. I still need
to check this.
Not adding the arguments to the super call in TextTestResult would have been an
Changes by Michael Foord :
--
assignee: -> michael.foord
___
Python tracker
<http://bugs.python.org/issue12376>
___
___
Python-bugs-list mailing list
Unsubscri
Michael Foord added the comment:
Wondered if you guys had heard of some recent advances in the state of the art
in this field. I'm sure you have, but thought I'd link it here anywhere.
Quote taken from this article (which links to relevant papers):
http://www.serpentine.com/blog/
New submission from Michael Mulich :
The issue, as best I can describe it, is in how the a release list
(packaging.pypi.dist.ReleaseList) looks up releases.
Here is a simple example using a random package on PyPI.
>>> crawler = Crawler()
>>> projects = crawler.searc
Michael Foord added the comment:
Doesn't seem like an unreasonable request. Nick / Benjamin, what do you think?
--
___
Python tracker
<http://bugs.python.org/i
Michael Foord added the comment:
I can produce a patch w/ tests and documentation for you to review Nick.
--
___
Python tracker
<http://bugs.python.org/issue8
New submission from Michael Mulich :
Forward slashes show up in a project's (packaging.pypi.dist.ReleaseList) name
when using a crawler (packaging.pypi.simple.Crawler) against, say and Apache
index page. The packaging.tests:/pypiserver/foo_bar_baz directory is a perfect
example of this
Changes by Michael Mulich :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue12532>
___
___
Python-bugs-list mailing list
Unsubscri
Michael Mulich added the comment:
After looking over the use cases, these are my findings and questions:
* Cases 2, 3, 5 and 6 are strongly related. I'd suggest you condense them into
a single use case. I agree with case 2 and 6 most, but have questions:
** Why wouldn't one si
michael mulich added the comment:
We have to generate a RECORD, otherwise resource lookups in
development and testing modes will fail or at least should fail.
Yes, but that's not all.
> 4) don’t add a build_distinfo command, just run install_distinfo to the build
> dir from t
michael mulich added the comment:
Gmail decided to strip the quotes... Grr...
> So, what do we do?
> 1) don’t generate RECORD at all → invalid PEP 376
We have to generate a RECORD, otherwise resource lookups in
development and testing modes will fail or at least should fail.
1 - 100 of 3015 matches
Mail list logo