Henk-Jaap Wagenaar added the comment:
This bug tracker is for the Python language and not for asking for help with
programming. This bug should be closed.
You can go to e.g. stackoverflow.com and ask the question there.
--
nosy: +cryvate
Henk-Jaap Wagenaar added the comment:
Reading this bug thread last week made me realize we had made the following
error in our code:
class SomethingView():
@functools.lru_cache()
def get_object(self):
return self._object
Now, as this class was instantiated for every
Henk-Jaap Wagenaar added the comment:
PR 26731 looks very good to me. My only comment, which I am not sure is worthy
of adding/is a general lru_cache thing, that "instances
are kept alive until they age out of the cache or until the cache is
cleared", if you are creating instances a
Henk-Jaap Wagenaar added the comment:
Logging can be quite tricky. There are filters at multiple levels. In this
case, you didn't set up the "global logging" and I am guessing, by default, it
only shows WARNING and above. You can fix your problem by doing:
logging.ba
Henk-Jaap Wagenaar added the comment:
The sentence within the doc should not be considered in isolation.
The "Logger" object is *not* ignoring the message (in accordance with the
documentation and your expectation), but the "Handler" is, see
https://docs.python.org/3.8/
Change by Henk-Jaap Wagenaar :
--
nosy: +cryvate
___
Python tracker
<https://bugs.python.org/issue14995>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Henk-Jaap Wagenaar :
--
nosy: +Cryvate
nosy_count: 4.0 -> 5.0
pull_requests: +25360
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26774
___
Python tracker
<https://bugs.python.org/i
Change by Henk-Jaap Wagenaar :
--
keywords: +patch
nosy: +Cryvate
nosy_count: 4.0 -> 5.0
pull_requests: +25362
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26776
___
Python tracker
<https://bugs.python.org/i
Change by Henk-Jaap Wagenaar :
--
versions: +Python 3.10, Python 3.11 -Python 3.5, Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue31
Henk-Jaap Wagenaar added the comment:
I clearly was missing some words there Raymond. I meant, if one has set
maxsize=None.
--
___
Python tracker
<https://bugs.python.org/issue44
Henk-Jaap Wagenaar added the comment:
(but consenting adults, setting max_size=None for "efficiency", you better be
sure what you are doing in a long running process and making sure it cannot
grow unbounded.)
--
___
Python track
Henk-Jaap Wagenaar added the comment:
It seems like the example in the OP now works (persist both arguments), but
Irit's/Kirill's (create a msg) fails (I am running 3.9).
--
nosy: +cryvate
___
Python tracker
<https://bugs.python.o
Henk-Jaap Wagenaar added the comment:
I can confirm it looks the same to me, and I have never said Polish in my
browser et cetera, so I assume this is the same for everyone.
--
nosy: +cryvate
___
Python tracker
<https://bugs.python.org/issue44
Henk-Jaap Wagenaar added the comment:
It seems to affect 3.10 as well and other languages (French seems to show a
variety fo languages)
--
versions: +Python 3.10
___
Python tracker
<https://bugs.python.org/issue44
Henk-Jaap Wagenaar added the comment:
@Mark, I don't know about Samuel, but when I tried, I could get the bug with
other languages, but not on other pages (which seems to agree with your point
of reasoning).
--
___
Python tracker
&
Henk-Jaap Wagenaar added the comment:
I don't seem to be able to reproduce this by running this one-liner:
from datetime import datetime, timezone;
print(datetime.now(timezone.utc).timestamp()); print(datetime.u
tcnow().timestamp());
on 3.9.5. How did you achieve this? It looks lik
Henk-Jaap Wagenaar added the comment:
Python 2.7 is end-of-life, see e.g. https://www.python.org/doc/sunset-python-2/
so this is unlikely to be fixed.
This behaviour continues on Python 3 it seems (I used 3.8.1), *however* on
Python 3 this is not valid code as it mixes spaces and tabs, see
Change by Henk-Jaap Wagenaar :
--
nosy: +Henk-Jaap Wagenaar
___
Python tracker
<https://bugs.python.org/issue31826>
___
___
Python-bugs-list mailing list
Unsub
Henk-Jaap Wagenaar added the comment:
@rhettinger: I like this proposal.
@dheiberg: to me, it seems negative weights are explicitly not supported, from:
https://docs.python.org/3/library/random.html#random.choices
"Weights are assumed to be non-negative."
Unless I am missing som
New submission from Henk-Jaap Wagenaar :
Due to a certain discussion on extending zip, I was having looking at this page:
https://docs.python.org/3/library/functions.html
It lists the builtins at the top as e.g. all() which I think is confusing:
running all() will actually fail.
I think it
Henk-Jaap Wagenaar added the comment:
It doesn't raise an error when you run the whole example, it has "from
functools import reduce" at the top.
--
nosy: +cryvate
___
Python tracker
<https://bugs.pyt
Henk-Jaap Wagenaar added the comment:
Thanks for the report, that does look like unfriendly UX.
pip is maintained separately and then vendored (included/packaged in). Could
you please file an issue here instead: https://github.com/pypa/pip/issues (I
would do so myself, but as I do not
Henk-Jaap Wagenaar added the comment:
I can confirm this seems to happen, link to reproduce (click on
"Documentation"):
https://docs.python.org/ja/3/index.html
It redirects to:
https://docs.python.org/ja/index.html
which is a 404
--
nosy
New submission from Henk-Jaap Wagenaar :
In the decimal module documentation:
https://docs.python.org/3/library/decimal.html
Arithmetic is broken up for me as "Arith\nmetic", not the missing hyphen,
unless I am mistaken it should be "Arith-\nmetic". Is this a Sphinx issue
Henk-Jaap Wagenaar added the comment:
What does aenum do and has there been any feedback on it?
To me I would see what you suggest as surprising but I don't use enums often (I
should use them more!) so take that with a grain of salt, and also surprising
!= wrong/not good.
--
Henk-Jaap Wagenaar added the comment:
Emily: I've signed the CLA, just waiting for it to be checked.
--
nosy: +Henk-Jaap Wagenaar
___
Python tracker
<http://bugs.python.org/is
Changes by Henk-Jaap Wagenaar :
--
nosy: +Henk-Jaap Wagenaar
___
Python tracker
<http://bugs.python.org/issue31307>
___
___
Python-bugs-list mailing list
Unsub
Henk-Jaap Wagenaar added the comment:
I submitted a pull request for both 3.5 and 3.6 finding 2 locations using
search and find. I also replayed Raymond's example (with _collections as well)
and got the documentation as expected on my custom builds of 3.5/3.6.
I submitted my CLA on
Henk-Jaap Wagenaar added the comment:
Hi Mariatta,
Thanks for pointing that out about 3.5. Is that also why the build failed!? I
found it hard to parse travis' output and was surprised it failed.
Thanks for letting me know---getting it fixed. I have added my github account
to the othe
Changes by Henk-Jaap Wagenaar :
--
nosy: +Henk-Jaap Wagenaar
___
Python tracker
<https://bugs.python.org/issue31414>
___
___
Python-bugs-list mailing list
Unsub
Changes by Henk-Jaap Wagenaar :
--
nosy: +Henk-Jaap Wagenaar
___
Python tracker
<https://bugs.python.org/issue31421>
___
___
Python-bugs-list mailing list
Unsub
Changes by Henk-Jaap Wagenaar :
--
nosy: -Henk-Jaap Wagenaar
___
Python tracker
<https://bugs.python.org/issue31414>
___
___
Python-bugs-list mailing list
Unsub
Henk-Jaap Wagenaar added the comment:
To me the documentation doesn't quite look right, in the case of no factory
being passed, it runs:
def __getitem__(self, key):
"""Return the keyed message; raise KeyError if it doesn't exist."""
Henk-Jaap Wagenaar added the comment:
@serhiy.storchaka: review done.
--
nosy: +Henk-Jaap Wagenaar
___
Python tracker
<https://bugs.python.org/issue27867>
___
___
Changes by Henk-Jaap Wagenaar :
--
keywords: +patch
pull_requests: +3706
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31570>
___
_
Henk-Jaap Wagenaar added the comment:
I have made a PR, not sure whether it needs backporting?
--
nosy: +Henk-Jaap Wagenaar
___
Python tracker
<https://bugs.python.org/issue31
Changes by Henk-Jaap Wagenaar :
--
pull_requests: +3708
___
Python tracker
<https://bugs.python.org/issue27268>
___
___
Python-bugs-list mailing list
Unsubscribe:
Henk-Jaap Wagenaar added the comment:
@Wolfgang
I just created a PR, only to realise that Pedro already made one a while back:
PR 2745
--
nosy: +Henk-Jaap Wagenaar
___
Python tracker
<https://bugs.python.org/issue27
Change by Henk-Jaap Wagenaar :
--
nosy: +Henk-Jaap Wagenaar
___
Python tracker
<https://bugs.python.org/issue31567>
___
___
Python-bugs-list mailing list
Unsub
Henk-Jaap Wagenaar added the comment:
I would like to provide some colour to this discussion. In a former life I have
coded these during my studies. Ben is talking about implementing the Field of
Fractions of an Integral Domain. See
https://en.wikipedia.org/wiki/Field_of_fractions
The way
Henk-Jaap Wagenaar added the comment:
I was looking at your changes and got myself in a muddle. What is you rational
for when you use ``[character or string]`` versus ``'[character or string]``?
You seem to be creating consistency there, but I cannot quite see the rules you
are aimin
Henk-Jaap Wagenaar added the comment:
You get what you should get: when you print obj.d, Obj.d, you will get:
which is exactly what you expect:
- in the first case, you assigned a property object to the dictionary at
obj.__dict__, so that's what you get back when you run obj.d.
Henk-Jaap Wagenaar added the comment:
"We know this doesn't happen because nothing is printed to stdout."
Try running Obj().d, you will get output.
Obj.d does not work because it is on a *class*, and so it runs, per the docs:
'Obj.__dict__['d'].__get__(Non
Henk-Jaap Wagenaar added the comment:
I do think though that
"If d defines the method __get__(), then d.__get__(obj) is invoked according to
the precedence rules listed below."
seems to contain a mistake in that it should have
d.__get__(obj, type(obj)) instead of d._
Henk-Jaap Wagenaar added the comment:
So for excel, 'application/excel' is not listed at
http://www.iana.org/assignments/media-types as suggested by the comment at:
https://github.com/python/cpython/blob/master/Lib/mimetypes.py#L397
whereas 'applicaton/vnd.ms-excel' is li
Henk-Jaap Wagenaar added the comment:
Currently,
Class C(*some_classes): ...
works 'as expected' and is within grammar and language specification whereas
Class C(x for x in [object]): ...
does not work but does not cause a syntax error. I can see a use case for both
Henk-Jaap Wagenaar added the comment:
[As a follow-on, should I open a new issue/discuss on python-dev? Willing to
help out with a solution on way or another! I know
https://en.wikipedia.org/wiki/Wikipedia:Chesterton%27s_fence, "In my head" <>
"Should be the case&qu
Change by Henk-Jaap Wagenaar :
--
keywords: +patch
pull_requests: +4337
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31867>
___
_
Henk-Jaap Wagenaar added the comment:
I think this showcases how difficult it is to get this right, requires
carefully reading the EBNF language spec, not just the text, and the behaviour
is unexpected.
--
___
Python tracker
<ht
Henk-Jaap Wagenaar added the comment:
This is still present, and also silently affects Python 2.7 as evidenced here:
https://github.com/pypa/setuptools/issues/1163
I am happy to adapt Berker Peksags patch to a PR, if he is?
--
nosy: +Henk-Jaap Wagenaar
versions: +Python 3.6, Python
Henk-Jaap Wagenaar added the comment:
I think the language spec needs updating as well? In particular in
https://docs.python.org/3/reference/simple_stmts.html#the-return-statement
it seems expression_list should be replaced by starred_list.
--
nosy: +Henk-Jaap Wagenaar
New submission from Henk-Jaap Wagenaar :
ImpImporter.find_modules calls os.path.real on the path used:
https://github.com/python/cpython/blob/be6b74c0795b709c7a04e2187a7e32d08f5155f6/Lib/pkgutil.py#L181
This means if there is a submodule (foo.bar) which first appears on the path
involving a
Henk-Jaap Wagenaar added the comment:
Ignoring testing code, there is minimal use of os.path.realpath in the stdlib
(https://github.com/python/cpython/search?utf8=%E2%9C%93&q=%22os.path.realpath%22&type=):
- Lib/platform.py: used before opening a file (works around a cygwin bu
Change by Henk-Jaap Wagenaar :
--
keywords: +patch
pull_requests: +4580
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32188>
___
_
New submission from Henk-Jaap Wagenaar:
Executing in the interactive console: "foo1 = 0" and then "foo1" gives
"Segmentation Fault: 11" on OS X 10.9.2, Python 3.3.2 (v3.3.2:d047928ae3f6, May
13 2013, 13:52:24)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
If foo
Changes by Henk-Jaap Wagenaar :
--
type: -> crash
___
Python tracker
<http://bugs.python.org/issue21241>
___
___
Python-bugs-list mailing list
Unsubscrib
56 matches
Mail list logo