Hi,
I'm writing a couple python applications that use the serial port
(RS-232) quite extensively. Is there any way I can monitor all activity
on the serial port and have it printed as the transactions occur? I'm
trying to reverse engineer a microcontroller serial routine and I'd
like to see any
I'm using linux.
--
http://mail.python.org/mailman/listinfo/python-list
I want to be able to cycle through an array and print something in
hexadecimal. Such as this
thisArray = ["AF","0F","5F"]
for x in range(len(thisArray)):
print "\x" + thisArray[x]
However python chokes on the escaped identifier, how can I get around
this?
Thanks!
Regards,
Ken
--
http
All,
Sorry for the vague topic, but I really didn't know how to
describe what I want to do. I'd like to almost do a traceback of my
code for debugging and I thought this would be a really cool way to do
it if possible.
What I'd like to do, is define a base class. This base class would
have a
All,
I apologize if this is a commonly asked question, but I didn't
find anything that answered my question while searching.
So what I have right now is a few packages that contain some commonly
used functions and another package that contains all of my custom
error classes. I want these erro
> Ah, yes, a couple of things:
> - avoid the 'one-class-per-file' syndrom. It's perfectly ok to have tens
Yes but i find it hard to edit classes easily when I have more than
one class per file.
Regards,
Ken
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 7, 2:04 pm, Wildemar Wildenburger
<[EMAIL PROTECTED]> wrote:
> Paul Rudin wrote:
> > xkenneth <[EMAIL PROTECTED]> writes:
>
> >>> Ah, yes, a couple of things:
> >>> - avoid the 'one-class-per-file' syndrom. It's perfectly ok
On Sep 8, 3:35 pm, David <[EMAIL PROTECTED]> wrote:
> > How do import statements that are declared at the top of a python
> > module work?
>
> http://docs.python.org/tut/node8.html
On Sat, 08 Sep 2007 12:42:19 -0700, xkenneth wrote:
> How do import statements that a
So i've been trying to set up a simple server and client through
XMLRPC in python.
Here's my code:
SERVER
import SimpleXMLRPCServer
class DataServer:
def __init__(self):
pass
def test(self,test):
self.this = test
def show(self):
print self.this
server = S
There are built in tools for the DOM in Python. Also I'm using OSX to
do XML parsing but I'm using the tools available from 4suite.
On Sep 12, 2:21 pm, [EMAIL PROTECTED] wrote:
> Just curious if there's any python xml parsing tools built into the Mac (OS
> 10.4.10 Tiger)? If so,
> could anyone
>
On Sep 28, 12:30 pm, xkenneth <[EMAIL PROTECTED]> wrote:
> Looking to do something similair. I'm working with alot of timestamps
> and if they're within a couple seconds I need them to be indexed and
> removed from a list.
> Is there any possible way to index with a
Looking to do something similair. I'm working with alot of timestamps
and if they're within a couple seconds I need them to be indexed and
removed from a list.
Is there any possible way to index with a custom cmp() function?
I assume it would be something like...
list.index(something,mycmp)
Than
Hi,
I'm working on developing an XML-RPC interface from LabVIEW to
python and I would really like to see how python is forming it's XML-
RPC requests/responses. Is there any way I can force these to a log or
print them to the screen? Thanks.
Regards,
Ken
--
http://mail.python.org/mailman/li
All,
Just a quick question. I want to be able to have a data structure
that organizes data (timestamps I'm working with) sequentially, so
that i can easily retrieve the first x amount of timeStamps without
iterating over a list. My thought was to use a binary tree, am i
overthinking the problem
Message should have read:
Hi All,
I'll shortly be distributing a number of python applications that
use proprietary source code. The software is part of a much larger
system and it
will need to be distributed securely. How can i achieve this?
Regards,
Ken
--
http://mail.python.org/mailman/l
Hi All,
I'll shortly be distributing a number of python applications that
use proprietary. The software is part of a much larger system and it
will need to be distributed securely. How can i achieve this?
Regards,
Ken
--
http://mail.python.org/mailman/listinfo/python-list
All,
I seem to be having problems with running my python code, written
on a Mac, on Linux and Windows boxes. It seems like the problem has to
do with tab indention, particularly I've noticed that my code will
completely ignore try statements. Has anyone had a similar problem?
Regards,
Ken
--
Is it possible to use optional delimiters other than tab and colons?
For example:
if this==1 {
print this
}
And is there an alternate delimiter for statements other than the
newline?
print this;print that; #for example
I know I'll probably get yelled at for this question,
Hi All,
So i'm working with the WITSML standard, which is a pretty
massive standard defined in XML for the transfer of oilfield data.
There are a ton of XSD files for defining and checking all data in the
WITSML format. I'd like to be able to easily create XML based on the
types defined by t
On Jan 3, 1:55 am, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> paul wrote:
> >> Can i create python classes based off the XSD files? What else can I
> >> do with the XSD files?
> > This might be worth looking at:http://www.rexx.com/~dkuhlman/#generateDS
>
> If it's really such a complex XML language
All,
I'm trying to build a simple web application, but i still need
things like sessions and Ajax. I tried to create a Zope product, but I
honestly can't think of anything more cryptic. I really don't enjoy
learning all of the "magic code" and debugging an environment I have
to study to know
> My question is: "What makes you think that there is a royal road to web
> development?"
I don't, I was just hoping there was something I was missing, or more
simple than anything I'd experienced.
>
> You have already chosen some technology (Ajax and ZODB) without any
> apparent justification.
I'
On Feb 5, 9:33 pm, xkenneth <[EMAIL PROTECTED]> wrote:
> > My question is: "What makes you think that there is a royal road to web
> > development?"
>
> I don't, I was just hoping there was something I was missing, or more
> simple than anything I'd
Does your python module have to exist in the path in order for intra-
package references to work?
Regards,
Kenneth Miller
--
http://mail.python.org/mailman/listinfo/python-list
Might be a silly question, but is it possible to selectively subclass,
IE subclass is a supporting module is present and not otherwise.
Regards,
Kenneth Miller
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 9, 4:38 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> xkenneth schrieb:
>
> > Might be a silly question, but is it possible to selectively subclass,
> > IE subclass is a supporting module is present and not otherwise.
>
> Yes, something like t
Is the max file size a relevant issue in python anymore? I know OS X
has a max file size of 8 exabytes and I'm not sure about the latest
version of Ubuntu. Does python have an independent file size limit, or
is it dependent upon the OS it was compiled on?
Regards,
Kenneth Miller
--
http://mail.py
Hi All,
Quick question. I've got an XML schema file (XSD) that I've
written, that works fine when my data is present as an XML file.
(Served out by apache2.) Now when I call python as a cgi script, and
tell it print out all of the same XML, also served up by apache2, the
XSD is not applied. Doe
On Mar 12, 6:32 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> xkenneth wrote:
> > Hi All,
>
> > Quick question. I've got an XML schema file (XSD) that I've
> > written, that works fine when my data is present as an XML file.
> >
On Mar 12, 11:58 am, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> xkenneth wrote:
> > On Mar 12, 6:32 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> >> xkenneth wrote:
> >>> Hi All,
> >>> Quick question. I've got an XML sc
All,
Can I execute XPath queries on ElementTree objects ignoring the
namespace? IE './node' instead of './{http://namespace.com}node'.
Is there any support for XPath and Minidom?
Regards,
Ken
--
http://mail.python.org/mailman/listinfo/python-list
All,
I'm in Houston/College Station/Austin quite often and I'm looking
for other coders to do some joint projects with, share experiences, or
do some sprints. Let me know if you're interested.
Regards,
Ken
--
http://mail.python.org/mailman/listinfo/python-list
All,
So i'm just about to undertake my first real open source project,
and I'm looking for a bit of advice. There's an oilfield standard
called WITSML (Wellsite Information Transfer Standard Markup Language
- witsml.org), it's basically a collection of XML schemas and a spec
for an client-serve
Does anyone know of a standard inter-language syntax for describing
scientific/mathematical equations? Preferably something with parsers
in multiple libraries.
Regards,
Kenneth Miller
--
http://mail.python.org/mailman/listinfo/python-list
What does everyone consider essential for emacs python dev?
Regards,
Ken
--
http://mail.python.org/mailman/listinfo/python-list
So i generally write quite a few classes, and in most I need to
overload the == operator.
If i have two classes, like below:
Class A:
attribute a
attribute b
Class B:
attribute a
attribute c
So if I've overloaded their respective __eq__ functions, and I want to
test whether or not the individua
Yeah, this is what I'm talking about:
> def __eq__(self, other) :
> try :
> return <>
> except AttributeError:
> return False
That seems a bit nasty to me.
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 31, 3:42 pm, Amit Gupta <[EMAIL PROTECTED]> wrote:
> On Mar 31, 11:00 am, xkenneth <[EMAIL PROTECTED]> wrote:
>
> > Yeah, this is what I'm talking about:
>
> > > def __eq__(self, other) :
> > > try :
> > > return <>
All,
If anyone has any interest in developing a bit of code for
generating WITS and WITSML in python, then drop me a line. I've
started a project on google apps, "PyWITS", and I plan to support both
WITS and WITSML through a set of standard libraries. I would really
appreciate help from other
All,
I've just recently started fiddling with my Wiimote using python
and PyBluez. I'm interested particular in getting the position IR
sensor data out of the Wiimote, but I'd like to develop a library that
let's you access all of it easily in an OO manner. If anyone has any
interest in explo
All,
I've posted some slides on my blog (xkenneth.blogspot.com)
detailing some simple ways to describe GUI apps in python. Please let
me know what you think.
Regards,
Kenneth Miller
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I've been attempting to write a serial program in python. I talk to
a custom designed bit of hardware that sends me back groups that are 2
bytes in length. When i recieve them using either pySerial or USPP i'm
not sure how python interprets them. Both of the bytes should be
interpreted as o
doesnt look like you're passing any data to the print statement,
shouldn't it be something like
print '%d' % 4
output:
4\n
--
http://mail.python.org/mailman/listinfo/python-list
Why is 3500 | -67 equal to 3500 instead of -3567?
--
http://mail.python.org/mailman/listinfo/python-list
All,
I've started wrapping the DAQmx and other LabVIEW libraries for
python using ctypes. I really like doing some things in python and
other in LabVIEW, so I'd like to have the same functionality available
for both. I've hosted the tiniest bit of code (mostly just proof of
concept) on github
45 matches
Mail list logo