Abhishek Pratap wrote:
I have this one big string in python which I want to print to a file
inserting a new line after each 100 characters. Is there a slick way to do
this without looping over the string. I am pretty sure there shud be
something its just I am new to the lang.
There is also
OK, so from Finder. In that case can you open a Terminal window and
drag the python folder into the Terminal - that should navigate you to
the same folder. Then try running IDLE by typing
python ./idle.py
At the terminal prompt.
I meant to say that this will let you see any error
From: Abhishek Pratap abhishek@gmail.com
To: Steven D'Aprano st...@pearwood.info
Cc: tutor@python.org
Sent: Wednesday, March 7, 2012 2:56 AM
Subject: Re: [Tutor] inserting new lines in long strings while printing
thanks guys ..
-Abhi
On Tue, Mar 6,
Sorry, I was assuming too much knowledge I suspect.
Last login: Wed Mar 7 11:27:19 on ttys000
MacBook-001FF3569577-4:~ fedka2$ /Applications/Python\ 3.2
This line is the prompt plus the folder that you dragged :-
/Applications/Python\ 3.2
You needed to type cd first (no RETURN just cd)
Thanks again, I'm going to push my luck and ask you a final question
on this subject, you've been really helpful. Should I be able to
locate idle.py with a spotlight search. I can't seem to locate it...
Here is what terminal gave me
MacBook-001FF3569577-4:~ fedka2$ cd /Applications/Python\ 3.2
Hi,
I have been trying to use that programme but without success.
In Eclipse you usually create new project in two steps, first you
create new Pydev project, then inside you create new Pydev module.
I have created new project and new module 'crosstabs', where I want to
read spss file. My
a = tuple(range(10))
b = tuple(reversed(a))
any(a) in b
True
any(b) in a
True
any((a,b)) in (a,b)
False # I think I understand this now, but I must admit it looks
confusing!
I just want to clarify some things. 'any(a) in b' evaluates any(a)
before it evaluates 'x in b'. So
On 03/07/2012 12:07 AM, col speed wrote:
snip
Then we have:
a = tuple(range(10))
b = tuple(reversed(a))
any(a) in b
True
any(b) in a
True
any((a,b)) in (a,b)
False # I think I understand this now, but I must admit it looks confusing!
Thanks again
Col
None of those last three does
Thanks Alan,
It seems like it was a keybinding issue. When I dragged IDLE into a
terminal window I got a laundry list of errors having to do with
correct keys. I switched to a built in key set classic mac, and I'm
running.
I really appreciated your help with this.
Paul
On Wed, Mar 7, 2012 at
Marko Limbek wrote:
I put the recommended code
savFileName =
C:/dropbox/Exc_MarkoL_Zenel/Valicon/crosstabs/Tabela/ipk108_kosovo_data_finale_c1-1.sav
with SavReader(savFileName) as sav:
header = sav.next()
for line in sav:
process(line)
but I am get errors
Will you tell us
On 8 March 2012 01:11, Dave Angel d...@davea.name wrote:
On 03/07/2012 12:07 AM, col speed wrote:
snip
Then we have:
a = tuple(range(10))
b = tuple(reversed(a))
any(a) in b
True
any(b) in a
True
any((a,b)) in (a,b)
False # I think I understand this now, but I must admit it
11 matches
Mail list logo