I now and then come across Python and Perl programs with permitting
licenses that seemingly contain code I would like to assimilate. As
far as Perl is concerned this is no problem, my knowledge of Perl is
good enough (actually the development of rubric started with an
assimilation of a Perl program
The problem with Python is that Python’s syntax looks awful to me
and don’t like the idea of learn more Python than necessary for
assimilation. Is there an online Python tutorial that just describes
the skeleton and what which function is good for?
Josef ‘Jupp’ SCHUGT
···
– http://oss.erdfunkstelle.de/ruby/ - German comp.lang.ruby-FAQ http://rubyforge.org/users/jupp/ - Ruby projects at Rubyforge
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Germany 2004: To boldly spy where no GESTAPO / STASI has spied before
The problem with Python is that Python’s syntax looks awful to me
and don’t like the idea of learn more Python than necessary for
assimilation. Is there an online Python tutorial that just describes
the skeleton and what which function is good for?
For a very straight-forward example, you might like to have
a look at the html-parser library which is a line by line
translation of the similarly-named module bundled with the
python standard library.
il Thu, 5 Feb 2004 10:39:37 +0900, “Josef ‘Jupp’ SCHUGT” jupp@gmx.de > ha scritto::
The problem with Python is that Python’s syntax looks awful to me
and don’t like the idea of learn more Python than necessary for
assimilation. Is there an online Python tutorial that just describes
the skeleton and what which function is good for?
(btw, why the hell list.sort() in python returns ‘None’ ?)
Now that we have alot of the standard docs in ri format available in
general do we have any integration between ri and irb? That would be
nice to be able to easily call them from within irb. I mean I suppose
you could just call ri Array or whatever, but nonetheless it seems
some integration is possible.
Now that we have alot of the standard docs in ri format available in
general do we have any integration between ri and irb? That would be
nice to be able to easily call them from within irb. I mean I suppose
you could just call ri Array or whatever, but nonetheless it seems
some integration is possible.
Now that we have alot of the standard docs in ri format available in
general do we have any integration between ri and irb? That would be
nice to be able to easily call them from within irb. I mean I suppose
you could just call ri Array or whatever, but nonetheless it seems
some integration is possible.
Charles Comstock
My wish …
module RDE #ruby development environment
rde = %w(irb gems ri rdoc )
end
Now that we have alot of the standard docs in ri format available in
general do we have any integration between ri and irb? That would be
nice to be able to easily call them from within irb. I mean I suppose
you could just call ri Array or whatever, but nonetheless it seems
some integration is possible.
Put something this in your .irbrc file:
==== .irbrc ====
def ri arg
puts ri #{arg}
end
class Module
def ri(meth=nil)
if meth
if instance_methods(false).include? meth.to_s
puts ri #{self}##{meth}
else
super
end
else
puts ri #{self}
end
end
end
···
===============
Then you can do:
String.ri
ri String # same as above
String.ri ‘reverse’
ri ‘File.new’
Now that we have alot of the standard docs in ri format available in
general do we have any integration between ri and irb? That would be
nice to be able to easily call them from within irb. I mean I suppose
you could just call ri Array or whatever, but nonetheless it seems
some integration is possible.
Put something this in your .irbrc file:
==== .irbrc ====
def ri arg
puts ri #{arg}
end
class Module
def ri(meth=nil)
if meth
if instance_methods(false).include? meth.to_s
puts ri #{self}##{meth}
else
super
end
else
puts ri #{self}
end
end
end
Then you can do:
String.ri
ri String # same as above
String.ri ‘reverse’
ri ‘File.new’