473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

fail to indent in inner loop

hi

I've started learning python. I was typing from a tutorial,
and I fail to indent on an inner loop.
I got an error and all my previous typed lines are gone.
is there a way to prevent this.
i don't mind editing the last line, but to lose all the previous lines
are too much.
(since it has history function like bash.)

Sep 15 '06 #1
2 1294
pe*****@yahoo.com wrote:
I've started learning python. I was typing from a tutorial,
and I fail to indent on an inner loop.
I got an error and all my previous typed lines are gone.
is there a way to prevent this.
i don't mind editing the last line, but to lose all the previous lines
are too much.
(since it has history function like bash.)
Use an IDE or editor that allows you to execute the code in the current
buffer. Thus you have the full editing capabilities combined with
interactive probing.

Python also has an option -i that when used together with a input file
makes it drop to the prompt - thus you can setup some things, and then
simply play around.

Diez
Sep 15 '06 #2
pe*****@yahoo.com wrote:
hi

I've started learning python. I was typing from a tutorial,
and I fail to indent on an inner loop.
I got an error and all my previous typed lines are gone.
is there a way to prevent this.
i don't mind editing the last line, but to lose all the previous lines
are too much.
(since it has history function like bash.)
Try using PyCrust. Using PyCrust is very instructive (for example, you
can see the namespace tree) and Alt+P history returns the whole previous
block of code.

Jakub
Sep 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: robert | last post by:
running 8.1.7 server, 8.1.6 client. i *thought* inner join should not return nulls, but not only that, but i get way more rows than i'm expecting. assume: order table: order_number
22
by: Firas | last post by:
Hi, Is there a CSSish way to indent a paragraph except for the first line? I tried p:first-line { text-indent: 0em; }
2
by: MLH | last post by:
I invoked the combo-box wizard today, telling it to use a 4-table union query as a row-source for the combo-box it was assisting me in building. The error I got was without number and stated,...
3
by: baibaichen | last post by:
hi i want to output strings with indent space, the code looks like: std::set<std::string> files; std::set<std::string> iterator b = files.begin(); std::set<std::string> iterator e =...
3
by: iksrazal | last post by:
Hi all, I'm hoping someone on this forum can help me. I use hibernate with java to access mysql. We are trying to upgrade from 4.1.15 non-inndb, to 5.0.18 with innodb. Hibernate makes a 'create...
52
by: MP | last post by:
Hi trying to begin to learn database using vb6, ado/adox, mdb format, sql (not using access...just mdb format via ado) i need to group the values of multiple fields - get their possible...
4
by: trevor_morgan | last post by:
The following code: def functions(): l=list() for i in range(5): def inner(): return i l.append(inner) return l
4
by: dt | last post by:
Greetings, I'm having some trouble understanding the plethora of options available for GNU indent for my C code. Except for the function's opening {, I want all code to line up under the...
34
by: niranjan.singh | last post by:
This is regarding to test an SDK memory stuff. In what situation malloc gets fail. any comment/reply pls.... regards
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.