On Nov 10, 3:34 am, Mark Shroyer <[EMAIL PROTECTED]> wrote:
> On 2007-11-10, Jonathan Gardner <[EMAIL PROTECTED]> wrote:
> > What would I have done? I wouldn't have had an age matching class. I
> > would have had a function that, given the datetime and a range
> > specification, would return true o
On 10 Kas m, 23:57, Wildemar Wildenburger
<[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I want to create picture of security code.can i do it ?
>
> I don't know what you mean by "security code".
>
> I take it you want to create technical diagrams, from a sort of
> algorithmic descriptio
Why?
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 10, 11:13 am, Scott David Daniels <[EMAIL PROTECTED]>
wrote:
>
> Well, what kind of computer, what version of everything (OS, Python,
> VPython), what display card,
Windows XP Professional
Version 2002, Service Pack 2
1.4GHz, 512MB
ATI MOBILITY RADEON 9000
Python 2.5, VPython 2.5
gs
Michael Bacarella <[EMAIL PROTECTED]> writes:
> If only it were so easy.
I think I know what's going on, the dictionary updates are sending the
GC into quadratic behavior. Try turning off the GC:
import gc
gc.disable()
--
http://mail.python.org/mailman/listinfo/python-list
Does anyone happen to know what's going on with the development of the
Pyzzle engine (for creating Myst-like games with Python)? Seems stalled
for a long time, but I'm not sure if it's just been abandoned.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> (2) More memory will help avoid paging. If you can't get more memory, try
> more virtual memory. It will still be slow, but at least the operating
> system doesn't have to try moving blocks around as much.
>
Based on his previous post, it would seem he has 7GB of RAM (w
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am trying to get a small group of volunteers together to create
> Windows binaries for any Python extension developer that needs them,
> much like the package/extension builders who volunteer their time to
> create Linux RPMs.
>
> Mike
>
It's not entirely cl
Post your softwares and other digital products here. Note that your
post must be downloadable.
Cope,
Owner.
http://groups.google.co.in/group/download-centre
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
(I posted this once before, but haven't gotten a response. This is a
pretty heavy traffic mailing list, so it's hardly surprising, but I'm
going to bump the question in case anybody has seen or can replicate
(or not replicate) this issue. Thx)
I'm using Tkinter to create widgets in Pytho
On Sat, 10 Nov 2007 17:18:37 -0800, Michael Bacarella wrote:
> So, you think the Python's dict implementation degrades towards O(N)
> performance when it's fed millions of 64-bit pseudo-random longs?
No.
Here's my sample file:
$ wc -l id2name.txt
8191180 id2name.txt
$ ls -lh id2name.txt
-rw-rw
On Nov 11, 6:20 am, paulC <[EMAIL PROTECTED]> wrote:
> On 10 Nov, 04:33, Bighead <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am currently working on a CGI deployed on an Apache server, which,
> > given an arbitrary SQL, fetches raw data from a remote DB server and
> > return them in a HTML page. T
On Nov 10, 7:18 pm, TheFlyingDutchman <[EMAIL PROTECTED]> wrote:
> On Nov 9, 8:33 pm, Bighead <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I am currently working on a CGI deployed on an Apache server, which,
> > given an arbitrary SQL, fetches raw data from a remote DB server and
> > return them in a
On Nov 10, 2:22 pm, "Frank Arthur" <[EMAIL PROTECTED]> wrote:
> <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
>
> >A Jew hacker in California admits distributing malware that let him
> > steal usernames and passwords for Paypal accounts.
>
> 83 Newspapers reported the "Hacker stor
Hi...
I have a python script/app that i'm dealing with. It uses Durus, which
installs as an egg.
I'm trying to figure out how to modify any of the underlying source files or
the egg, short of modifying the original source file, and then having to
reinstall the egg via "python setup.py install"...
> That's an awfully complicated way to iterate over a file. Try this
> instead:
>
> id2name = {}
> for line in open('id2name.txt'):
>id,name = line.strip().split(':')
>id = long(id)
>id2name[id] = name
>
> > This takes about 45 *minutes*
> >
> On my system, it takes about a minute an
Jean-Paul Calderone <[EMAIL PROTECTED]> writes:
> Did you use the suppression file?
No, I didn't, because I was testing Valgrind on binaries that happened
to be installed on a Linux machine, and had no reason to treat Python
specifically. I see that README.valgrind explains why Python reads
memo
On Sat, 10 Nov 2007 09:02:01 -0800, Mike Howarth wrote:
> Hi
>
> Seem to be having a bit of brainfreeze this evening.
>
> Basically I'm reducing an array of prices like so:
>>> subtotal = reduce(operator.add, itemprices)
>
> This gives me a string of '86.00.00' which I am trying to use with
> d
Michael Bacarella <[EMAIL PROTECTED]> writes:
> Is there a fast, functionally equivalent way of doing this?
>
> (Yes, I really do need this cached. No, an RDBMS or disk-based hash
> is not fast enough.)
As Steven says maybe you need to add more ram to your system. The
memory overhead of diction
On Sat, 10 Nov 2007 13:56:35 -0800, Michael Bacarella wrote:
> The id2name.txt file is an index of primary keys to strings. They look
> like this:
>
> 11293102971459182412:Descriptive unique name for this record\n
> 950918240981208142:Another name for another record\n
>
> The file's properties
Wildemar Wildenburger <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] wrote:
> > I want to create picture of security code.can i do it ?
> I don't know what you mean by "security code".
I think that means a captcha (www.captcha.net).
--
http://mail.python.org/mailman/listinfo/python-list
Michael Bacarella <[EMAIL PROTECTED]> writes:
> id2name = {}
> for line in iter(open('id2name.txt').readline,''):
> id,name = line.strip().split(':')
> id = long(id)
> id2name[id] = name
>
> This takes about 45 *minutes*
>
> If I comment out the last line in the loop body it takes on
On 10 Nov, 04:33, Bighead <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am currently working on a CGI deployed on an Apache server, which,
> given an arbitrary SQL, fetches raw data from a remote DB server and
> return them in a HTML page. This CGI works fine on quick SQLs.
>
> But when I try to run a slo
A Jew hacker in California admits distributing malware that let him
steal usernames and passwords for Paypal accounts.
http://www.pcworld.com/article/id,139507-c,cybercrime/article.html
The Jews and Israelis the top notch WHITE COLLAR CRIMINALS, YET, they
are harassing MOSLEMS in CALIFORNIA. Do y
On 10 Nov, 15:44, Johnston Jiaa <[EMAIL PROTECTED]> wrote:
> In my Python program (using Tkinter), I would like to have a window
> where the user will be able to draw a simple picture. I don't know
> where to begin.. can somehow give me a general idea how to do
> something like this?
>
> Also, I'd
The id2name.txt file is an index of primary keys to strings. They look like
this:
11293102971459182412:Descriptive unique name for this record\n
950918240981208142:Another name for another record\n
The file's properties are:
# wc -l id2name.txt
8191180 id2name.txt
# du -h id2name.txt
517M
[EMAIL PROTECTED] wrote:
> I want to create picture of security code.can i do it ?
I don't know what you mean by "security code".
I take it you want to create technical diagrams, from a sort of
algorithmic description?
PIL might help you, as paulC pointed out. It works on raster images
(bitmap
have you got any example?pls :S
--
http://mail.python.org/mailman/listinfo/python-list
Mike Howarth <[EMAIL PROTECTED]> writes:
> Basically I'm reducing an array of prices like so:
> >> subtotal = reduce(operator.add, itemprices)
>
> This gives me a string of '86.00.00'
You haven't shown what the input is; what is the value of 'itemprices'
before this line?
When I use floating-po
On 10 Nov, 16:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> hii my friends;
> I want to create picture of security code.can i do it ?
> if yes,how , which module will help me?
> have you got a example that can create a picture whit my name
> pls help me
> thansk
> oruc
You may find the Pyt
wha :S
--
http://mail.python.org/mailman/listinfo/python-list
* [EMAIL PROTECTED] (Sat, 10 Nov 2007 21:15:13 -)
> is there anybody here !!!
The Internet has gone home. Come again tomorrow...
T.
--
http://mail.python.org/mailman/listinfo/python-list
PyScripter provides integrated version control, via TortoiseSVN or
TortoiseCVS and the File Explorer.
On Nov 10, 11:21 am, jwelby <[EMAIL PROTECTED]> wrote:
> On Nov 7, 12:42 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote:
>
> > jwelby wrote:
> ...
>
> > > I currently use Python Scripter as a l
is there anybody here !!!
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 10, 1:12 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote:
> On 2007-11-10 01:44, [EMAIL PROTECTED] wrote:
>
>
>
> >>> The directions for MinGW were usually only partially correct. So I
> >>> went through the two sets of directions I found (links on the site)
> >>> and mixed and matched until I
On Nov 10, 3:20 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
>
> Maybe it would help you if you added an S6 that does nothing underneath
> the "C2 is true" branch of your flow chart.
>
> --
> Carsten Haesehttp://informixdb.sourceforge.net
Think I found a sequence of statements that would work
if
On Sat, 2007-11-10 at 11:54 -0800, [EMAIL PROTECTED] wrote:
> Well, its not homework, and if you don't want to be a tutor, you can
> be a consultant and earn a lot of money.
>
> Here is how I thought of solving this, but it does not work:
>
> While C0 is false
> if C1
> if C2
>
> now what?
Well, its not homework, and if you don't want to be a tutor, you can
be a consultant and earn a lot of money.
Here is how I thought of solving this, but it does not work:
While C0 is false
if C1
if C2
now what?
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-11-10 01:44, [EMAIL PROTECTED] wrote:
>>> The directions for MinGW were usually only partially correct. So I
>>> went through the two sets of directions I found (links on the site)
>>> and mixed and matched until I got it right.
>>> There are no directions on how to use Visual Studio 2003 t
Marc 'BlackJack' Rintsch wrote:
> On Sat, 10 Nov 2007 09:45:47 -0800, rishiyoor wrote:
>
>> I need help coding my flowchart. The C's are conditions, the S's are
>> statements. The statements do not affect the conditions except for S5
>> which is an increment for C0. The left is True, and the righ
On Sat, 10 Nov 2007 17:39:04 +, Marc 'BlackJack' Rintsch wrote:
> On Sat, 10 Nov 2007 18:53:08 +0200, Donn Ingle wrote:
print b.ref.attribute # print "haschanged"
print j.ref.attribute #prints "original value"
## If it changed and an attribute of the Class, then
## wh
On Sat, 10 Nov 2007 09:45:47 -0800, rishiyoor wrote:
> I need help coding my flowchart. The C's are conditions, the S's are
> statements. The statements do not affect the conditions except for S5
> which is an increment for C0. The left is True, and the right is
> False.
>
> I would probably use
On Nov 10, 3:44 pm, Piet van Oostrum <[EMAIL PROTECTED]> wrote:
> With Python this can't be done without either quoting the expression (make
> a string out of it) or using a lambda. Lisp and C# can do this kind of thing.
I'd like to propose we add '() to Python. Pronounced tick-
brackets, it
surr
Thanks for your time and patience Marc, that was some hotshot ascii art.
I'll have to take some time to digest this.
\d
--
http://mail.python.org/mailman/listinfo/python-list
I need help coding my flowchart. The C's are conditions, the S's are
statements. The statements do not affect the conditions except for S5
which is an increment for C0. The left is True, and the right is
False.
I would probably use a while loop (or for loop without S5) for the
first condition C0,
On Sat, 10 Nov 2007 18:53:08 +0200, Donn Ingle wrote:
> Included again for clarity:
>>> class Test:
>>> attribute = "original value"
>>>
>>> class Bob:
>>> def __init__(self):
>>> self.ref = Test()
>>>
>>> class Jim:
>>> def __init__(self):
>>> self.ref =
On Sat, 10 Nov 2007 09:02:01 -0800, Mike Howarth wrote:
> Basically I'm reducing an array of prices like so:
>>> subtotal = reduce(operator.add, itemprices)
Take a look at the built in `sum()` function.
> This gives me a string of '86.00.00' which I am trying to use with decimal
> objects.
So w
On Nov 3, 2007 10:28 AM, BartlebyScrivener <[EMAIL PROTECTED]> wrote:
> Try the free trial of Komodo
>
> http://www.activestate.com/Products/komodo_ide/
Komodo Edit is free
http://www.activestate.com/Products/komodo_edit/
Open Komodo is free and open source:
http://www.openkomodo.com/
--
http://
Hi
Seem to be having a bit of brainfreeze this evening.
Basically I'm reducing an array of prices like so:
>> subtotal = reduce(operator.add, itemprices)
This gives me a string of '86.00.00' which I am trying to use with decimal
objects. Python 2.4 is not particularly happy with this.
Addition
Included again for clarity:
>> class Test:
>> attribute = "original value"
>>
>> class Bob:
>> def __init__(self):
>> self.ref = Test()
>>
>> class Jim:
>> def __init__(self):
>> self.ref = Test()
>>
>> b = Bob()
>> j = Jim()
>>
>> print b.ref.att
On Nov 9, 11:32 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 09 Nov 2007 13:30:03 -0300, <[EMAIL PROTECTED]> escribió:
>
> > On Nov 9, 10:02 am, Tim Golden <[EMAIL PROTECTED]> wrote:
> >> [EMAIL PROTECTED] wrote:
> >> > The hardest part was finding accurate information. Most people
gsal wrote:
> I actually did look at VPython last weekend. I managed to draw a
> soccer field, a few players, move them around and even record/play-
> back playsI was very impressed on how easy it was to learn not
> only VPython, but Python in the first...I did not know any python,
> either.
B
On Sat, 10 Nov 2007 17:00:13 +0200, Donn Ingle wrote:
>> The first creates an attribute of the class, the second creates an
>> attribute in the instance.
>
> Given that, can you clarify this:
>
> class Test:
> attribute = "original value"
>
> class Bob:
> def __init__(self):
>
gsal wrote:
> By the way, VPython crashes my computer rather easily:
>
> - launch the editor
> - open python file
> - press F5 to run
> - when the graphical windows appears, attempt to manipulate (drag or
> resize)
> - the computer looses it...
Well, what kind of computer, what version of everyth
hii my friends;
I want to create picture of security code.can i do it ?
if yes,how , which module will help me?
have you got a example that can create a picture whit my name
pls help me
thansk
oruc
--
http://mail.python.org/mailman/listinfo/python-list
Johny wrote:
> Can anyone give me an example how to apply a threshold value to an
> image?
> (everything above a certain brightness level becomes white, and
> everything below the level becomes black.)
> I was told I should use 256-item mapping table and pass it to the
> "point" method.
> But how s
In my Python program (using Tkinter), I would like to have a window
where the user will be able to draw a simple picture. I don't know
where to begin.. can somehow give me a general idea how to do
something like this?
Also, I'd like for the program to save that picture along with some
tex
> Paddy <[EMAIL PROTECTED]> (P) wrote:
>P> Hi,
>P> # If I have a function definition
>P> def f1(arg):
>P> global capturecall
>P> if capturecall:
>P> ...
>P> do_normal_stuff(arg)
>P> # and its later use:
>P> def f2():
>P> ...
>P> return f1(a and (b or c))
>P> # I would like to
Hi - I need to add support to a program for dates and times. The built-in
Python library seems to be okay for many purposes, but what I would like
would be Unix epoch style times (seconds relative to some date), covering a
large period from the past to the future. What would be nice would be a
libr
On 2007-11-10, Terry Reedy <[EMAIL PROTECTED]> wrote:
> I think you can regard 'No do statement' as rejected. Some
> consider the non-proliferation of loop constructs a feature. I
> believe this includes GvR.
Non-providing of the standard loop constructs, yes. But loop
constructs are plenty prol
> The first creates an attribute of the class, the second creates an
> attribute in the instance.
Given that, can you clarify this:
class Test:
attribute = "original value"
class Bob:
def __init__(self):
self.ref = Test()
class Jim:
def __init__(self):
se
Donn Ingle <[EMAIL PROTECTED]> wrote:
>> class Stack:
>> list = []
> Okay, this has me a little weirded-out. How is this different from
> putting it in:
> def __init__(self):
> self.list = []
> ?
> I see from tests that it is different, but I don't quite grok it. Who
> owns the list r
Hi,
I have a component that i can only access through late binding.
This is working fine , i can use all the exposed methods , but i can't
register (/don't know how to ) event handlers for this component. Is
there someone that knows how to do it or who can spot me a example.
Thx
--
http://ma
Very interesting reply. I must ask a few questions, interleaved:
> If you mean that all instances of Class Canvas and Thing will share
> the *same* Stack, I think we can do it kind of like this:
What's the difference between "same Stack" and "same instance of Stack"? I
thought I knew what an insta
On Nov 10, 7:02 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sat, 10 Nov 2007 03:03:00 -0300, Paddy <[EMAIL PROTECTED]>
> escribió:
>
>
>
> > Hi,
> > # If I have a function definition
> > def f1(arg):
> > global capturecall
> > if capturecall:
> > ...
> > do_normal_stuff(arg)
On 2007-11-10, Jonathan Gardner <[EMAIL PROTECTED]> wrote:
> On Nov 9, 7:12 pm, Mark Shroyer <[EMAIL PROTECTED]> wrote:
>> I guess this sort of falls under the "shameless plug" category, but
>> here it is: Recently I used a custom metaclass in a Python program
>> I've been working on, and I ended u
On Nov 10, 6:54 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> In the second example, if you are trying to capture the expression "0.4
> +1", I don't think that is possible. As far as I know, there is no way
> for the called function to find out how its arguments were created.
On Nov 9, 8:33 pm, Bighead <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am currently working on a CGI deployed on an Apache server, which,
> given an arbitrary SQL, fetches raw data from a remote DB server and
> return them in a HTML page. This CGI works fine on quick SQLs.
>
> But when I try to run a sl
On Nov 3, 6:11 am, Simon Pickles <[EMAIL PROTECTED]> wrote:
> Coming from a Visual Studio background, editing text files and using the
> terminal to execute them offends my sensibilities :)
YOu should take a look at Wing IDE Professional - www.wingware.com
--
http://mail.python.org/mailman/lis
jwelby <[EMAIL PROTECTED]> writes:
> This is a fair question. I didn't phrase my post too well.
>
> I find PyScripter does pretty much everything I need in terms of doing
> actual development for Python. My use of 'lightweight' is by no means
> a criticism of PyScripter - it's more of a complimen
On Nov 3, 9:11 am, Simon Pickles <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have recently moved from Windows XP to Ubuntu Gutsy.
>
> I need a Python IDE and debugger, but have yet to find one as good as
> Pyscripter for Windows. Can anyone recommend anything? What are you all
> using?
>
> Coming from a
On 11 10 , 5 48 , Donn Ingle <[EMAIL PROTECTED]> wrote:
> ## == API in another module perhaps ===
> Class Stack:
> def push(self,stuff):
> pass
>
> Class Canvas:
> def do(self):
> s.push("data") #I don't feel right about 's' here.
>
> Class Thing:
> def buzz(self):
> print s.pop(0)
>
>
Can anyone give me an example how to apply a threshold value to an
image?
(everything above a certain brightness level becomes white, and
everything below the
level becomes black.)
I was told I should use 256-item mapping table and pass it to the
"point" method.
But how should the 256-item mapp
On Nov 7, 12:42 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote:
> jwelby wrote:
...
>
> > I currently use Python Scripter as a lightweight editor for Windows.
>
> Could you elaborate on "lightweight"
> please? I find PyScripter to be a
> powerful editor/debugger combination.
>
> What functionali
Hello,
I am trying to create a GUI in python/pylab (latest versions) with a
textfield. The information from the textfield shall be read out, if a
specific button is pressed. How can I create such textfield?
Thank Isabelle
--
http://mail.python.org/mailman/listinfo/python-list
75 matches
Mail list logo