Re: cmd prompt does not recognizes python command on Windows 7

2016-08-10 Thread Lawrence D’Oliveiro
On Wednesday, August 10, 2016 at 4:47:33 PM UTC+12, sh.a...@gmail.com wrote: > i have installed python 3.5 , but the python command is not recognized Windows does not make it easy to install things, does it... -- https://mail.python.org/mailman/listinfo/python-list

Re: cmd prompt does not recognizes python command on Windows 7

2016-08-10 Thread eryk sun
On Wed, Aug 10, 2016 at 2:03 PM, Random832 wrote: > On Wed, Aug 10, 2016, at 06:34, eryk sun wrote: >> On Wed, Aug 10, 2016 at 4:46 AM, wrote: >> > >> > i have installed python 3.5 , but the python command is not recognized >> > >> > C:\Users\sharmaaj>python >> > 'python' is not recognized as an

Re: cmd prompt does not recognizes python command on Windows 7

2016-08-10 Thread eryk sun
On Wed, Aug 10, 2016 at 1:46 PM, BartC wrote: > On 10/08/2016 11:34, eryk sun wrote: >> >> On Wed, Aug 10, 2016 at 4:46 AM, wrote: >>> >>> i have installed python 3.5 , but the python command is not recognized >>> >>> C:\Users\sharmaaj>python >>> 'python' is not recognized as an internal or exte

Re: cmd prompt does not recognizes python command on Windows 7

2016-08-10 Thread BartC
On 10/08/2016 15:03, Random832 wrote: On Wed, Aug 10, 2016, at 06:34, eryk sun wrote: On Wed, Aug 10, 2016 at 4:46 AM, wrote: i have installed python 3.5 , but the python command is not recognized C:\Users\sharmaaj>python 'python' is not recognized as an internal or external command, operab

Re: cmd prompt does not recognizes python command on Windows 7

2016-08-10 Thread Random832
On Wed, Aug 10, 2016, at 06:34, eryk sun wrote: > On Wed, Aug 10, 2016 at 4:46 AM, wrote: > > > > i have installed python 3.5 , but the python command is not recognized > > > > C:\Users\sharmaaj>python > > 'python' is not recognized as an internal or external command, > > operable program or batc

Re: cmd prompt does not recognizes python command on Windows 7

2016-08-10 Thread BartC
On 10/08/2016 11:34, eryk sun wrote: On Wed, Aug 10, 2016 at 4:46 AM, wrote: i have installed python 3.5 , but the python command is not recognized C:\Users\sharmaaj>python 'python' is not recognized as an internal or external command, operable program or batch file. what should i do to run

Re: cmd prompt does not recognizes python command on Windows 7

2016-08-10 Thread eryk sun
On Wed, Aug 10, 2016 at 4:46 AM, wrote: > > i have installed python 3.5 , but the python command is not recognized > > C:\Users\sharmaaj>python > 'python' is not recognized as an internal or external command, > operable program or batch file. > > what should i do to run python commands. Modify y

Re: cmd prompt does not recognizes python command on Windows 7

2016-08-10 Thread Wolfgang Maier
Try py instead of python. That invokes a thing called the python launcher (see https://docs.python.org/3/using/windows.html#python-launcher-for-windows for more details). Best, Wolfgang On 10.08.2016 06:46, sh.aja...@gmail.com wrote: Hi Everyone i have installed python 3.5 , but the python

Re: cmd i/o stream module

2012-06-27 Thread Temia Eszteri
[Default] On Wed, 27 Jun 2012 18:37:52 +0530, prakash jp wrote: >Hi All, > >I am interested to interact with the command prompt, is there a module to >control the input/output stream. Thanks in advance for the pointers > >Thanks >Prakash Well, from the start, the sys module gives access to the s

Re: cmd with three arguments

2010-05-17 Thread kak...@gmail.com
On May 17, 4:34 pm, Peter Otten <__pete...@web.de> wrote: > kak...@gmail.com wrote: > > Hi pythonistas, > > While playing with the Python Standard Library, i came across "cmd". > > So I'm trying to make a console application. Everything works fine, i > > created many function with do_(self, lin

Re: cmd with three arguments

2010-05-17 Thread Peter Otten
kak...@gmail.com wrote: > Hi pythonistas, > While playing with the Python Standard Library, i came across "cmd". > So I'm trying to make a console application. Everything works fine, i > created many function with do_(self, line) prefix, but when i > tried to create a function with more argume

Re: cmd with three arguments

2010-05-17 Thread kak...@gmail.com
On May 17, 4:12 pm, Tim Chase wrote: > On 05/17/2010 07:11 AM, kak...@gmail.com wrote: > > > While playing with the Python Standard Library, i came across "cmd". > > So I'm trying to make a console application. Everything works fine, i > > created many function with do_(self, line) prefix, but

Re: cmd with three arguments

2010-05-17 Thread Tim Chase
On 05/17/2010 07:11 AM, kak...@gmail.com wrote: While playing with the Python Standard Library, i came across "cmd". So I'm trying to make a console application. Everything works fine, i created many function with do_(self, line) prefix, but when i tried to create a function with more argumen

Re: cmd app and xml

2010-05-14 Thread kak...@gmail.com
On May 14, 7:10 am, Stefan Behnel wrote: > kak...@gmail.com, 14.05.2010 12:46: > > > Hi there, > > i'm writing a console app using the cmd library. I also use > > xml.dom.minidom to parse an xml file that i get as a response to an > > HTTP Post request. > > with > > data = response.read() > > i ge

Re: cmd app and xml

2010-05-14 Thread Stefan Behnel
kak...@gmail.com, 14.05.2010 12:46: Hi there, i'm writing a console app using the cmd library. I also use xml.dom.minidom to parse an xml file that i get as a response to an HTTP Post request. with data = response.read() i get the xml response from the server. i then feed the parser with that dat

Re: cmd all commands method?

2007-02-19 Thread Gabriel Genellina
En Mon, 19 Feb 2007 00:08:45 -0300, placid <[EMAIL PROTECTED]> escribió: > If anyone can provide a suggestion to replicate the following Tcl > command in Python, i would greatly appreciate it. > > namespace eval foo { > variable bar 12345 > } > > what this does is create a namespace foo with t

Re: cmd all commands method?

2007-02-18 Thread placid
On Feb 18, 8:59 pm, "Michele Simionato" <[EMAIL PROTECTED]> wrote: > On Feb 18, 10:49 am, "placid" <[EMAIL PROTECTED]> wrote: > > > On Feb 18, 7:17 pm, "Michele Simionato" <[EMAIL PROTECTED]> > > > > Yes, he is talking about the cmd > > > module:http://docs.python.org/dev/lib/Cmd-objects.html. > >

Re: cmd all commands method?

2007-02-18 Thread Michele Simionato
On Feb 18, 10:49 am, "placid" <[EMAIL PROTECTED]> wrote: > On Feb 18, 7:17 pm, "Michele Simionato" <[EMAIL PROTECTED]> > > > Yes, he is talking about the cmd > > module:http://docs.python.org/dev/lib/Cmd-objects.html. > > However that module was never intended as a real interpreter, so > > definin

Re: cmd all commands method?

2007-02-18 Thread Peter Otten
placid wrote: > On Feb 18, 7:17 pm, "Michele Simionato" <[EMAIL PROTECTED]> > wrote: >> On Feb 17, 11:44 pm, Bjoern Schliessmann > >> >> >> [EMAIL PROTECTED]> wrote: >> > placid wrote: >> > > if i want to treat every cmdloop prompt entry as a potential >> > > command then i need to overwrite the d

Re: cmd all commands method?

2007-02-18 Thread placid
On Feb 18, 7:17 pm, "Michele Simionato" <[EMAIL PROTECTED]> wrote: > On Feb 17, 11:44 pm, Bjoern Schliessmann > > > [EMAIL PROTECTED]> wrote: > > placid wrote: > > > if i want to treat every cmdloop prompt entry as a potential > > > command then i need to overwrite the default() method ? > > > Exc

Re: cmd all commands method?

2007-02-18 Thread Michele Simionato
On Feb 17, 11:44 pm, Bjoern Schliessmann wrote: > placid wrote: > > if i want to treat every cmdloop prompt entry as a potential > > command then i need to overwrite the default() method ? > > Excuse me, what's a cmdloop prompt? What's the "default() method"? > > > What i want to achieve is to be

Re: cmd all commands method?

2007-02-17 Thread Bjoern Schliessmann
placid wrote: > if i want to treat every cmdloop prompt entry as a potential > command then i need to overwrite the default() method ? Excuse me, what's a cmdloop prompt? What's the "default() method"? > What i want to achieve is to be able to support global variable > creation for example; >

Re: cmd all commands method?

2007-02-17 Thread placid
placid wrote: > Hi all, > > if i want to treat every cmdloop prompt entry as a potential command > then i need to overwrite the default() method ? > > What i want to achieve is to be able to support global variable > creation for example; > > res = sum 1 2 > > this would create a variable res with

Re: cmd module "busy waiter" ?

2006-04-25 Thread placid
Dennis Lee Bieber wrote: > On 23 Apr 2006 23:49:51 -0700, "placid" <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: > > > Just wondering if the cmd module in python uses "busy waiting" for > > "polling" user command input as this is inefficient. > > > Use the Source... > >

Re: cmd

2006-02-10 Thread Steven D'Aprano
On Sat, 11 Feb 2006 00:47:14 +0100, Gerber wrote: > I'd like some documentation on the cmd module, besides the regular > docs, in help() and docs.python.org... Is this a trick question? You'd like some documentation apart from the documentation? Have you tried reading the source code to the modu

Re: Cmd Module

2005-11-23 Thread Godwin Burby
Sorry! I just retyped my script instead of copy pasting it. well thank u once again for clearing my confusion. -- http://mail.python.org/mailman/listinfo/python-list

Re: Cmd Module

2005-11-23 Thread Fredrik Lundh
Godwin Burby wrote: > I was just curious about using the cmd module for building my > own command line interface. i saw a problem. The script is as follows: it helps if you include the code you were running, instead of some approximation of it. File "test", line 10 if passwd = 'god