I think you'd need to write a C++ class that has the methods you want to
implement in C++,
then wrap that with SWIG, then inherit from that, though multiple inheritance
if you also need functions from a base Python class.
The PyQt people use SIP I think, instead of SWIG, might be useful to look i
Bengt Richter wrote:
> On 18 Aug 2005 22:21:53 -0700, "Greg McIntyre" <[EMAIL PROTECTED]> wrote:
>
>
>>I have a Python snippet:
>>
>> f = open("blah.txt", "r")
>> while True:
>> c = f.read(1)
>> if c == '': break # EOF
>> # ... work on c
>>
>>Is some way to make this code more compact
Greg McIntyre wrote:
> I have a Python snippet:
>
> f = open("blah.txt", "r")
> while True:
> c = f.read(1)
> if c == '': break # EOF
That could read like this
if not c: break # EOF
# see below for comments on what is true/false
> # ... work on c
>
> Is some way to make th
Quoth "Greg McIntyre" <[EMAIL PROTECTED]>:
| I have a Python snippet:
|
| f = open("blah.txt", "r")
| while True:
| c = f.read(1)
| if c == '': break # EOF
| # ... work on c
|
| Is some way to make this code more compact and simple? It's a bit
| spaghetti.
Actually I'd make i
> I'm using Python version 2.2 - the SafeTransport class in it's xmlrpclib
> doesn't have a 'get_host_info' method. Which version were you referring
> to?
I was looking at the HEAD revision in CVS. That feature was apparently
released with Python 2.3. Still, httplib supports client certificates
Greg McIntyre wrote:
> I have a Python snippet:
>
> f = open("blah.txt", "r")
> while True:
> c = f.read(1)
> if c == '': break # EOF
> # ... work on c
>
> Is some way to make this code more compact and simple? It's a bit
> spaghetti.
That's not spaghetti. Not even close.
On 18 Aug 2005 22:21:53 -0700, "Greg McIntyre" <[EMAIL PROTECTED]> wrote:
>I have a Python snippet:
>
> f = open("blah.txt", "r")
> while True:
> c = f.read(1)
> if c == '': break # EOF
> # ... work on c
>
>Is some way to make this code more compact and simple? It's a bit
>spaghet
I have a Python snippet:
f = open("blah.txt", "r")
while True:
c = f.read(1)
if c == '': break # EOF
# ... work on c
Is some way to make this code more compact and simple? It's a bit
spaghetti.
This is what I would ideally like:
f = open("blah.txt", "r")
while c = f.re
Woa, if you don't mind my asking, why do you do a time-cache on your
messages?
--
http://mail.python.org/mailman/listinfo/python-list
> Firstly, to remove one possible source of confusion, change the name of
> your dictionary ... "mydict" or "fred" ... anything but "dict"
>
> Next, after you have created the dictionary and added items to it, do this:
> print len(fred)
> print len(fred.items())
> nitems = 0
> for k, v in fred.it
Steve Holden wrote:
> sys.path.append(r"C:\Temp")
In this case, do I need to save the refined path, i.e, the original
paths + the new path (r"C:\Temp"), by using some command in order to use
it permanently. if yes, it would be greatly appreciated to noitce the
correspoding command and the usage
Steve Young <[EMAIL PROTECTED]> writes:
> Hi, I am looking for something where I can go through
> a html page and make change the url's for all the
> links, images, href's, etc... easily. If anyone knows
> of something, please let me know. Thanks.
I've been doing a lot of that today. But the tool
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> My goal is very simple. Have a mechanism to create sparse files and
> modify them by writing arbitratry ranges of bytes at arbitrary offsets.
> I did get the information I want (xrange instead of range, and a simple
> way to generate 1Mb string in
"Szabolcs Nagy" <[EMAIL PROTECTED]> writes:
> time.time seems much better solution, but python manual sais: "not all
> systems provide time with a better precision than 1 second"
>
> Should i use time.clock or time.time to be more crossplatform?
> Is time.time ok for windows? (time()-time() != 0.0
On Thu, 18 Aug 2005 16:46:42 -0700, Robert Kern <[EMAIL PROTECTED]> wrote:
>Dan Sommers wrote:
>
>> Assuming you can fiddle with sys.path at the right times, you can call
>> an imported module anything you want:
>>
>> fix_sys_path_to_find_java_cmd_first()
>> import cmd as java_cmd
>>
Ben Finney wrote:
> Not using the built-in property type. Here is a recipe for a
> LateBindingProperty that does what you ask:
>
> Steven Bethard:
> "This recipe provides a LateBindingProperty callable which allows
> the getter and setter methods associated with the property to be
>
googleboy wrote:
> I've written a little script to parse a csv file then use seach/replace
> over a template to create a file for each line in the file. It pikes
> out when I call the function that parses the csv (read_revs). If I
> have inadvertantly left an extra comma or two in the comma field
[EMAIL PROTECTED] wrote:
> Robert Kern wrote:
>
>>Why not copy cmd.py into your package under a different name?
>
> It offends my sense of modularity. For the record, I'm trying to use
> pdb, the debugger, which in turn uses cmd. So it would be a matter of
> taking pdb.py and hacking it to import
Randy Bush wrote:
>for pKey, pVal in dict.iteritems():
> print \
> pKey[0], hash(pKey[0]), \
> pKey[1], hash(pKey[1]), \
> pKey[2], hash(pKey[2]), \
> "hash=", hash(pKey), \
> pVal[0], hash(pVal[0]), \
> pVal[1], hash(pVal[1])
>
> whe
On 2005-08-19, John Machin <[EMAIL PROTECTED]> wrote:
> The OP is reading raw output from a serial port. He's already said he's
> getting "funny ASCII characters". One gets the impression he thinks he
> needs to do bit-twiddling on *each* byte. Looks like he needs ord(), or
> (better) struct.un
Peter Decker wrote:
> Then start looking for telecommuting people. There are lots of us who
> can use work and have excellent telecommuting references, but who
> don't happen to live in a major metro area!
And then there's some in the Bay Area who wouldn't mind telecommuting,
either ... :-)
--
Grant Edwards wrote:
> On 2005-08-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>>i have an ascii string comming in the serial port and i need to convert
>>it to something else, like an integer, or binary, or even a hex so i
>>can use the bitwise comparison on it.
Nephish, *WHY* do want t
On 18 Aug 2005 10:58:46 -0700, Aahz <[EMAIL PROTECTED]> wrote:
> OTOH, the big sucking sound from Google and Yahoo (plus other places
> like Ironport) is making it more difficult to hire Python programmers in
> the Bay Area...
Then start looking for telecommuting people. There are lots of us who
On Thu, 18 Aug 2005 16:46:42 -0700,
Robert Kern <[EMAIL PROTECTED]> wrote:
> Dan Sommers wrote:
[ something that obviously doesn't work ]
> That doesn't work. The first module is recorded as 'cmd' in
> sys.modules and gets reused on the second import.
Yes, you're right. I apologize.
Regards,
On Thu, 18 Aug 2005 23:36:58 +0200, Torsten Bronger <[EMAIL PROTECTED]> wrote:
>Hallöchen!
>
>When I use properties in new style classes, I usually pass get/set
>methods to property(), like this:
>
>x = property(get_x)
>
>If I overwrite get_x in a derived class, any access to x still calls
>t
ncf wrote:
> Maybe what you're looking for is __import__()?
Okay, actually this does work, but only in one direction. That is, I
can import the python package first, and then the java package, but not
the other way around.
--
Importing t
I'm honestly not too sure how __import__ works, but I know you can
provide a full path to it. Oh well, that was my best guess. I wish I
could've been of more help. -Wes
--
http://mail.python.org/mailman/listinfo/python-list
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thu, 18 Aug 2005, John Salerno wrote:
> hi all. are there any recommendations for an intro book to python that
> is up-to-date for the latest version?
>
> would reading a book from a year or two ago cause me to miss much?
Well, well - and nobody
[EMAIL PROTECTED] wrote:
> Robert Kern wrote:
>>That doesn't work. The first module is recorded as 'cmd' in sys.modules
>>and gets reused on the second import.
>
> Exactly. And clearing sys.modules doesn't fix the problem. Once it's
> imported something from the first cmd package, it can no longer
thanks for your time.
i have started just doing a type(a) from idle a lot just so i can make
sure of what i am dealing with ( i do this a lot) before i build the
.py file. got tired of 'cannot concatonate str and init' stuff all the
time.
this has been a wild project. nothing like getting in way ov
Randy Bush wrote:
> a dict written as
>
>pKey = (prefix, pLen, origin)
>
>val = dict.get(pKey)
>if val == None:
> dict[pKey] = (timeB, timeB)
>else:
> if val[0] > timeB: val[0] = timeB
> if val[1] < timeB: val[1] = timeB
> dict[pKey] = val
>
> and read b
Robert Kern wrote:
> Why not copy cmd.py into your package under a different name?
>
It offends my sense of modularity. For the record, I'm trying to use
pdb, the debugger, which in turn uses cmd. So it would be a matter of
taking pdb.py and hacking it to import a renamed version of cmd... kind
of
ncf wrote:
> Maybe what you're looking for is __import__()?
>
> >>> help(__import__)
> Help on built-in function __import__ in module __builtin__:
>
> __import__(...)
> __import__(name, globals, locals, fromlist) -> module
>
> Import a module. The globals are only used to determine the
> c
[EMAIL PROTECTED] wrote:
> I have a java program in a package called 'cmd'. This of course
> conflicts with the builtin python package of the same name. The thing
> is, I need to be able to import from both of these packages in the same
> script. I can import either one first, but any future attemp
Carl wrote:
> Dear friends,
>
> I am currently porting a fortran program to Python but am stuck on the
> intrinsic IBITS function.
>
> Does anyone know about a replacement function for IBITS in Python?
>
> Yours, Carl
>
> IBITS(I, POS, LEN)
>
> Extracts a sequence of bits.
>
> I
> must b
Torsten Bronger <[EMAIL PROTECTED]> wrote:
> Hallöchen!
>
> When I use properties in new style classes, I usually pass get/set
> methods to property(), like this:
>
> x = property(get_x)
Better is to make it clear that 'get_x' is not intended to be called
directly. You can do this through th
Robert Kern wrote:
> Dan Sommers wrote:
>
> > Assuming you can fiddle with sys.path at the right times, you can call
> > an imported module anything you want:
> >
> > fix_sys_path_to_find_java_cmd_first()
> > import cmd as java_cmd
> > fix_sys_path_to_find_python_cmd_first()
> > imp
I'm just beginning with tracebacks, building off of what I see in
asyncore's compact_traceback code, in order to hopefully store all the
values from the location in which the exception occured.
I'm actually trying to make this into a python bug report system for my
current project, and am seeking
Dan Sommers wrote:
> Assuming you can fiddle with sys.path at the right times, you can call
> an imported module anything you want:
>
> fix_sys_path_to_find_java_cmd_first()
> import cmd as java_cmd
> fix_sys_path_to_find_python_cmd_first()
> import cmd as python_cmd
>
> Obviousl
On 18 Aug 2005 16:06:46 -0700,
[EMAIL PROTECTED] wrote:
> I have a java program in a package called 'cmd'. This of course
> conflicts with the builtin python package of the same name. The thing
> is, I need to be able to import from both of these packages in the same
> script. I can import either
Maybe what you're looking for is __import__()?
>>> help(__import__)
Help on built-in function __import__ in module __builtin__:
__import__(...)
__import__(name, globals, locals, fromlist) -> module
Import a module. The globals are only used to determine the
context;
they are not mod
On 18 Aug 2005 10:42:32 -0700, [EMAIL PROTECTED] wrote:
import serial
ser =3D serial.Serial('/dev/ttyS0', 2400, timeout=3D 10, bytesize=3D8, =
>stopbits=3D1)
a =3D ser.read(1)
print a
>^
In general,
print a
is not a good way to investigate what a is, because print uses st
wen wrote:
> on my system(win2k server, python 2.3.5),
>
import sys
print sys.path
>
> ['C:\\', 'C:\\WINNT\\system32\\python23.zip',
> 'C:\\Python23\\lib\\site-packages\\Pythonwin',
> 'C:\\Python23\\lib\\site-packages\\win32',
> 'C:\\Python23\\lib\\site-packages\\win32\\lib',
> 'C:\\Pytho
I have a java program in a package called 'cmd'. This of course
conflicts with the builtin python package of the same name. The thing
is, I need to be able to import from both of these packages in the same
script. I can import either one first, but any future attempt to import
from cmd.* will look
John Salerno wrote:
>Also, are Python and Ruby similar languages? Which would be better to learn?
>
>
Knowing both, they are very similar. Python seems to be more mature and
has better support. Threading is easier in Ruby, while Python is more
intuitive across the board.
I really like both,
Alessandro Bottoni wrote:
>
>
> Python did not changed too much since rel. 1.5.
I presume by "too much" you mean "very much" rather than "inordinately"
or "excessively".
IMHO the addition of [list off the top of my head] string methods,
Unicode, new-style classes, generators, list comprehensi
Thank you very much for that response!
[EMAIL PROTECTED] wrote:
> John Salerno wrote:
>...
>
>>Just one more quick question: I'm basically learning programming for
>>fun, and I'm concentrating on C# right now. Python seems interesting,
>>but I was wondering if I should even bother. Would it s
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Alessandro Bottoni wrote:
>> (Python has even been told to be used by Yahoo! and Google, among
>> others,
>> but nobody was able to demonstrate this, so far)
>
> Nobody, except Google's founders?
>
> http://www-db.stanf
I don't think so - the reason is that property() is evaluated
in the baseclass, and stores a callable, not a name. the only thing you
could do is either
- create a level of indirection, using lambda, to force the lookup:
x = property(lamda self: self.get_x())
- use a metaclass, that tries to
I don't think so - the reason is that property() is evaluated
in the baseclass, and stores a callable, not a name. the only thing you
could do is either
- create a level of indirection, using lambda, to force the lookup:
x = property(lamda self: self.get_x())
- use a metaclass, that tries to
John Salerno wrote:
...
> Just one more quick question: I'm basically learning programming for
> fun, and I'm concentrating on C# right now. Python seems interesting,
> but I was wondering if I should even bother. Would it supplement C# in
> any way, or can C# do everything Python can?
C# and P
>> a dict written as
>>
>>pKey = (prefix, pLen, origin)
>>
>>val = dict.get(pKey)
>>if val == None:
>> dict[pKey] = (timeB, timeB)
>>else:
>> if val[0]> timeB: val[0] = timeB
>> if val[1] < timeB: val[1] = timeB
>> dict[pKey] = val
>>
>> and read back as
Hallöchen!
When I use properties in new style classes, I usually pass get/set
methods to property(), like this:
x = property(get_x)
If I overwrite get_x in a derived class, any access to x still calls
the base get_x() method. Is there a way to get the child's get_x()
method called instead?
Randy Bush wrote:
> a dict written as
>
>pKey = (prefix, pLen, origin)
>
>val = dict.get(pKey)
>if val == None:
> dict[pKey] = (timeB, timeB)
>else:
> if val[0] > timeB: val[0] = timeB
> if val[1] < timeB: val[1] = timeB
> dict[pKey] = val
>
> and read b
Thanks Fred,
The OS I am using is linux distro fedora core 4 (RH, version 10 I think). The
first
question I have is exactly as you mention in 1. I need to have the gui running
from
machine bootup to shutdown. I wrote a bash daemon init script to turn my
program into a
daemon, but it doesnt se
a dict written as
pKey = (prefix, pLen, origin)
val = dict.get(pKey)
if val == None:
dict[pKey] = (timeB, timeB)
else:
if val[0] > timeB: val[0] = timeB
if val[1] < timeB: val[1] = timeB
dict[pKey] = val
and read back as
for pKey, pVal in dict.iteritems(
Here is a start.
http://www.ishpeck.net/?P=pytesting
This is all stuff based on windos.
Colin Gillespie wrote:
> Dear All,
>
> I would like to place a url in my browsers address bar, then execute.
> How can do this?
>
> e.g.
>
> def goToGoogle():
> url = "www.google.com"
> b = openB
On Thursday 18 August 2005 10:07 am, [EMAIL PROTECTED] wrote:
> I have been trying to add a watermark to a jpeg using PIL, but the
> watermark has a black box around it. I looked at
[...]
> but I think these only refer to gif or png. I know jpegs really do not
> support transparency, but is there
Thanks. I understand that my question probably causes a lot of grief for
some people. :)
gene tani wrote:
> well, it's not easy to find neutral comparisons of ruby and python, but
>
>
> http://www.ruby-doc.org/RubyEyeForThePythonGuy.html
> http://onestepback.org/index.cgi/Tech/Ruby/PythonAnd
> Once I done the replacement as suggested above, PyPE2.1 can run from
> the source now. Thanks Josiah !
No problem.
> > I have downloaded the PyPE2.1-win-unicode.zip, after unzip it with winzip
> > into PyPE2.1-win-unicode dierctory on window XP. I try to run "pype.exe"
> > by double
> > click o
[EMAIL PROTECTED] wrote:
> trying to determine a variable type, specifically that a variable is an
> integer.
>
> i tried using type(var) but that only seemed to produce a response in the
> command line.
>
> is there a built in python function to determine if a variable is an
> integer?
>> I have been using XML-RPC to get information from one of our remote
>> servers. To improve security, the server now has a certificate
installed,
>> and when I try to access it, I get an 'Unauthorized' exception. Is
there
>> an xmlrpclib module that supports (client-side) certificate-based
>> a
Paul Rubin wrote:
> [EMAIL PROTECTED] writes:
> > i tried using type(var) but that only seemed to produce a response in the
> > command line.
> >
> > is there a built in python function to determine if a variable is an
> > integer?
>
> type(var) returns the type. For example:
>
>if type(x) ==
> Hi,
>
> I have Moinmoin 1.3.4 installed and working on Linux RHEL3.0. However,
> all screen elements are lined up on the left hand side. How can I get
> it displayed like the wiki at:
>
> http://moinmoin.wikiwikiweb.de/HelpOnConfiguration
>
Hi Mark,
It seems that your MoinMoin installatio
well, it's not easy to find neutral comparisons of ruby and python, but
http://www.ruby-doc.org/RubyEyeForThePythonGuy.html
http://onestepback.org/index.cgi/Tech/Ruby/PythonAndRuby.rdoc
http://www.approximity.com/ruby/Comparison_rb_st_m_java.html
http://reflectivesurface.com/weblog/2004/12/19/why
I have just recently discovered CherryPy and Kid (many kudos to the
respective developers!) and am tinkering with them to see what I can
come up with.
The application I eventually want to write will eventually require the
python code to call stored procedures in a database which means I'll
need to
Incredible, Paul! Thanks a thousand times! /Carl
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] writes:
> i tried using type(var) but that only seemed to produce a response in the
> command line.
>
> is there a built in python function to determine if a variable is an
> integer?
type(var) returns the type. For example:
if type(x) == type(3):
print 'x is an int
Also, are Python and Ruby similar languages? Which would be better to learn?
John Salerno wrote:
> Thanks for the great replies everyone! "Learning Python" was my first
> choice, but it was also the reason I asked about older books, since it's
> from 2003. But it seems that isn't an issue, and
These all seem to be focused on Java though.
gene tani wrote:
> Start here:
>
> http://naeblis.cx/rtomayko/2004/12/15/the-static-method-thing
> http://dirtsimple.org/2004/12/java-is-not-python-either.html
> http://ischenko.blogspot.com/2005/02/java-may-not-be-that-bad-after-all.html
>
> and may
trying to determine a variable type, specifically that a variable is an
integer.
i tried using type(var) but that only seemed to produce a response in the
command line.
is there a built in python function to determine if a variable is an
integer?
--Florida has a very broad Public Recor
Neil Hodgson wrote:
> Cantankerous Old Git:
>
>> Problem 1:
>> If I have another thread call DestroyWindow after a delay, it gets an
>> error "permission denied". I really can't see why.
>
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/wind
all apologies, gentlemen, i feel like an idiot.
the ord() is what is returning what i need.
the manufacturer of the unit i am reading from
told me that it puts out a "string that represents a hex"
been thumping my head.
sorry for the confusion,
and thanks for your help
shawn
--
http://mail.pytho
Start here:
http://naeblis.cx/rtomayko/2004/12/15/the-static-method-thing
http://dirtsimple.org/2004/12/java-is-not-python-either.html
http://ischenko.blogspot.com/2005/02/java-may-not-be-that-bad-after-all.html
and maybe poke around ehre to learn about language design, how people
define typing,
[EMAIL PROTECTED] wrote:
> I have been using XML-RPC to get information from one of our remote
> servers. To improve security, the server now has a certificate installed,
> and when I try to access it, I get an 'Unauthorized' exception. Is there
> an xmlrpclib module that supports (client-side) c
Hi, I am looking for something where I can go through
a html page and make change the url's for all the
links, images, href's, etc... easily. If anyone knows
of something, please let me know. Thanks.
-steve
Start your day with
Peter Hansen wrote:
> ASCII, however, they represent these three characters: "Foo". Your data
> looks like chunk when treated as ASCII, so it's probably just bytes.
Weird. I think I meant "junk" (not "chunk"), but obviously was writing
verbally, not visually...
-Peter
--
http://mail.python.o
Thanks for the great replies everyone! "Learning Python" was my first
choice, but it was also the reason I asked about older books, since it's
from 2003. But it seems that isn't an issue, and I think that would be a
nice place to start.
Just one more quick question: I'm basically learning progr
[EMAIL PROTECTED] wrote:
import serial
ser = serial.Serial('/dev/ttyS0', 2400, timeout= 10, bytesize=8, stopbits=1)
a = ser.read(1)
print a
It sounds like you want to convert characters into their corresponding
integer values. To do this, use the ord() builtin function.
>>> ord
On 2005-08-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
import serial
ser = serial.Serial('/dev/ttyS0', 2400, timeout= 10, bytesize=8,
stopbits=1)
a = ser.read(1)
print a
> ^
That's not a hex number. Hex numbers are composed of '0-9A-F'
0F48A is a hex number. ^ is
I have been using XML-RPC to get information from one of our remote
servers. To improve security, the server now has a certificate installed,
and when I try to access it, I get an 'Unauthorized' exception. Is there
an xmlrpclib module that supports (client-side) certificate-based
authentication?
In article <[EMAIL PROTECTED]>,
Steve Holden <[EMAIL PROTECTED]> wrote:
>
>There's informal evidence that the Python secret is getting out. Sharpen
>up your resumes, guys, you may not have to limit Python to home usage
>soon :-)
OTOH, the big sucking sound from Google and Yahoo (plus other plac
Michael Hudson wrote:
> PyObject_New is the usual way, although there are others --
Thanks for an answer !
> MyType.tp_new, PyObject_Call ...
Does this mean, that I can call my newly defined
MyType_new, MyType_init directly ??
I was afraid that Python might do some pretty important
housekeeping
I would suggest Alex Martelli's "Python in a Nutshell" or the "Python
Cookbook" as the best Python books from Oreilly. I also like M.
Pilgrim's "Dive into Python".
--
http://mail.python.org/mailman/listinfo/python-list
>>> import serial
>>> ser = serial.Serial('/dev/ttyS0', 2400, timeout= 10, bytesize=8, stopbits=1)
>>> a = ser.read(1)
>>> print a
^
>>> ser.close()
>>> type(a)
>>> int(a, 16)
Traceback (innermost last):
File "", line 1, in ?
ValueError: invalid literal for int(): ^
so i run it again the same
Mostly I posted to try to find out more about the arguments being
passed to __init__, and why they'd be 13 one second and 1 the next.
I also was hoping to get a little more background on what is happening
under the hood of the csv function I've plagiarised. I haev read the
online python doco on
Carl <[EMAIL PROTECTED]> writes:
> IBITS(I, POS, LEN)
> Extracts a sequence of bits.
> The result has the value of the sequence of LEN bits in I beginning at bit
> POS, right-adjusted and with all other bits zero.
>
> The bits are numbered from 0 to BIT_SIZE(I)-1, from right to left.
>
> Examples
On 2005-08-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> i have an ascii string comming in the serial port and i need to convert
> it to something else, like an integer, or binary, or even a hex so i
> can use the bitwise comparison on it.
But what do you mean by "integer", "binary", and "he
Dear friends,
I am currently porting a fortran program to Python but am stuck on the
intrinsic IBITS function.
Does anyone know about a replacement function for IBITS in Python?
Yours, Carl
IBITS(I, POS, LEN)
Extracts a sequence of bits.
I
must be of type integer.
PO
Cameron Laird schrieb:
> In article <[EMAIL PROTECTED]>,
> Alessandro Bottoni <[EMAIL PROTECTED]> wrote:
>
>>Titi Anggono wrote:
>>>1. Can we use Tkinter for web application such as Java?
...
> ... or, if you mean, "is Python an apt language for client-side
> Web development in the way Java is, w
i have an ascii string comming in the serial port and i need to convert
it to something else, like an integer, or binary, or even a hex so i
can use the bitwise comparison on it.
thanks
--
http://mail.python.org/mailman/listinfo/python-list
BranoZ wrote:
> "132443" is a 'subsubstring' "0134314244133" because:
For the record, that's called a "subsequence".
http://www.google.com/search?hl=en&q=subsequence
--
--Bryan
--
http://mail.python.org/mailman/listinfo/python-list
Colin Gillespie wrote:
>>>I would like to place a url in my browsers address bar, then execute.
>>>How can do this?
>>>
>>
>>def goToGoogle():
>>import webbrowser
>>webbrowser.open("www.google.com");
>>
>
>
> Thanks for the quick reply. Do you know what module I would use to fill
> out a
Alessandro Bottoni wrote:
> (Python has even been told to be used by Yahoo! and Google, among others,
> but nobody was able to demonstrate this, so far)
If you use Yahoo! Maps, you will notice they use Python.
Scott
--
http://mail.python.org/mailman/listinfo/python-list
I've done a similar app, but it keeps a gui up awaiting a timeclock punch.
You need to tackle this in phases:
1. what os and get the gui to start at bootup.
2. start a separate thread that reads/blocks on the coin.
you need more specific questions to get better help
-Original Message-
Fro
Colin Gillespie wrote:
>>>I would like to place a url in my browsers address bar, then execute.
>>>How can do this?
>>>
>>
>>def goToGoogle():
>>import webbrowser
>>webbrowser.open("www.google.com");
>>
>
>
> Thanks for the quick reply. Do you know what module I would use to fill
> out a
Peter Hansen wrote:
> Alessandro Bottoni wrote:
>
>>(Python has even been told to be used by Yahoo! and Google, among others,
>>but nobody was able to demonstrate this, so far)
>
>
> Nobody, except Google's founders?
>
> http://www-db.stanford.edu/~backrub/google.html
>
> (Among many other ref
I was thinking something like Java's Runtime Environment, but that might
also do.
Thanks,
Nathan Pinno
---Early to
bed,Early to rise,Makes a man healthy, wealthy, and wise.--Benjamin
Franklin
On 2005-08-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> i got the bitwise part, i just cant seem to convert the
> incomming ascii into hex, binary, integer, or decimal.
So you've got an ASCII string in one format and you want to
convert into an ASCII string in a different format?
For exa
Dennis Lee Bieber wrote:
> On Thu, 18 Aug 2005 13:30:45 +0200, Mohammed Altaj <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>
> > Thanks , but , this work for an ordered substrings , just like what we
> > had ['0132442\n', '13\n', '24\n'] , I would like to remove all
> > su
1 - 100 of 178 matches
Mail list logo