On Wednesday 23 March 2005 22:03, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
(<[EMAIL PROTECTED]>) wrote:
> Is there something out there like "Python for kids" which would explain
> *basic* programming concepts in a way which is accessible and
> entertaining for kids aged 10-14
It's not what you asked
Same question.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
umm... looks like it should've been:
Comparison can be chained, and is equivalent to a sequence of
comparisons with âandâ in between. For example, âxhttp://xahlee.org/
Terry Reedy wrote:
> >Comparisons can be chained, and is evaluated from left to right. For
> >example, x < y <= z is equivalent t
Ron_Adam wrote:
> On 24 Mar 2005 01:58:48 -0800, "Kay Schluehr" <[EMAIL PROTECTED]>
> wrote:
>
> >I personally don't like using exec and eval for stuff different from
> >evaluating user input.
>
> I lean the other way. I never want to use user impute for eval and
> exec. Way too risky.
Well a Py
Derek Basch wrote:
> If I want minidom to output XHTML that includes normally XML escaped
> characters how would I do it?
>
> For instance if I use doc.createCDATASection() I get:
>
>
>
> and without the CDATASection:
>
>
>
> when I really need:
>
>
that's a
there is a Python, pithy
mighty, lissome, and tabby
algorithms it puffs
tim-toady it engulfs
and sways universality
there is a camel, lanky
ugly, petty, ungainly
foolhardy comports
hacking it supports
and toadies eunuch's fancy
Xah
[EMAIL PROTECTED]
â http://xahlee.org/PageTwo_dir/more.html
M
"Stephen Thorne" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 24 Mar 2005 06:21:36 GMT, Alex VanderWoude <[EMAIL PROTECTED]>
wrote:
> > I am attempting to save my window's size and position when it closes.
So I
> > figured I'd put some code in the __del__() method:
> >
> >
Martin Ambuhl wrote:
> Xah Lee wrote:
>
>> The Python doc is relatively lousy, from content organization to
>> the tech writing quality.
>>
>> I think i'll just post snippets of my comments as i find them.
>> (and feel like exposing)
>
> The cross-posting idiot is back. Next he'll be posting his
Peter Hansen wrote:
> I don't believe the term "busy-wait" applies here.
> [Explanation]
Yes, well, you're right. I was thinking of calling it
"slacker-waiting" but didn't want to come off too cute.
p
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 25 Mar 2005 03:35:29 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote:
>On Thu, 24 Mar 2005 23:21:39 -, Grant Edwards <[EMAIL PROTECTED]> wrote:
>
>>How do I get rid of the following warning?
>>
>> .py:233: FutureWarning: hex/oct constants > sys.maxint will return
>> positive values in P
"Leif B. Kristensen" <[EMAIL PROTECTED]> writes:
> I've got a thirteen-year old daughter to whom I have recently taught the
> HTML basics, but she doesn't readily take to actual programming. If
> you've got any idea what I should push to her to get her fascinated
> about _real_ programming, I'd be
Does any one has pygdchart compiled for Windows Python 2.4?? (.pyc file?)
http://www.nullcube.com/software/pygdchart.html only has binary for
Windows Python 2.3 and older... :(
I tried following the instructions for compiling w/ Mingw from the
README, but... in step2, i have no idea how to do th
>And that could be modified even further, using current
>(unextended) Python...
Nice code Wulfraed (or Dennis), back to the basics:
-- Your code
foo = 0
for item1 in range(10):
for item2 in range(10):
foo = item1 + item2
if foo == 2:
print "Let's see"
break # let's go
if (
Xah Lee wrote:
The word âobjectâ has generic English meaning as well might have
very technical meaning in a language. In Python, it does not have very
pronounced technical meaning. For example, there's a chapter in Python
Library Ref titled â2. Built-In Objectsâ, and under it a section
â2.1 Built-i
Sorry, I seem to be missing the replies! I will stop posting!
Peter Hansen wrote:
xytho33 wrote:
I need to be able to programatically get the version info from a windows
DLL preferably in the same format as what is displayed in the properties
tab.
(Posted and mailed)
Your posts are making it to t
I need to be able to programatically get the version info from a windows
DLL preferably in the same format as what is displayed in the properties
tab.
I was overjoyed to find Mark Hammond's Python Extensions
(http://starship.python.net/crew/mhammond/) The package includes a
little demo progr
On Thu, 24 Mar 2005 23:21:39 -, Grant Edwards <[EMAIL PROTECTED]> wrote:
>How do I get rid of the following warning?
>
> .py:233: FutureWarning: hex/oct constants > sys.maxint will return
> positive values in Python 2.4 and up
> fcntl.ioctl(self.dev.fileno(),0xc0047a80,struct.pack("HBB",i,0
> "Bengt" == Bengt Richter <[EMAIL PROTECTED]> writes:
Bengt> Or they may identify with their gift and become
Bengt> insufferable narcissistic egotists as a refuge from human
Bengt> isolation and emotional starvation.
Bengt> Or they may become wonderful human beings after all,
[Hameed Khan]
> and what are new style classes?.
http://www.python.org/2.2.3/descrintro.html
is a good read on this subject.
--
François Pinard http://www.iro.umontreal.ca/~pinard
___
Tutor maillist - [email protected]
http://mail.python.org/ma
Xah Lee wrote:
Very fucking stupid confusional writing.
I agree. Oh, were you talking about the Python documentation?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Men live by forgetting -- women live on memori
http://www.want-to-be-sure.blogspot.com << Click On Link
--
http://mail.python.org/mailman/listinfo/python-list
I'm looking for a python program that can:
1) Convert mime to text
2) Is callable from a .procmailrc
3) Would at least keep pgp signed text, if not actually verify the
signatures
4) It'd be beyond cool if it could also render .jpeg attachments as ANSI
text graphics :)
5) Maybe even convert wo
Hello,
If I want minidom to output XHTML that includes normally XML escaped
characters how would I do it?
For instance if I use doc.createCDATASection() I get:
and without the CDATASection:
when I really need:
Any suggestions?
Thanks,
Derek Basch
--
On Fri Mar 25, Terry Reedy wrote:
> > Twisted is an event-based framework for internet applications which
> > works on Python 2.2.X and 2.3.X.
> Was 2.4.X intentionally omitted?
No, I'm sorry. Twisted also supports Python 2.4.
--
Twisted | Christopher Armstrong: International Man of Twiste
xytho33 wrote:
I need to be able to programatically get the version info from a windows
DLL preferably in the same format as what is displayed in the properties
tab.
(Posted and mailed)
Your posts are making it to the newsgroup, so please stop
posting more of them and look for Dennis Lee Bieber's
r
[EMAIL PROTECTED] wrote:
Hello,
Thanks to all for great responses. Here's what iam trying to do.
I am writing a script to generate test patterns.
What is a test pattern?
Anyways, the time you've spent here so far could have been more
profitably spent reading the Tutorial[1], any one of the fine
i
Title: mod_python.dll not compatible with python23.dll
I just installed mod_python-3.1.3.win32-py2.3.exe which should set me up to use mod_python with python23 on apache2, windows xp.
When I try the standard hello world test program, I get the _apache not found in the apache module. After s
R.Meijer wrote:
> Jot nad.com> writes:
>
>> If she's really gifted i hope she dumps that obsolete monolithic
>> kernel as soon as she realizes that such beautiful language as python
>> shouldn't be used on top of ugly, badly designed software.
>
> Did somebody say off-topic?
I'd say it's a "Tr
I need to be able to programatically get the version info from a windows
DLL preferably in the same format as what is displayed in the properties
tab.
I was overjoyed to find Mark Hammond's Python Extensions
(http://starship.python.net/crew/mhammond/) The package includes a little
demo program "
xytho33 wrote:
I need to be able to programatically get the version info from a
windows DLL preferably in the same format as what is displayed in the
properties tab.
[snip]
You already posted this about forty minutes earlier and
Dennis Lee Bieber wrote a reply a mere ten minutes later.
Please be pa
Charles Hartman wrote:
I don't mean to be derisive, but the thought that someone who could
commit this sentence should be complaining about the clarity of the
writing in the Python docs is funny, and the didactic pose of the whole
post is . . . derisory. The motive for the post escapes me, or I
Hello,
Thanks to all for great responses. Here's what iam trying to do.
I am writing a script to generate test patterns.
For this i am passing an index number, size and a opcode from the
command line
testit -i -s [-o ]
When the user passes the index number(1 or 2), it maps to one of the
buffers
Paul L. Du Bois wrote:
Has anyone written a Queue.Queue replacement that avoids busy-waiting?
It doesn't matter if it uses os-specific APIs (eg
WaitForMultipleObjects). I did some googling around and haven't found
anything so far.
Because I know someone will ask: no, the busy-waiting hasn't been a
I need to be able to programatically get the version info from a
windows DLL preferably in the same format as what is displayed in the
properties tab.
I was overjoyed to find Mark Hammond's Python Extensions
(http://starship.python.net/crew/mhammond/) The package includes a
little demo program
On Thu, 24 Mar 2005 08:37:29 -0800, Michael Spencer <[EMAIL PROTECTED]> wrote:
>An Abridged Python Tutorial
>
very nice !
Regards,
Bengt Richter
--
http://mail.python.org/mailman/listinfo/python-list
Grant Edwards wrote:
Too much work. I'd have to go upgrade a half-dozen machines. I
guess I'll just live with the warning. It sort of sucks that
you get warned about something which you can't fix.
I'm pretty sure you can disable warnings in the warnings
module. Check the docs or archives.
-Peter
On 24 Mar 2005 07:21:33 -0800, "El Pitonero" <[EMAIL PROTECTED]> wrote:
>Lucas Raab wrote:
>> [EMAIL PROTECTED] wrote:
>> > I am blessed with a *very* gifted nine-years old daughter...
>> > Now, I would like to teach her programming basics using Python
>>
>> Let her mess around with it on her own.
On 2005-03-25, Terry Reedy <[EMAIL PROTECTED]> wrote:
>
> "Grant Edwards" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> How do I get rid of the following warning?
>
> Switch to 2.4? Or is there a command line switch to do so?
Too much work. I'd have to go upgrade a half-dozen
"Grant Edwards" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How do I get rid of the following warning?
Switch to 2.4? Or is there a command line switch to do so?
> .py:233: FutureWarning: hex/oct constants > sys.maxint will return
> positive values in Python 2.4 and up
TJR
On Mar 24, 2005, at 6:07 PM, [EMAIL PROTECTED] wrote:
The Python doc, though relatively incompetent, but the author have
tried the best.
I don't mean to be derisive, but the thought that someone who could
commit this sentence should be complaining about the clarity of the
writing in the Python do
>Comparisons can be chained, and is evaluated from left to right. For
>example, x < y <= z is equivalent to (x < y) <= z.
The proposed 'correction' above is incorrect and should be ignored.
>>> x,y,z = 2,3,1
>>> x>> (xhttp://mail.python.org/mailman/listinfo/python-list
I also need to be able to get the version info from a windows DLL
preferably in the same format
as what is displayed in the properties tab.
I was overjoyed to find the little demo program filevers.py distributed in
the win32api download.
Unfortunately I get this error when I execute the script
> Twisted is an event-based framework for internet applications which
> works on Python 2.2.X and 2.3.X.
Was 2.4.X intentionally omitted?
--
http://mail.python.org/mailman/listinfo/python-list
On 24 Mar 2005 01:58:48 -0800, "Kay Schluehr" <[EMAIL PROTECTED]>
wrote:
>I personally don't like using exec and eval for stuff different from
>evaluating user input.
I lean the other way. I never want to use user impute for eval and
exec. Way too risky. But limited use, that is not user input,
Has anyone written a Queue.Queue replacement that avoids busy-waiting?
It doesn't matter if it uses os-specific APIs (eg
WaitForMultipleObjects). I did some googling around and haven't found
anything so far.
Because I know someone will ask: no, the busy-waiting hasn't been a
problem in my app. I
Paul L. Du Bois wrote:
Xah Lee wrote:
I think i'll just post...
[ snipped ]
That is a very good analysis. Can you submit a documentation patch? I
would, but I'm too lazy to contribute. That doesn't mean I'm not
thankful for your efforts, though!
p
Or if not a doc patch, how about a limerick?
M
Xah Lee wrote:
> I think i'll just post snippets of my comments as i find them. (and
> feel like exposing)
> [ snipped ]
That is a very good analysis. Can you submit a documentation patch? I
would, but I'm too lazy to contribute. That doesn't mean I'm not
thankful for your efforts, though!
p
Xah Lee wrote:
The Python doc is relatively lousy, from content organization to the
tech writing quality.
I think i'll just post snippets of my comments as i find them. (and
feel like exposing)
The cross-posting idiot is back. Next he'll be posting his readings
from Richard Burton's _Arabian Nigh
How do I get rid of the following warning?
.py:233: FutureWarning: hex/oct constants > sys.maxint will return
positive values in Python 2.4 and up
fcntl.ioctl(self.dev.fileno(),0xc0047a80,struct.pack("HBB",i,0,0))
I tried using 0xc0047a80L. That got rid of the warning, but
then I got an exc
Leif B. Kristensen wrote:
I'm working with a Python program to insert / update textual data into a
PostgreSQL database. The text has single and double quotes in it, and I
wonder: What is the easiest way to escape quotes in Python, similar to
the Perlism "$str =~ s/(['"])/\\$1/g;"?
Just for the reco
The Python doc is relatively lousy, from content organization to the
tech writing quality.
I think i'll just post snippets of my comments as i find them. (and
feel like exposing)
Python doc:
http://python.org/doc/2.4/lib/comparisons.html
Quote:
Comparison operations are supported by all objects.
In <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> I did something like this.
> index is passed from the command line.
>
> def __getBuffer( index):
> if index == 1:
> buf1 = [None] * 512
> print "Buffer: %s" % (buf1)
> return buf1
> elif index == 2:
> buf2
[EMAIL PROTECTED] wrote:
Here it is again.
I did something like this.
index is passed from the command line.
def __getBuffer( index):
if index == 1:
buf1 = [None] * 512
print "Buffer: %s" % (buf1)
return buf1
elif index == 2:
buf2 = [None] * 512
print
dataangel <[EMAIL PROTECTED]> writes:
> I'm writing a python app that works as a replacement for the menu that
> comes with most minimalist wms when you right click the root window.
> It's prettier and written completely in python.
>
> I'd like to provide hooks or some system so that people can wr
On Wed, 23 Mar 2005 20:52:06 +1000, Timothy Smith
<[EMAIL PROTECTED]> wrote:
> Serge Orlov wrote:
>
> >Are you trying to format money? Then you need a special class so that
> >you can say:
>
> thats exactly what i'm trying to do, only having to do that for all my
If you're dealing with money, tw
Is there a simple way to modify the default sprintf mask
used for floats ? (eg something like sys.float_mask = '%.2f')
I've tried assigning to float.__dict__[ '__str__' ], but
that's apparently not allowed.
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 24 Mar 2005 12:07:44 -0500, "George Sakkis"
<[EMAIL PROTECTED]> wrote:
>"Kay Schluehr" <[EMAIL PROTECTED]> wrote:
>> [snipped]
>>
>> Wouldn't it be fun to use in Python?
>>
>> Only drawback: does not look like executable pseudo-code anymore :(
>>
>>
>> Regards Kay
>
>I don't know if it wou
In the code below, the class DifferentCache utilizes three different
memoization (caching) strategies. Neither the function Memoize1 or
the class Memoize2 will be adequate for all three of these cases (I
intend these to be used as, for example,
getInstanceValueFunction = Memoize1(getInstanceValue
[EMAIL PROTECTED] wrote:
> I am new to python and learning it. Can you please give me a simple
> example of user defined type through class mechanism.
Python 2.4 (#1, Dec 31 2004, 17:21:43)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
Type "help", "copyright", "credits" or "license" for
This will be tough to beat! (and not a single rhyme of "brace" and
"space"!)
-- Paul
--
http://mail.python.org/mailman/listinfo/python-list
TRy db_row does exactly what you want to do. Slower, but more simple:
##
#Sequence2Struct.py
class Struct:
pass
def MakeStruct(seq, names):
obj = Struct()
if len(seq) != len(names):
raise IndexError("seq and names are not the same length")
for i
Erwan VITIERE wrote:
> Because i don't want to use this syntax because it is too long, I
want a
> direct access :
>
> Not :
> DicoUser['TOTO'].DicoTable.['MY_TABLE'].DicoLabel.['MY_LABEL'] =
"for
> exemple"
>
> Finally, i want to use :
> TOTO.MY_TABLE.MY_LABEL = "for exemple"
setattr might be wh
Todd_Calhoun said unto the world upon 2005-03-24 16:13:
I'm trying to generate a random number, and then concetate it to a word to
create a password.
I get the number and assign it to a variable:
+
word = "dog"
import random
rannum = random.randrange(100,999)
str(rannu
Here it is again.
I did something like this.
index is passed from the command line.
def __getBuffer( index):
if index == 1:
buf1 = [None] * 512
print "Buffer: %s" % (buf1)
return buf1
elif index == 2:
buf2 = [None] * 512
print "Buffer: %s" % (buf2)
I did something like this.
index is passed from the command line.
def __getBuffer( index):
if index == 1:
buf1 = [None] * 512
print "Buffer: %s" % (buf1)
return buf1
if index == 2:
buf2 = [None] * 512
print "Buffer: %s" % (buf1)
return buf2
Is thi
Jot nad.com> writes:
>
> tnozh yahoo.com wrote:
> > Hi,
> >
> > I am blessed with a *very* gifted nine-years old daughter for whom I
> > have recently installed an old GNU/Linux Mandrake 7.2
>
> If she's really gifted i hope she dumps that obsolete monolithic kernel
> as soon as she realize
str() returns a string, it doesn't change rannum which is still a number...
try ->
rannum = str(rannum)
jw
On Thu, 24 Mar 2005 13:13:25 -0800, Todd_Calhoun <[EMAIL PROTECTED]> wrote:
> I'm trying to generate a random number, and then concetate it to a word to
> create a password.
>
> I get the
I'm trying to generate a random number, and then concetate it to a word to
create a password.
I get the number and assign it to a variable:
+
word = "dog"
import random
rannum = random.randrange(100,999)
str(rannum)
word + rannum
+
But
On Thu, 24 Mar 2005 06:39:47 -0800, Brano Zarnovican wrote:
> Hi David !
>
> I cannot see anything wrong on your code. So, I'm posting my working
> example.
>
> Hint: try to determine, why it is returning NULL (the PyErr_Print()
> call)
>
> BranoZ
>
OK your example works fine. I inserted it i
On Thu, 24 Mar 2005 00:22:09 -0800, Ray wrote:
> Can you point me to "Python for Java Programmers" resources? I found one
> blog, but that only touched the tip of the iceberg, I feel. I know that as
> I use Python more and read more books and read how experienced Python
> programmers code, eventual
Jiri Barton wrote:
I'd like to be able to distribute some python modules of my system (plugins)
without the source. So far, I have done this by including only the *.pyc
files. However, I have recently found they are platform dependent and
python version dependent.
This approach has been very conven
Hi,
I'd like to be able to distribute some python modules of my system (plugins)
without the source. So far, I have done this by including only the *.pyc
files. However, I have recently found they are platform dependent and
python version dependent.
This approach has been very convenient because
Wow - Alex Martelli's 'Black Magic' Pycon notes
http://www.python.org/pycon/2005/papers/36/pyc05_bla_dp.pdf
include this gem:
> Functions 'r descriptors
> def adder(x, y): return x + y
> add23 = adder.__get__(23)
> add42 = adder.__get__(42)
> print add23(100), add42(1000)
> 123 1042
This me
First, thanks to all who have replied. I learned a lot more than I had
expected :-)
This is a small part of a major project; converting my genealogy
database from a commercial FoxPro application to my homegrown Python /
PostgreSQL app. I'm still in a phase where I'm experimenting with
different mo
[EMAIL PROTECTED] wrote:
Hi,
I am blessed with a *very* gifted nine-years old daughter for whom I
have recently installed an old GNU/Linux Mandrake 7.2
If she's really gifted i hope she dumps that obsolete monolithic kernel
as soon as she realizes that such beautiful language as python shouldn't
I'm trying to use the AES module in the Python Cryptography Toolkit. I
need to set the mode to "ECB/NoPadding", and there's a reference to a
"Mode" parameter in the new() function, but no examples for AES. Who
can point me in the right direction?
--
http://mail.python.org/mailman/listinfo/pyth
On 24 Mar 2005 10:29:40 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am new to python and learning it. Can you please give me a simple
> example of user defined type through class mechanism.
GIYF:
http://www.python.org/2.2/descrintro.html#subclassing
Peace
Bill Mill
bill.mill at gmail.
Hans Elst a écrit :
I do not succeed in downloading MMA from
http://mypage.uniserve.com/~bvdp/mma/mma.html
Error 404. Can you help me?
> http://mypage.uniserve.com/~bvdp/mma/mma-bin-0.13.tar.gz seems to work
Regards,
Hans
--
http://mail.python.org/mailman/listinfo/python-list
I am new to python and learning it. Can you please give me a simple
example of user defined type through class mechanism.
--
http://mail.python.org/mailman/listinfo/python-list
Ray wrote:
Ville Vainio wrote:
Regarding a Java programmer moving to Python, a lot of the mindset
change is about the abundant use of built in data types of Python. So
a Java programmer, when confronted with a problem, should think "how
can I solve this using lists, dicts and tuples?" (and perhaps
Has anyone used BlackAdder IDE for any project small or big? Whats your opinion?
Thanks,
Tom
:.
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclo
Simon Brunning wrote:
On 23 Mar 2005 21:03:04 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Is there something out there like "Python for kids" which would explain
*basic* programming concepts in a way which is accessible and
entertaining for kids aged 10-14 (that about where her brain is rig
Lists, tuples, and dictionaries are built-in types.
Classes are the mechanism for user-defined types in Python.
--
http://mail.python.org/mailman/listinfo/python-list
In <[EMAIL PROTECTED]>, Leif B. Kristensen wrote:
> Damjan skrev:
>
>> You don't need to escape text when using the Python DB-API.
>> DB-API will do everything for you.
>> For example:
>> SQL = 'INSERT into TEMP data = %s'
>> c.execute(SQL, """ text containing ' and ` and all other stuff we
>>
In article <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]> wrote:
.
.
.
>Maybe companies such as Intel, IBM, and Sun would devote resources to
>optimizing Python on their hardware if the language had an ISO
>standard, as do C, C++, a
Derek Basch wrote:
Can anyone tell me why this CGI code outputs a blank page?
Maybe because it needs a blank line between the header and the body?
self.output = []
self.setContentType("text/plain")
ascii_temp.seek(0)
self.output.extend(ascii_temp.read())
self.output
On 24 Mar 2005 09:20:52 GMT, Duncan Booth
<[EMAIL PROTECTED]> wrote:
>Ron wrote:
>
A working makeVars seems not to be different from
def makeVars(**nameVals):
globals().update(nameVals)
>>>
>>>Not quite. If Ron can come up with a working makeVars it would update
>>>the call
What are the user defined types in Python? Can we call lists, tuples &
dictionaries user-defined data types?
--
http://mail.python.org/mailman/listinfo/python-list
Christos TZOTZIOY Georgiou wrote:
For example, one could issue the following *single* instruction:
MOVE.L ($18000), ($18004)
But the cost of that design is that the machine state becomes more
complicated -- the instruction has to have two distinct memory ops.
Usually this means there is a "secr
Leif B. Kristensen wrote:
Damjan skrev:
For example:
SQL = 'INSERT into TEMP data = %s'
c.execute(SQL, """ text containing ' and ` and all other stuff we
might read from the network""")
Sure, but does this work if you need more than one placeholder?
Yup.
FWIW,
here's the whole script. It will fet
I'm still trying to understand the behaviour that I'm
seeing but I'm already pretty sure that it's either
a bug, or something that would be considered a bug if
it didn't perhaps avoid even worse behaviour.
Inside the join() method of threading.Thread objects,
a Condition named self.__block is acqui
"Michael Spencer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> An Abridged Python Tutorial
>
> There are tips for the novice and tricks
> that will add to your programming kicks.
> But the cardinal rule
> that you must learn at school
> is that spaces and tabs never mix.
Earl Eiland wrote:
There may be different ways to code it. This works.
You're right about that, *as the code now stands*.
The danger is that you are using single backslashes.
The *only* reason this works right now is because none
of the characters you have following those backslashes
happen to b
Michael Spencer wrote:
> How about a category for executable limericks?
>
> Here's one to get the ball rolling:
>
>
> # voice only the alphanumeric tokens
>
> from itertools import repeat
> for feet in [3,3,2,2,3]:
> print " ".join("DA-DA-DUM"
> for dummy in [None]
> for foot in repeat("
"Kay Schluehr" <[EMAIL PROTECTED]> wrote:
> [snipped]
>
> Wouldn't it be fun to use in Python?
>
> Only drawback: does not look like executable pseudo-code anymore :(
>
>
> Regards Kay
I don't know if it would be fun, but it certainly doesn't look accessible to
mere mortals :-) I'm
not sure if th
Thanks for the link. That completely answers my question.
--
http://mail.python.org/mailman/listinfo/python-list
http://www-900.ibm.com/developerworks/cn/linux/sdk/python/charm-28/index_eng.shtml
--
http://mail.python.org/mailman/listinfo/python-list
Because i don't want to use this syntax because it is too long, I want a
direct access :
Not :
DicoUser['TOTO'].DicoTable.['MY_TABLE'].DicoLabel.['MY_LABEL'] = "for
exemple"
Finally, i want to use :
TOTO.MY_TABLE.MY_LABEL = "for exemple"
"Fredrik Lundh" <[EMAIL PROTECTED]> a écrit dans le me
http://twistedmatrix.com/
TASMANIA (DP) -- Found on the Internet on 2005-03-22 by an anonymous
programmer, Twisted 2.0 was obtained by local authorities and kept
isolated for public safety and further study. On 2005-03-25, however,
nano-probes were released from the package's surface and propagat
An Abridged Python Tutorial
There are tips for the novice and tricks
that will add to your programming kicks.
But the cardinal rule
that you must learn at school
is that spaces and tabs never mix.
If there's syntax you don't understand,
assistance is always at hand:
a glance at the cook
1 - 100 of 183 matches
Mail list logo