python from within irb :)

B

Brad Tilley

Welcome to Darwin!
my-mac-mini:~ rbt$ irb
irb(main):001:0> puts RUBY_PLATFORM
powerpc-darwin8.0
=> nil
irb(main):002:0> system('python')
Python 2.3.5 (#1, Mar 20 2005, 20:38:20)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
Type "help", "copyright", "credits" or "license" for more information.=> true
irb(main):003:0>
 
M

MonkeeSage

Brad said:

Yeah, works the other way too...

$ python
Python 2.5 (r25:51908, Sep 19 2006, 22:49:50)
[GCC 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.irb(main):001:0> RUBY_PLATFORM
i686-linux
irb(main):002:0> exit
0

Regards,
Jordan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,213
Messages
2,571,106
Members
47,699
Latest member
lovelybaghel

Latest Threads

Top