Karthikeyan Singaravelan added the comment:
The docs state the tuple contains two dictionaries depending on how common the
type is. I guess you want a merged dict to be provided as an API? I will leave
it to @r.david.murray on that.
--
___
Python
Change by Karthikeyan Singaravelan :
--
nosy: +martin.panter
___
Python tracker
<https://bugs.python.org/issue36523>
___
___
Python-bugs-list mailing list
Unsub
New submission from Karthikeyan Singaravelan :
Currently Lib/tests/re_tests.py has duplicate elements in the tests list
variable. This is a followup on https://github.com/python/cpython/pull/12662
where there seems to be around 100 elements that are duplicates in the list.
This seems to have
Change by Karthikeyan Singaravelan :
--
components: +Regular Expressions
nosy: +ezio.melotti, mrabarnett
___
Python tracker
<https://bugs.python.org/issue36
Change by Karthikeyan Singaravelan :
--
keywords: +patch
pull_requests: +12616
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Karthikeyan Singaravelan :
--
nosy: +vinay.sajip
versions: -Python 3.5, Python 3.6, Python 3.9
___
Python tracker
<https://bugs.python.org/issue36
Change by Karthikeyan Singaravelan :
--
components: +Windows
nosy: +lars.gustaebel, paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue36
Change by Karthikeyan Singaravelan :
--
nosy: +xtreak
___
Python tracker
<https://bugs.python.org/issue36542>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Karthikeyan Singaravelan :
--
nosy: +xdegaye
___
Python tracker
<https://bugs.python.org/issue36537>
___
___
Python-bugs-list mailing list
Unsubscribe:
Karthikeyan Singaravelan added the comment:
@paul.j3 I assume this is an easy issue of wrapping "default" with _() at [0].
There doesn't seem to be any tests for localization in argparse.
https://github.com/python/cpython/blob/2ea8099523581cf2ecc060831a53debb57ff98ee/Lib/a
Karthikeyan Singaravelan added the comment:
This is a workflow issue and already seems to have a report. I am closing this
as third party. Please don't create issues related to workflow or one of the
bots here since they have separate GitHub repos where their development takes
Change by Karthikeyan Singaravelan :
--
nosy: +steven.daprano
___
Python tracker
<https://bugs.python.org/issue36546>
___
___
Python-bugs-list mailing list
Unsub
Karthikeyan Singaravelan added the comment:
CPython now accepts GitHub PRs. Please see the workflow at
https://devguide.python.org . You can raise a PR against master branch.
--
___
Python tracker
<https://bugs.python.org/issue27
Change by Karthikeyan Singaravelan :
--
pull_requests: +12641
___
Python tracker
<https://bugs.python.org/issue35726>
___
___
Python-bugs-list mailing list
Unsub
Change by Karthikeyan Singaravelan :
--
nosy: +yselivanov
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue36553>
___
___
Python-bugs-list m
Karthikeyan Singaravelan added the comment:
Can you please provide an example script to reproduce this? There is similar
None check fixed with issue34900
--
nosy: +xtreak
___
Python tracker
<https://bugs.python.org/issue36
Change by Karthikeyan Singaravelan :
--
nosy: +inada.naoki
___
Python tracker
<https://bugs.python.org/issue36551>
___
___
Python-bugs-list mailing list
Unsub
Change by Karthikeyan Singaravelan :
--
nosy: +gvanrossum, levkivskyi
___
Python tracker
<https://bugs.python.org/issue36555>
___
___
Python-bugs-list mailin
Karthikeyan Singaravelan added the comment:
https://github.com/python/cpython/pull/12708 that seems to fix similar issue
(issue36544) for Ubuntu that helps in making Mac OS build green again.
Successful build : https://travis-ci.org/python/cpython/jobs/516821454
--
nosy: +xdegaye
Karthikeyan Singaravelan added the comment:
Can you please post the traceback you are getting and how you are running the
script from command line? The custom module has third party dependencies like
numpy so it will be helpful if you can attach a reproducer without dependencies
to see if
Karthikeyan Singaravelan added the comment:
test.py shown in msg339649 accepts only --data_type DATA_TYPE. Running test.py
without import and the non-existent flag would show all the options present
like the below I am using from the repo you have shared. You might
./python.exe ../backups
Karthikeyan Singaravelan added the comment:
Thanks, just confirmed the commit fix with the given file.
--
___
Python tracker
<https://bugs.python.org/issue36
Change by Karthikeyan Singaravelan :
--
resolution: -> duplicate
superseder: -> unittest subTests() fails when called from debug()
___
Python tracker
<https://bugs.python.org/i
Change by Karthikeyan Singaravelan :
--
nosy: +xtreak
___
Python tracker
<https://bugs.python.org/issue36564>
___
___
Python-bugs-list mailing list
Unsubscribe:
Karthikeyan Singaravelan added the comment:
This issue seems to have been assigned CVE-2019-9948
(https://nvd.nist.gov/vuln/detail/CVE-2019-9948) as noted in
https://github.com/python/cpython/pull/11842#issuecomment-480930608
--
nosy: +xtreak
Karthikeyan Singaravelan added the comment:
The use case of setUpClass and tearDownClass is to run once during class setup
and teardown where a class variable might be mutated. It's not a strict
requirement [0] but rather maybe a common use case. There is at least one test
case
Karthikeyan Singaravelan added the comment:
Generally changes only related to PEP 8 are not merged since they pollute git
history while using blame and a lot of other modules also don't adhere to PEP
8. New code written can have PEP 8 enforced or the related parts of the code
c
Change by Karthikeyan Singaravelan :
--
nosy: +vstinner
___
Python tracker
<https://bugs.python.org/issue36575>
___
___
Python-bugs-list mailing list
Unsub
Karthikeyan Singaravelan added the comment:
mock.Mock doesn't do signature validation by default for constructor and
methods. This is expected. create_autospec [0] should be used to make sure the
signature is validated.'
import dataclasses
import unittest.mock
@dataclasses.datac
Karthikeyan Singaravelan added the comment:
https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock
> spec: This can be either a list of strings or an existing object (a class or
> instance) that acts as the specification for the mock object. If you pass in
> an ob
Karthikeyan Singaravelan added the comment:
To add to this mock.Mock also copies dir(spec) but creating an instance from
mock doesn't copy it where it's not a problem with create_autospec. Mock with
spec does only attribute validation whereas create_autospec does signature
validat
Change by Karthikeyan Singaravelan :
--
nosy: +benjamin.peterson
___
Python tracker
<https://bugs.python.org/issue36541>
___
___
Python-bugs-list mailin
Change by Karthikeyan Singaravelan :
--
nosy: +rhettinger
___
Python tracker
<https://bugs.python.org/issue36582>
___
___
Python-bugs-list mailing list
Unsub
Karthikeyan Singaravelan added the comment:
As @gregory.p.smith noted in GitHub [0] this fixes only protocol level bugs.
There are some parsing ambiguities in urllib that are potential security issues
still to be fixed.
issue20271 - urllib.urlparse('http://benign.com\[attacke
Change by Karthikeyan Singaravelan :
--
nosy: +xtreak
___
Python tracker
<https://bugs.python.org/issue36593>
___
___
Python-bugs-list mailing list
Unsubscribe:
Karthikeyan Singaravelan added the comment:
There are very few changes to mock.py on bisecting with the example in the
report is d358a8cda75446a8e0b5d99149f709395d5eae19 the problem? I am surprised
by the reason this commit leads to change in behavior with set trace.
➜ cpython git:(master
Change by Karthikeyan Singaravelan :
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue36594>
___
___
Python-bugs-list mailin
Karthikeyan Singaravelan added the comment:
On an initial guess this is the change that went through and using
object.__delattr__(self, name) instead of super().__delattr__(name) restores
the old behavior and there are no test case failures. But I still have to check
the change and how it
Change by Karthikeyan Singaravelan :
--
nosy: +lars.gustaebel, serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue36596>
___
___
Python-bugs-list m
Change by Karthikeyan Singaravelan :
--
nosy: +mdk
___
Python tracker
<https://bugs.python.org/issue36597>
___
___
Python-bugs-list mailing list
Unsubscribe:
Karthikeyan Singaravelan added the comment:
The example looks like a good addition to me since mocking builtins.open is not
documented for this use case. Please start a new PR.
--
nosy: +xtreak
___
Python tracker
<https://bugs.python.
Change by Karthikeyan Singaravelan :
--
nosy: +xtreak
versions: +Python 3.8 -Python 2.7
___
Python tracker
<https://bugs.python.org/issue36598>
___
___
Python-bug
Karthikeyan Singaravelan added the comment:
I am not sure if the snippets you are referring to are from testing-cabal/mock
repo which could be different from master branch. Current code is at [0]
if effect is not None:
if _is_exception(effect):
raise effect
elif not _callable
Karthikeyan Singaravelan added the comment:
Below is a even more simpler reproducer without dataclasses. 'name' is not
listed as a class attribute in dir(Person) since it's not defined with a value
but 'age' is with zero. Python seems to not to list something not
Karthikeyan Singaravelan added the comment:
"Object dead or exiting" is a less frequent random error with doctest. I am not
sure from where it occurs but occurs for different tests at different times and
is overlooked in Travis since the next runs are fine.
Sample old builds
Karthikeyan Singaravelan added the comment:
I think I got to this. See issue12370 (Use of super overwrites use of __class__
in class namespace) . msg138712 suggests a workaround to alias super at the
module level. unittest.mock has the below line and NonCallableMock has
__class__ defined as
Change by Karthikeyan Singaravelan :
--
nosy: +pitrou
___
Python tracker
<https://bugs.python.org/issue36602>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Karthikeyan Singaravelan :
--
keywords: +patch
pull_requests: +12717
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Karthikeyan Singaravelan :
--
keywords: +patch
pull_requests: +12718
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Karthikeyan Singaravelan :
--
pull_requests: -12717
___
Python tracker
<https://bugs.python.org/issue36598>
___
___
Python-bugs-list mailing list
Unsub
Karthikeyan Singaravelan added the comment:
Copying my comment from GitHub :
This issue occurs only when the mock module import and code are executed under
tracing. In order to test this I have tried patching sys.modules to remove
unittest.mock in order to trigger an import under tracing
Change by Karthikeyan Singaravelan :
--
stage: -> patch review
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue36593>
___
___
Pyth
New submission from Karthikeyan Singaravelan :
I came across this issue in issue36593 where MagicMock had a custom __class__
attribute set and one of the methods used super() which caused __class__ not to
be set. This seems to have been fixed in the past with issue12370 and a
workaround to
Karthikeyan Singaravelan added the comment:
> I believe `rglob("*")` is eager, while `iterdir` is lazy.
rglob and glob also return a generator.
Slightly related, pathlib.walk was proposed in the past in python-ideas :
https://mail.python.org/pipermail/python-ideas/2017-Apri
Change by Karthikeyan Singaravelan :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
versions: +Python 3.8 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue36
Change by Karthikeyan Singaravelan :
--
nosy: +p-ganssle
___
Python tracker
<https://bugs.python.org/issue17267>
___
___
Python-bugs-list mailing list
Unsub
Karthikeyan Singaravelan added the comment:
Thanks, I am closing this as not a bug. Feel free to reopen this if I have
missed any.
--
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
___
Python tracke
Change by Karthikeyan Singaravelan :
--
nosy: +rhettinger
___
Python tracker
<https://bugs.python.org/issue36620>
___
___
Python-bugs-list mailing list
Unsub
Change by Karthikeyan Singaravelan :
--
title: Trace function interferes with MagicMock isinstance? -> isinstance check
fails for Mock objects with spec executed under tracing function
___
Python tracker
<https://bugs.python.org/issu
Karthikeyan Singaravelan added the comment:
Is there still sufficient interest in this? I gave an initial try at this based
on my limited knowledge of mock and Antoine's idea. I created a new class
WaitableMock that inherits from Mock and accepts an event_class with
threading.Eve
Karthikeyan Singaravelan added the comment:
Thanks Mario for the feedback.
> I see you inherit from Mock, should it inherit from MagicMock?
yes, it can inherit from MagicMock to mock magic methods and to wait on their
call.
I thought some more about waiting for function call with argume
Change by Karthikeyan Singaravelan :
--
keywords: +patch
pull_requests: +12743
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Karthikeyan Singaravelan added the comment:
An interesting thing is that there is GCC in CI that runs under coverage which
also passed since this requires a Python tracing function before importing mock
to trigger this as in the original report. Adding a simple tracer at the top of
Change by Karthikeyan Singaravelan :
--
nosy: +alanmcintyre, serhiy.storchaka, twouters
versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.9
___
Python tracker
<https://bugs.python.org/issue22
Karthikeyan Singaravelan added the comment:
Seems this has tests at
https://github.com/python/cpython/blob/830b43d03cc47a27a22a50d777f23c8e60820867/Lib/test/test_decimal.py#L941
. I also noticed the below. Considering this is the behavior from 2.7 is it a
conscious design decision
Karthikeyan Singaravelan added the comment:
A simplified reproducer as below. The tuple is returned from here
https://github.com/python/cpython/blob/830b43d03cc47a27a22a50d777f23c8e60820867/Lib/email/message.py#L93
and perhaps is an untested code path? The charset gets a tuple value of
(
Karthikeyan Singaravelan added the comment:
Some discussions in the past and the common suggestion/idiom is to use
textwrap.dedent. I agree with @SilentGhost that it should be first brought up
in python-ideas and also addressing the concerns for similar proposal in the
past if they are
Karthikeyan Singaravelan added the comment:
Did you see this failure somewhere in CI or is it in local machine? The imaplib
test has below comment :
if hasattr(errno, 'EADDRNOTAVAIL'):
# socket.create_connection() fails randomly with
# EADDRNOTAVAIL on
Change by Karthikeyan Singaravelan :
--
keywords: +patch
pull_requests: +12754
stage: test needed -> patch review
___
Python tracker
<https://bugs.python.org/issu
Karthikeyan Singaravelan added the comment:
This is still an issue with latest 2.7. I went ahead and created PR based on
Victor's suggestion in msg121294. I am not sure of the correct way to test this
I have used cStringIO.StringIO as the stream for a test case with a unicode
descri
Karthikeyan Singaravelan added the comment:
I am not sure but this commit seems to have broken Azure CI on master for
Windows. The build checks were green when the PR while merging. I can see the
ValueError added in e9927e1820caea01e576141d9a623ea394d43dad raised in the
below CI log and
Karthikeyan Singaravelan added the comment:
The relevant line is at
https://github.com/python/cpython/blob/cd466559c4a312b3c1223a774ad4df19fc4f0407/PC/layout/support/appxmanifest.py#L407
. I guess it's something related to build artifacts for Windows and Steve can
have a better answer
Karthikeyan Singaravelan added the comment:
Can you please add a simplified script to reproduce this and possibly without
any external dependencies? Looking at the traceback it seems to come from the
project chameleon at
https://github.com/malthe/chameleon/blob
Change by Karthikeyan Singaravelan :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue36
Karthikeyan Singaravelan added the comment:
No problem, closing the issue.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
Change by Karthikeyan Singaravelan :
--
nosy: +eli.bendersky, scoder, serhiy.storchaka
versions: +Python 3.8 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue28
Karthikeyan Singaravelan added the comment:
New methods to builtins generally require a python-ideas discussion. Search
brings up an old discussion for rindex and rremove :
https://mail.python.org/pipermail/python-ideas/2009-May/004506.html . It also
would make users ask for tuple.rindex as
Karthikeyan Singaravelan added the comment:
Anacond and ibm_db are not part of CPython distribution. Can you please add a
script and explain over how it's a bug with CPython? There are also previous
reports when searching for "ibm_db" and I am not sure if these are bugs wi
Change by Karthikeyan Singaravelan :
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue36641>
___
___
Python-bugs-list mailin
Change by Karthikeyan Singaravelan :
--
nosy: +vstinner
___
Python tracker
<https://bugs.python.org/issue36641>
___
___
Python-bugs-list mailing list
Unsub
Change by Karthikeyan Singaravelan :
--
nosy: +eric.smith
___
Python tracker
<https://bugs.python.org/issue36643>
___
___
Python-bugs-list mailing list
Unsub
Karthikeyan Singaravelan added the comment:
> Test that your fix does not break the case of 8-bit non-ascii docstring.
Do you mean double escaping of the backslash as in t\xe4st changed to t\\xe4st
due to this PR?
➜ cpython git:(bpo10417) $ cat /tmp/foo.py
# -*- coding: utf-8 -*-
imp
Change by Karthikeyan Singaravelan :
--
nosy: +steve.dower
___
Python tracker
<https://bugs.python.org/issue36652>
___
___
Python-bugs-list mailing list
Unsub
Change by Karthikeyan Singaravelan :
--
components: +asyncio
nosy: +asvetlov, yselivanov
___
Python tracker
<https://bugs.python.org/issue36651>
___
___
Pytho
Change by Karthikeyan Singaravelan :
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue36645>
___
___
Python-bugs-list mailin
Karthikeyan Singaravelan added the comment:
Please add a short script and explain the problem over why it's a bug in
CPython and not a problem with the program. The error says path has a boolean
value and doesn't have endswith which is a method on string object.
--
nos
Karthikeyan Singaravelan added the comment:
Please check the value of FLAGS.train_dir which I guess has a boolean value.
This is not a bug with CPython.
$ python2
Python 2.7.14 (default, Mar 12 2018, 13:54:56)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "
Karthikeyan Singaravelan added the comment:
> I think we could close this issue, it's not related to CPython itself.
Closing it. OP can reopen if needed. Thanks.
--
assignee: docs@python ->
resolution: -> not a bug
stage: -> resolved
status: open -> closed
Change by Karthikeyan Singaravelan :
--
nosy: +paul.j3
___
Python tracker
<https://bugs.python.org/issue36664>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Karthikeyan Singaravelan :
--
nosy: +eric.smith, rhettinger
___
Python tracker
<https://bugs.python.org/issue36662>
___
___
Python-bugs-list mailin
Change by Karthikeyan Singaravelan :
--
nosy: +pitrou
___
Python tracker
<https://bugs.python.org/issue3>
___
___
Python-bugs-list mailing list
Unsubscribe:
Karthikeyan Singaravelan added the comment:
asdict method in the benchmark does a direct dictionary construction. Meanwhile
dataclasses.asdict does more work in
https://github.com/python/cpython/blob/e8113f51a8bdf33188ee30a1c038a298329e7bfa/Lib/dataclasses.py#L1023
. Hence in the example
Karthikeyan Singaravelan added the comment:
I think the import is implied in the example since the docs page is for
dataclasses module but adding an explicit import to InventoryItem at the top
won't hurt too.
--
nosy: +eric.smith, xtreak
title: Missing import in docs ->
Karthikeyan Singaravelan added the comment:
Relevant attack from matrix blog post.
https://matrix.org/blog/2019/04/18/security-update-sydent-1-0-2/
> sydent uses python's email.utils.parseaddr function to parse the input email
> address before sending validation mail to it, but i
Change by Karthikeyan Singaravelan :
--
nosy: +ezio.melotti, michael.foord, rbcollins
___
Python tracker
<https://bugs.python.org/issue36674>
___
___
Python-bug
Change by Karthikeyan Singaravelan :
--
nosy: +mdk
___
Python tracker
<https://bugs.python.org/issue36675>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Karthikeyan Singaravelan :
--
nosy: +eric.smith
___
Python tracker
<https://bugs.python.org/issue36678>
___
___
Python-bugs-list mailing list
Unsub
Karthikeyan Singaravelan added the comment:
https://bugs.python.org/issue29376#msg286873 . Is this an intentional behavior
for dummy_threading to always return True for is_alive?
--
nosy: +pitrou, xiang.zhang, xtreak
___
Python tracker
<ht
New submission from Karthikeyan Singaravelan :
importing dummy_threading causes ImportError. It used to work on 3.6. There are
tests at Lib/test/test_dummy_threading.py and rearranging the import so that
"import dummy_threading as _threading" is the first line also causes error.
T
Change by Karthikeyan Singaravelan :
--
nosy: +p-ganssle
___
Python tracker
<https://bugs.python.org/issue22246>
___
___
Python-bugs-list mailing list
Unsub
2201 - 2300 of 3092 matches
Mail list logo