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
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!
--
ut forking.
At the end of November, 2019 I'm going to Archive this GH repository
which will make it read-only.
I'll also need to figure out how to deprecate packages on PyPI so that
people installing know the project is being discontinued.
*Randy Syring*
Husband | Father | Redeemed Sin
New submission from Randy Eckman :
>>> from abc import ABCMeta
>>> class AbstractMeta(type, metaclass=ABCMeta): pass
...
>>> class Meta1(AbstractMeta): pass
...
>>> class Meta2(AbstractMeta): pass
...
>>> class ClassA(metaclass=Meta1): pass
...
Randy Wong <radar...@gmail.com> added the comment:
Submitted pull request:
fix-issue-31455: Changed by adding two lines in the module
"email/_header_value_parser.py" into the function "get_mailbox_list(value)"
before return mailbox_list, value to avoid IndexError.
-
Changes by Randy Henderson <randalljhender...@gmail.com>:
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<http://bu
Randy Henderson added the comment:
You're right. I was expecting the code in stmt to be run only once, but I
just discovered in the documentation that the default is for it to be run
one million times. I provided the argument 'number=1' to the timeit()
method and am now getting the behavior I
New submission from Randy Henderson:
Even when a deque is populated in the Timer setup parameter, the interpreter
gives "IndexError: pop from an empty deque". IndexError is generated for lists
as well.
>>> Timer(stmt='d.popleft()',setup='d=deque([1,2,3])',global
There is a proposal open to discontinue pymssql development and point
people towards pyodbc.
If you have any skin in that game and want to comment, please visit the
issue: https://github.com/pymssql/pymssql/issues/477
<https://github.com/pymssql/pymssql/issues/477>
Thanks.
*Randy
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
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
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
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
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
Randy Syring added the comment:
Old functionality:
(temp)rsyring@loftex:~/projects/hllapi-src$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type help, copyright, credits or license for more information.
import mock
mock.__version__
'1.0.0'
m = mock.Mock
New submission from Randy Syring:
In issue http://bugs.python.org/issue21238 a feature was introduced to help
prevent false-positive test cases by throwing an AttributeError whenever a
non-existent method prefixed with assert_ is used on a mock object.
I had mock objects with legitimate
of a package from the wheelhouse.
Links:
https://pypi.python.org/pypi/Wheelhouse
https://github.com/level12/wheelhouse
*Randy Syring*
Husband | Father | Redeemed Sinner
/For what does it profit a man to gain the whole world
and forfeit his soul? (Mark 8:36 ESV)/
--
https://mail.python.org/mailman
I've started a meetup for Python in the Louisville, KY area. Come check
us out:
http://www.meetup.com/derbypy/
*Randy Syring*
Husband | Father | Redeemed Sinner
/For what does it profit a man to gain the whole world
and forfeit his soul? (Mark 8:36 ESV)/
--
https://mail.python.org/mailman
New submission from Randy Galbraith randygalbra...@cvty.com:
Hi Python Developers,
Our install of Python 2.6.4 on AIX 5.3 seems to have problems finding modules
when invoked via a symlink. A direct path to the binary will work. One symlink
will work, but another will not. I created a test
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
ZS
On Dec 19, 2010 6:05 AM, python-list-requ...@python.org 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
as
On Dec 19, 2010 6:05 AM, python-list-requ...@python.org 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
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
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
of God. 1 Cor 10:31
--
http
OdarR wrote:
On 27 juin, 02:48, Randy Foiles ab...@127.0.0.1 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
Aahz wrote:
In article s%d1m.1325$9l4@nwrddc01.gnilink.net,
Randy Foiles ab...@127.0.0.1 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
laplacia...@gmail.com wrote:
On Jun 26, 8:48 pm, Randy Foiles ab...@127.0.0.1 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
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
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 mar...@letterboxes.org
To: python-list@python.org
Sent: Saturday, March 21, 2009 6:45:20 PM
!
-- Randy Smith
-- Event list on startup with scroll bars:
receiving widget: 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
root : 15 205
New submission from Randy Syring ra...@rcs-comp.com:
http://www.python.org/download/ is missing a link to 2.5.4 in the
standard releases section.
--
assignee: georg.brandl
components: Documentation
messages: 78832
nosy: georg.brandl, rsyring
severity: normal
status: open
title: 2.5.4
!= 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
, but will
research and report back.
Kind regards,
-Randy Galbraith
We seem to be made to suffer. It's our lot in life. - C3PO of Star
Wars
--
http://mail.python.org/mailman/listinfo/python-list
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
/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.
Kind regards,
-Randy Galbraith
ps. Based on uname -rvp output of 2 5 powerpc I'm
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
--
http://mail.python.org/mailman/listinfo
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?
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
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
--
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
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 when en
i have done this readably and simply?
randy
--
http://mail.python.org/mailman/listinfo/python-list
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
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?
--
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
it with bool()
bin[week] = [full, int(not full)]
hmmm. this also reads well.
as an old pascal and modula-2 bondage and discipline type, i gotta
say is it 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
, 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
be a bit more obscure and do
if week in bin:
bin[week][not full] += 1
else:
bin[week] = [ full, not full ]
except i probably have to coerce the types or something. less
code but less obvious.
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
. 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
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
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
--
http://mail.python.org/mailman/listinfo
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
with the same hash=
i am utterly confused
randy
--
http://mail.python.org/mailman/listinfo/python-list
not that there are two entries with the same hash=
i am utterly confused
randy
I'm not sure I got your question but having the same hash(key) is not
having the same key for a dict.
{-1:0,-2:0}
{-2: 0, -1: 0}
hash(-1)!=hash(-2)
False
A key lookup in a dict involve real keys
hate bleeping magic!
but thanks for making me permute.
randy
--
http://mail.python.org/mailman/listinfo/python-list
)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
==
Out of curiosity, does anyone remember who 'jgs' refers to
above?
--
Randy Howard (2reply remove FOOBAR)
--
http://mail.python.org/mailman/listinfo/python-list
-= (centerdensity)
Thanks!!
Randy
--
http://mail.python.org/mailman/listinfo/python-list
61 matches
Mail list logo