Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 01:00 AM
Mothra
Guest
 
Posts: n/a
Default Converting a perl module to a python module would it be worth it?

Hi All,

I am the current author of the Astro-Sunrise perl module
http://search.cpan.org/~rkhill/Astro....91/Sunrise.pm
and was wondering if it would be worth while to convert it to python.
First off, I have never programmed in python. I would like to use
this project to learn python. I was wondering if there was a
"How to program python for perl programmers" Kinda
like what is different between the two, pitfalls for perl programmers
and what not.
Another question is, if I do this where can I put the results?
As far as I know python has no "CPAN".

Thanks in advance.

Mothra


  #2  
Old July 19th, 2005, 01:00 AM
bruno modulix
Guest
 
Posts: n/a
Default Re: Converting a perl module to a python module would it be worthit?

Mothra wrote:[color=blue]
> Hi All,
>
> I am the current author of the Astro-Sunrise perl module
> http://search.cpan.org/~rkhill/Astro....91/Sunrise.pm
> and was wondering if it would be worth while to convert it to python.[/color]

Only you and your module's users may tell...
[color=blue]
> First off, I have never programmed in python. I would like to use
> this project to learn python.[/color]

Well, this might be an answer to your first question !-)
[color=blue]
> I was wondering if there was a
> "How to program python for perl programmers"
> Kinda
> like what is different between the two, pitfalls for perl programmers
> and what not.[/color]

http://www.hackdiary.com/slides/lpw2004/
http://starship.python.net/crew/aahz/OSCON2002/
http://mail.python.org/pipermail/pyt...er/241757.html
http://pleac.sourceforge.net/

Google is your friend, as usual...

Note that, apart from the Perl/Python diffs, Python has some (few)
gotchas, one of them being the difference between mutable and immutable
objects.
[color=blue]
> Another question is, if I do this where can I put the results?
> As far as I know python has no "CPAN".[/color]
http://www.python.org/pypi/
[color=blue]
> Thanks in advance.[/color]

HTH, and welcome on board.

PS: please don't consider my sig as representative of a good Python
coding style !-)

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xiludom.gro'.split('@')])"
  #3  
Old July 19th, 2005, 01:00 AM
Ivan Van Laningham
Guest
 
Posts: n/a
Default Re: Converting a perl module to a python module would it be worthit?

Hi All--

bruno modulix wrote:[color=blue]
>
> Mothra wrote:[color=green]
> > Hi All,
> >
> > I am the current author of the Astro-Sunrise perl module
> > http://search.cpan.org/~rkhill/Astro....91/Sunrise.pm
> > and was wondering if it would be worth while to convert it to python.[/color]
>
> Only you and your module's users may tell...
>[/color]

I'd use it.
[color=blue][color=green]
> > First off, I have never programmed in python. I would like to use
> > this project to learn python.[/color]
>
> Well, this might be an answer to your first question !-)
>[/color]

If you can get your mind off the @#)*&^@#!!&-ing Perl syntax, you'll be
fine;-)
[color=blue][color=green]
> > Another question is, if I do this where can I put the results?
> > As far as I know python has no "CPAN".[/color]
> http://www.python.org/pypi/
>[/color]

They're working on the Python version of CPAN, but it's taking a long
time. I think they started in 1998 or so? Haven't kept up, so I have
no idea what's taking so long. I'm sure someone more knowledgeable than
me will come along and set us straight.

Metta,
Ivan
----------------------------------------------
Ivan Van Laningham
God N Locomotive Works
http://www.andi-holmes.com/
http://www.foretec.com/python/worksh...oceedings.html
Army Signal Corps: Cu Chi, Class of '70
Author: Teach Yourself Python in 24 Hours
  #4  
Old July 19th, 2005, 01:00 AM
Mothra
Guest
 
Posts: n/a
Default Re: Converting a perl module to a python module would it be worthit?


"Ivan Van Laningham" <ivanlan@pauahtun.org> wrote in message
news:mailman.1908.1113491570.1799.python-list@python.org...[color=blue]
> Hi All--
>
> bruno modulix wrote:[color=green]
> >
> > Mothra wrote:[color=darkred]
> > > Hi All,
> > >
> > > I am the current author of the Astro-Sunrise perl module
> > > http://search.cpan.org/~rkhill/Astro....91/Sunrise.pm
> > > and was wondering if it would be worth while to convert it to python.[/color]
> >
> > Only you and your module's users may tell...
> >[/color]
>
> I'd use it.[/color]

I guess I spoke to soon
http://kortis.to/radix/python/code/Sun.py

This was from the same source I used to create ny module.
[color=blue]
>[color=green][color=darkred]
> > > First off, I have never programmed in python. I would like to use
> > > this project to learn python.[/color]
> >
> > Well, this might be an answer to your first question !-)
> >[/color]
>
> If you can get your mind off the @#)*&^@#!!&-ing Perl syntax, you'll be
> fine;-)
>[color=green][color=darkred]
> > > Another question is, if I do this where can I put the results?
> > > As far as I know python has no "CPAN".[/color]
> > http://www.python.org/pypi/
> >[/color]
>
> They're working on the Python version of CPAN, but it's taking a long
> time. I think they started in 1998 or so? Haven't kept up, so I have
> no idea what's taking so long. I'm sure someone more knowledgeable than
> me will come along and set us straight.
>[/color]
I checked out the above link (thanks!!) I need to look deeper
at the docs for creating a "module"

Thanks all for the responses!!

Mothra


  #5  
Old July 19th, 2005, 01:00 AM
Bruno Desthuilliers
Guest
 
Posts: n/a
Default Re: Converting a perl module to a python module would it be worthit?

Mothra a écrit :
(snip)
[color=blue]
> I checked out the above link (thanks!!) I need to look deeper
> at the docs for creating a "module"[/color]

Well, start with wrting the code - you'll take care of
how-to-distribute-it later.
[color=blue]
> Thanks all for the responses!![/color]

You're welcome.
  #6  
Old July 19th, 2005, 01:01 AM
Dennis Lee Bieber
Guest
 
Posts: n/a
Default Re: Converting a perl module to a python module would it be worth it?

On Thu, 14 Apr 2005 07:25:26 -0700, "Mothra" <mothra@nowhereatall.com>
declaimed the following in comp.lang.python:

[color=blue]
> this project to learn python. I was wondering if there was a
> "How to program python for perl programmers" Kinda
> like what is different between the two, pitfalls for perl programmers
> and what not.[/color]

Out of print, but maybe available used...

http://www.amazon.com/exec/obidos/tg...glance&s=books

--[color=blue]
> ================================================== ============ <
> wlfraed@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
> wulfraed@dm.net | Bestiaria Support Staff <
> ================================================== ============ <
> Home Page: <http://www.dm.net/~wulfraed/> <
> Overflow Page: <http://wlfraed.home.netcom.com/> <[/color]
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles