"j booth" wrote
I have been experiencing such difficulty with something that should be
easy-- pretty new to programming..
Need to:
(1) open a text file
(2) iterate through it word by word
And here lies the first problem. Programming languages in general
don't know much about words(*) (or p
"Stefan Behnel" wrote
"pedro" wrote
Hi, I was wondering if anyone could point me in the right direction as
far as the best way to use python to update html.
There are a number of modules in the standard library that can help but
the best known module for this is BeautifulSoup
I would ca
Hello,
I have been experiencing such difficulty with something that should be
easy-- pretty new to programming..
Need to:
(1) open a text file
(2) iterate through it word by word
(3) replace each word with an alternative word and close the file.
**I don't know what the alternative word will be b
On Sun, Aug 30, 2009 at 11:59 AM, Skipper Seabold wrote:
> Hello all,
>
> Fair warning, I didn't know what a bitfield was a few hours ago.
>
> I am working with a program via the dbus module and I am wondering if
> there is built-in support to deal with bitfields in Python. I query
> my applicatio
On Sun, Aug 30, 2009 at 1:58 PM, Alan Gauld wrote:
>
> "Skipper Seabold" wrote
>
>> You can just do a binary AND with your consts and your bitfield value to
>> get
>> > each bit. The values will be the actual value (2, 4, 8, etc.) but if >
>> > you
>> > use these as a boolean it won't matter.
>> N
"Skipper Seabold" wrote
You can just do a binary AND with your consts and your bitfield value to
get
> each bit. The values will be the actual value (2, 4, 8, etc.) but if
> you
> use these as a boolean it won't matter.
No that's perfect. It looks like I need to read up a bit more (pun
not
Alan Gauld wrote:
> "pedro" wrote
>> Hi, I was wondering if anyone could point me in the right direction as
>> far as the best way to use python to update html.
>
> There are a number of modules in the standard library that can help but
> the best known module for this is BeautifulSoup
I would
You can just do a binary AND with your consts and your bitfield value to get
each bit. The values will be the actual value (2, 4, 8, etc.) but if you
use these as a boolean it won't matter.I.E.
>>> bitfield = 119
>>> seek = bitfield & CAN_SEEK
>>> seek
16
>>> if seek:
print "Hello"
Hello
>>>
if
On Sun, Aug 30, 2009 at 1:25 PM, Luke
Paireepinart wrote:
> You can just do a binary AND with your consts and your bitfield value to get
> each bit. The values will be the actual value (2, 4, 8, etc.) but if you
> use these as a boolean it won't matter.
> I.E.
bitfield = 119
seek = bitfi
Hello all,
Fair warning, I didn't know what a bitfield was a few hours ago.
I am working with a program via the dbus module and I am wondering if
there is built-in support to deal with bitfields in Python. I query
my application and it returns a bitfield 119. The bitfield "key" is
NONE
On Sun, Aug 30, 2009 at 6:32 AM, prasad rao wrote:
> I want to examine pyc files.(ex:itertools).
> itertools.py is not available inPython26.
> pyc files are binaryfiles.Isn't it.
itertools is written in C. All the Python source code is freely
available for you to read. Download the entire source
> .
>
> >I don't understand what you are trying to do. Do you mean compiled
> >Python files, e.g. .pyc files?
>
> ?Kent
>
Yes
I want to examine pyc files.(ex:itertools).
itertools.py is not available inPython26.
pyc files are binaryfiles.Isn't it.
___
Tu
12 matches
Mail list logo