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 right
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 disclose
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
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
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
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.com
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?
--
[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
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
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 means
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
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
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, eventually
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 in 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
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 number
Jot jot at nad.com writes:
tnozh at 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 realizes
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 this
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)
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)
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 what you are
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
This will be tough to beat! (and not a single rhyme of brace and
space!)
-- Paul
--
http://mail.python.org/mailman/listinfo/python-list
[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 more
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 =
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 would be fun, but it
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 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, two things:
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 write
[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
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 = [None] *
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
How do I get rid of the following warning?
path.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
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
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
--
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?
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.
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,
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
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
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
xy=z
0
(xy)=z
1
Terry J. Reedy
--
http://mail.python.org/mailman/listinfo/python-list
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
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?
path.py:233: FutureWarning: hex/oct constants sys.maxint will return
positive values in Python 2.4 and up
TJR
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 machines. I
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. I'm 15 and have
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.
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
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
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
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 index -s size [-o opcode]
When the user passes the index number(1 or 2), it maps to
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
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
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
R.Meijer wrote:
Jot jot at 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 Troll
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
[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
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
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 Twistery
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:
![CDATA[!--#include virtual=/top.html --]]
and without the CDATASection:
lt;!--#include virtual=/top.html --
when I really need:
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
http://www.want-to-be-sure.blogspot.com Click On Link
--
http://mail.python.org/mailman/listinfo/python-list
[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 - Tutor@python.org
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, happy
On Thu, 24 Mar 2005 23:21:39 -, Grant Edwards [EMAIL PROTECTED] wrote:
How do I get rid of the following warning?
path.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 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
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
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-in
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
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
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
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?
path.py:233: FutureWarning: hex/oct constants sys.maxint will return
positive values in Python
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
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
readings
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
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:
![CDATA[!--#include virtual=/top.html --]]
and without the CDATASection:
lt;!--#include virtual=/top.html --
when
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 Python console
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, xy=z is
effectively (xy) and (y=z)
Xah
[EMAIL PROTECTED]
http://xahlee.org/
Terry Reedy wrote:
Comparisons can be chained, and is evaluated from
Same question.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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 for,
Bugs item #1170065, was opened at 2005-03-24 18:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1170065group_id=5470
Category: Python Library
Group: Python 2.4
Status: Open
Bugs item #1170065, was opened at 2005-03-24 18:24
Message generated for change (Settings changed) made by yain
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1170065group_id=5470
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Bugs item #1170065, was opened at 2005-03-24 18:24
Message generated for change (Settings changed) made by yain
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1170065group_id=5470
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Bugs item #1156441, was opened at 2005-03-04 05:44
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1156441group_id=5470
Category: Python Interpreter Core
Group: 3rd Party
Status: Closed
Bugs item #1170311, was opened at 2005-03-25 02:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1170311group_id=5470
Category: Unicode
Group: Python 2.4
Status: Open
Bugs item #1170331, was opened at 2005-03-25 05:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=105470aid=1170331group_id=5470
Category: Extension Modules
Group: Python 2.4
Status: Open
101 - 185 of 185 matches
Mail list logo