Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2003
    Location
    California
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question the future of python

    This lang doesn't have its own space here on the forum, unlike PHP, PERL, and others. I was wondering if Python is a dead language...

    also

    when printing a list in python, is it possible to take off the brackets and quotes that get printed along with it?..

    Thanks

  • #2
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    There's a sub-forum for it under "Other server-side languages"

    It's not dead, either. Seems like it's getting a lot of mileage as research & educational tool, and as a replacement for Perl in shell scripts. It's also very fast under mod_python and getting some traction as a platform for desktop apps.

    As for printing the list unadorned, it seems you can do something like
    Code:
    print ' '.join(['some', 'array', 'here']) # => some array here
    (Making join a member of string and not of array is one of the myriad little things that make it extremely aggravating for me to use python)
    Last edited by ralph l mayo; 07-01-2007 at 10:43 AM.

  • #3
    New Coder
    Join Date
    May 2006
    Posts
    39
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by velious View Post
    This lang doesn't have its own space here on the forum, unlike PHP, PERL, and others. I was wondering if Python is a dead language...

    also

    when printing a list in python, is it possible to take off the brackets and quotes that get printed along with it?..

    Thanks
    the way to print a list is to go through them in a loop.eg
    Code:
    for item in theList:
        print item
    and also the join method. If you don't see much Python activities here, doesn't mean its the same elsewhere. you can check out comp.lang.python.


  •  

    Posting Permissions

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