473,545 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IDLE

I've been programming in python for a few years using XEmacs on
Solaris and Linux. I've been thinking about trying IDLE for a long
time, but either it wasn't available on my system or I procrastinated.
I finally have it available, and I gave it a try.

I immediately encountered a basic problem for which I could not find a
solution in the intro docs. I want to run a script in one directory
that reads input from a file in another directory. Maybe I'm just not
very smart, but I couldn't figure out how to do it. Will someone
please give me a clue?

More generally, I don't see much discussion of IDLE on this newsgroup.
Are many python programmers using it? I see that some of the intro and
tutorial docs have not been updated for several years. Is IDLE still
actively supported? Or would I be better off just going directly to a
commercially supported IDE such as Wing? Thanks.

Nov 2 '07 #1
5 2781
Russ P. wrote:
I've been programming in python for a few years using XEmacs on
Solaris and Linux. I've been thinking about trying IDLE for a long
time, but either it wasn't available on my system or I procrastinated.
I finally have it available, and I gave it a try.

I immediately encountered a basic problem for which I could not find a
solution in the intro docs. I want to run a script in one directory
that reads input from a file in another directory. Maybe I'm just not
very smart, but I couldn't figure out how to do it. Will someone
please give me a clue?

More generally, I don't see much discussion of IDLE on this newsgroup.
Are many python programmers using it? I see that some of the intro and
tutorial docs have not been updated for several years. Is IDLE still
actively supported? Or would I be better off just going directly to a
commercially supported IDE such as Wing? Thanks.
You can read a file from another directory either by specifying the entire path
to the file or by using os.curdir() function to make it the current directory
before opening/reading from it.

Lots of discussions on this have been posted try looking into history of this
list. Everything from vi to Eclipse to Wing.

-Larry
Nov 2 '07 #2
on 11/03/2007 06:44 AM Russ P. wrote :
I've been programming in python for a few years using XEmacs on
Solaris and Linux. I've been thinking about trying IDLE for a long
time, but either it wasn't available on my system or I procrastinated.
I finally have it available, and I gave it a try.

I immediately encountered a basic problem for which I could not find a
solution in the intro docs. I want to run a script in one directory
that reads input from a file in another directory. Maybe I'm just not
very smart, but I couldn't figure out how to do it. Will someone
please give me a clue?

More generally, I don't see much discussion of IDLE on this newsgroup.
Are many python programmers using it? I see that some of the intro and
tutorial docs have not been updated for several years. Is IDLE still
actively supported? Or would I be better off just going directly to a
commercially supported IDE such as Wing? Thanks.
I used IDLE a year ago and later I changed to the commercial IDE of
Komodo, i found it quite rewarding.. if u r doing massive code, i
suggest u to try some of those commercial packages! they would save u a
lot of pain!
Nov 3 '07 #3
On Nov 3, 12:44 am, "Russ P." <Russ.Paie...@g mail.comwrote:
I've been programming in python for a few years using XEmacs on
Solaris and Linux. I've been thinking about trying IDLE for a long
time, but either it wasn't available on my system or I procrastinated.
I finally have it available, and I gave it a try.

I immediately encountered a basic problem for which I could not find a
solution in the intro docs. I want to run a script in one directory
that reads input from a file in another directory. Maybe I'm just not
very smart, but I couldn't figure out how to do it. Will someone
please give me a clue?

More generally, I don't see much discussion of IDLE on this newsgroup.
Are many python programmers using it? I see that some of the intro and
tutorial docs have not been updated for several years. Is IDLE still
actively supported? Or would I be better off just going directly to a
commercially supported IDE such as Wing? Thanks.
On Nov 3, 12:44 am, "Russ P." <Russ.Paie...@g mail.comwrote:
I've been programming in python for a few years using XEmacs on
Solaris and Linux. I've been thinking about trying IDLE for a long
time, but either it wasn't available on my system or I procrastinated.
I finally have it available, and I gave it a try.

I immediately encountered a basic problem for which I could not find a
solution in the intro docs. I want to run a script in one directory
that reads input from a file in another directory. Maybe I'm just not
very smart, but I couldn't figure out how to do it. Will someone
please give me a clue?

More generally, I don't see much discussion of IDLE on this newsgroup.
Are many python programmers using it? I see that some of the intro and
tutorial docs have not been updated for several years. Is IDLE still
actively supported? Or would I be better off just going directly to a
commercially supported IDE such as Wing? Thanks.
Hi Russ,

IDLE is still actively supported on the groups and mailing lists,
maintained, and even developed. True, the amount of developer time
going into it isn't what it used to be; that's why the tutorial and
docs are so outdated. Much of the discussion about it (including some
questions) goes on in the idle-dev _at_ python.org mailing list.

