Commands for a breakpoint in .pdbrc

2010-01-05 Thread Pablo Torres N.
for the rest of the breakpoints, so I end up with them set but not their commands. What would be the correct way to do this? Is it even possible? Thanks a lot, Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python-list

Re: easy question, how to double a variable

2009-09-24 Thread Pablo Torres N.
On Sep 24, 5:51 am, Iain King iaink...@gmail.com wrote: On Sep 23, 7:36 pm, David C Ullrich dullr...@sprynet.com wrote: On Tue, 22 Sep 2009 02:34:53 +, Steven D'Aprano wrote: On Mon, 21 Sep 2009 13:50:23 -0500, David C Ullrich wrote: But you actually want to return twice the

Re: Why does extend() fail in this case, and what am I doing wrong?

2009-07-14 Thread Pablo Torres N.
Skype ID: SpaXe85 Email: cont...@xavierho.com Website: http://xavierho.com/ -- http://mail.python.org/mailman/listinfo/python-list -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python-list

Re: can i write a assemly language programs in python

2009-07-09 Thread Pablo Torres N.
that produces very nice assembly code ;-) So that is one answer to his question. You'll need to tell us what your real goal is. Definitely. tjr -- http://mail.python.org/mailman/listinfo/python-list -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie needs help

2009-07-07 Thread Pablo Torres N.
this one a try too: http://www.mikeash.com/getting_answers.html It doesn't talk down to you...as much :P -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python-list

Re: A Bug By Any Other Name ...

2009-07-06 Thread Pablo Torres N.
what you think it does, or an are you sure? exception.  :-) - Hendrik That would be even harder than adding a line to the docs. Besides, the problem that Mr. alex23 pointed: where do you stop? would really get out of hand. -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python

Re: Semi-Newbie needs a little help

2009-07-06 Thread Pablo Torres N.
more help from others in this list ;-) Also, I'd recommend limiting your line length to 80 chars, since lines are wrapped anyway. -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python-list

Re: How Python Implements long integer?

2009-07-05 Thread Pablo Torres N.
reading this file? I mean which function is the first? I don't really understand the question:  what do you mean by 'first'? It might help if you tell us what your aims are. I think he means the entry point, problem is that libraries have many. -- Pablo Torres N. -- http://mail.python.org

Re: Calling C or C++ Functions inside Python script

2009-07-04 Thread Pablo Torres N.
development tool that connects programs written in C and C++ with a variety of high-level programming languages. SWIG is used with different types of languages including common scripting languages such as Perl, PHP, Python, Tcl and Ruby. --- Pablo Torres N. -- http://mail.python.org/mailman/listinfo

Re: Clarity vs. code reuse/generality

2009-07-04 Thread Pablo Torres N.
://mail.python.org/mailman/listinfo/python-list But...if no code is generated for assertions on some occasions, then the parameters would go unchecked, potentially breaking your code in said occasions. -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sequence splitting

2009-07-03 Thread Pablo Torres N.
be judged objectively. -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python-list

Re: Clarity vs. code reuse/generality

2009-07-03 Thread Pablo Torres N.
, I'd let them to realize that a function is convenient, and base some of the grading in whether they wrote it or not. Just a thought. -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sequence splitting

2009-07-02 Thread Pablo Torres N.
that list more often than this one. -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sequence splitting

2009-07-02 Thread Pablo Torres N.
On Jul 2, 9:56 pm, schickb schi...@gmail.com wrote: I have fairly often found the need to split a sequence into two groups based on a function result. Much like the existing filter function, but returning a tuple of true, false sequences. In Python, something like: def split(seq, func=None):

Re: Sequence splitting

2009-07-02 Thread Pablo Torres N.
thing is kinda ugly, but I can't think of anything else. Also, is it ok to return lists? Py3k saw a lot of APIs changed to return iterables instead of lists, so maybe my function should have 'return t, f' as it's last statement. -- Pablo Torres N. -- http://mail.python.org/mailman/listinfo/python