[issue44663] Possible bug in datetime utc

2021-07-17 Thread Henk-Jaap Wagenaar
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 like

[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-21 Thread Henk-Jaap Wagenaar
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 <ht

[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-21 Thread Henk-Jaap Wagenaar
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

[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-21 Thread Henk-Jaap Wagenaar
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

[issue32696] Fix pickling exceptions with multiple arguments

2021-06-18 Thread Henk-Jaap Wagenaar
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.org/issue32

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread Henk-Jaap Wagenaar
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

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread Henk-Jaap Wagenaar
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

[issue31538] mailbox does not treat external factories the same

2021-06-17 Thread Henk-Jaap Wagenaar
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

[issue31538] mailbox does not treat external factories the same

2021-06-17 Thread Henk-Jaap Wagenaar
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

[issue14995] PyLong_FromString documentation should state that the string must be null-terminated

2021-06-17 Thread Henk-Jaap Wagenaar
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

[issue14995] PyLong_FromString documentation should state that the string must be null-terminated

2021-06-17 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar : -- nosy: +cryvate ___ Python tracker <https://bugs.python.org/issue14995> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Henk-Jaap Wagenaar
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/

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Henk-Jaap Wagenaar
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.basicCo

[issue44310] Document that lru_cache uses hard references

2021-06-16 Thread Henk-Jaap Wagenaar
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

[issue44310] Document that lru_cache uses hard references

2021-06-08 Thread Henk-Jaap Wagenaar
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

[issue44311] How to print results of asyncio websockets at the same time?

2021-06-04 Thread Henk-Jaap Wagenaar
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

[issue32218] add __iter__ to enum.Flag members

2020-11-18 Thread Henk-Jaap Wagenaar
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. -- nosy

[issue41988] No hyphen in broken up word in documentation

2020-10-09 Thread Henk-Jaap Wagenaar
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

[issue41812] Broken link on documentation header

2020-09-19 Thread Henk-Jaap Wagenaar
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

[issue41651] Pip: Wrong Showing of Progressbar when Downloading Modules

2020-08-28 Thread Henk-Jaap Wagenaar
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

[issue41393] Fix FAQ example to use __import__('functools').reduce

2020-07-25 Thread Henk-Jaap Wagenaar
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.python.o

[issue40646] Builtins in doc show signature in documentation

2020-05-16 Thread Henk-Jaap Wagenaar
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

[issue40569] Add optional weights to random.sample()

2020-05-09 Thread Henk-Jaap Wagenaar
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

[issue31826] Misleading __version__ attribute of modules in standard library

2020-02-04 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar : -- nosy: +Henk-Jaap Wagenaar ___ Python tracker <https://bugs.python.org/issue31826> ___ ___ Python-bugs-list mailing list Unsub

[issue25661] tokenize.untokenize does not maintain the order of tabbed indentations and leading spaces

2020-01-29 Thread Henk-Jaap Wagenaar
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

[issue32188] ImpImporter.find_modules removes symlinks in paths

2017-12-01 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar <superhenkj...@gmail.com>: -- keywords: +patch pull_requests: +4580 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32188] ImpImporter.find_modules removes symlinks in paths

2017-12-01 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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=%22os.path.realpath%22=): - Lib/platform.py: used before opening a file (works

[issue32188] ImpImporter.find_modules removes symlinks in paths

2017-11-30 Thread Henk-Jaap Wagenaar
New submission from Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com>: 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

[issue32117] Tuple unpacking in return and yield statements

2017-11-29 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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:

[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

2017-11-22 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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 Wa

[issue32012] Disallow ambiguous syntax f(x for x in [1],)

2017-11-14 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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. -- ___

[issue31867] Duplicated keys in MIME type_map with different values

2017-11-13 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar <superhenkj...@gmail.com>: -- keywords: +patch pull_requests: +4337 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32012] Disallow ambiguous syntax f(x for x in [1],)

2017-11-13 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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" <>

[issue32012] Disallow ambiguous syntax f(x for x in [1],)

2017-11-13 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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

[issue31867] Duplicated keys in MIME type_map with different values

2017-10-25 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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

[issue31735] Documentation incorrectly states how descriptors are invoked

2017-10-10 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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, ty

[issue31735] Documentation incorrectly states how descriptors are invoked

2017-10-10 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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']._

[issue31735] Documentation incorrectly states how descriptors are invoked

2017-10-09 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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 bac

[issue31714] Improve re documentation

2017-10-06 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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 qui

[issue31707] Irrational fractions

2017-10-06 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com> 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.or

[issue31567] Inconsistent documentation around decorators

2017-10-03 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com>: -- nosy: +Henk-Jaap Wagenaar ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue27268] Incorrect error message on float('')

2017-09-24 Thread Henk-Jaap Wagenaar
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 <rep...@bugs.python.org> <https://bugs.python.org/i

[issue27268] Incorrect error message on float('')

2017-09-24 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar <superhenkj...@gmail.com>: -- pull_requests: +3708 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: I have made a PR, not sure whether it needs backporting? -- nosy: +Henk-Jaap Wagenaar ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/i

[issue31570] minor bug in documentataion relating to sending html email

2017-09-24 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar <superhenkj...@gmail.com>: -- keywords: +patch pull_requests: +3706 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2017-09-21 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: @serhiy.storchaka: review done. -- nosy: +Henk-Jaap Wagenaar ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/i

[issue31538] mailbox does not treat external factories the same

2017-09-21 Thread Henk-Jaap Wagenaar
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.""" if not sel

[issue31414] IDLE: Entry tests should delete before insert.

2017-09-11 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com>: -- nosy: -Henk-Jaap Wagenaar ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue31421] IDLE doc: add section on developing tkinter apps.

2017-09-11 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com>: -- nosy: +Henk-Jaap Wagenaar ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue31414] IDLE: Entry tests should delete before insert.

2017-09-11 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com>: -- nosy: +Henk-Jaap Wagenaar ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue31345] Backport docstring improvements to the C version of OrderedDict

2017-09-10 Thread Henk-Jaap Wagenaar
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 other one

[issue31345] Backport docstring improvements to the C version of OrderedDict

2017-09-09 Thread Henk-Jaap Wagenaar
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 26th

[issue31307] ConfigParser.read silently fails if filenames argument is a byte string

2017-08-31 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar <wagenaarhenkj...@gmail.com>: -- nosy: +Henk-Jaap Wagenaar ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26656] Documentation for re.compile is a bit outdated

2017-08-27 Thread Henk-Jaap Wagenaar
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 <rep...@bugs.python.org> <http://bugs.python.org/i

[issue21241] Variable name with number causes interactive console to crash

2014-04-15 Thread Henk-Jaap Wagenaar
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 foo1 is defined in a program

[issue21241] Variable name with number causes interactive console to crash

2014-04-15 Thread Henk-Jaap Wagenaar
Changes by Henk-Jaap Wagenaar superhenkj...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21241 ___ ___ Python-bugs