wrote:
> Steve, You are absolutely right. I am trying to eliminate the method of
> using parenthesis while calling in my file. Especially when I call it
> from a instance.
Then write a simple interpreter.
You want to change the language syntax, as said previously, do not
except python to underst
On 10/12/2016 5:59 AM, mr.puneet.go...@gmail.com wrote:
# I created a platform class with different method in a file
> # and making it as a package.
class platform:
def connect(self):
# connect device
def destroy(self):
# destroy device
def config(self, command):
On Wednesday, October 12, 2016 at 3:01:26 AM UTC-7, mr.pune...@gmail.com wrote:
> Hi All
>
> Its really good to see that some discussion happening around this topic.
> Sorry I was out from my work for sometime so couldn't follow up but I really
> find it useful. It gives me good opportunity to k
mr.puneet.go...@gmail.com wrote:
> On Monday, October 10, 2016 at 7:45:40 PM UTC+5:30, mr.pune...@gmail.com
> wrote:
>> Hi
>>
>> Is there any way to capture syntax errors and process them ? I want to write
>> a function which calls every time whenever there is syntax error in the
>> program.
On Thu, 13 Oct 2016 12:46 am, Pierre-Alain Dorange wrote:
> Terry Reedy wrote:
>
>> > Using this function, the code is "compiled".
>> > I do not think this function is often used and most python project
>> > simply use the interpreter (which do a small translation into byte-code
>> > to be faste
On Thu, Oct 13, 2016 at 12:46 AM, Pierre-Alain Dorange
wrote:
> Terry Reedy wrote:
>
>> > Using this function, the code is "compiled".
>> > I do not think this function is often used and most python project
>> > simply use the interpreter (which do a small translation into byte-code
>> > to be fa
Terry Reedy wrote:
> > Using this function, the code is "compiled".
> > I do not think this function is often used and most python project
> > simply use the interpreter (which do a small translation into byte-code
> > to be faster and check syntax error before running interpretation
>
> You see
On Wed, 12 Oct 2016 08:59 pm, mr.puneet.go...@gmail.com wrote:
> Now person who wants to write a script using above package can simply use
> below approach. Which does not make him to have knowledge in python.
>
> DUT = platform()
> DUT connect
> DUT config {commands}
> DUT show {commands}
> DUT
On Monday, October 10, 2016 at 7:45:40 PM UTC+5:30, mr.pune...@gmail.com wrote:
> Hi
>
> Is there any way to capture syntax errors and process them ? I want to write
> a function which calls every time whenever there is syntax error in the
> program.
>
> For example,
>
> inside example.py
>
Hi All
Its really good to see that some discussion happening around this topic. Sorry
I was out from my work for sometime so couldn't follow up but I really find it
useful. It gives me good opportunity to know python better as I recently
started learning python.
Ok so I tell you why I need to
On 10/11/2016 4:02 AM, Pierre-Alain Dorange wrote:
Using this function, the code is "compiled".
I do not think this function is often used and most python project
simply use the interpreter (which do a small translation into byte-code
to be faster and check syntax error before running interpreta
On Tue, 11 Oct 2016 03:58 pm, Terry Reedy wrote:
> On 10/10/2016 11:24 AM, Chris Angelico wrote:
>> On Tue, Oct 11, 2016 at 1:13 AM, wrote:
>>> Is there any way to capture syntax errors and process them ? I want to
>>> write a function which calls every time whenever there is syntax error
>>> in
Chris Angelico :
>>> > You're right, except that Python is never compiled, it was just
>>> > checked for syntax error before interpreting code.
>>>
>>> https://docs.python.org/3/library/functions.html#compile
>>>
>>> It's compiled.
>>
>> Using this function, the code is "compiled".
>> I do not thi
pdora...@pas-de-pub-merci.mac.com (Pierre-Alain Dorange) writes:
> Chris Angelico wrote:
>
> > https://docs.python.org/3/library/functions.html#compile
> >
> > [Python code is] compiled.
>
> Using this function, the code is "compiled".
You have it backward: Python code is compiled. That's what
On Tue, Oct 11, 2016 at 7:02 PM, Pierre-Alain Dorange
wrote:
> Chris Angelico wrote:
>
>> >> Yes and no. Syntax errors are detected when the script is compiled, so
>> >> you can't do something like this:
>> >
>> > You're right, except that Python is never compiled, it was just checked
>> > for sy
Chris Angelico wrote:
> >> Yes and no. Syntax errors are detected when the script is compiled, so
> >> you can't do something like this:
> >
> > You're right, except that Python is never compiled, it was just checked
> > for syntax error before interpreting code.
>
> https://docs.python.org/3/li
On 10/10/2016 11:24 AM, Chris Angelico wrote:
On Tue, Oct 11, 2016 at 1:13 AM, wrote:
Is there any way to capture syntax errors and process them ? I want to write a
function which calls every time whenever there is syntax error in the program.
However, you can catch this at some form of ou
On Monday, October 10, 2016 at 3:15:40 PM UTC+1, mr.pune...@gmail.com wrote:
> Hi
>
> Is there any way to capture syntax errors and process them ? I want to write
> a function which calls every time whenever there is syntax error in the
> program.
>
> For example,
>
> inside example.py
>
>
On 10/10/2016 16:44, Pierre-Alain Dorange wrote:
Chris Angelico wrote:
Yes and no. Syntax errors are detected when the script is compiled, so
you can't do something like this:
You're right, except that Python is never compiled, it was just checked
for syntax error before interpreting code.
On Tue, Oct 11, 2016 at 2:44 AM, Pierre-Alain Dorange
wrote:
> Chris Angelico wrote:
>
>> Yes and no. Syntax errors are detected when the script is compiled, so
>> you can't do something like this:
>
> You're right, except that Python is never compiled, it was just checked
> for syntax error befo
Chris Angelico wrote:
> Yes and no. Syntax errors are detected when the script is compiled, so
> you can't do something like this:
You're right, except that Python is never compiled, it was just checked
for syntax error before interpreting code.
>
> However, you can catch this at some form of
On Tue, Oct 11, 2016 at 1:13 AM, wrote:
> Is there any way to capture syntax errors and process them ? I want to write
> a function which calls every time whenever there is syntax error in the
> program.
>
> For example,
>
> inside example.py
>
> I just mention below line
>
>
> Obj = myClass()
Hi
Is there any way to capture syntax errors and process them ? I want to write a
function which calls every time whenever there is syntax error in the program.
For example,
inside example.py
I just mention below line
Obj = myClass()
Obj xyz
Obj is instance of a class. But there is synt
23 matches
Mail list logo