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: 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-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: 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: 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: 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

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: 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

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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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
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
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
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: 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: 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: 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: 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: 转发: 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: 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: 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-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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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: 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: 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

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: 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

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-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: 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: 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: 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: 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: 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: 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-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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: RFC: Proposal: Deterministic Object Destruction

2018-03-04 Thread Mark Lawrence
On 05/03/18 01:01, Ooomzay wrote: On Sunday, 4 March 2018 23:57:24 UTC, Mark Lawrence wrote: On 04/03/18 02:28, Ooomzay wrote: On Friday, 2 March 2018 15:37:25 UTC, Paul Moore wrote: [snip] def fn(): for i in range(1): with open(f"file{i}.txt",

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-04 Thread Mark Lawrence
s I can't see this happening in a month of Sundays. -- 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: atws

2018-02-22 Thread Mark Lawrence
nd then help(atws) shows help so I'm guessing that it's just a poor informational message, so I suggest that you just try running your code and see what happens. p.s. enjoying the curling at the Winter Olympics? -- 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: How to make Python run as fast (or faster) than Julia

2018-02-22 Thread Mark Lawrence
park for every test that was run. -- 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: atws

2018-02-21 Thread Mark Lawrence
or their own work? According to https://github.com/byt3bl33d3r/CrackMapExec/issues/167, which reports the same error, you just need to update the requests package. -- 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

Computer History Museum Announces 2018 Fellow Award Honorees

2018-02-21 Thread Mark Lawrence
One is the BDFL http://www.computerhistory.org/press/2018-fellow-honorees.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: Gmane seems to be gone

2018-02-18 Thread Mark Lawrence
ervice is resumed :) -- 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: Are the critiques in "All the things I hate about Python" valid?

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

Re: Regex on a Dictionary

2018-02-13 Thread Mark Lawrence
On 13/02/18 18:08, Stanley Denman wrote: On Tuesday, February 13, 2018 at 9:41:14 AM UTC-6, Mark Lawrence wrote: On 13/02/18 13:11, Stanley Denman wrote: I am trying to performance a regex on a "string" of text that python isinstance is telling me is a dictionary. When I run the

Re: Regex on a Dictionary

2018-02-13 Thread Mark Lawrence
l(MyDict) print(x) Thanks in advance for any help. Was the string methods solution that I gave a week or so ago so bad that you still think that you need a regex to solve this? -- 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: Respam levels.

2018-02-13 Thread Mark Lawrence
hich I believe was purely accidental. -- 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: Extracting data from ython dictionary object

2018-02-09 Thread Mark Lawrence
ts ['MILANI,', 'JOHN', 'C', 'Tmt.', 'Dt.'] # I'll leave you to grab the names, and strip the comma from the last name. >>> start = bits[3].find('- ') >>> stop = bits[3].find('(') >>> date = bits[3][start + 2: stop].strip() >>> date '05/28/2014' Apologies for the variable names used, I'm sure that you can think of something better :) -- 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: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-09 Thread Mark Lawrence
with the gmane website. Just point any (semi-)decent mail client like Thunderbird at news.gmane.org and you've access to hundreds of Python lists and thousands of other technical lists. I find the search facilities perfectly adequate. -- My fellow Pythonistas, ask not what our language

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-08 Thread Mark Lawrence
;m pointing out the disgraceful state of gg and why it should be dropped as it's less than useless. -- 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: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

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

Re: Python 2 -> 3, urllib.urlOpen

2017-10-14 Thread Mark Lawrence via Python-list
ion for) onto the computers in the school. Therefore, I'm looking for something in the Python 3.6 Standard Library. Thanks in advance, Irv Hopefully this https://docs.python.org/3/howto/pyporting.html will help. -- 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: Printing a Chunk Of Words

2017-09-28 Thread Mark Lawrence via Python-list
(and_, or_): for a, b in product(bools, repeat=2): ans = logic(a, b) print(f'{a} {l[logic]} {b} is {ans}') print() for b in bools: print(f'Not {b} is {not b}') -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do

Re: [Tutor] beginning to code

2017-09-23 Thread Mark Lawrence via Python-list
On 23/09/2017 04:06, Bill wrote: Mark Lawrence wrote: On 22/09/2017 08:01, Bill wrote: Steve D'Aprano wrote: On Fri, 22 Sep 2017 02:57 pm, Bill wrote: I find Python to be more more like Java, with regard to "passing objects by reference". Which is not a surprise, since both

