Re: [Pydev-code] pydev problems?
Brought to you by:
fabioz
|
From: Fabio Z. <fa...@gm...> - 2008-01-17 15:40:16
|
Hi, This is a bit out of topic of the pydev-code list (please send that to the pydev forum or the pydev-users list...) But just to answer you, take a look at tha faq: http://pydev.sourceforge.net/faq.html#why_raw_input_input_does_not_work_cor= rectly Cheers, Fabio On Jan 17, 2008 12:32 PM, hadrien axel <had...@ya...> wrote: > Hi, > I'm a newbie in Python and I'm trying to use the Eclipse IDE for start > programming with this language, so I installed the Pydev plugin 1.3.11 on > Eclipse 3.3.0. > I prove with this downloaded script example: > > import os, sys > > seguir=3D"" > nota=3D0 > deci=3D0 > car=3D1 > chon=3D0 > rem=3D"" > inversion=3D"" > er=3Ddeci > hex=3D0 > no=3D"" > noe=3D"" > while car=3D=3D1: > try: > option=3Draw_input("Chose an option:\n a) Convert a Binary numbe= r to > Decimal.\n b) Convert a Decimal number to Binary.\n c) Convert a Decima= l > number to Hexadecimal.\nWrite an option: ") > if option=3D=3D"a": > bin=3Dstr(raw_input("Write a binary number: ")) > try: > print int(bin,2), "This is the Decimal" > except: > print "This is not binary" > seguir=3Draw_input("Continue (s/n): ") > if option=3D=3D"b": > try: > num=3Dint(raw_input("Write a Decimal number: ")) > while num>0: > chon=3Dnum%2 > rem+=3Dstr(chon) > num/=3D2 > for caracter in rem: > inversion=3Dcaracter+inversion > print inversion, "This is the Binary" > except: > print "This is not a Decimal" > inversion=3D"" > rem=3D"" > seguir=3Draw_input("Continue(s/n): ") > if option=3D=3D"c": > try: > deci=3Dint(raw_input("Write a Decimal number: ")) > while deci>0: > hex=3Ddeci%16 > if hex<10: > no=3Dstr(hex) > if hex=3D=3D10: > no=3D"A" > if hex=3D=3D11: > no=3D"B" > if hex=3D=3D12: > no=3D"C" > if hex=3D=3D13: > no=3D"D" > if hex=3D=3D14: > no=3D"E" > if hex=3D=3D15: > no=3D"F" > noe+=3Dno > deci/=3D16 > for caracter in noe: > inversion=3Dcaracter+inversion > print inversion,"This is the Hexadecimal." > inversion=3D"" > noe=3D"" > except: > print "This is not a decimal number" > segeuir=3Draw_input("Continue(s/n): ") > except: > print "Invalid option" > seguir=3Draw_input("Continue(s/n): ") > if seguir=3D=3D"s": > car=3D1 > elif seguir=3D=3D"n": > print "ENDED" > car=3D0 > else: > print "Invalid option" > > > When I try to run it with Pydev the console doesn't read the letters I wr= ite > (for the options: a, b, c) so the option is always wrong, but when I run = the > program with the IDLE, I have no problem and all it's ok. Where is the > problem? What can I do? > > Thanks! > > > ________________________________ > > Web Revelaci=F3n Yahoo! 2007: > Premio Favorita del P=FAblico - =A1Vota tu preferida! > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |