Re: When should I use "parent=None" in __ini__ and "parent" in super()

2022-09-01 Thread Randy Johnson
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

software installation problems

2021-08-30 Thread randy darwin lozanovalle
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! --

Discontinuing the pymssql Project

2019-11-06 Thread Randy Syring
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

[issue36881] isinstance raises TypeError for metaclass with metaclass=ABCMeta

2019-05-10 Thread Randy Eckman
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 ...

[issue31445] Index out of range in get of message.EmailMessage.get()

2018-05-14 Thread Randy Wong
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. -

[issue31099] Timer error pop from empty deque/list

2017-08-01 Thread Randy Henderson
Changes by Randy Henderson <randalljhender...@gmail.com>: -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue31099] Timer error pop from empty deque/list

2017-08-01 Thread Randy Henderson
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

[issue31099] Timer error pop from empty deque/list

2017-08-01 Thread Randy Henderson
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

Proposal to discontinue pymssql in favor of pyodbc

2017-01-27 Thread Randy Syring
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

Re: [Newbie] Tkinter Question

2016-02-25 Thread Randy Day
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

Re: 2.7.9: PhotoImage get/put

2015-10-21 Thread Randy Day
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

Re: 2.7.9: PhotoImage get/put

2015-10-21 Thread Randy Day
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

Re: 2.7.9: PhotoImage get/put

2015-10-21 Thread Randy Day
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

2.7.9: PhotoImage get/put

2015-10-20 Thread Randy Day
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

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Randy Syring
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

[issue24758] unittest.mock.Mock's new unsafe feature needs a better error message

2015-07-30 Thread Randy Syring
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

Introducing Wheelhouse

2015-06-26 Thread Randy Syring
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

DerbyPy Meetup, Louisville area, this Thursday at 6:30

2014-08-11 Thread Randy Syring
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

[issue13168] Python 2.6 having trouble finding modules when invoked via a symlink

2011-10-13 Thread Randy Galbraith
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

GUI Tools for Python 3.1

2010-12-23 Thread Randy Given
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

Re: Python-list Digest, Vol 87, Issue 122

2010-12-20 Thread Randy Given
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

Re: Python-list Digest, Vol 87, Issue 122

2010-12-20 Thread Randy Given
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

Trying to set up dictionary to map to functions

2009-12-08 Thread Randy Belt
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

search term parsing like Google/Gmail

2009-09-09 Thread Randy Syring
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

Re: looking for a book on python

2009-06-27 Thread Randy Foiles
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

Re: looking for a book on python

2009-06-27 Thread Randy Foiles
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

Re: looking for a book on python

2009-06-27 Thread Randy Foiles
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

__init__ vs. __del__

2009-03-21 Thread Randy Turner
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

Re: __init__ vs. __del__

2009-03-21 Thread Randy Turner
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

TkInter: Problem with propagation of resize events through geometry manager hierarchy?

2009-02-07 Thread Randy Smith
! -- 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

[issue4809] 2.5.4 release missing from python.org/downloads

2009-01-02 Thread Randy Syring
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

Re: Compiling Python 2.5.2 on AIX 5.2

2008-05-10 Thread Randy Galbraith
!= 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

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-22 Thread Randy Galbraith
, 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

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-20 Thread Randy Galbraith
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

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-14 Thread Randy Galbraith
/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

Compiling Python 2.5.2 on AIX 5.2

2008-04-13 Thread Randy . Galbraith
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

Translating Event.time from pyhook

2007-09-27 Thread randy . tucker7
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?

Maintaining leading zeros with the lstrip string function?

2007-07-23 Thread Randy Kreuziger
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?

RE: Maintaining leading zeros with the lstrip string function?

2007-07-23 Thread Randy Kreuziger
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

Python 2.4 online certification - new items available for Beta testing

2006-10-12 Thread Randy Kraemer
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 --

Executing a DOS program from within Python

2006-03-16 Thread Randy Kreuziger
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

Redirecting both stdout and stderr to the same file

2005-12-27 Thread Randy Kreuziger
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

how best to split into singleton and sequence

2005-10-18 Thread Randy Bush
i have done this readably and simply? randy -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Randy Bush
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

Re: Arguement error

2005-08-31 Thread Randy Bush
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? --

Re: trictionary?

2005-08-29 Thread Randy Bush
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

Re: trictionary?

2005-08-29 Thread Randy Bush
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

trictionary?

2005-08-28 Thread Randy Bush
, 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

Re: trictionary?

2005-08-28 Thread Randy Bush
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

Re: need a little help with time

2005-08-27 Thread Randy Bush
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

Re: Experience regarding Python tutorials?

2005-08-27 Thread Randy Bush
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

Re: list insertion

2005-08-27 Thread Randy Bush
. 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

Re: Jargons of Info Tech industry

2005-08-26 Thread Randy Bush
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

Re: list insertion

2005-08-24 Thread Randy Bush
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

Re: loop in python

2005-08-23 Thread Randy Bush
computers are cheap. i am expensive. give me clear and maintainable code every time. randy -- http://mail.python.org/mailman/listinfo/python-list

list insertion

2005-08-23 Thread Randy Bush
would ask. mahalo, randy -- http://mail.python.org/mailman/listinfo/python-list

dict duplicity

2005-08-18 Thread Randy Bush
with the same hash= i am utterly confused randy -- http://mail.python.org/mailman/listinfo/python-list

Re: dict duplicity

2005-08-18 Thread Randy Bush
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

Re: dict duplicity

2005-08-18 Thread Randy Bush
hate bleeping magic! but thanks for making me permute. randy -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expresiveness in a Computer Language?

2005-07-10 Thread Randy Howard
) /\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ == Out of curiosity, does anyone remember who 'jgs' refers to above? -- Randy Howard (2reply remove FOOBAR) -- http://mail.python.org/mailman/listinfo/python-list

Please help me understand this code....

2005-06-17 Thread randy
-= (centerdensity) Thanks!! Randy -- http://mail.python.org/mailman/listinfo/python-list