Re: Adherence to PEP 8 for published code (was: ANN: pry unit testing framework)

2008-04-07 Thread Aldo Cortesi
-- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-06 Thread Aldo Cortesi
experiment with extending Pry to gather and run doctests and unittests. At this stage, however, I don't believe the (significant) effort would be worth it. Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python

Re: ANN: pry unit testing framework

2008-04-06 Thread Aldo Cortesi
-- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-06 Thread Aldo Cortesi
. Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-06 Thread Aldo Cortesi
swanning about in our flying cars and having holidays on Mars to care. ;) So, no, I don't think inclusion in the standard library should be a universal ambition, and it's certainly not one I have for Pry. Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W

Re: ANN: pry unit testing framework

2008-04-05 Thread Aldo Cortesi
. If Pry itself is not to your taste, there are other excellent test frameworks like py.test that have also chosen not to mindlessly duplicate all of unittest's inadequacies. Broaden your horizons and explore some of these - your code will thank you for it... Regards, Aldo -- Aldo Cortesi M: +61

Re: ANN: pry unit testing framework

2008-04-05 Thread Aldo Cortesi
conventions i.e. for bike shading reasons Do you mean bike shedding, perhaps? At any rate, your impression is mostly incorrect. Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-05 Thread Aldo Cortesi
think. Regards, Aldo -- Aldo Cortesi Managing Director M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-05 Thread Aldo Cortesi
anyway, and you should feel free to consider competing suites like test.py and Pry. Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-05 Thread Aldo Cortesi
and that was precisely the point you were trying to make... in which case I apologise and you can ignore this... ;) Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-05 Thread Aldo Cortesi
you that I do in fact know what I'm talking about, and leave it at that. Never fear - I will personally ensure that Pry's vast, fanatical legion of goose-stepping users does not force you to use it if you don't want to... Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007

Re: ANN: pry unit testing framework

2008-04-05 Thread Aldo Cortesi
, I get to make that choice, not you, and the type of feeble, offensive argument you've provided is unlikely to change my mind. Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-05 Thread Aldo Cortesi
are temporarily out of line with the tone of the list. A more impartial re-reading of the debate so far might make you judge my final, admittedly angry, response more fairly. Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org

Re: ANN: pry unit testing framework

2008-04-04 Thread Aldo Cortesi
: http://dev.nullcube.com/download/pry-0.2.1.tar.gz Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

ANN: cubictemp template engine

2008-04-01 Thread Aldo Cortesi
templating systems out there. Cubictemp proves that a templating sytem can be elegant, powerful, fast and remain compact. Download: http://dev.nullcube.com Manual: http://dev.nullcube.com/doc/cubictemp/index.html -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com

ANN: pry unit testing framework

2008-04-01 Thread Aldo Cortesi
fixture management * No implicit instantiation of test suits * Powerful command-line interface Download: http://dev.nullcube.com Manual: http://dev.nullcube.com/doc/pry/index.html -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman

Re: ANN: cubictemp template engine

2008-04-01 Thread Aldo Cortesi
a Template once and use it many times Cubictemp should be very fast. Regards, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pry unit testing framework

2008-04-01 Thread Aldo Cortesi
, Aldo -- Aldo Cortesi M: +61 419 492 863 P: +61 1300 887 007 W: www.nullcube.com -- http://mail.python.org/mailman/listinfo/python-list

[issue1454] Generators break trace functionality

2007-11-17 Thread Aldo Cortesi
Aldo Cortesi added the comment: Drat, you're right. This was fixed a few days ago by Amaury in http://svn.python.org/view?rev=58963view=rev Another example of confluence - this bug has existed for a very long time. __ Tracker [EMAIL PROTECTED] http

[issue1454] Generators break trace functionality

