On 2024-10-31 06:47, Loris Bennett via Python-list wrote:
Jon Ribbens writes:
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
Am Thu, Oct 31, 2024 at 07:47:17AM +0100 schrieb Loris Bennett via Python-list:
> However I didn't make myself clear: I understand that there are
> different functions, depending on whether I have a file name or a
> stream. Nevertheless, I just can't think of a practical example where I
> might j
On 2024-10-31, Loris Bennett wrote:
> Jon Ribbens writes:
>> 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
Jon Ribbens writes:
> 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 t
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-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
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-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-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.sections())
>
> i.e try to read the
On 2024-10-29 13:56, Loris Bennett via Python-list 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.sections())
i.e try to
10 matches
Mail list logo