Re: [Tutor] beginning to code

2017-09-22 Thread Mark Lawrence via Python-list
n yet. The reference implementation is written in C but there's also Jython (Java) and IronPython (.Net). -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email has been checked for viruses by AVG. http://w

Re: [Tutor] beginning to code

2017-09-22 Thread Mark Lawrence via Python-list
nistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email has been checked for viruses by AVG. http://www.avg.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Easy way to get a list of tuples.

2017-09-21 Thread Mark Lawrence via Python-list
6, 1600), ('THE SHORTS', 7, 1100), ('KINGTON TOWN STAKES', 8, 2000), ('BM 84 HANDICAP', 9, 1200)] I get close creating a list of elements but each attempt I try to create the list of tuples fails. This is my closest code data = r.json() raceData = [] for item in data["RaceDay"]['Meetings'][0]['Races']: raceDetails = item['RacingFormGuide']['Event']['Race'] raceData += (raceDetails['Name'],raceDetails['Number'],raceDetails['Distance']) print(raceDetails) which returns ['CLASS 3 HANDICAP', 1, 1000, 'BM 90 HANDICAP', 2, 1600, 'HERITAGE STAKES', 3, 1100, 'BILL RITCHIE HANDICAP', 4, 1400, 'TEA ROSE STAKES', 5, 1400, 'GEORGE MAIN STAKES', 6, 1600, 'THE SHORTS', 7, 1100, 'KINGTON TOWN STAKES', 8, 2000, 'BM 84 HANDICAP', 9, 1200] How do I get the tuples? Cheers Sayth --- This email has been checked for viruses by AVG. http://www.avg.com After a quick glance and hence completely untested:- raceData.append((raceDetails['Name'],raceDetails['Number'],raceDetails['Distance'])) -- 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: The Incredible Growth of Python (stackoverflow.blog)

2017-09-14 Thread Mark Lawrence via Python-list
it.com/r/Python/comments/6z6wst/twisted_is_93_ported_to_python_3/ a little project called Twisted is 93% ported to Python 3. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email has been checked for viruses by AVG. htt

Network protocols, sans I/O,(Hopefully) the future of network protocols in Python

2016-08-08 Thread Mark Lawrence via Python-list
This may be of interest to some of you http://www.snarky.ca/network-protocols-sans-i-o -- 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: QWERTY was not designed to intentionally slow typists down

2016-04-09 Thread Mark Lawrence via Python-list
On 09/04/2016 21:22, alister wrote: On Sat, 09 Apr 2016 20:13:15 +0100, Mark Lawrence wrote: On 09/04/2016 01:43, Ben Finney wrote: Dennis Lee Bieber writes: Yet another completely irrelevant thread that has nothing to do with Python. As this is meant to be the main Python mailing list

Re: Find the number of robots needed to walk through the rectangular grid

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

Re: QWERTY was not designed to intentionally slow typists down

2016-04-09 Thread Mark Lawrence via Python-list
On 09/04/2016 20:25, Tim Golden wrote: On 09/04/2016 20:13, Mark Lawrence via Python-list wrote: On 09/04/2016 01:43, Ben Finney wrote: Dennis Lee Bieber writes: Yet another completely irrelevant thread that has nothing to do with Python. As this is meant to be the main Python mailing

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-09 Thread Mark Lawrence via Python-list
on in this discussion, as we're on the main Python mailing list? Please can the moderators take this stuff out, it is getting beyond the pale. -- 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/m

Re: Find the number of robots needed to walk through the rectangular grid

2016-04-09 Thread Mark Lawrence via Python-list
/wiki/Disjoint-set_data_structure Could you post a formal solution of disjoint-set using my algorithm You write the code, we comment on it. No code, no comment. Got the message? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: QWERTY was not designed to intentionally slow typists down

2016-04-09 Thread Mark Lawrence via Python-list
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: [beginner] What's wrong?

2016-04-08 Thread Mark Lawrence via Python-list
On 08/04/2016 23:59, sohcahto...@gmail.com wrote: On Friday, April 1, 2016 at 3:57:40 PM UTC-7, Mark Lawrence wrote: On 01/04/2016 23:44, sohcahto...@gmail.com wrote: On Friday, April 1, 2016 at 3:10:51 PM UTC-7, Michael Okuntsov wrote: Nevermind. for j in range(1,8) should be for j in range

  1   2   3   4   5   6   7   8   9   10   >