[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-05 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> not a bug
stage:  -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-05 Thread Éric Araujo

Éric Araujo  added the comment:

Also note that Python 3.6 only receives security updates now.  Does your 
problem still happen with a current version?

--
components:  -Parser
nosy: +eric.araujo
status: open -> pending
type: behavior -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-03 Thread Alex Waygood

Alex Waygood  added the comment:

Hi! It's very hard to work out what the problem might be here if you don't show 
us the code that caused the error. Also, this site is for reporting bugs in the 
Python programming language itself, and this doesn't look like a bug in Python 
to me. You might be better off posting this question on Discuss 
(https://discuss.python.org/c/users/7), reddit, or StackOverflow.

Having said all that, it looks like you're passing in a list where a string is 
expected — `list` objects don't have a `find` method 
(https://docs.python.org/3/tutorial/datastructures.html), but `str` objects do 
(https://docs.python.org/3/library/stdtypes.html#str.find).

Good luck solving your problem :)

--
nosy: +AlexWaygood
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45699] AttributeError: 'list' object has no attribute 'find'

2021-11-03 Thread Kishor Pawar


New submission from Kishor Pawar :

```
Traceback (most recent call last):
  File "gpgcheck.py", line 33, in 
if config.get(repoName, 'gpgcheck', fallback='1') != "1":
  File "/usr/lib64/python3.6/configparser.py", line 802, in get
d)
  File "/usr/lib64/python3.6/configparser.py", line 394, in before_get
self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/usr/lib64/python3.6/configparser.py", line 413, in _interpolate_some
p = rest.find("%")
AttributeError: 'list' object has no attribute 'find'
```


I checked all the calls made to `_interpolate_some`, and each call seems to 
pass the `list` type argument in the 4th position, but then function calling a 
`find` method on that 4th `list` type argument.  Which is causing above error.

--
components: Parser
messages: 405584
nosy: krisp1506, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: AttributeError: 'list' object has no attribute 'find'
type: crash
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com