[perl-python] 20050125 standard modules

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Xah Lee

    #1

    [perl-python] 20050125 standard modules

    # -*- coding: utf-8 -*-
    # Python

    # some venture into standard modules

    import os

    # print all names exported by the module
    print dir(os)

    # print the module's online manual
    print help(os)
    # the above is also available in
    # interactive mode in Python terminal

    # example of using a function
    print 'current dir is:', os.getcwd()

    # this prints a list of existing modules
    print help('modules')

    # referecnce
    # http://python.org/doc/2.3.4/tut/node12.html

    # in Python terminal, type help() then
    # modules
    # to get a list
    # then a module name to see its doc.

    # take a gander of its richness and
    # suitability

    --------------------------
    in perl, i don't think there is one way to
    list available modules.

    one can write a program to find out. Start by
    use Data::Dumper; print Dumper \@INC;
    to see where is the standard modules located,
    then search for *.pm files to get an idea.

    -------------------------
    Note: this post is from the Perl-Python a-day mailing list at
    Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!

    to subscribe, send an email to perl-python-subscribe @ yahoogroups.com
    if you are reading it on a web page, program examples may not run
    because html conversion often breaks the code.
    Xah
    xah@xahlee.org


  • Dan Perl

    #2
    Re: [perl-python] 20050125 standard modules

    I sent the following feedback message to Yahoo! Groups about this abusive
    use of their service.

    Feel free to also report this as an abuse of the Yahoo! Groups service until
    the problem is resolved.

    Dan

    -----------
    As the owner of the perl-python group, p0lyglut (aka Xah Lee), has added two
    newsgroups to the mailing list of the group: comp.lang.perl. misc and
    comp.lang.pytho n.

    First of all, I don't think anyone could have given Xah Lee an authorization
    on behalf of the newsgroups. I am not sure, but that is probably a
    violation of the Terms of Service in itself. I will leave this matter up to
    you to investigate.

    The daily messages of the perl-python group are unwanted by the two
    newsgroups. Just take a look at the follow-ups in the newsgroups that the
    perl-python postings have generated.

    I hope that not only the newsgroups will be removed from the perl-python
    group but that such an abuse will also be prevented in the future.

    Thanks,

    Dan Perl


    Comment

    • Dan Perl

      #3
      Re: [perl-python] 20050125 standard modules

      I was wrong. He is just crossposting to the newsgroups without having them
      as members of the group.

      I wish there was a good way like that to stop these daily postings!

      Dan

      "Dan Perl" <danperl@rogers .com> wrote in message
      news:yfSdnWbW5r w84GvcRVn-sw@rogers.com.. .[color=blue]
      >I sent the following feedback message to Yahoo! Groups about this abusive
      >use of their service.
      >
      > Feel free to also report this as an abuse of the Yahoo! Groups service
      > until the problem is resolved.
      >
      > Dan
      >
      > -----------
      > As the owner of the perl-python group, p0lyglut (aka Xah Lee), has added
      > two newsgroups to the mailing list of the group: comp.lang.perl. misc and
      > comp.lang.pytho n.
      >
      > First of all, I don't think anyone could have given Xah Lee an
      > authorization on behalf of the newsgroups. I am not sure, but that is
      > probably a violation of the Terms of Service in itself. I will leave this
      > matter up to you to investigate.
      >
      > The daily messages of the perl-python group are unwanted by the two
      > newsgroups. Just take a look at the follow-ups in the newsgroups that the
      > perl-python postings have generated.
      >
      > I hope that not only the newsgroups will be removed from the perl-python
      > group but that such an abuse will also be prevented in the future.
      >
      > Thanks,
      >
      > Dan Perl
      >[/color]


      Comment

      • Peter Nuttall

        #4
        Re: [perl-python] 20050125 standard modules

        On Tuesday 25 Jan 2005 17:50, Dan Perl wrote:[color=blue]
        > I was wrong. He is just crossposting to the newsgroups without having
        > them as members of the group.
        >
        > I wish there was a good way like that to stop these daily postings!
        >[/color]

        You can just filter on [perl-python]

        Pete

        Comment

        • Paul Lalli

          #5
          Re: [perl-python] 20050125 standard modules

          "Xah Lee" <xah@xahlee.org > wrote in message
          news:1106669614 .666772.17750@z 14g2000cwz.goog legroups.com...
          --------------------------[color=blue]
          > in perl, i don't think there is one way to
          > list available modules.
          >[/color]

          <set followups to c.l.p.m, as this reply deals only with Perl>

          I'm torn between knowing that I shouldn't feed trolls, and my hatred of
          leaving faulty information about Perl unchecked, where some unsuspecting
          newbie might stumble across it.

          So to those newbies, you should know that just because this clown
          doesn't think there's a way, does not in any way imply that there
          actually isn't a way.

          For a list of standard modules included in your distribution of Perl,
          run the following command in your shell:
          perldoc perlmodlib

          To get a list of non-standard modules that have already been installed,
          read the documentation for the ExtUtils::Insta lled module:
          perldoc ExtUtils::Insta lled

          To see what other modules are available to be downloaded, visit


          Paul Lalli

          Comment

          Working...