Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-18 Thread Mark Lawrence
kipedia to correct its incorrect data then. http://en.wikipedia.org/wiki/Health_care_in_the_United_States Specifically. http://en.wikipedia.org/wiki/File:International_Comparison_-_Healthcare_spending_as_%25_GDP.png -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Numeric root-finding in Python

2012-02-20 Thread Mark Lawrence
Error: assert w == -1 Why? DM Why not is probably a better question, given that Dennis Lee Bieber and Dave Angel have already pointed out that this is not legal Python, it'll give a syntax error. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python math is off by .000000000000045

2012-02-22 Thread Mark Lawrence
math is only approximated? - Or is this a bug? Thanks for all info, Alec Taylor Please google for floating point numbers. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: A quirk/gotcha of for i, x in enumerate(seq) when seq is empty

2012-02-23 Thread Mark Lawrence
op variable i (and, if you need it, x) before hand. Actually, i = -1 or his reporting will be wrong. ~Ethan~ Methinks an off by one error :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-24 Thread Mark Lawrence
ger! Do you want to test for something that is larger than infinity? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-24 Thread Mark Lawrence
ray didn't just do two's compliment like everyone else, Seymour Cray responded that when the computer was designed he simply didn't know about twos compliment. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-24 Thread Mark Lawrence
On 24/02/2012 23:16, Michael Torrie wrote: On 02/24/2012 09:59 AM, Mark Lawrence wrote: The C integer bit doesn't matter since e.g. >>> a=10

Re: namespace question

2012-02-24 Thread Mark Lawrence
ables? :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Please verify!!

2012-02-24 Thread Mark Lawrence
d the person responsible should be sacked. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Listing children processes

2012-02-28 Thread Mark Lawrence
e. psutil doesn't do children. --mihai Please don't top-post! Also, psutil.Process.get_children() looks to me like it "does" children. You are incorrect. I've been told of by the BDFL for stating that people should not top post on any Python mailing list/news

Re: Listing children processes

2012-02-28 Thread Mark Lawrence
On 29/02/2012 00:16, Steven D'Aprano wrote: On Tue, 28 Feb 2012 23:41:16 +0000, Mark Lawrence wrote: I've been told of by the BDFL for stating that people should not top post on any Python mailing list/news group. He's the BDFL of Python, not of mailing list etiquette. I

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Mark Lawrence
On 06/03/2012 01:10, Steven D'Aprano wrote: Which is a pity, because I gather that Rick actually does know Tkinter well. +1. Please Rick less of the Dark Side. :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Mark Lawrence
b and get it illegally? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Mark Lawrence
n won by a landslide! There is no need for this. You (as I've stated in another reply) seem to know what you're talking about WRT tkinter so please stick with the Light rather than the Dark Side. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Mark Lawrence
On 06/03/2012 02:56, Rick Johnson wrote: On Mar 5, 8:33 pm, Mark Lawrence wrote: please stick with the Light rather than the Dark Side. You're correct. I need to ignore these negative distractions. Thanks for re-focusing the conversation. No problem, but as I've often stated in t

Re: help: confused about python flavors....

2012-03-07 Thread Mark Lawrence
ey are all free software, so the only cost is your time), and decide for yourself which one meets your needs. We can't answer that, because we don't know what you need. Matplotlib is excellent, it has an extensive pile of docs and examples, and the mailing list is extremely he

Re: how to get plots made faster

2012-03-08 Thread Mark Lawrence
x27;Time', fontsize=16) pp.savefig() plt.clf() VdotB=F[:,14] plt.plot(t,VdotB) pp.savefig() pp.close() I can't help directly but you may be better off asking on the matplotlib users mailing list see https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is readable

2012-03-15 Thread Mark Lawrence
aren't those ':' redundant? Kiuhnm Nope. Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> with open("filename&quo

Re: Python is readable

2012-03-15 Thread Mark Lawrence
On 15/03/2012 16:01, Alec Taylor wrote: C++0x? You mean C++11? :P On that note, is Python upgrading to use C11? :V Not for Windows given http://mail.python.org/pipermail/python-dev/2012-February/116258.html. I've no idea regarding *nix, os x or whatever. -- Cheers. Mark Law

