User Profile

Collapse

Profile Sidebar

Collapse
yueying53
yueying53
Last Activity: Feb 27 '09, 09:58 AM
Joined: Dec 21 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • This was what my system returned: '1.5.2+ (#0, Oct 1 2004, 15:39:52) [MSC 32 bit (Intel)]'. I guess this version is just too old. =P

    Anyway, I've solved the problem with my code (without the inheritance from object as u mentioned above) with the help from both you and boxfish. I've learnt a new thing about Python again. Thank you both so very much!

    Regards,
    Sam
    See more | Go to post

    Leave a comment:


  • Hi,

    Thanks to the both of you for your explanations and help. I tried putting 'object' in like what you suggested. However, I've got this error:

    Code:
    Traceback (innermost last):
      File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 298, in RunScript
        debugger.run(codeObject, __main__.__dict__, start_stepping=0)
      File "C:\Program Files\Python\Pythonwin\pywin\debugger\__init__.py",
    ...
    See more | Go to post

    Leave a comment:


  • Hi bvdet,

    I've attached my full code, and this is the error traceback:

    Code:
    Traceback (innermost last):
      File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 298, in RunScript
        debugger.run(codeObject, __main__.__dict__, start_stepping=0)
      File "C:\Program Files\Python\Pythonwin\pywin\debugger\__init__.py", line 60, in run
        _GetCurrentDebugger().run(cmd,
    ...
    See more | Go to post

    Leave a comment:


  • Hi guys,

    There's an error in my previous post. Lines 16 to 18 should be aligned according to line 15. Sorry for the error!

    Regards,
    Sam
    See more | Go to post

    Leave a comment:


  • yueying53
    started a topic Problem appending new class to a list of classes

    Problem appending new class to a list of classes

    I am new to creating a list of classes. Hence I checked out this website: http://www.daniweb.com/code/snippet390.html. However, I modified the code to check if a class with a particular has been created before.

    My code works when I create the first class and append it to the list. However, subsequent creations and appending results in this error: "AttributeError : No __call__ method defined." Why is this so? Why does the...
    See more | Go to post

  • yueying53
    replied to Square Root function
    Hi bvdet,

    Thanks for your suggestions! I guess I was googling with the wrong key words that's why I didn't get anything on my first try. Anyway, I've found the webpages that you were talking about to be very useful.

    Thanks a million!

    Cheers, Sam
    See more | Go to post

    Leave a comment:


  • yueying53
    replied to Square Root function
    Hi,

    Thanks for replying! Unfortunately I am using python to program a Telit GSM modem. I write the program on my computer, run it on python, and it works. But as soon as I upload the program into the internal memory of the modem, things go wrong. For one, it cannot work with floats, and apparently sqrt doesn't work too.

    Hence I'm trying to manually write a sqrt function to get around the problem.

    Thanks for...
    See more | Go to post

    Leave a comment:


  • yueying53
    started a topic Square Root function

    Square Root function

    Hi guys,

    For some reason, the hardware that i'm working with cannot import sqrt from math. Hence I need to manually write a sqrt function. Been searching everywhere to find such a function but to no avail.

    Could any kind soul please help me with this!

    THanks a million!

    Sam
    See more | Go to post

  • yueying53
    replied to isdigit( ) not supported in PythonWin?
    BV,

    Thank you so much for your help. I'm quite new to Python so pardon me for being unable to distinguish between string 'methods' and functions. Thank you for your corrections.

    Anyhows, I do realise that isdigit( ) is supposed to be inbuilt into Python. That's why I was surprised that an error returned when I ran that part of the code. Not sure why that happens to the Python that I'm using. But I got around the problem...
    See more | Go to post

    Leave a comment:


  • yueying53
    replied to isdigit( ) not supported in PythonWin?
    Hi BV,

    Am I supposed to import any particular module to be able to use isdigit()? Because Telit's Easy Script in Python document suggests that this function is not supported. Also, I checked the library for string and isdigit() is not in there either.

    I was thinking if I could write the function manually myself and put it in the string module. But how should this function be written?

    Thanks a million...
    See more | Go to post

    Leave a comment:


  • Hi!

    For the benefit of anyone having the same problem, I found out that the problem lies with a faulty data cable. I was using a self-made rs232 cable and some of the wires got loose.

    Though I don't quite understand why Hyperterminal works with a faulty data cable but PythonWin doesn't. Anyhow, if you have the same problem, try changing your data cables!

    Cheers
    See more | Go to post

    Leave a comment:


  • yueying53
    started a topic isdigit( ) not supported in PythonWin?

    isdigit( ) not supported in PythonWin?

    Hi people!

    I'm working with a Telit gsm module and am using PythonWin. I am trying to use the function isdigit( ) to check if a string contains only digits. However, PythonWin doesn't seem to support this function.

    Does anyone know what I can do to work around this problem? I really need this function and cannot find other alternatives...

    Thanks in advance!

    Cheers, Samantha
    See more | Go to post

  • Problem connecting telit gm862 module with Python

    Hi all,

    I have a telit EVK2 evaluation kit and a gm862 module. Setup was fine in my school computers and I was even able to write a small program to send and receive sms.

    However when I brought it to my home computer, it gave warning messages like "The module is not responding. Do you want to retry to connect?" The funny thing is, the module can be detected in Hyperterminal. And I made sure to close off Hyperterminal...
    See more | Go to post
No activity results to display
Show More
Working...