[
Author Prev
][
Author Next
][
Thread Prev
][
Thread Next
][
Author Index
][
Thread Index
]
Re: [pygame] Re: Pygame doesn't close properly so I can't delete the file it's using
To
: "
pygame-users@xxxxxxxx
" <
pygame-users@xxxxxxxx
>
Subject
: Re: [pygame] Re: Pygame doesn't close properly so I can't delete the file it's using
From
: Jake b <
ninmonkeys@xxxxxxxxx
>
Date
: Sun, 28 May 2017 11:26:58 -0500
Delivered-to
:
archiver@xxxxxxxx
Delivered-to
:
pygame-users-outgoing@xxxxxxxx
Delivered-to
:
pygame-users@xxxxxxxx
Delivery-date
: Sun, 28 May 2017 12:27:21 -0400
Dkim-signature
: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=SNDiBT1gyp+xXwEeWPWfaZc9HL4IbJPCNrbwVfoK+b0=; b=IKeD07mCk+KZ1uC0dkzWCeF/QI4W/31Tf5YEXid+k/85ILZD4hvC+4cHBfBcY7mGFU DWLHk8lGqymcjs0zDT/U272C66jTxivWAb8s4Hx59ayRy9M399sP0pBlm1oOrE7LoJ7W QqpXe9RCNhEhb/YXDYJwTkQGSGkEZoZJk1UObrhGQSVFzaUL1areE55k/MGBun0YmDdl OGXtLdEXI1PSD7GECnTb0nNy5bK/1dw388UhccBeB4vTWOi76a+rbFm1gN3MpPxGz+hZ STA2Epw3/s+2yVXHEV1Yx7mZdfMiz7opB6/24LAe//kDG3FZGSa7dka/YrQFQyKDXJiM 9a0A==
In-reply-to
: <
1495987491056-3051.post@n6.nabble.com
>
References
: <
1495911913379-3044.post@n6.nabble.com
> <
396a8940-01e6-3262-2b71-21f1209a41a4@gmail.com
> <
1495959579022-3046.post@n6.nabble.com
> <CAFBongXi46SpYoeJOr+ytEZD-mab4PNLMUxg2=gmScD61DB=vQ@mail.gmail.com> <
1495987491056-3051.post@n6.nabble.com
>
Reply-to
:
pygame-users@xxxxxxxx
Sender
:
owner-pygame-users@xxxxxxxx
That's because my_file is a string, not a file handle.
my_file = "Text To Speech.mp3"
When using with open, the file is closed when the context handler ends
This might be of help:
https://jeffknupp.com/blog/2016/03/07/python-with-context-managers/
Note: In the email, your code did not get posted. I think it has something to do with nabble. When I clicked on that, then, I do see a couple different versions.
Follow-Ups
:
[pygame] Re: Pygame doesn't close properly so I can't delete the file it's using
From:
Gameskiller01
References
:
[pygame] Pygame doesn't close properly so I can't delete the file it's using
From:
Gameskiller01
Re: [pygame] Pygame doesn't close properly so I can't delete the file it's using
From:
Daniel Foerster
[pygame] Re: Pygame doesn't close properly so I can't delete the file it's using
From:
Gameskiller01
Re: [pygame] Re: Pygame doesn't close properly so I can't delete the file it's using
From:
Noel Garwick
[pygame] Re: Pygame doesn't close properly so I can't delete the file it's using
From:
Gameskiller01
Prev by Author:
Re: [pygame] Installing Python 3 and pygame
Next by Author:
Re: [pygame] Re: Pygame doesn't close properly so I can't delete the file it's using
Previous by thread:
[pygame] Re: Pygame doesn't close properly so I can't delete the file it's using
Next by thread:
[pygame] Re: Pygame doesn't close properly so I can't delete the file it's using
Index(es):
Author
Thread