Re: [FAQ] "Best" GUI toolkit for python

2016-10-19 Thread Mark Summerfield
On Tuesday, October 18, 2016 at 9:09:46 PM UTC+1, Demosthenes Koptsis wrote: > My favorite GUIs are PyQt and wxPython. > > I prefer PyQt than PySide because PySide seem to me like an abandoned > project. [snip] It does seem that PySide 1 isn't making any visible progress. However, PySide 2 for

Re: Python GUI application embedding a web browser - Options?

2016-10-19 Thread Mark Summerfield
On Wednesday, October 19, 2016 at 11:08:15 AM UTC+1, Paul Moore wrote: > I'm looking to write a GUI application in Python (to run on Windows, using > Python 3.5). The application is just a relatively thin wrapper around a > browser - it's presenting an existing web application, just in its own w

Re: [FAQ] "Best" GUI toolkit for python

2016-10-20 Thread Mark Summerfield
opment) > > https://www.amazon.com/Programming-Python-Prentice-Software-Development/dp/0132354187/ref=sr_1_1?ie=UTF8&qid=1476901015&sr=8-1&keywords=rapid+qt+python > > Inside the book the apps are been developed in PyQt > > Regards, > Dim > > On 10/19/2016 03:49 PM,

Re: The Case Against Python 3

2016-11-25 Thread Mark Summerfield
ugh, i've been looking for another > member of my dream team for some time. > > Kindest regards. > > Mark Lawrence. I think the article is full of factual errors and is at best misleading and at worst downright dishonest in its criticisms of Python 3. (My only serious complai

Is there a lint tool that can spot unused classes/methods/attributes/functions/etc?

2017-02-02 Thread Mark Summerfield
Suppose I have a project with an application .py file and various module .py files all in the same directory, and after lots of refactoring and other changes the modules contain lots of unused stuff. Is there a lint tool that will spot the unused things so that I can get rid of them? I've tried

Re: Futurize maps StringIO.StringIO to io.StringIO

2018-03-08 Thread Mark Lawrence
can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Flask: request vs Request

2018-03-11 Thread Mark Lawrence
json if that content type was specified. Could you please give some context when you reply, TIA. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: 2.7 EOL = 2020 January 1

2018-03-14 Thread Mark Lawrence
'istory! It's off the twig! It's kicked the bucket, it's shuffled off its mortal coil, run down the curtain and joined the bleedin' choir invisible!! THIS IS AN EX-VERSION!! """ Pythonically-yers, -tkc I'd still like to know what the core develo

Re: How to fill in a dictionary with key and value from a string?

2018-04-01 Thread Mark Lawrence
uage can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Filtering computer.lang.python

2018-04-11 Thread Mark Lawrence
as I can't be bothered any more. That is I would go onto gg and directly mark all the spam as spam. Is this coincidence? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: www.python.org down

2018-04-30 Thread Mark Lawrence
-list When originally reported I was getting, and am still getting, 502. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: www.python.org down

2018-04-30 Thread Mark Lawrence
On 30/04/18 19:41, Bill Deegan wrote: back up for me. Ditto :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: write to file

2018-05-05 Thread Mark Lawrence
n.org/3/library/stdtypes.html#old-string-formatting The new style https://docs.python.org/3/library/string.html#format-string-syntax If you have Python 3.6 f-strings Thanks in advance -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do fo

Re: Suggestion for a "data" object syntax

2018-05-08 Thread Mark Lawrence
sy) way, so there's no point debating this. Fortunately for the rest of us, status quo wins a stalemate. ChrisA Please stop feeding the OP, to my knowledge he's never once come up with any sensible suggestion for Python. -- My fellow Pythonistas, ask not what our language can do for yo

Re: How to use an API (xsd format) in Python?

2018-05-10 Thread Mark Lawrence
as, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: how to get INDEX count, or last number of Index

2018-05-23 Thread Mark Lawrence
lowing your question; len(s)-1 is much faster than enumerating over the string just to get the last index. -1 is even faster. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: FULLSCREEN and DOUBLEBUF

2018-06-07 Thread Mark Lawrence
= pygame.display.set_mode((screen_width,screen_height), pygame.FULLSCREEN | pygame.DOUBLEBUF) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python System Error

2018-06-09 Thread Mark Lawrence
language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: FULLSCREEN and DOUBLEBUF

2018-06-09 Thread Mark Lawrence
thonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Filters

2018-06-12 Thread Mark Lawrence
aving your own inbox clear. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Stefan's headers [was:Names and identifiers]

2018-06-14 Thread Mark Lawrence
language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: How to apply filters to posts

2018-06-14 Thread Mark Lawrence
mples :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Mark Lawrence
use thunderbird, there are umpteen other choices. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-19 Thread Mark Lawrence
hasn't Rick been banned years ago for this kind of crap? The moderators are mostly thick Yanks who think that rr, Trump and Putin are decent people? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Anyone here on Python-Dev mailing list?

2018-06-25 Thread Mark Lawrence
n case it isn't a bot but some nutter with an attitude emailing me privately. I see nothing like this reading python-dev via gmane. I rarely get anything in my private email inboxes about Python. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our

Re: syntax difference

2018-06-25 Thread Mark Lawrence
, archives here https://mail.python.org/pipermail/python-3000/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Where's the junk coming from?

2018-06-25 Thread Mark Lawrence
complete email addresses are given right at the top. What gives? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-25 Thread Mark Lawrence
the python experts will now point out. The exception is that if you really do need the index, you write:- for i, elem in enumerate(list): -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-25 Thread Mark Lawrence
itten by a troo Molesworth fann. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Where's the junk coming from?

2018-06-25 Thread Mark Lawrence
On 24/06/18 21:39, Mark Lawrence wrote: Hi folks, In the last hour or so I've seen via thunderbird and gmane around 15 emails from various people where the from field is name@1261/38.remove-r7u-this.  The part after the @ symbol never changes.  I've seen the contents previously,

Re: syntax difference

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 24/06/18 00:44, boB Stepp wrote: > I imagine that the > transition from version 2 to 3 was not undertaken halfheartedly, but > only after much thought and discussion since it did break backwards > compatibility. > So much so that a specific mailing list was

Re: Anyone here on Python-Dev mailing list?

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 24/06/18 17:07, Steven D'Aprano wrote: > Anyone on the Python-Dev mailing list, are you getting private emails > containing nothing but stream of consciousness word-salad from somebody > (some bot?) calling himself "Chanel Marvin" with a gmail addr

Where's the junk coming from?

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence Hi folks, In the last hour or so I've seen via thunderbird and gmane around 15 emails from various people where the from field is name@1261/38.remove-r7u-this. The part after the @ symbol never changes. I've seen the contents previously, apart from one from the R

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 25/06/18 10:10, Alister via Python-list wrote: > On Mon, 25 Jun 2018 11:36:25 +0400, Abdur-Rahmaan Janhangeer wrote: > >> i think he means like for a loop to iterate over a list you might do >> >> list = [1,2,3] >> for i in range(le

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 25/06/18 17:15, jkn wrote: > On Monday, June 25, 2018 at 4:23:57 PM UTC+1, Chris Angelico wrote: >> On Mon, Jun 25, 2018 at 11:15 PM, jkn wrote: >>> (as well as pedanticism ;-o). >> >> Pedantry. >> >> ChrisA >> (You know I

Re: syntax difference

2018-06-26 Thread Mark Lawrence
dious. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Error Launching python 3.7.0

2018-06-28 Thread Mark Lawrence
re, so see e.g. https://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/python-360-cant-start-because-api-ms-win-crt/a58999ec-a94e-44ad-8f92-8136ce98871b -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: Where's the junk coming from?

2018-06-29 Thread Mark Lawrence
) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-04 Thread Mark Lawrence
out THREE numbers! -Jim Please take this offline as it's completely irrelevant to this list. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: File names with slashes [was Re: error in os.chdir]

2018-07-04 Thread Mark Lawrence
os.altsep which if I'd heard about I'd forgotten about :) And others. Failing that there's always pathlib https://docs.python.org/3/library/pathlib.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-05 Thread Mark Lawrence
ack to the good old days when people on this list could write in English and didn't top post. So much for progress :( -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-05 Thread Mark Lawrence
$356,000,000 payout. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-06 Thread Mark Lawrence
can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: about main()

2018-07-06 Thread Mark Lawrence
. The rest was TL;DR. -Jim Welcome to an exclusive club, my dream team. Congratulations :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: 转发: No pip for my Python 3.6.5!

2018-07-09 Thread Mark Lawrence
stas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Hey Ranting Rick, this is your moment to shine!

2018-07-13 Thread Mark Lawrence
"Thou shalt not extract the urine"? :) *runs and hides* Sorry-sometimes-I-can't-help-myself-I-would-have-deleted-this-post-but-I- already-hit-send-ly y'rs, -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark L

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Mark Lawrence
;s obvious that he's clueless. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Mark Lawrence
27;t resist having a personal dig. You are a troll and should have been banned from this list years ago. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Mark Lawrence
do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
sk not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
On 16/07/18 17:26, Larry Martell wrote: On Mon, Jul 16, 2018 at 12:05 PM, Mark Lawrence wrote: On 16/07/18 15:17, Dan Sommers wrote: On Mon, 16 Jul 2018 10:39:49 +, Steven D'Aprano wrote: ... people who think that if ISO-8859-7 was good enough for Jesus ... It may have been

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
On 16/07/18 17:22, Chris Angelico wrote: On Tue, Jul 17, 2018 at 2:05 AM, Mark Lawrence wrote: On 16/07/18 15:17, Dan Sommers wrote: On Mon, 16 Jul 2018 10:39:49 +, Steven D'Aprano wrote: ... people who think that if ISO-8859-7 was good enough for Jesus ... It may have been

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
table, he's just the latest in a long line of trolls. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
so why should anybody need to bypass it? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Mark Lawrence
tas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Glyphs and graphemes [was Re: Cult-like behaviour]

2018-07-17 Thread Mark Lawrence
this offline, as you've all ready been asked to do by a moderator, Tim Golden. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: PyDocs Arabic Translation Started and Call to Interested Parties viz en-ar Speakers

2018-07-19 Thread Mark Lawrence
not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM

2018-07-19 Thread Mark Lawrence
gmane. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: import in code

2018-07-22 Thread Mark Lawrence
o import itself, but then perhaps you meant module B should be importing module A? :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: coding style - where to declare variables

2018-07-22 Thread Mark Lawrence
ion times before. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Error installing scripts in python 37-32

2018-07-22 Thread Mark Lawrence
of any mind readers :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Format list of list sub elements keeping structure.

2018-07-24 Thread Mark Lawrence
'GlossEntry', 'GlossDef', 'GlossSeeAlso', 1], when it hits these lines I get TypeError: sequence item 6: expected str instance, int found Do I need to do an explicit check for these 2 cases or is there a simpler way? Cheers Sayth out = '[{0}]'.

Re: Guilty as charged

2018-07-27 Thread Mark Lawrence
ranteed), but that that is the Pythonic thing to do. ... Maybe I missed it, but I'll remember it now. --- Joseph S. Your apology is accepted. Thank you. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Program to output a subset of the composite numbers

2018-08-17 Thread Mark Lawrence
t what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Shall I worry about python2/3 compatibility when using library?

2018-08-31 Thread Mark Lawrence
, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

PEP 8001 -- Python Governance Voting Process

2018-09-03 Thread Mark Lawrence
I believe that this https://www.python.org/dev/peps/pep-8001/ may be of interest. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Why list.reverse() modifies the list, but name.replace() does not modify the string?

2018-09-03 Thread Mark Lawrence
confusing. How do you do it? Thank you! -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Why list.reverse() modifies the list, but name.replace() does not

2018-09-05 Thread Mark Lawrence
s you see fit. > > Why the two examples produce different results? As a beginner, I find this > confusing. How do you do it? > > Thank you! > -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

PEP 8001 -- Python Governance Voting Process

2018-09-05 Thread Mark Lawrence
I believe that this https://www.python.org/dev/peps/pep-8001/ may be of interest. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: don't quite understand mailing list

2018-09-07 Thread Mark Lawrence
00 -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread Mark Lawrence
can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: clever exit of nested loops

2018-09-26 Thread Mark Lawrence
break with the semantics of break a loop if an inner loop "broke"? To me the Ned Batchelder presentation https://www.youtube.com/watch?v=EnSu9hHGq5o "Loop like a Native" is the definitive way on how to deal with loops in Python. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: So apparently I've been banned from this list

2018-10-01 Thread Mark Lawrence
on.org/pipermail/python-list/2018-July/735735.html [2] https://mail.python.org/pipermail/python-list/2018-September/737020.html Personally I think Ethan Furman should be removed from his position as a moderator as he's less than useless at the job. -- My fellow Pythonistas, ask not what our lan

Re: So apparently I've been banned from this list

2018-10-01 Thread Mark Lawrence
On 01/10/18 19:05, Chris Angelico wrote: On Tue, Oct 2, 2018 at 3:49 AM Mark Lawrence wrote: Personally I think Ethan Furman should be removed from his position as a moderator as he's less than useless at the job. If you mean how he sent an email to the mods instead of to the list, tha

Re: So apparently I've been banned from this list

2018-10-02 Thread Mark Lawrence
ellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Threading is foobared?

2016-03-30 Thread Mark Sapiro
oups. Granted that this is bad and breaks threading, but avoiding message loss is a more important goal. I understand I'm not providing any solutions here, but perhaps a more complete understanding of what the issues are will ease the pain. -- Mark Sapiro The highway is for gamble

Re: Threading is foobared?

2016-03-31 Thread Mark Sapiro
ipeline and putting the Mailman Message-ID in the message metadata or doing the mods at that point, but I don't think I want to expand the scope of something that is non RFC compliant in the first place. I need to think about these things some more. -- Mark Sapiro The highway is for

Re: Threading is foobared?

2016-03-31 Thread Mark Sapiro
ch one for all the news groups and let the news server figure it out. Anyway, I don't plan to try this. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- https://mail.python.org/mailman/listinfo/python-list

Re: Threading is foobared?

2016-04-03 Thread Mark Sapiro
Mark Sapiro wrote: > Random832 wrote: > >> Any chance that it could fix reference headers to match? >> >> Actually, merely prepending the original Message-ID itself to the >> references header might be enough to change the reply's situation from >> &

Re: for / while else doesn't make sense

2016-05-23 Thread Mark Dickinson
from fractions import Fraction >>> print(Fraction(pi)) 884279719003555/281474976710656 >>> print(pi.as_integer_ratio()) (884279719003555, 281474976710656) -- Mark (who should probably take a numerical methods class someday) -- https://mail.python.org/mailman/listinfo/python-list

Spread a class over multiple files

2016-06-04 Thread Mark Summerfield
Sometimes I want to spread a class over multiple files. My primary use case is when I create a "Model" class to reflect an entire SQL database. I want a model instance to provide a single point of access to the database, but the database has many tables each requiring its own methods since they

Spreading a class over multiple files

2016-06-05 Thread Mark Summerfield
Sometimes I want to spread a class over multiple files. My primary use case is when I create a "Model" class to reflect an entire SQL database. I want a model instance to provide a single point of access to the database, but the database has many tables each requiring its own methods since they

Re: Spreading a class over multiple files

2016-06-05 Thread Mark Summerfield
You're quite right! For some reason I have a blind-spot about mixins, but they are the perfect solution. Thanks:-) -- https://mail.python.org/mailman/listinfo/python-list

Trying to pass sys.argv as (int argc, char **argv) using ctypes

2016-06-06 Thread Mark Summerfield
Hi, I have a setup roughly like this: import ctypes import sys Lib = ctypes.cdll.LoadLibrary("libthing") c_char_pp = ctypes.POINTER(ctypes.c_char_p) LibOpen = Lib.Open LibOpen.argtypes = (ctypes.c_int, # argc c_char_pp) # argv LibOpen.restype = ctypes.c_int

Re: Trying to pass sys.argv as (int argc, char **argv) using ctypes

2016-06-06 Thread Mark Summerfield
Thanks, that works! And also thanks for the excellent explanations of each part. -- https://mail.python.org/mailman/listinfo/python-list

Re: what is wrong with this property setter

2016-06-09 Thread Mark Summerfield
On Thursday, June 9, 2016 at 8:28:47 AM UTC+1, Nagy László Zsolt wrote: > class Test: > def __init__(self): > self._parent = None > > @property > def parent(self): > return self._parent > > @parent.setter > def set_parent(self, new_parent): > self._pare

Re: PyQt5: is the wrapper incomplete?

2016-06-16 Thread Mark Summerfield
On Thursday, June 16, 2016 at 3:54:53 AM UTC+1, jlad...@itu.edu wrote: > I am developing a data acquisition system for a custom device that > communicates over USB. On the host computer side, I am using PyQt5.4. My > Linux box has both Qt4 and Qt5 installed on it. I assume that PyQt5.4 > comp

Re: PyQt5: is the wrapper incomplete?

2016-06-16 Thread Mark Summerfield
On Thursday, June 16, 2016 at 8:22:33 AM UTC+1, Mark Summerfield wrote: > On Thursday, June 16, 2016 at 3:54:53 AM UTC+1, jlad...@itu.edu wrote: > > I am developing a data acquisition system for a custom device that > > communicates over USB. On the host computer side, I am usi

Re: Getting back into PyQt and not loving it.

2016-06-27 Thread Mark Summerfield
On Monday, June 27, 2016 at 3:12:34 AM UTC+1, MRAB wrote: [snip] > > Not sure that wxPython is really any different in that respect, and Tkinter > > doesn't feel Pythonic to me, either -- considering how it's Tk at heart. > > So what's the alternative? There really is no good Python-based GUI t

Re:

2019-04-20 Thread Mark Kettner
other error"), (cond3, "even another error"), ] all_ok = True for cond, err_str in payment_ok: if not cond: print(err_str): all_ok = False break -- Mit freundlichen Gruessen / Best Regards Mark Kettner -- https://mail.python.org/mailman/listinfo/python-list

Re: Read the table data from PDF files in Python

2019-04-24 Thread Mark Kettner
I've heard about camelot a while ago: https://camelot-py.readthedocs.io/ but I never really used it and cannot provide any support or comparison to other data-extraction tools or the like. -- Mit freundlichen Gruessen / Best Regards Mark Kettner -- https://mail.python.org/mailman/lis

Undefined symbols for Mac OS 10.14.4 build

2019-05-26 Thread Mark Turner
#define HAVE_LIBINTL_H 1 to #undef HAVE_LIBINTL_H the build completes. This is my first time trying this so I’m not very familiar with the build process. It seems like I must be missing something since I don't think modifying pyconfig.h is a normal part of the process. Any suggestions? Thanks,

Error

2019-09-12 Thread Courtney Mark
Hi I am a brand new user. I cannot type onto a shell window or a code window. Kind Regards Courtney Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Friday finking: TDD and EAFP

2019-11-18 Thread Mark Turner
it’s the environment. Later on, after this module of code is finished, if a lot of tests start failing for some reason and this simple test is one of them, then a good place to start debugging is the environment. - Mark -- https://mail.python.org/mailman/listinfo/python-list

Pyserial and some half-duplex woes.

2020-09-03 Thread Mark Barton
ere nothing in Pyserial's documentation that you can do that. I have tried to do some flushing of the receive buffer, but I haven't been too successful. Perhaps that is due to timing. I thought I would reach out to see if anyone may have had a similar experience. Thanks for any help.

bCNC

2020-12-30 Thread Mark Bachman
: https://tinyurl.com/y3dm3h86 C:\Users\--> Any help would be greatly appreciated. -- Thanks Mark Bachman People love chopping wood. In this activity one immediately sees results. <http://www.brainyquote.com/quotes/quotes/a/alberteins108301.html> Albert Einstein <http:/

Shed Skin Python-to-C++ Compiler 0.0.3 Release: some fixes, 3 MB Windows package

2005-09-24 Thread Mark Dufour
hat I can easily fix, provided someone shows me a nice use case. Thanks to the people that have sent me failing code snippets before! http://shedskin.sourceforge.net http://shed-skin.blogspot.com Thanks! Mark Dufour. -- http://mail.python.org/mailman/listinfo/python-list

Re: UI toolkits for Python

2005-10-13 Thread Mark Roseman
Paul Rubin wrote: > However, Tkinter not most people's favorite, because the widgets look > crude, they don't resemble the native widgets of any popular platform, > and the widget set is somewhat limited. People should probably be more aware of work that has been going

Need advice on finding memory leak

2005-10-16 Thread mark . engelberg
anyone help me think of other possible sources of a leak? Are there any classic "python-gotchas" I'm missing here, such as something leaking from calling os.system so many times? Any other suggestions as to what strategies I could employ to track down the leak? Thanks, Mark --

Re: UI toolkits for Python

2005-10-18 Thread Mark Roseman
e a business, the question then becomes, does the incrementally better experience produce a higher conversion rate (i.e. more sales), in which case it may well be a better investment to focus there and ignore the 5%. It's but one perspective, but depending on your goals, can be a reasonable choice to make. Mark -- http://mail.python.org/mailman/listinfo/python-list

<    5   6   7   8   9   10   11   12   13   14   >