Tim Chase wrote:
>> Is there a problem with the Python and wxPython web sites?
>> I cannot seem to get them up
>
> Sounds like someone needs some pyagra...
>
> (grins, ducks, and runs)
>
Interesting. I thought at first it was a problem with Python's sites...
but I got through to the Python sit
Alright... I am attempting to find a way to parse ANSI text from a
telnet application. However, I am experiencing a bit of trouble.
What I want to do is have all ANSI sequences _removed_ from the output,
save for those that manage color codes or text presentation (in short,
the ones that are ESC[
Jean-Paul Calderone wrote:
> On Sun, 22 Oct 2006 00:34:14 -0400, "Michael B. Trausch"
> wrote:
>> Alright... I am attempting to find a way to parse ANSI text from a
>> telnet application. However, I am experiencing a bit of trouble.
>>
>> What I want to
Frederic Rentsch wrote:
> Michael B. Trausch wrote:
>> Alright... I am attempting to find a way to parse ANSI text from a
>> telnet application. However, I am experiencing a bit of trouble.
>>
[snip]
>
> *I have no experience with reading from TCP/IP. But looking at y
Is there a way to debug scripts that cause segmentation faults? I can
do a backtrace in gdb on Python, but that doesn't really help me all
that much since, well, it has nothing to do with my script... :-P
Any ideas?
Thanks,
Mike
--
http://mail.python.org/mailman/listinfo/python-
Jean-Paul Calderone wrote:
> On Sun, 22 Oct 2006 00:34:14 -0400, "Michael B. Trausch"
> wrote:
>> Alright... I am attempting to find a way to parse ANSI text from a
>> telnet application. However, I am experiencing a bit of trouble.
>>
>> What I want to
I am having a little bit of trouble figuring out what to do about a
problem that I am having with the program I am working with.
I had it working yesterday, and up through till this morning. I hadn't
thought about putting it in version control until now, so whatever it
was I did, I can't just hit
Kenneth McDonald wrote:
>
> With the most recent edition of PyDev, I find Eclipse works quite well
> for me.
>
Since you mentioned it, I have a question that searching around and
poking around has not solved for me, yet.
Do you have auto-completion working with your setup? It does not seem
to w
olive wrote:
>
> Did you try to set your PYTHONPATH properly with the same content in
> both central AND project preferences ?
>
Yep. Still does it. And the kicker is, that it does it with things
that it shouldn't have to wonder terribly much about -- classes that I
have custom-built, where it
John Salerno wrote:
> def create_sql_script(self):
> try:
> with open('labtables.sql') as sql_script:
> return sql_script.read()
> except IOError:
> wx.MessageBox('Could not locate the file "labtables.sql"',
> 'Fi
Klaas wrote:
> Michael B. Trausch wrote:
>> Is there a way to debug scripts that cause segmentation faults? I can
>> do a backtrace in gdb on Python, but that doesn't really help me all
>> that much since, well, it has nothing to do with my script... :-P
>
> Y
Alright, I seem to be at a loss for what I am looking for, and I am not
even really all that sure if it is possible or not. I found the 'pdb'
debugger, but I was wondering if there was something that would trace or
log the order of line execution for a multi-module Python program. I am
having a l
Jean-Paul Calderone wrote:
>
> In order of importance:
>
> 1) Write unit tests for your code. Keep writing unit tests until you have
> some that _don't pass_. Then fix your code so that they do. When you do
> further development, write the tests first, then implement the code that
> makes them
Ben Finney wrote:
> Jean-Paul Calderone <[EMAIL PROTECTED]> writes:
>
>> 1) Write unit tests for your code. Keep writing unit tests until
>> you have some that _don't pass_. Then fix your code so that they
>> do. When you do further development, write the tests first, then
>> implement the code
Stephan Kuhagen wrote:
> "Michael B. Trausch" <"mike$#at^&nospam!%trauschus"> wrote:
>
>> Basically, is there something that will log every line of Python code
>> executed, in its order of execution, to a text file so that I can see
>> what is
olive wrote:
> Michael B. Trausch wrote:
>
>> Yep. Still does it.
>
> I'm running PyDev 1.2.4 without completion problem so far.
>
> Are you up to date ?
>
> Maybe you should install the latest from scratch.
>
Yep, I am up to date. As I said, I
Éric Daigneault wrote:
>
> I run the latest pydev on both windows and linux... The setup is
> excatcly the same (on the eclipse, path setup and all)
> My windows setup is much better at auto-complete that the linux
> setup... In linux, other than with self, I seldom get auto complete on
> other
Hello, everyone.
I am doing some searching and winding up a little bit confused. I have
a MUD client that I am writing using Python and wxWidgets, as some of
you may remember. What I am looking to do now, is add "trigger"
functionality to it. In essence, the application receives text from the
g
I was wondering if anyone has had any experience with this. Someone I
know is trying to move away from Microsoft Works, and I am trying to
look into a solution that would convert their data in a lossless fashion
to a more modern format. The database has more than 65K rows, so
converting it to be
GISDude wrote:
> Mike,
> I totally forgot that MS Works was out there. Haven't used that one in
> about 6 or 7 years. Honestly, your best bet is to convert to .csv or
> some delimited .txt file. Once that is done, all your rows/columns will
> be "nice and neat" .
> Once that is done, (and since you
Larry Bates wrote:
>
> MS ships ODBC interface to xBase databases in all versions of Windows.
> You don't need Access. Just create DSN to your exported dBase database
> and MS Word, MS Excel, and any other ODBC aware product can read the
> data. If the data size is large or if you want to move to
t" entry from the list above; but I can only retrieve it if I know what it contains (e.g., x.index(('host', 'dragonstone.org'))).
Is there a better way to do this than a construct similar the following?
for key, value in x:
if key == 'host':
print value
Thanks
? For example, my laptop's IP address is 192.168.0.101, and I want to bind a server to that address. Is there a clean way of doing so that will work, for example, when I move the code to my server (which obviously doesn't have the same IP address)?
Thanks in advance.
-- Mike
--
). For example, I have a ZIP code database that can do some processing on its numbers, and the numbers are stored as floating point values (exactly) but Python doesn't get them right; so the Decimal() thing would be needed. *shrugs*
Thanks a bunch,
Mike
--
Michael B. Trausch
like, any error gets
massively compounded before a final result is evident. Thus, the
numbers must be exact. That's why I originally asked if Decimal() can
be used instead. Since it cannot, that's fine, I will just use
Decimal(), assuming that it supports everything that I will need t
0 =
11 without any more floating point? It is a whole number.
Perhaps you should not make assumptions; I am sure that you have heard
what they do at some point before. While *some* of the error doesn't
propagate as expected (which is actually a problem in itself—equations
no longer make
Peter Wang wrote:
> Michele Simionato wrote:
>> The subject says it all, I would like a script to act differently when
>> called as
>> $ python script.py and when called as $ python -i script.py. I looked
>> at the sys module
>> but I don't see a way to retrieve the command line flags, where should
rogram when it is not redirected. Why is Python treating
the situation differently when the output is redirected? This failure
occurs for all redirection, by the way: >, >>, 1>2, pipes, and so forth.
Any ideas?
— Mike
--
Michael B. Trausch
[E
one,
though I have found a great many posts on this mailing list regarding
issues in the past. It doesn't look like translating the file to base64
is an option for me.
— Mike
--
Michael B. Trausch
[EMAIL PROTECTED]
Phone: (404) 592-5746
Jab
ghtly modified) version of the recipe
provided from the ASPN Python Cookbook.
In short: How do I create a string that contains raw binary content
without Python caring? Is that possible?
Thanks,
Mike
> --
> Gabriel Genellina
>
--
Michael B. Trausch
30 matches
Mail list logo