If you split your code into functions (what you should really do), you can use a simple unit-testing like setup: make a caller script for every function, so you can test them separately.<br><br><div><span class="gmail_quote">On 8/4/08, <b class="gmail_sendername"><a href="mailto:kpierce8@gmail.com">kpierce8@gmail.com</a></b> <<a href="mailto:kpierce8@gmail.com">kpierce8@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
I'm a novice developer at best and often work with the R statistical<br> programming language. I use an editor called TINN-R which allows me to<br> write a script, then highlight a few lines and send them to the<br> interpreter. I am using pythonwin and it lacks this funtionality (that<br>
I can tell) and when I copy and paste lines into the interpreter only<br> the first line is evaluated and the rest appears as returned text.<br><br> Is there an editor that allows me to send a few lines out of many<br> lines of code at a time?<br>
<br> or<br><br> How does one check small blocks of code without typing them each time,<br> running an entire script (with other code) or creating a small script<br> for every code block?<br><br> For example say lines 1-100 work fine and now I'm working on lines<br>
101-105. Should I create a small script with just those lines?<br><br> Thanks for any advice<br><br>--<br> <a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Sincerely yours,<br>Olexandr Melnyk<br><a href="http://omelnyk.net/">http://omelnyk.net/</a>