On Mar 9, 2015 7:25 PM, "Steven D'Aprano" wrote:
> What I really want is an option to open() that only
> opens a new file, and fails if the file already exists.
If I'm not mistaken, this is the 'x' open mode, added in Python 3.4 (or
maybe 3.3, I forget).
--
Zach
_
On 10 March 2015 at 00:22, Steven D'Aprano wrote:
> On Mon, Mar 09, 2015 at 04:50:11PM +, Alan Gauld wrote:
>>
>> Somebody posted a question asking how to fond out if a file
>> exists. The message was in the queue and I thought I'd approved
>> it but it hasn't shown up yet. Sorry to the OP if
On 9 March 2015 at 18:09, Markos wrote:
> I installed numpy in Debian (6.0) with the command:
> apt-get install python-numpy
>
> I just find that this package is exclusively for python 2.5 and 2.6
>
> The idle3 use Python 3.1.3.
>
> How to install numpy for Python 3 in order to use it with the idl
On Mon, Mar 09, 2015 at 04:50:11PM +, Alan Gauld wrote:
> Somebody posted a question asking how to fond out if a file
> exists. The message was in the queue and I thought I'd approved
> it but it hasn't shown up yet. Sorry to the OP if I've messed up.
>
> The answer is that you use the os.path
On 09/03/15 18:09, Markos wrote:
How to install numpy for Python 3 in order to use it with the idle?
Is there any simple way?
Searching for numpy in Synaptic shows a python3-numpy package
I'm using Mint 17 which is based on Debian/Ubuntu so there
should be something in the debian repositorie
On 06-03-2015 21:43, boB Stepp wrote:
On Fri, Mar 6, 2015 at 12:27 PM, Markos wrote:
Hi,
I'm beginning to study the numpy.
When I open a terminal (Debian Squeeze) and run the python interpreter the
command "import numpy as np" run without errors.
But when I run the same command on idle3
On 09.03.2015 18:50, David Heiser wrote:
On 3/9/2015 9:50 AM, Alan Gauld wrote:
Somebody posted a question asking how to fond out if a file
exists. The message was in the queue and I thought I'd approved
it but it hasn't shown up yet. Sorry to the OP if I've messed up.
The answer is that you
On 3/9/2015 9:50 AM, Alan Gauld wrote:
Somebody posted a question asking how to fond out if a file
exists. The message was in the queue and I thought I'd approved
it but it hasn't shown up yet. Sorry to the OP if I've messed up.
The answer is that you use the os.path.exists() function.
It take
Somebody posted a question asking how to fond out if a file
exists. The message was in the queue and I thought I'd approved
it but it hasn't shown up yet. Sorry to the OP if I've messed up.
The answer is that you use the os.path.exists() function.
It takes a path as an argument which can be relat