>> while writing my solution for "The python way?", I came across this fragment:
>> vees = [c for c in wlist[::-1] if c in vocals]
>> cons = [c for c in wlist[::-1] if c not in vocals]
>>
>> So I think: Have I overlooked a function which splits up a sequence
>> into two, based on a condition
Tryi
Hi,
i've included the code so interested people can take a look.
I've tried to expand on the thread of 26/05/2005 on "Checking for a full
house". Code is suboptimal as I coded it rather quickly.
I've added the "normal" classes one would expect from a cardgame: card,
deck, hand etc.
1. I can detec
Raymond Hettinger wrote:
> The answer is a qualified Yes. While the core generator (currently
Thanks! That is the answer I'm looking for.
And to Paul Rubin, it is a good point that Jython might not support it, but
at this point it doesn't interest me. The program is only for myself
anyway.
Sounds like itertools.groupby() is what you're looking for, just sort
your sequence on the grouping func that you will pass as 2nd arg to
groupby(), before you pass the sequence to groupby()
http://www.python.org/doc/2.4/whatsnew/node13.html
http://www.python.org/dev/doc/devel/lib/itertools-functi
"Chris Curvey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I need to create a set of IE instances that have different sets of
> session cookies. I thought that using the win32com.DispatchEx function
> would do this, but it doesn't seem to. In other words
>
> ie1 = win32com.Dispa
I have a driver module as well as several other modules. I am running
the driver interactively from emacs - that is, I don't restart python on
each run. I want to work it such that every time a modify the source for
one of the non-driver modules and re-run the driver, the other modules
will be
ANNOUNCEMENT:
A RFD (REQUEST FOR DISCUSSION) has been posted for the creation of a
new Usenet newsgroup: comp.databases.mysql
The proposal and related discussion can be read in the Usenet group
news.groups ... feel free to weigh in and make any suggestions you
may have.
Message-ID: <[EMAI
The documentation states:
Additionally, the PSP code will be given global variables req, psp,
session and form.
In other words, in your PSP page you can access the "form" variable and
it will
give you access to the FieldStorage object that PSP creates for you.
The members
of the FieldStorage c
or Norvig's IAQ:
http://www.norvig.com/python-iaq.html
--
http://mail.python.org/mailman/listinfo/python-list
So that's how the PSF is raising funds now !
Roger
"Claudio Grondi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> don't click the following link if you are not
> at least 18 years old (or don't like sexual
> related content):
>http://www.python.com/
>
> Clau
As I understand it, newer versions of IE have uploading and downloading
via script disabled as a security measure. You might be able to do some
low-level API calls to deal with the download window.
Roger
"scrimp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Ive been usin
#include canonical design pattern advice
longjmp(Borders or other_big_chain_bookstore)
opt1=fopen("Oreilly's Head first design pattern","r")
opt2=fopen("design patterns book by Shalloway and trott (i think that's
their names)","r")
another=poll("any other intro to DP books that people like?")
max wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
>
>
>>On Mon, 06 Jun 2005 16:12:18 +, max wrote:
>>
>>
>>>This is one thing that bothers me about the gpl. It essentially
>>>tries to create 'code as a legal entity'. That is, it gives
>>>rights not to the cr
poisondart wrote [without quoting the question]:
> Would something like cgi.FieldStorage() be what you're looking for?
>
> form = cgi.FieldStorage()
>
> form[ ] =
>
> http://www.python.org/doc/2.3.5/lib/node406.html
>
The problem with that would be that cgi.FieldStorage [checks manual ...]
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303279
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/347689
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303060
OR: collections.deque:
http://python.org/doc/2.4/lib/deque-recipes.html
flamesrock wrote:
> hmmm..that m
Would something like cgi.FieldStorage() be what you're looking for?
form = cgi.FieldStorage()
form[ ] =
http://www.python.org/doc/2.3.5/lib/node406.html
--
http://mail.python.org/mailman/listinfo/python-list
Ive been looking everywhere, I need to get a var in my .psp file from
another one,
I managed to send it with a form and I can read it with "req.read" but
it reads all of the variables together separated by a "&" like all
POST/GET vars.
How do I store each one in a python var, Im looking for someth
Ive been looking everywhere, I need to get a var in my .psp file from
another one,
I managed to send it with a form and I can read it with "req.read" but
it reads all of the variables together separated by a "&" like all
POST/GET vars.
How do I store each one in a python var, Im looking for someth
I really can't figure out anything about the SMTP module. . .I think I'm in
over my head( Im pretty new to python). Can someone show me a really(and I
mean REALLY) basic tutorial for smtp or explain it?
program:
I want to make my program have a feedback form attached to it at the end
which se
Here is my code in cgi.
=
#!/usr/bin/python
print "Content-Type:text/plain\n\n"
# python code here (create a simulation or graphics)
The python code is ok when I run it in executable file
.py.
Friend told me to change the def
I need to create a set of IE instances that have different sets of
session cookies. I thought that using the win32com.DispatchEx function
would do this, but it doesn't seem to. In other words
ie1 = win32com.DispatchEx("InternetExplorer.Application")
ie2 = win32com.DispatchEx("InternetExplorer.Ap
Could someone send me a good tutorial for sending mail then? The one I found
is not what I'm looking for. Also please dont send me the stmp definition
cause i've looked at that enough.
thanks,
-Ivan
_
Express yourself instantly wi
On 2005-06-06, Jan Danielsson <[EMAIL PROTECTED]> wrote:
>>>The problem is that the design I'm working on won't guarantee
>>>what order the blocks will be returned in -- so I need to be
>>>able to seek to block n's location and write the ckeck block.
>>
>> Exactly. And precisely how did that fai
Ugh. . .I'm really confused. In the example I saw the message was taken
from a file on the computer. . .Like it opened it and then sent it. I guess
I just need to check out the whole thing a bit more before I get specific.
I'll ask again if I need specific help.
thanks,
-Ivan
__
Maybe you could give us a little more info about where you're getting
messed up. The message body is just a string, so if you can build a
string out of variables, you should be able to do it.
--
http://mail.python.org/mailman/listinfo/python-list
Jan Danielsson wrote:
>Is there any way to create a file with a specified size?
Besides the simple
def make_empty_file(filename, size):
f = open(filename, "wb")
f.write("\0" * size)
f.close()
?
If the file is large, try (after testing and fixing any
bugs):
def make_empty_file(filenam
Grant Edwards wrote:
Is there any way to create a file with a specified size?
>>>
>>>What do you want to put in the file? Once you've answered that
>>>question, the solution should present itself.
>>
>>Check blocks from an FEC-encoder (Freenet, more specifically).
>>
>> The problem is tha
On 2005-06-06, Jan Danielsson <[EMAIL PROTECTED]> wrote:
> Erik Max Francis wrote:
>>>Is there any way to create a file with a specified size?
>>
>> What do you want to put in the file? Once you've answered that
>> question, the solution should present itself.
>
> Check blocks from an FEC-enc
On 2005-06-06, Jan Danielsson <[EMAIL PROTECTED]> wrote:
>Is there any way to create a file with a specified size?
Sure:
1) Open a new file for writing.
2) Seek to "specified size"-1.
3) Write one byte.
--
Grant Edwards grante Yow! I just put lots of
Reinhold,
Thanks for your response in the previous thread.
Yours is an interesting question. I haven't come up with a solution,
but I did realize that in the previous problem, the source 'word'
doesn't really need to stay intact...
So perhaps a solution along these lines?
>>> for a in enumerate(
http://python.org/doc/2.4.1/modindex.html
this is the global module index. I'd keep it handy to search through since
it has some of the most useful stuff every intented! =D Try looking through
here to help. . .That's the best I can think of.
-Ivan
_
What version of python do you use? I'll send you the module library. .
.(sorry for double message)
-Ivan
_
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
I just figured this out myself, but probably not the way you're asking.
There are supposed to be ways to change the tab order using
tk_focusNext() and tk_focusPrevious(), but I've never used it.
What I've done is simply point one widget to the next one, basically
creating a linked list of tabs. I
Hi,
i've included the code so interested people can take a look.
I've tried to expand on the thread of 26/05/2005 on "Checking for a full
house". Code is suboptimal as I coded it rather quickly.
I've added the "normal" classes one would expect from a cardgame: card,
deck, hand etc.
1. I can det
Erik Max Francis wrote:
>>Is there any way to create a file with a specified size?
>
> What do you want to put in the file? Once you've answered that
> question, the solution should present itself.
Check blocks from an FEC-encoder (Freenet, more specifically).
The problem is that the des
> > Can you elaborate more? Just any file?
>
>Yes -- a binary file.
>
>The file will contain check blocks for another file. The problem is
>that the order of the received check blocks is not specified, so I need
>to be able seek to the block's position in the file, and then just write
>the blo
EnumKey enumerates subkeys which are equivalent to the folders in
regedit. EnumValue enumerates values only. The reason your script is
not printing anything must be due to the fact that you are passing in a
registry path that contains only subkeys and no values. As I mentioned
before, the folders
Jan Danielsson wrote:
>Is there any way to create a file with a specified size?
What do you want to put in the file? Once you've answered that
question, the solution should present itself.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N
Hello all,
Is there any way to create a file with a specified size?
--
http://mail.python.org/mailman/listinfo/python-list
I'm trying to write to an existing file under windows XP (home). The
files are in 'My Music' which I think may be treated in some special
way under XP. The relevant python code is as follows:
os.chdir(dir)
os.chmod(filename, 0744)
print "Okay to write = "+str(os.access(filename, os.W_OK))
afile =
Here's a snippet of code that demonstrates my problem:
result = PyRun_String ("import math", Py_file_input, pdict,pdict);
result = PyRun_String ("math.sqrt(-1)", Py_file_input, pdict,pdict);
result = PyRun_String ("math.pow(2,1024)", Py_file_input,
pdict,pdict);
Other types of exceptions s
Hello!
I want change default tab traversing in my app. But i don't know how to do it :(
Belowe i include simple example - i want change default tab order:
radiobutton "mode11" -> radiobutton "mode31" -> button OK
I can't find any option, flag, or another way.
I try use wx.EVT_KEY_DOWN macro, o
rbt <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> "Terry Reedy" <[EMAIL PROTECTED]> writes:
>>
>>> On *nix, one could open '/dev/rawdisk' (actual name depends on the
>>> *nix build) and write a tracks worth of garbage for as many tracks
>>> as there are. I don't how to programmaticly get the
Hey i'm new here and relatively new to python. I've made a few small
programs and now I'm making a program for my friends that at the end has a
feedback form. I want to send the feedback back to my email adress. I know
I should use the SMTP module and I have figured out how to send with it,
John,
Thanks for your input. I can kind of see the light in this, but I'm
having difficulty knowing where the "do_open" method comes from. Also,
I'll need to follow redirects, so I assume then I would add a
HTTPRedirectHandler instance to the urllib2.build_opener. (?) Thanks
again for your help.
Previously, on Jun 6, Thomas Bartkus said:
# "James Tanis" <[EMAIL PROTECTED]> wrote in message
# news:[EMAIL PROTECTED]
# > Previously, on Jun 6, Thomas Bartkus said:
# >
# > # "bruno modulix" <[EMAIL PROTECTED]> wrote in message
# > # news:[EMAIL PROTECTED]
# > # > You mean the "wimp gui builde
Thanks to all. Andrew's answer was an excellent explanation. Thanks Leif for
you suggestion.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Leif K-Brooks
> Sent: Monday, June 06, 2005 4:29 PM
> To: python-list@python.org
> Subject: Re: About siz
I'm having some trouble using an HtmlListBox with a GridBagSizer. I'm
not sure how best to explain what's happening, but it seems that every
time my frame gets resized, the HtmlListBox grows taller, even when the
resize is only horizontal, or makes the frame smaller. I'm pretty new
to GUI layout a
On 2005-06-06, rbt <[EMAIL PROTECTED]> wrote:
>> Just open the raw disk device (assuming your Unix has such),
>> and start writing data to it. Keep going until the write fails
>> at the end of the media.
>
> Wouldn't /dev/urandom or /dev/random on Linux systems work
> better?
Maybe. Last time I
"James Tanis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Previously, on Jun 6, Thomas Bartkus said:
>
> # "bruno modulix" <[EMAIL PROTECTED]> wrote in message
> # news:[EMAIL PROTECTED]
> # > You mean the "wimp gui builder + db -> ui pipeline" model ? If yes, C
> # > doesn't have
Mike Meyer wrote:
> "Terry Reedy" <[EMAIL PROTECTED]> writes:
>
>>On *nix, one could open '/dev/rawdisk' (actual name depends on the *nix
>>build) and write a tracks worth of garbage for as many tracks as there are.
>>I don't how to programmaticly get the track size and number (if there is a
>>
"Terry Reedy" <[EMAIL PROTECTED]> writes:
> On *nix, one could open '/dev/rawdisk' (actual name depends on the *nix
> build) and write a tracks worth of garbage for as many tracks as there are.
> I don't how to programmaticly get the track size and number (if there is a
> standard way at all).
Reinhold Birkenfeld wrote:
> To make it short, my version is:
>
> import random
> def reinterpolate2(word, vocals='aeiouy'):
> wlist = list(word)
> random.shuffle(wlist)
> vees = [c for c in wlist[::-1] if c in vocals]
> cons = [c for c in wlist[::-1] if c not in vocals]
Why the [
Terry Reedy wrote:
> "Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>My previous facility didn't even accept mil-spec wipes -- all
>>disk drives leaving the facility had to go through a demagnitizer,
>
>
> OT but I am curious: does a metallic case act as a
Frank Abel Cancio Bello wrote:
> request.add_header('content-encoding', 'UTF-8')
The Content-Encoding header is for things like "gzip", not for
specifying the text encoding. Use the charset parameter to the
Content-Type header for that, as in "Content-Type: text/plain;
charset=utf-8".
--
ht
Hi,
while writing my solution for "The python way?", I came across this fragment:
vees = [c for c in wlist[::-1] if c in vocals]
cons = [c for c in wlist[::-1] if c not in vocals]
So I think: Have I overlooked a function which splits up a sequence into two,
based on a condition? Such as
thanks. It's a huuuge list
--
http://mail.python.org/mailman/listinfo/python-list
I'm having trouble getting any responses back from the following
snippet, where I am just trying to read some data from the Windows
Registry. I intend to do a little bit more with this but will work on
that later, but I think I can get more data back from EnumValue, I'd
like to see the differences
Frank Abel Cancio Bello wrote:
> Can I get how many bytes have a string object independently of its encoding?
> Is the "len" function the right way of get it?
No. len(unicode_string) returns the number of characters in the
unicode_string.
Number of bytes depends on how the unicode character are
On 2005-06-06, Terry Reedy <[EMAIL PROTECTED]> wrote:
> OT but I am curious: does a metallic case act as a metallic shield,
It depends on the metal and the case thickness. Thin
sheet-aluminum provides virtually no magnetic shielding. Some
good thick iron plate will provide shielding.
> so that
max wrote:
> Perhaps 'attempts' is too strong a word. Maybe 'ends up giving' would
> help my argument more. The best example I can come up with at the
> moment is programmer A releases a project under the gpl. Programmer B
> makes a substantial contribution to the project, which pA reads
> thr
Wow... Thanks for all the tips guys...
I will study the above examples.
...down to 8 lines of exquisitely readable code... Wow... Python
rocks...
(still aspiring to greatness myself,)
cheers,
-John
x=["ohndes","j","wu","x[1][0]+x[0][:3]+chr(((len(x))*16))+x[2]+x[0][2:]+`rou
"Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> My previous facility didn't even accept mil-spec wipes -- all
> disk drives leaving the facility had to go through a demagnitizer,
OT but I am curious: does a metallic case act as a metallic shield, so that
the ca
"Raymond Hettinger" <[EMAIL PROTECTED]> writes:
> >> Can I rely on the random.py module to produce the same series of
> >> numbers for future/past versions of Python, given the same seed?
>
> The answer is a qualified Yes. While the core generator (currently the
> Mersenne Twister algorithm) is s
Hello everybody!
We are a group of students at "Freie Universitaet Berlin".
As part of our computer science studies we are going to do
a survey facing the use of design patterns in communication.
Examples of design patterns are "Abstract Factory",
"Singleton", "Composite", "Iterator" and "Listen
On Mon, Jun 06, 2005 at 06:08:36PM -, max wrote:
> I guess my argument is that with multiple contributors, the gpl, in
> comparison to say, a BSD style license, grants power to the code. If 3
> people work on a gpl project, they must agree to any changes. If 3
> people work on a BSD style pr
Grops wrote:
> Hi All,
>
> I've been lurking the list for a month and this is my first post. I am
> hoping this post is appropriate here, otherwise, my apologies.
>
> I'm somewhat new to Python, (I'm reading all the tutorials I can find,
> and have read through Andre Lessa's Developers Handb
Grops wrote:
> Hi All,
>
> I've been lurking the list for a month and this is my first post. I am
> hoping this post is appropriate here, otherwise, my apologies.
>
> I'm somewhat new to Python, (I'm reading all the tutorials I can find,
> and have read through Andre Lessa's Developers Handb
Grops wrote:
> The code just seems kind of bulky to me. I am wondering, is this an
> efficient way to do things, or am I making things harder than
> necessary?
Harder than necessary.
contains() is not needed at all, you can test for 'b in alist' directly.
List comprehensions simplify reinter
Christopher J. Bottaro wrote:
> The problem is:
c.func_b.__name__
> 'wrapper'
>
> That messes up SOAPpy's RegisterFunction() method which apparently depends
> on the __name__ of the function to publish it as an available SOAP
> function.
>
> Any suggestions on how to change the name of c.
Does anyone have any knowledge of where to find details of docs like
"Requirements for Software Coding Standards", etc applicable for work within
the US govt (preferably non-military).
Thanks in advance
Dr Tim Couper UK
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Ve
Well I will repeat the question:
Can I get how many bytes have a string object independently of its encoding?
Is the "len" function the right way of get it?
Laci look the following code:
import urllib2
request = urllib2.Request(url= 'http://localhost:6000')
data = 'data t
max:
>> For me, the fact
>> that corporations are considered people by the law is ridiculous.
Steven D'Aprano wrote:
> Ridiculous? I don't think so. Take, for example, Acme Inc. Acme purchases
> a new factory. Who owns the factory? The CEO? The Chairperson of the Board
> of Directors? Split in e
And you probably should add:
...
def __init__(self, *args):
assert len(args) == len(self.__slots__)
...
--T
--
http://mail.python.org/mailman/listinfo/python-list
How about just doing this:
class Foo(object):
__slots__ = ('a','b','c','d')
def __init__(self, *args):
for (name, arg) in zip(self.__slots__, args):
setattr(self, name, arg)
--T
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
I've been lurking the list for a month and this is my first post. I am
hoping this post is appropriate here, otherwise, my apologies.
I'm somewhat new to Python, (I'm reading all the tutorials I can find,
and have read through Andre Lessa's Developers Handbook.)
I am trying to learn the
venkata subramanian wrote:
> If you have any doubts,
> try to remeber this when creating tuples,
>
> if a tuple is to have 0 elements,
> then it must be given as a=()
> in other words, the ( and the ) are essential
>
> if it has one element,
> then a comma after that element is essential
> a=1,
Steven D'Aprano <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> On Mon, 06 Jun 2005 16:12:18 +, max wrote:
>
>> This is one thing that bothers me about the gpl. It essentially
>> tries to create 'code as a legal entity'. That is, it gives
>> rights not to the creator of some code, but
Christopher J. Bottaro wrote:
> Steven Bethard wrote:
>>... def _impl_wrapper(self, func):
>>... def wrapper(*args, **kwargs):
>>... try:
>>... return func(*args, **kwargs)
>>... except:
>>... print "entered except"
>>...
Frank Abel Cancio Bello wrote:
>Hi all!
>
>I need know the size of string object independently of its encoding. For
>example:
>
> len('123') == len('123'.encode('utf_8'))
>
>while the size of '123' object is different of the size of
>'123'.encode('utf_8')
>
>More:
>I need send in HTTP reques
RFQ wrote:
> I have a comma delimited file where each line in the file is something
> like:
>
> PNumber,3056,Contractor,XYZ Contracting,Architect,ABC Architects,...
>
> So each line is intended to be: key1,value1,key2,value2,key3,value3...
> and each line is to be variable in length (although it
>> Can I rely on the random.py module to produce the same series of
>> numbers for future/past versions of Python, given the same seed?
The answer is a qualified Yes. While the core generator (currently the
Mersenne Twister algorithm) is subject to change across versions,
whenever we've updated t
RFQ wrote:
> Hi, I'm struggling here to do the following with any success:
>
> I have a comma delimited file where each line in the file is something
> like:
>
> PNumber,3056,Contractor,XYZ Contracting,Architect,ABC Architects,...
>
> So each line is intended to be: key1,value1,key2,value2,key3,
On Sat, Jun 04, 2005 at 11:49:28PM -0700, Robert Kern wrote:
> Well, the FSF at least thinks that internal use within an organization
> does not constitute distribution.
Well, the problem are contractors. It's very important (for example in
Germany) for a number of legal reasons that contractors a
Hi all!
I need know the size of string object independently of its encoding. For
example:
len('123') == len('123'.encode('utf_8'))
while the size of '123' object is different of the size of
'123'.encode('utf_8')
More:
I need send in HTTP request a string. Then I need know the length of
Hi, I'm struggling here to do the following with any success:
I have a comma delimited file where each line in the file is something
like:
PNumber,3056,Contractor,XYZ Contracting,Architect,ABC Architects,...
So each line is intended to be: key1,value1,key2,value2,key3,value3...
and each line is
Ive been using PAMIE 1.4 to try to automate web page processes. The one
thing I cannot do with it is upload files and download files.
With uploading files, the file input box does not allow PAMIE to enter
in a path to a file.
With downloading files, I can click on the link to download the file,
b
Hey again Steven,
I'm still having problems...
Steven Bethard wrote:
> Something like this might work:
>
> py> class C(object):
> ... def func_a(self):
> ... print "func_a"
> ... def func_b_impl(self):
> ... print "func_b"
> ... raise Exception
> ... def _
On Mon, 06 Jun 2005 16:12:18 +, max wrote:
> This is one thing that bothers me about the gpl. It essentially tries
> to create 'code as a legal entity'. That is, it gives rights not to
> the creator of some code, but to the code itself.
Can you please show me where in the GPL it gives righ
comp.lang.python is a great newsgroup in that respect - so long as you
ask a semi-intelligent question, you nearly always end up with a quick
and helpful response.
Good luck with learning programming, and Python (IMO its one of the
best possible languages to do it in)
--
http://mail.python.org/m
If you have any doubts,
try to remeber this when creating tuples,
if a tuple is to have 0 elements,
then it must be given as a=()
in other words, the ( and the ) are essential
if it has one element,
then a comma after that element is essential
a=1,
or alternatively
a=(1,)
in other words, an end
Well, if you want to apply object orientatation techniques to your work
you would get something like this. Polymorphism is used to distinct
between the ftp method. Another concept is data encapsulation, see the
filedescription class . A third technique is inheritance - ftp is
derived from an existi
Steven D'Aprano <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> By law, corporations (and possibly some other organisations)
> *are* people. Not natural people like you or I, but nevertheless
> people. For good or bad, this is the legal fact (or perhaps
> "legal fiction") in most countries
Martin Franklin wrote:
> Mark Light wrote:
> > Hi,
> >I have a Pmw.Counter widget and I would like to add a command
> > that is called on pressing either the up or down arrows (the
> > command will be the same for both). I have managed to do this for
> > the entryfield with "entryfield_command
Thanks a lot for your quick response. I actually just
found the answer by myself before reading your reply.
Just printed out the code and read it. The mistake was
pretty obvious then. Yes, Ill try your suggestion. I
was just trying to experiment a bit with inheritance
to understand how it works bet
Although you get infinite recursion with this code, you still get
enough information on the error from the interpreter to help you debug.
Running IDLE, I get a traceback of:
File "C:/Documents and Settings/Jordan/Desktop/more_blah.py", line 11,
in __init__
self.createFrames()
File "C:/Docum
On Sun, 05 Jun 2005 03:57:29 -0400, Terry Reedy wrote:
> "Robert Kern" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Mike Meyer wrote:
>>> I've heard people argue otherwise on this case. In particular, if you
>>> allow an employee to use your GPL'ed-but-not-distributed software
Previously, on Jun 6, Thomas Bartkus said:
# "bruno modulix" <[EMAIL PROTECTED]> wrote in message
# news:[EMAIL PROTECTED]
# > You mean the "wimp gui builder + db -> ui pipeline" model ? If yes, C
# > doesn't have it, C++ doesn't have it (in fact most languages doesn't
# > have it) - and
#
Adam Munoz Lopez wrote:
> Can anyone help with this code... I have infinite
> recursion but since I'm pretty new to Python (and
> programming in general) I can't find where I did the
> mistake.
It really does help to start removing things trying to get the minimal
code which causes the problem.
On Sun, 05 Jun 2005 13:52:09 -0400, Roy Smith wrote:
> One sure sign of somebody trying to write C in Python is when they loop
> over a list by doing
>
> for i in range (len (myList)):
>doSomethingWith (myList[i])
I usually do that, and I've never coded a line of C in my life. I can't
even
1 - 100 of 128 matches
Mail list logo