On 2024-10-30, Loris Bennett wrote:
> Jon Ribbens writes:
>> As per the docs you link to, the read() method only takes filename(s)
>> as arguments, if you have an already-open file you want to read then
>> you should use the read_file() method instead.
>
> As you and others have pointed out, this
Jon Ribbens writes:
> On 2024-10-29, Loris Bennett wrote:
>> Hi,
>>
>> With Python 3.9.18, if I do
>>
>> try:
>> with open(args.config_file, 'r') as config_file:
>> config = configparser.ConfigParser()
>> config.read(config_file)
>> print(config.se
On 2024-10-30, Loris Bennett wrote:
> Jon Ribbens writes:
>> On 2024-10-30, Loris Bennett wrote:
>>> Jon Ribbens writes:
As per the docs you link to, the read() method only takes filename(s)
as arguments, if you have an already-open file you want to read then
you should use the r
Jon Ribbens writes:
> On 2024-10-30, Loris Bennett wrote:
>> Jon Ribbens writes:
>>> As per the docs you link to, the read() method only takes filename(s)
>>> as arguments, if you have an already-open file you want to read then
>>> you should use the read_file() method instead.
>>
>> As you and