enter
center -= (center>>density)
Thanks!!
Randy
--
http://mail.python.org/mailman/listinfo/python-list
Those are contradictory for what you are trying to accomplish unless it is a
Parent - Child relationship (MainWindow - Window):
When you super() an object, it enherits all the properties from its parent
object.
Source:
https://www.w3schools.com/python/python_inheritance.asp
If what you want
, in ?
ValueError: too many values to unpack
>>>
so, i imagine what is happening is the lhs, t,l, is really
(t, (l)), i.e. only two items.
so how should i have done this readably and simply?
randy
--
http://mail.python.org/mailman/listinfo/python-list
_Y__)
> /\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
> ==
Out of curiosity, does anyone remember who 'jgs' refers to
above?
--
Randy Howard (2reply remove FOOBAR)
--
http://mail.python.org/mailman/listinfo/python-list
are two entries with the same hash=
i am utterly confused
randy
--
http://mail.python.org/mailman/listinfo/python-list
-604503432 917088000 917088000
>> 917088000 917088000
>> 12.0.0.0 -2054516913 9 -1293912648 7018 329707286 hash= -1578430040
>> 917088000 917088000 917088000 917088000
>> 12.0.0.0 -2054516913 9 -1293912648 7018 329707286 hash= -1578430040
>> 917088000 917088000 9170880
in .iteritems()" problem
i did not work out what i was doing wrongly. but now it works. i
hate ing magic!
but thanks for making me permute.
randy
--
http://mail.python.org/mailman/listinfo/python-list
computers are cheap. i am expensive. give me clear and maintainable
code every time.
randy
--
http://mail.python.org/mailman/listinfo/python-list
would ask.
mahalo,
randy
--
http://mail.python.org/mailman/listinfo/python-list
>> hold = self.next
>> self.next = DaClass(value)
>> self.next.next = hold
> shouldn't that last line be this?
> self.next.prev = hold
single threaded list
> What did you expect, and what did you ovserve?
i will try to distill a case
randy
--
about 0.25, this
message being my contribution to the noise.
the s here is pretty darn good. but the n is pretty silly.
randy
--
http://mail.python.org/mailman/listinfo/python-list
i am doing disgusting looking junk based on calendar. example
now = calendar.timegm(time.gmtime())
aWeek = 7*24*60*60
print time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(now + aWeek))
randy
--
http://mail.python.org/mailman/listinfo/python-list
> There is also a python tutor newsgroup at gmane
> (gmane.comp.python.tutor).
is there a mailing list to which it is gated?
randy
--
http://mail.python.org/mailman/listinfo/python-list
e, i thought i would ask.
> I think you're fine.
indeed. the bug was elsewhere. i got confused and tried to
look-ahead too far when i could have just recursed. i threw
away the too-clever code and replaced it with one line. i
love it when that happens.
randy
--
http://mail.python.org/mailman/listinfo/python-list
, y, z
should the dict value become a two element list, or is
there a cleaner way to do this?
randy
--
http://mail.python.org/mailman/listinfo/python-list
+ ",," + str(k)
elif k == 0:
print str(i) + "," + str(j)
else:
print str(i) + "," + str(j) + "," + str(k)
which is still pretty darned grotty and unexpressive. of course,
i could be a bit more obscure and do
if week
erfectly fine if the list doesn't
> live longer than about one screen of code.
i can definitely see that. in last weeks installment, i buried a
complex trinary tree in a class.
thanks for the advice!
randy
--
http://mail.python.org/mailman/listinfo/python-list
a breath of fresh air to be in a language and community
which care about how code reads more than how clever it is.
randy
--
http://mail.python.org/mailman/listinfo/python-list
> I am wondering why I am getting this error. when I try to run a script.
> TypeError: translate() takes at most 3 arguments (10 given)
> but the thing is the method translate actually accepts 10 arguements.
without code, how is anyone to know?
--
http://mail.python.org/mailman/listinfo/python
> I'm very sorry to say, that the Python doc is one of the worst possible
> in the industry.
you are entitled to a full refund
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
best_...@yahoo.com says...
[snip]
> Anyway, I am happy with the outcome even though I have
> not found a way to detect when the program is force
> killed. It is unlikely that would ever occur as long
When your peogram starts, have it create
a small file. As part of your graceful
s
I'm writing a simple image manipulation
on a PhotoImage (tkinter), and running
into an odd problem. The code below works,
except for one thing:
As the image is scanned, I'd like to
observe the pixels getting inverted on
the image (as a kind of progress bar).
What happens is that the code run
In article ,
illusiontechniq...@gmail.com says...
[snip]
> If you want to pass arguments to a command called when a button is
> clicked, you have to use 'lambda' in tkinter.
Thanks. I just skimmed over lambda before now...
> You can't expect a delay to happen during the mainloop() of the
> pr
In article ,
em...@fenx.com says...
[snip]
> I have no idea why, but here are some ideas I'd try out.
> So is it refreshing upon completion of the loop, or upon exit from
> process()?
It turns out I need to call root.update_idletasks()
for my root Tk object to get it to refresh after
I put t
In article ,
tjre...@udel.edu says...
[snip]
> > I made my 'root' Tk instance global, and
> > call root.update_idletasks() after the
> > .put
> I did not see the original post, but the alternative way to animate is
> to use root.after(milliseconds, callback, *args) at the end of callbacks
> t
Can stdout and stderr be redirected to the same file? I would like to redirect both to the same file but I'm not sure how to do it. Currenting I'm redirectiong stdout using the following code:
saveout = sys.stdout fsock = open('runtime.log', 'w') sys.stdout = fsock
The problem is that
There is a free Beta test of a Python 2.4 Certification test available
at Brainbench.com. They are a provider of skills-based certification
exams.
Go to the link below to find the test. It is free to take the test.
http://www.brainbench.com/xml/bb/common/testcenter/betatests.xml
--
http://mail.p
I need just the file name from a string containing the path to a file. The
name of the file starts with zeros. This is problematic because the lstrip
function strips them leaving this as the result:
6128.jpg
How do I strip the path without losing the leading zeros in the file name?
―
Thanks for the basename suggestion. That almost works. I'm running into a
problem with some of the directory names when they include \800x\ see below.
―-
import sys, os, string
teststring = 'C:\shoreline\dvd\prep area
I use pyhook to monitor user usage of keyboard and mouse. According to
pyhook specs, event.time hold the number of seconds since the epoch.
However, when I use the example source code I get numbers like
358054093, which translates to 07 May 1981..
Can anyone explain to me what am I doing wrong?
T
p would be appreciated.
Thanks!
-- Randy Smith
-- Event list on startup with scroll bars:
: width height
root : 220 220
root : 1 1
iwidget : 220 220
root : 220 220
vscroll : 16 204
root : 16 204
hscroll : 204 16
root : 204 16
ilabel : 204 204
root : 204 204
vscroll : 15 205
ro
that allocates resources (memory, file
opens, etc.), how do these resources get cleaned up when an object is
destroyed? Custom method?
At the moment, this architecture seems a bit asymmetric if the __del__ method
is not called.
Thanks,
Randy
--
http://mail.python.org/mailman
only for simple object cleanup...at least based on
what I've read so far.
Someone mentioned a "context manager" earlier...I may see what this is about as
well, since I'm new to the language.
Thanks!
Randy
From: Albert Hopkins
To: python
more suitable?
(c) I am concerned about the two failing test cases: test_mmap and
test_wait4. Are there good reasons why these failures can be safely
ignored?
(d) Should I be concerned with the skips of test_largefile and
test_ctypes?
Much thanks in advance.
Kind regards,
-Randy Galbraith
-DPy_BUILD_CORE -o
Modules/python.o ./Modules/python.c
In file included from Include/Python.h:83,
from ./Modules/python.c:3:
Include/unicodeobject.h:73:2: error: #error Must define
Py_UNICODE_SIZE
What is Py_UNICODE_SIZE and why was it not defined? There are current
questions I have
Thus it would seem use cif here resulted in a segment violation. I'll
continue to research this issue and report back to the group as I know
more. Perhaps solving the issue with the 'c' and 'm' libraries
(whatever they might be) will make the core dump go away. However,
for tonight, I'll need to stop here.
Kind regards,
-Randy Galbraith
--
http://mail.python.org/mailman/listinfo/python-list
.2/Lib/test/fork_wait.py", line 75, in test_wait
self.wait_impl(cpid)
File "Python-2.5.2/Lib/test/test_wait4.py", line 28, in wait_impl
self.assertEqual(spid, cpid)
AssertionError: 0 != 6840386
What do these failures indicate? Not sure of course, but will
research and report back
5.2/Lib/test/fork_wait.py", line 75, in
test_wait
self.wait_impl(cpid)
File "Lib/test/test_wait4.py", line 28, in wait_impl
self.assertEqual(spid, cpid)
AssertionError: 0 != 8417358
--end results--
Thanks for taking your time to respond. It is truly appreciated at
this end.
Kind regards,
-Randy Galbraith
--
http://mail.python.org/mailman/listinfo/python-list
hanks
Randy Kreuziger
(360) 902-2495 Voice
(360) 902-2940 Fax
ArcSDE Administrator
Wash Dept of Fish and Wildlife
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a small test program written trying to set up a dictionary that
points keys to functions. It is working. However, in the process of
creating it I noticed a weird problem. The problem is that this IS WORKING
and I think it shouldn't be.
~ Here is the input config file code ~ its cal
ZS
On Dec 19, 2010 6:05 AM, wrote:
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subject or body 'help' to
> python-lis
as
On Dec 19, 2010 6:05 AM, wrote:
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subject or body 'help' to
> python-lis
Lots of stuff for 2.6 and 2.7 -- what GUI tools are there for 3.1?
Randy
--
http://mail.python.org/mailman/listinfo/python-list
ay I guess :)
Thanks for your thoughts
Randy theslayers9 gmail
--
http://mail.python.org/mailman/listinfo/python-list
OdarR wrote:
On 27 juin, 02:48, Randy Foiles wrote:
Hello and thank you for taking your time to read this.
I was interested in learning about python. In the long ago past I did
learn some programing but I have not used any of it for years. I do
remember some basics however so the
Aahz wrote:
In article ,
Randy Foiles wrote:
I do realize that everyone is different but I would like to see some
suggestions and maybe reasons why you think it is good. I have looked
for/searched and found a few different books but as my means are a bit
limited right now I don't r
laplacia...@gmail.com wrote:
On Jun 26, 8:48 pm, Randy Foiles wrote:
Hello and thank you for taking your time to read this.
I was interested in learning about python. In the long ago past I did
learn some programing but I have not used any of it for years. I do
remember some basics
x27;t really care so much
about the search syntax except that easy and intuitive is best for
users. Does something like this exist?
--
------
Randy Syring
Intelicom
502-644-4776
"Whether, then, you eat or drink or
whatever you do, do all to the glory
Good morning, when I run the Python program after installing the
latest version, I get this message (attached file), I have already
reinstalled the program several times and the same message keeps
appearing; What solution could you give me, thank you!
--
https://mail.python.org/mailman/listinfo/py
49 matches
Mail list logo