--
Aldo Cortesi
M: +61 419 492 863
P: +61 1300 887 007
W: www.nullcube.com
--
http://mail.python.org/mailman/listinfo/python-list
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
--
Aldo Cortesi
M: +61 419 492 863
P: +61 1300 887 007
W: www.nullcube.com
--
http://mail.python.org/mailman/listinfo/python-list
.
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
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
. 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
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
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
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
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
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
, 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
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
:
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
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
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
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
,
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
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
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
, 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
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
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
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
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
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
(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
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
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
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
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
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
--
Aldo Cortesi
[EMAIL PROTECTED]
http://www.nullcube.com
Off: (02) 9283 1131
Mob: 0419 492 863
--
http://mail.python.org/mailman/listinfo/python-list
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
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
35 matches
Mail list logo