Re: Python is readable

2012-03-15 Thread Mark Lawrence
I like it because it reads like a tree. Kiuhnm Why not find out for yourself by slapping the code into an interactive Python interpreter and seeing what the result is? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is readable

2012-03-15 Thread Mark Lawrence
u show the killer instincts of a great bowler in an Ashes Test Match, now could there be anything more important in life or showing greater esteem than that? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: "convert" string to bytes without changing data (encoding)

2012-03-28 Thread Mark Lawrence
uttons and bows. No guessing the tune. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: "convert" string to bytes without changing data (encoding)

2012-03-28 Thread Mark Lawrence
27;s never seen? Ross Ridge We appear to have a case of "would you stand up please, your voice is rather muffled". I can hear all the *plonks* from miles away. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Threads on google groups not on gmane?

2012-03-30 Thread Mark Lawrence
"weird behaviour: pygame plays in shell but not in script". Is anyone else seeing the same thing? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: CFG for python

2012-03-30 Thread Mark Lawrence
However, i stil cant figure out what how to create the CFG from the two references. Regards Taking a look at this may help you get going http://alexleone.blogspot.co.uk/2010/01/python-ast-pretty-printer.html -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Threads on google groups not on gmane?

2012-04-02 Thread Mark Lawrence
e blocking google groups as a known source of spam. Thanks for all the replies, but as I've have just seen a pile of messages, some of which date back to 28/03/2012, I'd hazard a guess that something somewhere was wrong and has now been fixed :) Or ... ? -- Cheers. Mark Lawrence

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Mark Lawrence
atter is extremely difficult if you bite your toenails :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Mark Lawrence
loaded into memory. They even came up with a system that let you select which patches you wanted and which you didn't, as e.g. some patches were customer specific. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Mark Lawrence
On 03/04/2012 19:42, Nathan Rice wrote: I view "computer science" as applied mathematics, when it deserves that moniker. When it doesn't, it is merely engineering. Is it still April first in your time zone? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: regexp partial matching, or hitEnd

2012-04-05 Thread Mark Lawrence
7;s New docs, or have I simply missed something? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: python polygon

2012-04-05 Thread Mark Lawrence
to the Origo main page at http://origo.ethz.ch Can anyone provide some updates on this? Thanks, It's now http://pypi.python.org/pypi/Polygon/2.0.4 -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: produce the same output as Unix's date command

2012-04-05 Thread Mark Lawrence
Original Message Subject: Re: produce the same output as Unix's date command Date: Thu, 05 Apr 2012 22:07:42 +0100 From: Mark Lawrence Newsgroups: gmane.comp.python.general References: On 05/04/2012 21:52, Jabba Laci wrote: Hi, Unix's date command produces t

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread Mark Lawrence
opping algorithm would be used. Someone queried this, stating that a hashing algorithm would be better suited to the task. The reply was "What's a hashing algorithm?". Last I heard the person who made this quote was a director of the last major defence contractor in

Re: [Windows] drag-and-drop onto .py file in modern versions?

2012-04-12 Thread Mark Lawrence
ngelico For the record please see http://www.python.org/dev/peps/pep-0397/ "Python launcher for Windows" which discusses shebang lines. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Gotcha's?

2012-04-15 Thread Mark Lawrence
ault install on Windows commandeers the '.py' extension and breaks stuff that currently works. PEP397 discusses this issue, a solution is already available which works a treat. -Bryan -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Gotcha's?

2012-04-15 Thread Mark Lawrence
as I am, but the gotchas are really annoying. With minor versions its not a big deal if most users simply wait to do an upgrade. -Bryan You can as I've already said do this but apparently you're more than happy to ignore solutions that have been given to you. The implementation of PEP

Re: Python Gotcha's?

2012-04-16 Thread Mark Lawrence
Now. No Real Soon Now about it see here https://bitbucket.org/vinay.sajip/pylauncher/downloads. Shock horror probe there's even some documentation referenced :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Naming future objects and their methods

2012-04-16 Thread Mark Lawrence
g . I thought there was some kind of gateway, but in my reader I only saw one answer in the newsgroup.) Stefan Do you see this through gmane.comp.python.general? Also note that I can spell "through" correctly unlike sum foruneers. -- Cheers. Mark Lawrence. -- http://mail.python.org/m

