Forum: Python Jan 3rd, 2009 |
| Replies: 9 Views: 580 >So the difference is only one movl instruction.
cmpl $4, -8(%ebp) is not the same that cmpl $4, %eax
jle .L3 in not the same that jbe .L3
movl -8(%ebp), %eax is in a... |
Forum: Python Jan 3rd, 2009 |
| Replies: 18 Views: 1,081 >I have been afraid of Vim editor, due to NO-knowledge.
Practice will change that. Learn as you go according to your need. Vim has much to offer, but until you start using it, you'll will not know... |
Forum: Python Jan 3rd, 2009 |
| Replies: 9 Views: 580 The compiler doesn't miraculously change that expression into a constant. It evaluates each time through the loop. An unnecessary waste of CPU cycles when making a single call and keeping the value... |
Forum: Python Jan 3rd, 2009 |
| Replies: 9 Views: 580 "Beauty is only in the eye of the beholder".
Those that know, find a well written piece of code in C very motivating and easy to work with.
The comparison of languages as it has been described... |
Forum: Python Dec 30th, 2008 |
| Replies: 8 Views: 750 To RE or not to RE (http://www.youtube.com/watch?v=GR8t3mTovD8), that is the question.
Complimentary slides
(http://us.pycon.org/2008/conference/schedule/event/63/) |
Forum: Python Dec 28th, 2008 |
| Replies: 8 Views: 750 'Group: [0-9]\n{1}#.*$'
Setting aside the fact that that regex would not match any of the text you gave as an example, the key to understand your problem is .*$. That's a greedy "match regex", it... |
Forum: Python Dec 13th, 2008 |
| Replies: 3 Views: 1,088 >But i want to round the square-rooted numbers to about 6 digits e.g. 5.12345. How can this be done?
Take a look at round() |
Forum: Python Dec 13th, 2008 |
| Replies: 2 Views: 341 |
Forum: Python Oct 16th, 2008 |
| Replies: 7 Views: 778 >What does the ' \n' mean?
New line, or sometimes RETURN keyboard. |
Forum: Python Oct 14th, 2008 |
| Replies: 2 Views: 2,325 http://mail.python.org/pipermail/python-list/2005-March/311942.html |
Forum: Python Oct 1st, 2008 |
| Replies: 4 Views: 875 Handling command line arguments (http://www.faqs.org/docs/diveintopython/kgp_commandline.html)
Maybe that would help? |
Forum: Python Oct 1st, 2008 |
| Replies: 5 Views: 1,938 Regex it is just that, regular expression (http://www.regular-expressions.info/tutorial.html). A pattern describing some text. |
Forum: Python Aug 17th, 2008 |
| Replies: 10 Views: 1,120 The standard C functions strlen() and strcpy() require the inclusion of the header file string.h. Furthermore there was not need to add the extra code: strcpy(text, "Spell this string forward then... |
Forum: Python Mar 31st, 2008 |
| Replies: 4 Views: 9,589 print "%-20s %4d" % ("John Smith",107)
% Is the conversion specifier. It tells print that what it follows is the formula you want for displaying the data. As part of that formula you have ( - )... |