×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    4

    confused by import command

    what are the differences between these two type of commands:
    1- >>> import socket
    2- >>> from socket import *

    i mean when you get the object list from the first command it gives different object from when you get objects from the second command.
    so does it mean these two command doesnt do the same job,if yes which one does what.

  2. #2
    Regular Contributor
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323

    Re: confused by import command

    Quote Originally Posted by s_jmp View Post
    what are the differences between these two type of commands:
    1- >>> import socket
    2- >>> from socket import *
    See Difference between import and from in Python.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: confused by import command

    Quote Originally Posted by s_jmp View Post
    what are the differences between these two type of commands:
    1- >>> import socket
    2- >>> from socket import *

    i mean when you get the object list from the first command it gives different object from when you get objects from the second command.
    so does it mean these two command doesnt do the same job,if yes which one does what.

    hi s_jmp
    first of all a warm welcome to the python dibo.
    you better look out at the book dive inti python freely available
    a good explaination is provided there.
    hope you got the difference.

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. problem on running my application
    By rsf in forum Symbian
    Replies: 7
    Last Post: 2007-10-21, 15:56
  3. deviceDiscovered Not Discovering
    By adamzieba in forum Bluetooth Technology
    Replies: 1
    Last Post: 2007-07-23, 07:56
  4. SocketConnection Work on 6600&Emulators BUT NOT IN 6680
    By eerant in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2006-03-11, 00:35
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •