Interesting bug

J

joy99

Dear Group,

Hope all of you are fine and spending nice new year evenings.

I get a bug in Python over the last 4 years or so, since I am using
it. The language is superb, no doubt about it. It helped me finish
many a projects, with extraordinary accuracy. But long since, I was
getting an interesting bug. In the initial days, I thought it may be
my learning error or usability error. It comes every now and then. The
bug is suppose I am calling a library or using some logical operator,
it works fine initially but if I want to copy the code to some other
modules, same line of codes do not run at all.

The remedy I do is,
(a) I take the code from file and test it in GUI, more astonishingly
in 99% of the cases I found the code llines, are correct.
Then I apply a brute force technique I rewrite the whole code again.
For small codes this technique is okay, but if I write mammoth code,
and all on a sudden some interesting behavior came out, well it really
feels bad. I keep now a days some time out that I have to do this, but
is there any definite solution? I believe there is some, as I do not
know them, as it happens, unnecessarily get upset.

I use Python on WinXP service pack2, I started to use Python2.5.1, and
now I am using Python2.6.5, IDLE as GUI.

Best Regards,
Subhabrata
 
D

Daniel Fetchinson

Dear Group,
Hope all of you are fine and spending nice new year evenings.

I get a bug in Python over the last 4 years or so, since I am using
it. The language is superb, no doubt about it. It helped me finish
many a projects, with extraordinary accuracy. But long since, I was
getting an interesting bug. In the initial days, I thought it may be
my learning error or usability error. It comes every now and then. The
bug is suppose I am calling a library or using some logical operator,
it works fine initially but if I want to copy the code to some other
modules, same line of codes do not run at all.

The remedy I do is,
(a) I take the code from file and test it in GUI, more astonishingly
in 99% of the cases I found the code llines, are correct.
Then I apply a brute force technique I rewrite the whole code again.
For small codes this technique is okay, but if I write mammoth code,
and all on a sudden some interesting behavior came out, well it really
feels bad. I keep now a days some time out that I have to do this, but
is there any definite solution? I believe there is some, as I do not
know them, as it happens, unnecessarily get upset.

I use Python on WinXP service pack2, I started to use Python2.5.1, and
now I am using Python2.6.5, IDLE as GUI.

Best Regards,
Subhabrata

An AI bot is playing a trick on us.
Focus and don't let your guards down!

Cheers,
Daniel
 
J

joy99

An AI bot is playing a trick on us.
Focus and don't let your guards down!

Cheers,
Daniel

Thanks for the suggestion. I'll keep it checked. Some useless fellows
forget their own business and poke nose into others business.
Best Regards,
Subhabrata.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top