Which IDE to use is mostly a matter of personal preference. I like
IDLE very much because it is clean and uncluttered, but AFAIK most
Python developers move on to more feature-rich IDEs. Even if you don't
end up using it in the long term, IDLE is really awesome for learning
Python (though perhaps you are beyond that stage?).

It is admittedly not as powerful an editor as some other IDEs out
there, or on the other end of the map, it isn't nearly as powerful as
Emacs/Vi. But even if you don't use it for editing, it is IMO the best
Python shell out there.
As for your question, I couldn't quite understand what you're trying
to do. In general, you can have the script use os.chdir() to go to the
relevant directory and then open() the file, or you can use open()
directly with a relative/full path to it. (This question isn't IDLE
specific in any way, unless I misunderstood.. .)

(If you're trying to run a script and "pipe" input to it via stdin,
IDLE doesn't support that - I don't know of any Python shell that
does.)

- Tal
reduce(lambda m,x:[m[i]+s[-1] for i,s in enumerate(sorte d(m))],
[[chr(154-ord(c)) for c in '.&-&,l.Z95193+1 79-']]*18)[3]

Nov 3 '07 #4
Just curious: What makes you wish to move from emacs to idle?

Admission: I used to be a dyed-in-the-wool emacs guy but Ive been
having trouble with it lately. eg Yesterday when editing a largish
file (I think it was setup.py) it kept going to sleep and when I
killed emacs it said LALR parsing..... and made me wait for nearly a
minute!

So just wondering what trouble others are having with emacs and python.

Nov 3 '07 #5
On Nov 3, 1:43 am, rustompm...@gma il.com wrote:
Just curious: What makes you wish to move from emacs to idle?
I don't necessarily want to move from xemacs to idle. I'm just getting
tired of using print statements to debug, and I figure I'm well past
the stage where I should still be doing that. If I can use xemacs
*with* idle, I'll try that. Then again, if gdb works with python,
maybe I should be using that with xemacs.

The local Python interest group had a meeting to discuss these
development environments, but unfortunately I missed it. I hope they
do another one soon.


Nov 5 '07 #6

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

Similar topics

16
12901
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine otherwise. Most interesting to me is that a reboot won't fix the problem. But if I just try it again sometime later it will work. Anyone have any ideas? ...
1
5383
by: Moosebumps | last post by:
So say I am working on two separate .py files in IDLE that are part of the same program. Does anyone have problems where when you modify one file, and then run the other, the changes you made in the first aren't updated? I usually just close all the files, and restart IDLE, but this is a pain. Maybe because I always use right click -> edit...
1
6710
by: dbrown2 | last post by:
I typically use IDLE for editing and debug. On Windows at least, IDLE and the standard turtle graphics module do not mix. I think both use Tkinter. For now I use IPython and Jedit when using the turtle module but it's not a great solution for me. Is there any known work-around to use turtle with IDLE? If not is there a planned fix for...
8
3760
by: Jonathan Polley | last post by:
I have one account on a WindowsXP machine that refuses to run IDLE (or any other python script that uses Tk). Other people can login to that PC and IDLE runs just fine, so it is not an installation issue. When the person who has the problem logs into another PC the problem follows them. Any ideas as to what might me wrong? This is the...
7
1974
by: iwdu15 | last post by:
how can i tell if my system has gone idle? then how can i execute a command accordingly? thnks
0
1436
by: Stefan Felkel | last post by:
hi! i have searched a lot in these pgsql-groups and on the internet, but found no really helpful information for my problem. the famous error >> database "xyz" is being accessed by other users is my problem.
2
5658
by: Jim Hendricks | last post by:
New to Python, and just had something strange happen. I've been running my new code in IDLE running in windows. My IDLE version shows as 1.2.1, Python version displaying in IDLE is 2.5.1. I have been editing my code in UltraEdit then testing in IDLE by choosing open, then F5. I didn't see an easy way to refresh in IDLE, so each edit...
3
2443
by: W. Watson | last post by:
After simply trying to write a program with help(MakeQTE), a module, and having it fail with socket errors, I decided to restart IDLE, thinking I knew the cause. I'm now getting msgs like: "IDLE's subprocess didn't make connection. ... firewall may be blocking the connection." I doubt the FW connection. There's a small X warning dialog that...
3
2882
by: Giraffe | last post by:
I have the followong class in a file: -------------------------------------------- class someClass: def __init__ (self): self.someVar = 10 def getSomeVar (self): return self.someVar --------------------------------------------
0
7676
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7932
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7442
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7776
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6001
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5347
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
729
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.