Re: escaping

2012-04-16 Thread Mark Lawrence
t it was on. I'm certain that other subscribers will remember and point us all in the correct direction. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: python module

2012-04-16 Thread Mark Lawrence
can't be found. Worse still when you want to try a really popular product like taskcoach, but you can't get it cos some moronic OSes insist on being case sensitive. Does that warrant a :) or a :( -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Half-baked idea: list comprehensions with "while"

2012-04-26 Thread Mark Lawrence
f the list where all elements of the tuple are string non-zero-length strings. Obviously, you'd do the corresponding generator expression as well. itertools.takewhile ? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: why () is () and [] is [] work in other way?

2012-04-26 Thread Mark Lawrence
ich comes later in all the responses) so why do some people think it's so important? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: why () is () and [] is [] work in other way?

2012-04-26 Thread Mark Lawrence
thy Holy Hand Grenade of Antioch towards thy foe, who being naughty in My sight, shall snuff it." -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Create directories and modify files with Python

2012-04-30 Thread Mark Lawrence
far, including full traceback for any errors. Let's face it, this is similar to the question you posted some eight hours ago give or take. For more data on the problems with time please see this amongst others http://thread.gmane.org/gmane.comp.python.devel/132284 -- Cheers.

Re: syntax for code blocks

2012-05-02 Thread Mark Lawrence
that others have already asked you to provide. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: When convert two sets with the same elements to lists, are the lists always going to be the same?

2012-05-04 Thread Mark Lawrence
please give it a rest, you're flogging a dead horse. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: sorting 1172026 entries

2012-05-06 Thread Mark Lawrence
? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-08 Thread Mark Lawrence
art from five(ish) morons) will follow the hijacked project, while the vast majority will support Luke as a matter of principal. I suggest the thieves be subjected to this http://en.wikipedia.org/wiki/Send_to_Coventry -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: which book?

2012-05-08 Thread Mark Lawrence
On 08/05/2012 19:16, d.po...@gmail.com wrote: folks hi, I am going to learn python for some plot issues. which book or sources, do you recommend please? Cheers, Dave matplotlib - google and yee shall find. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Mark Lawrence
years)… The IP you came up with is still yours and a contract that claims your IP can (and has been in a court of law) judged to be null and void. References please, as this is completely opposite to my understanding. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Mark Lawrence
completely opposite to my understanding. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list Google was a right PITA but eventually I found this http://www.legalcentre.co.uk/intellectual-property/guide/intellectual-property-and-employees/ It appears to contr

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Mark Lawrence
On 10/05/2012 01:27, Chris Angelico wrote: On Thu, May 10, 2012 at 10:12 AM, Mark Lawrence wrote: Google was a right PITA but eventually I found this http://www.legalcentre.co.uk/intellectual-property/guide/intellectual-property-and-employees/ It appears to contradict what you've said

Re: Real time event accuracy

2012-05-10 Thread Mark Lawrence
the correct time as possible. For an idea of how difficult timing can be, search the Python development mailing list for PEP 418 and associated threads. Make sure you have a large supply of sandwiches and coffee cos you'll need it :) Thanks, Tobiah -- Cheers. Mark Lawrence. -- http:

Re: increment date present list of tuple by weeks python

2012-05-11 Thread Mark Lawrence
27;29 May monday AM Neuropancreatic')] Thanks See http://docs.python.org/library/time.html#time.strptime and it's cousin strftime, and http://docs.python.org/library/datetime.html#module-datetime date and timedelta types. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the line number of an 'else' statement via ast

2012-05-11 Thread Mark Lawrence
tree.body[0].orelse [<_ast.Pass object at 0x7f1301319390>] tree.body[0]._fields ('test', 'body', 'orelse') for i in ast.iter_child_nodes(tree.body[0]): ... print i.__class__.__name__ ... Name Pass Pass Is my suspicion correct? Or is there a way to get t

Re: Dealing with the __str__ method in classes with lots of attributes

