Le Fri, 23 Jan 2009 14:45:32 -0600,
W W a écrit :
> On Fri, Jan 23, 2009 at 1:11 PM, Scott Stueben wrote:
>
> > Thanks for the help so far - it seems easy enough. To clarify on the
> > points you have asked me about:
> >
> > A sqlite3 database on my machine would be an excellent idea for
> > pe
"Wayne Watson" wrote
I'm using pythonWin.
Is there some way to skip from the start of a def to the end?
That doesn't seem to be supported.
The documentation is found in the help structure under
PyWin32 Documentation
-Pythonwin and win32ui
-Overviews
-Keyboard Binding
Title: Signature.html
If you are familiar with vi and C, one could enter a simple keystroke
and jump from an opening paren to the corresponding closing one.
I've long forgotten most of C, but here's a rough segment of a program:
main()
(
while (x ==True)
(
a =5;
)
...
)
If your cursor was
On Sat, Jan 24, 2009 at 7:06 AM, Wayne Watson
wrote:
> If you are familiar with vi and C, one could enter a simple keystroke and
> jump from an opening paren to the corresponding closing one.
>
> I've long forgotten most of C, but here's a rough segment of a program:
>
> main()
> (
> while (x ==T
Title: Signature.html
I'm really just starting with pythonwin editor, after having used IDLE.
Comments interspersed.
Alan Gauld wrote:
"Wayne
Watson" wrote
I'm using pythonWin. Is there some way to
skip from the start of a def to the end?
That doesn't seem to be supported.
Hello.
As fas as I know, there is a "bytes" type in Python 3, which is a sequence
of bytes.
Anyway, I am working with Python 2.5.4, and I am interested in defining a
new type called "bit" (if possible), which represents a number that can only
take values 0 or 1 —that's what we would call a "binar
I'm not at all tempted (binding). VBG. Page scroll and a steady eye on
the left margin works well for my current purposes. However, I am
surprised such a feature doesn't exist.
W W wrote:
On Sat, Jan 24, 2009 at 7:06 AM, Wayne
Watson
wrote:
If you are
Sorry, I answered only to Eugene...
-- Forwarded message --
From: Vicent
Date: Sat, Jan 24, 2009 at 15:42
Subject: Re: [Tutor] Defining "bit" type
To: Eugene Perederey
On Sat, Jan 24, 2009 at 15:31, Eugene Perederey
wrote:
> Hi,
> type 'bool' takes only True and False. Is i
On Sat, Jan 24, 2009 at 15:42, Vicent wrote:
>
>
>
> I mean, being "a" a boolean variable, it works as if it was a number, but
> every time I want to update the value of "a", I must put "False" for 0 and
> "True" for 1, or it will change into an integer variable.
>
> So, maybe I can adapt the def
On Sat, Jan 24, 2009 at 9:38 AM, Vicent wrote:
>
>> So, maybe I can adapt the definition of "bool" type, I don't know...
>> Anyway, I want to manage 0's and 1's, not "Falses" and "Trues".
>>
>
Well, I can think of something that might be of some help:
In [18]: bit = {True:1, False:0}
In [19]:
If your actual interest in defining a bit type is to work with an array of
bits, try Ilan Schnell's bitarray module
(http://pypi.python.org/pypi/bitarray/0.3.4). It uses a compiled extension,
so it is quite fast and space-efficient.
Ilan gave a presentation on this at the Texas Unconference last
On Sat, Jan 24, 2009 at 17:31, Paul McGuire wrote:
> If your actual interest in defining a bit type is to work with an array of
> bits, try Ilan Schnell's bitarray module
> (http://pypi.python.org/pypi/bitarray/0.3.4). It uses a compiled
> extension,
> so it is quite fast and space-efficient.
>
"Wayne Watson" wrote
You can of couse use the folding feature to speed navigation
between functions etc...
Keypad * will fold/unfold everything...
Interesting, but it folds way too much.
yes but you can use other keys to fold just the current function,
or even a while loop within a func
"Vicent" wrote
Anyway, I am working with Python 2.5.4, and I am interested in
defining a
new type called "bit" (if possible), which represents a number that
can only
take values 0 or 1 —that's what we would call a "binary variable",
in a
Mathematical Programming context.
If its a single b
On Sat, Jan 24, 2009 at 18:19, Alan Gauld wrote:
>
> If its a single binary digit you want then it would be relatively easy to
> define a class. The operations you need would largely be the
> comparison and arithmetic ones. But while its not difficult it is
> tedious and you would need to think a
Vicent wrote:
Hello.
As fas as I know,
there is a "bytes" type in Python 3, which is a sequence of bytes.
Anyway, I am
working with Python 2.5.4, and I am interested in defining a new type
called "bit" (if possible), which represents a number that can only
take values 0 or 1 —that's w
On Sat, Jan 24, 2009 at 19:48, bob gailer wrote:
> The problem is: there is no way that I know of to add fundamental types to
> Python. Also realize that variables are dynamically typed - so any
> assignment can create a variable of a new type. That is why a = 0 results in
> an int.
>
> So one m
Vicent wrote:
On Sat, Jan 24, 2009 at 19:48, bob gailer
wrote:
The problem is: there is no
way that I know of to add fundamental types
to Python. Also realize that variables are dynamically typed - so any
assignment can create a variable of a new type.
Hello,
I have a question concerning the use of python to make web application.
I don't know if it is possible. I would like to create an applet capable of
using the client smardcard (with pyscard/pyCrypto module) reader to read and
display the contained data on the page.
I already have a simple p
On Sat, Jan 24, 2009 at 10:36 AM, Vicent wrote:
> But this is not nice:
>
type(a)
>
a
> True
a = 0
type(a)
>
>
>
> I mean, being "a" a boolean variable, it works as if it was a number, but
> every time I want to update the value of "a", I must put "False" for 0 and
> "True"
On Sat, Jan 24, 2009 at 10:10 AM, Olivier Roger
wrote:
> Hello,
>
> I have a question concerning the use of python to make web application.
> I don't know if it is possible. I would like to create an applet capable of
> using the client smardcard (with pyscard/pyCrypto module) reader to read and
>
On Sat, 24 Jan 2009 11:43:00 +, Alan Gauld wrote:
>
> But I'm surprised there are no block movement commands given Scintilla's
> primary goal of supporting programmers
>
I guess because block level movement is ambiguous in any programming
language supporting nested class/function definition
Title: Signature.html
Not in C.
Lie Ryan wrote:
On Sat, 24 Jan 2009 11:43:00 +, Alan Gauld wrote:
But I'm surprised there are no block movement commands given Scintilla's
primary goal of supporting programmers
I guess because block level movement is ambiguous in an
"Olivier Roger" wrote
I have a question concerning the use of python to make web
application.
I don't know if it is possible. I would like to create an applet
capable of
using the client smardcard (with pyscard/pyCrypto module) reader to
read and
display the contained data on the page.
I a
"Lie Ryan" wrote
But I'm surprised there are no block movement commands given
Scintilla's
primary goal of supporting programmers
I guess because block level movement is ambiguous in any programming
language supporting nested class/function definition?
Most programmers editors I've used in
Title: Signature.html
Ah, well. Back to the Scroll key. :-)
Alan Gauld wrote:
"Lie Ryan" wrote
But I'm surprised there are no block
movement commands given Scintilla's
primary goal of supporting programmers
I guess because block level movement is ambiguou
Excellent ideas...thanks to you all for the input. I will see what I
can work out in the next few days and report back.
:) Scott
On Sat, Jan 24, 2009 at 2:16 AM, spir wrote:
> Le Fri, 23 Jan 2009 14:45:32 -0600,
> W W a écrit :
>
>> On Fri, Jan 23, 2009 at 1:11 PM, Scott Stueben wrote:
>>
>>
I want to traverse an xml file and at each node retain the full path from the
parent to that node ie. if we have:
this is node b
this is node c
this is node d
this is node e
... then require:
this is node b
this is node c
t
i've got most of this working now so hold off (for now). thanks.
dinesh
From: Dinesh B Vadhia
Sent: Saturday, January 24, 2009 8:31 PM
To: tutor@python.org
Subject: Traversing XML Tree with ElementTree
I want to traverse an xml file and at each node retain the full path from the
parent to
29 matches
Mail list logo