2007-11-16 Thread Aldo Cortesi
New submission from Aldo Cortesi: I rely heavily on a code coverage analysis engine I developed, and a bug in Python's trace functionality has been bothering me for years. Today I snapped, and finally tracked it down to a minimal test case. To see the problem, play with the following code

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Aldo Cortesi
, u\u2160)) print u\u2160 print I So, a round 0 for reading comprehension this lesson, I'm afraid. Better luck next time. Regards, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Mob: 0419 492 863 -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Aldo Cortesi
that one could homogenize characters so that everything that looks the same has the same meaning. Fiddle around with your fontsets a bit - you only have to find one combination where the two glyps look the same to prove my case... Regards, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Aldo Cortesi
here means nothing more nor less than a literal reading suggests. Taking these sentences to be an argument for a slip-shod, careless approach to code, as Steven did, is surely perverse. Regards, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Mob: 0419 492 863 -- http

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-13 Thread Aldo Cortesi
will accidentally introduce mistakes into their code because of this. - would you use them if it was possible to do so? in what cases? No. Regards, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Mob: 0419 492 863 -- http://mail.python.org/mailman/listinfo/python

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-13 Thread Aldo Cortesi
that we'll give the same answer we've always given for this problem: unit tests, pylint and pychecker. A typo that can't be detected visually is fundamentally different problem from an ASCII typo, as many people in this thread have pointed out. Regards, Aldo -- Aldo Cortesi [EMAIL

Re: Loop exception catching

2006-01-24 Thread Aldo Cortesi
without evaluating it as a Python expression, and will bring order and predictability to whatever it is you want to do. Cheers, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Mob: 0419 492 863 -- http://mail.python.org/mailman/listinfo/python-list

Re: Loop exception catching

2006-01-23 Thread Aldo Cortesi
(which should be avoided at all costs), here's one way to do what you want: while 1: try: x = input( ) break except SyntaxError: print explain the problem here Cheers, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Mob: 0419 492 863 -- http

Re: What am i doing Wrong?

2005-09-21 Thread Aldo Cortesi
want something like: def __init__(self, folders = None): if folders is None: self.folders = [] Cheers, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Off: (02) 9283 1131 Mob: 0419 492 863 -- http://mail.python.org/mailman/listinfo

Re: Detailed traceback

2005-09-12 Thread Aldo Cortesi
the actual text of the line, you can simply read the information from the file. Cheers, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Off: (02) 9283 1131 Mob: 0419 492 863 -- http://mail.python.org/mailman/listinfo/python-list

Re: Function returns a function

2005-09-06 Thread Aldo Cortesi
curiosity handily. There is also a neat recipe for inspecting the values kept in the func_closure attribute of function objects directly: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/439096 Cheers, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Off: (02) 9283 1131

Re: ~ after script filename?

2005-09-06 Thread Aldo Cortesi
anything to do with Python. I'm pretty sure you'll find that the file is created by your editor as a backup or a running store of some kind. Try just editing a random non-python file with the same editor, and see if you find the same thing... Cheers, Aldo -- Aldo Cortesi [EMAIL PROTECTED

Re: Which is faster?

2005-01-26 Thread Aldo Cortesi
as-is. The string access method will always chop exactly one character off the end. Even though the results for your specific input are the same, rstrip is a more complex, and therefore slower, beast. Cheers, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Off: (02) 9283

Re: inbuilt function buffer()

2005-01-18 Thread Aldo Cortesi
-- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Off: (02) 9283 1131 Mob: 0419 492 863 -- http://mail.python.org/mailman/listinfo/python-list

Re: Port blocking

2005-01-10 Thread Aldo Cortesi
be logged, monitored, tracked, and controlled. This is the strategy I recommend to my clients - the only sensible one in a world of spyware, worms, insecure web browsers and corporate espionage... Cheers, Aldo -- Aldo Cortesi [EMAIL PROTECTED] http://www.nullcube.com Off: (02) 9283 1131 Mob

Re: file.readlines() - gives me error (bad file descriptor)

2005-01-05 Thread Aldo Cortesi
it in read mode (r). Also, if the file you're dealing with really is a log file, you probably want don't want to open it in write mode for writing information either, since that will truncate the file and lose previously logged information. Try append mode (a) instead. Cheers, Aldo -- Aldo Cortesi