2012-05-11 Thread Mark Lawrence
On 11/05/2012 15:32, Andreas Tawn wrote: It's also helpful to not have to display every attribute, of which there may be dozens. Do I detect a code smell here? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Good data structure for finding date intervals including a given date

2012-05-12 Thread Mark Lawrence
On 12/05/2012 13:17, Jean-Daniel wrote: Hello, Do you know the best way to do this in Python with the stdlib? Sorry, not part of the stdlib but search for red black tree here http://pypi.python.org/pypi. While you're there also take a look at the blist package. -- Cheers.

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
e, my first thought was to say "yes" :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
es that are not performance critical. Stefan Stefan, you appear to have a lot to do with Cython. It would be polite to mention this when replying. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
On 13/05/2012 18:38, Stefan Behnel wrote: Mark Lawrence, 13.05.2012 19:23: On 13/05/2012 16:39, Chris Angelico wrote: On Sun, May 13, 2012 at 11:25 PM, David Shi wrote: Can anyone tell me how to call and exectute C code in Python? Browse the documentation about Extending and Embedding

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
On 13/05/2012 19:14, Stefan Behnel wrote: Mark Lawrence, 13.05.2012 19:44: On 13/05/2012 18:38, Stefan Behnel wrote: Mark Lawrence, 13.05.2012 19:23: On 13/05/2012 16:39, Chris Angelico wrote: On Sun, May 13, 2012 at 11:25 PM, David Shi wrote: Can anyone tell me how to call and exectute C

Re: which book?

2012-05-14 Thread Mark Lawrence
good things on "Python Essential Reference". Thanks. Could you please pass the line for tutorial? google for python tutorial - IIRC first hit is to the tutorial for version 2.7.3 -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-14 Thread Mark Lawrence
ity I wouldn't touch it with a barge pole. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Mark Lawrence
and start building a new community. Why didn't the rebels do that? Cheers, Daniel Typical shabby Nazi trick. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie questions on import & cmd line run

2012-05-17 Thread Mark Lawrence
iles with a '.py' extension to use a different executable based on the Python version the script targets. This will be done by borrowing the existing practices of another operating system - scripts will be able to nominate the version of Python they need by way of a "sheba

Re: Plot a function with matplotlib?

2012-05-19 Thread Mark Lawrence
ere a way to do this in iPython or matplotlib? Sorry don't know but wouldn't it make sense to ask on the matplotlib users mailing lst, cos like most python users the're extremely friendly? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Install python 2.6 and python 2.7 on Windows

2012-05-23 Thread Mark Lawrence
alone. I find it amazing that this doesn't come up more often http://www.python.org/dev/peps/pep-0397/ -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Mark Lawrence
uiters? You are a cruel, hard and absolutely correct man :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Where is the lastest step by step guide to compile Python into an executable?

2012-06-07 Thread Mark Lawrence
On 07/06/2012 11:05, David Shi wrote: Hi, folks. Where is the lastest step by step guide to compile Python into an executable? Regards. David Google. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Mark Lawrence
ut picking appropriate algorithms for the code, or a sensible database design or whatever. And heaven forbid that anyone suggest using a command line even if this was the better solution for the problem that the user wants solved. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: python's future?

2012-06-15 Thread Mark Lawrence
the python rules long~ time. what do you think about future of this lang or famous lang like C, JAVA, C#, LISP&C I believe that this still holds true http://www.gossamer-threads.com/lists/python/python/129650?do=post_view_threaded -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/l

Re: python's future?

2012-06-15 Thread Mark Lawrence
that it's also pre-installed on OS X. It's just a pity that Python is no longer maintained on the finest OS ever, i.e. VMS :( -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL for the Python 3.2.3

2012-06-15 Thread Mark Lawrence
On 15/06/2012 13:18, Gonzalo de Soto wrote: Dear Python Org, It wanted to know if already PIL's version is available for Python 3.2.3. Thanks. Gonzalo Please refer to Matthew 7:7 for a way forward. -- Cheers. Mark Lawrence. --

Re: Academic citation of Python

2012-06-16 Thread Mark Lawrence
. Mark Lawrence. -- http://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: 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 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: 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: 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: 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: 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: 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

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

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

<    1   2   3   4   5   6   7   8   9   10   >