Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > [perl-python] 20050125 standard modules

Reply
Thread Tools

[perl-python] 20050125 standard modules

 
 
Xah Lee
Guest
Posts: n/a
 
      01-25-2005
# -*- 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:umper; 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
http://groups.yahoo.com/group/perl-python/
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

http://xahlee.org/PageTwo_dir/more.html

 
Reply With Quote
 
 
 
 
Dan Perl
Guest
Posts: n/a
 
      01-25-2005
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.python.

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


 
Reply With Quote
 
 
 
 
Dan Perl
Guest
Posts: n/a
 
      01-25-2005
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" <> wrote in message
news:yfSdnWbW5rw84GvcRVn-...
>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.python.
>
> 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
>



 
Reply With Quote
 
Peter Nuttall
Guest
Posts: n/a
 
      01-25-2005
On Tuesday 25 Jan 2005 17:50, Dan Perl wrote:
> 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!
>


You can just filter on [perl-python]

Pete
 
Reply With Quote
 
Paul Lalli
Guest
Posts: n/a
 
      01-25-2005
"Xah Lee" <> wrote in message
news: ups.com...
--------------------------
> in perl, i don't think there is one way to
> list available modules.
>


<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::Installed module:
perldoc ExtUtils::Installed

To see what other modules are available to be downloaded, visit
http://www.cpan.org

Paul Lalli

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling modules using Modules/Setup Ben Weintraub Python 0 09-09-2006 12:04 AM
[perl-python] 20050125 standard modules Xah Lee Perl Misc 4 01-26-2005 11:25 PM
Importing modules from within other modules Tobiah Python 2 09-14-2003 09:18 PM
imputils - import problem modules from sys.modules Remy Cool Python 1 08-27-2003 02:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57