Re: Hello World

2014-12-22 Thread Mark Lawrence
m guessing that rm is Bob Martin but who is rf? Shouldn't that be a backslash '\' on Windows? -- 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: Hello World

2014-12-22 Thread Mark Lawrence
somebody please try to slap some sense into me. I'm having wonderful thoughts of Michael Palin's favourite Python sketch which involved fish slapping. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https

Re: Hello World

2014-12-22 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

[Distutils] Release: pip 6.0 and virtualenv 12.0

2014-12-23 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

[OT]ORM Is an Offensive Anti-Pattern

2014-12-23 Thread Mark Lawrence
http://java.dzone.com/articles/orm-offensive-anti-pattern Please don't shoot the messenger. More importantly please don't make him write Java :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: Autoloader (was Re: CSV Error)

2014-12-28 Thread Mark Lawrence
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: Searching through more than one file.

2014-12-28 Thread Mark Lawrence
n 3.4 -- 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 For Loop Skips the Last element?

2015-01-01 Thread Mark Lawrence
ssing through 'print inlist[0]' is possible,i.e it shows the e;lement. but the list skips it. . Please enlighten me. . Thanks. Why don't you show us your actual code? There is no for loop above and running the actual code gives "ValueError: 0 is not in list" on the first pass through the while loop. -- 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 For Loop Skips the Last element?

2015-01-01 Thread Mark Lawrence
On 01/01/2015 10:15, Steven D'Aprano wrote: I know that the code you show cannot possibly be the code you are using, because the code you show fails. If you ran this code, it would raise TypeError. Traceback (most recent call last): File "C:\Users\Mark\Documents\MyPython\mytest

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Mark Lawrence
ks. -- 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 do I remove/unlink wildcarded files

2015-01-02 Thread Mark Lawrence
s it a bird, is it a plane, no, it's our resident unicode expert!!!" :) -- 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: Command Line Inputs from Windows

2015-01-02 Thread Mark Lawrence
k 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: Command Line Inputs from Windows

2015-01-03 Thread Mark Lawrence
ows but I’ve tried several variations without success. I’ve tried writing the script using only commands, without the accouterments of a full program (without the def statement and without the if __name__ == ‘__main__’ …) to no avail. I’m out of ideas. Any suggestions? Ken Stewart Works fi

Re: Command Line Inputs from Windows

2015-01-03 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: How do I remove/unlink wildcarded files

2015-01-03 Thread Mark Lawrence
rb and a part of an animal, but what we would refer to in the UK as "mum" and "dad" :) -- 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: [ANN] EasyGUI_Qt version 0.9

2015-01-03 Thread Mark Lawrence
ignore him as he's just not worth the effort. -- 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 do I remove/unlink wildcarded files

2015-01-03 Thread Mark Lawrence
On 03/01/2015 17:53, Rick Johnson wrote: On Saturday, January 3, 2015 4:39:25 AM UTC-6, Mark Lawrence wrote: I used to get very confused watching the old westerns. The child when talking about "more" and "paw" wasn't referring to possibly an adjective, noun or adver

Re: Put float number in message.

2015-01-03 Thread Mark Lawrence
x27;%f' % S, ICON_WARNING, BUTTON_OK) For all the formatting options see https://docs.python.org/3/library/string.html#string-formatting or https://docs.python.org/3/library/stdtypes.html#old-string-formatting respectively. -- My fellow Pythonistas, ask not what our language can do for you,

Re: list comparison vs integer comparison, which is more efficient?

2015-01-04 Thread Mark Lawrence
://docs.python.org/3/library/timeit.html#module-timeit ? -- 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 console rejects an object reference, having made an object with that reference as its name in previous line

2015-01-04 Thread Mark Lawrence
? Thank you for your attention, Yours Simon You could put your file on the moon provided you give the code a complete path to it, something like r'c:\the\path\to\your\file\called\EcologicalPyramid.html' -- My fellow Pythonistas, ask not what our language can do for you, ask what you

Re: Probem with fbconsole

2015-01-04 Thread Mark Lawrence
form matching "+description) mechanize._mechanize.FormNotFoundError: no form matching nr 0 pi@raspberrypi ~/facebook $ Can anyone help me futher on? Maybe http://stackoverflow.com/questions/10507169/using-python-requests-to-select-forms failing which work your way down the remaining 816 hits on google

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread Mark Lawrence
ows.html I'll admit to being a little annoyed that scandir says it supports Python 3 but only provides a 2.7 exe on pypi. Worse even my normal backup failed me http://www.lfd.uci.edu/~gohlke/pythonlibs/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you ca

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread Mark Lawrence
hanks :) -- 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: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Mark Lawrence
spacing and single line paragraphs, thanks. -- 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

ftfy: fixes text for you

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

Re: PyWart: Poor Documentation Examples

2015-01-10 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: PyWart: Poor Documentation Examples

2015-01-11 Thread Mark Lawrence
ing a day that starts with me getting out of bed on the wrong side, and worse later on when my hair do gets ruined!!! :) -- 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: MS-DOS Commands

2015-01-11 Thread Mark Lawrence
ust ask would you be more comfortable on the tutor mailing list https://mail.python.org/mailman/listinfo/tutor ? -- 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 numbers with decimal places from a string

2015-01-11 Thread Mark Lawrence
said that I do know that there loads of old bugs on the bug tracker, many of which are fixed in the "new" regex module that's available here https://pypi.python.org/pypi/regex/ -- 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: annoying doctest problem

2015-01-12 Thread Mark Lawrence
efer him or her to the Zen of Python so they don't repeat the mistake with future design decisions? -- 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: annoying doctest problem

2015-01-12 Thread Mark Lawrence
On 12/01/2015 15:58, Steven D'Aprano wrote: Mark Lawrence wrote: If doctest is dumb then that's clearly down to the author. Perhaps we should refer him or her to the Zen of Python so they don't repeat the mistake with future design decisions? o_O I don't even ... wait

Re: Python 3 regex?

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

Re: Python 3 regex?

2015-01-12 Thread Mark Lawrence
On 13/01/2015 02:53, Rick Johnson wrote: On Monday, January 12, 2015 at 7:55:32 PM UTC-6, Mark Lawrence wrote: On 12/01/2015 23:47, Rick Johnson wrote: 'Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems

Is anyone doing Python 3 bindings for the IUP GUI library?

2015-01-14 Thread Mark Summerfield
Just wondering if anyone is doing Python 3 bindings for the IUP GUI library? The library is pure C and GUI only (so not a giant framework), and uses native controls. It comes with Lua bindings and I believe there are third-party Ruby bindings. http://webserver2.tecgraf.puc-rio.br/iup/ -- https:/

Re: How to terminate the function that runs every n seconds

2015-01-14 Thread Mark Lawrence
o for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: How to terminate the function that runs every n seconds

2015-01-14 Thread Mark Lawrence
go off at about one hour, 30 seconds. Programming becomes such fun working around such things :) -- 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: Calling a derived class's constructor from a parent method

2015-01-14 Thread Mark Lawrence
the 3.x answer is too. I'm confused, can you please explain what you're trying to achieve rather than how you're trying to achieve it and I'm sure that others will give better answers than I can :) -- My fellow Pythonistas, ask not what our language can do for you, ask what

Re: How to terminate the function that runs every n seconds

2015-01-14 Thread Mark Lawrence
On 14/01/2015 17:37, Grant Edwards wrote: On 2015-01-14, Mark Lawrence wrote: On 14/01/2015 16:33, Dave Angel wrote: Note that neither Timer nor sleep makes any promises about how accurately it matches the requested time. Reminds me of working on Telematics S200/300/4000/5000 telecomms kit

Re: Calling a derived class's constructor from a parent method

2015-01-14 Thread Mark Lawrence
tance. def __init__(self, s): super(B, self).__init__(s) For the OP an excellent article on super here https://rhettinger.wordpress.com/2011/05/26/super-considered-super/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: Opening the file in writing mode

2015-01-15 Thread Mark Lawrence
dable. Thanks in anticipation. -- 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: lambdak: multi-line lambda implementation in native Python

2015-01-15 Thread Mark Lawrence
see its asthetically pleasing properties. -- 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: lambdak: multi-line lambda implementation in native Python

2015-01-15 Thread Mark Lawrence
in patterns in the Python world take a look at Alex Martelli's writings on the subject, e.g. http://www.aleax.it/gdd_pydp.pdf -- 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: Comparisons and sorting of a numeric class....

2015-01-15 Thread Mark Lawrence
ythonistas, 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: lambdak: multi-line lambda implementation in native Python

2015-01-15 Thread Mark Lawrence
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: MySQL connections

2015-01-15 Thread Mark Lawrence
low 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: Hello World

2015-01-17 Thread Mark Lawrence
the end of a word or similar. -- 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 Pycharm to display the stack and heap python?

2015-01-18 Thread Mark Lawrence
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 change the number into the same expression's string and vice versa?

2015-01-19 Thread Mark Lawrence
011 b1='0xf4' b2='0o36' b3='011' Giving a completely different take on previous answers how about. a1, b1 = b1, a1 a2, b2 = b2, a2 a3, b3 = b3, a3 -- 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: Hashed lookups for tabular data

2015-01-19 Thread Mark Lawrence
ailable at gmane.comp.python.pydata amongst other places. -- 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: Trees

2015-01-19 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: Trees

2015-01-19 Thread Mark Lawrence
romberg.dnsalias.org/~strombrg/python-tree-and-heap-comparison/ HTH I don't know if you've seen this http://kmike.ru/python-data-structures/ but maybe of interest. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawren

Re: Random ALL CAPS posts on this group

2015-01-19 Thread Mark Lawrence
se reading gmane.comp.python.general using Thunderbird. The only annoying things I recall recently are bvbvbvbv and the Italian Mob. Whenever I spot them I'm straight onto gg to flag them as abuse. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: Trees

2015-01-20 Thread Mark Lawrence
On 20/01/2015 05:19, Marko Rauhamaa wrote: Mark Lawrence : On 19/01/2015 22:06, Zachary Gilmartin wrote: Why aren't there trees in the python standard library? Probably because you'd never get agreement as to which specific tree and which specific implementation was the most su

Re: Trees

2015-01-20 Thread Mark Lawrence
On 21/01/2015 01:22, Joshua Landau wrote: On 20 January 2015 at 04:21, Dan Stromberg wrote: On Mon, Jan 19, 2015 at 6:46 PM, Mark Lawrence wrote: I don't know if you've seen this http://kmike.ru/python-data-structures/ but maybe of interest. I've seen it. It's a nice p

Re: Python is DOOMED! Again!

2015-01-21 Thread Mark Lawrence
ivestate.com/lists/python-ideas/30922/ -- 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 is DOOMED! Again!

2015-01-21 Thread Mark Lawrence
s, 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: What killed Smalltalk could kill Python

2015-01-21 Thread Mark Lawrence
ome space in his museum! April 1st already? Or will Python be saved by RickedPython3? -- 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 is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
g another PEP with an alternative proposal, although I suspect there is as much chance of that ever happening as there is of ever seeing RickedPython(3). -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.pytho

Re: An improper change in httplib.py

2015-01-22 Thread Mark Lawrence
which should be "_get_hostport", right? [1] http://bugs.python.org/issue7776 [2] https://github.com/python/cpython/blob/2.7/Lib/httplib.py You've found a bug so please raise it on bugs.python.org :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for

Re: Python is DOOMED! Again!

2015-01-22 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 is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
ning. The implementation of a type checker, whether linting source files or enforcing type information during runtime, is out of scope for this PEP." -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.pyt

Re: Python is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
On 22/01/2015 18:41, [email protected] wrote: On Thu, Jan 22, 2015, at 13:28, Mark Lawrence wrote: Evidence in completely the opposite direction if I'm reading this correctly https://www.python.org/dev/peps/pep-0484/#usage-patterns "The main use case of type hinting is stati

Re: Python is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
k what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
On 22/01/2015 20:44, Rick Johnson wrote: On Thursday, January 22, 2015 at 12:28:47 PM UTC-6, Mark Lawrence wrote: Evidence in completely the opposite direction if I'm reading this correctly [snip link] "The main use case of type hinting is static analysis using an external to

Re: An improper change in httplib.py

2015-01-22 Thread Mark Lawrence
re-opened. -- 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 is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
guage. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
a better proposal: def adder(a, b): return a + b All those wasted characters? What is wrong with:- def adder(a, b): return a + b ? :) -- 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 is DOOMED! Again!

2015-01-22 Thread Mark Lawrence
Hungarian Notation? Seems like a good excuse to mention CORAL 66 for the first time in years, even if it wasn't *that* bad :) -- 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: Comparisons and sorting of a numeric class....

2015-01-23 Thread Mark Lawrence
re taking. -- 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: [OT] absolute vs. relative URI

2015-01-23 Thread Mark Lawrence
atement in current, official documentation that says that it's deprecated. ChrisA This http://bugs.python.org/issue14123 seems relevant. -- 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 is DOOMED! Again!

2015-01-24 Thread Mark Lawrence
ition, what with Python 2.8 and RickedPython(3). Is anybody aware of just how far advanced these projects are? -- 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 is DOOMED! Again!

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

Re: Python Sanity Proposal: Type Hinting Solution

2015-01-24 Thread Mark Lawrence
is having a bad hair day, hence using fuzzy logic? Ooh, that one is so bad even my stomach hurts :) -- 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 is DOOMED! Again!

2015-01-24 Thread Mark Lawrence
ou have knowledge of, such as tkinter/IDLE, you would earn that respect. Serving up dross as you do so often gets you nothing except plonks. -- 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: Delegation in Python

2015-01-24 Thread Mark Lawrence
tion.is_integer = is_integer # Monkey-patch Fraction >>> >>> Fraction(1,2).is_integer() False >>> Fraction(2,1).is_integer() True Gary Herron As regards this being a bad idea I'd suggest the latest score is Practicality 1 Purity 0 :) -- My fellow Pythonistas, a

Re: Python is DOOMED! Again!

2015-01-24 Thread Mark Lawrence
On 25/01/2015 01:00, Rick Johnson wrote: On Saturday, January 24, 2015 at 5:56:02 PM UTC-6, Mark Lawrence wrote: For at least the third time the PEP was written by three people, one of whom was the BDFL. Why do you keep insisting that "he" is wrong, surely it should be "they&q

Re: Benchmarking some modules - strange result

2015-01-25 Thread Mark Lawrence
;s only one way to find out :) -- 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: Idiomatic backtracking in Python

2015-01-26 Thread Mark Lawrence
sewhere in this thread it mentions sudoku. To me this http://norvig.com/sudoku.html is a classic example of putting theory into practice. Read and weep :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.pyt

Re: Fwd: Re: Comparisons and sorting of a numeric class....

2015-01-26 Thread Mark Lawrence
On 26/01/2015 13:38, Andrew Robinson wrote: *plonk* -- 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 does argparse return None instead of [] if an append action isn't used?

2015-01-26 Thread Mark Lawrence
grams have been fast enough for me. IIRC, and probably from this list, creating tuples is way faster than creating lists, but accessing items is slower. Can anybody confirm this for us? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: Running a .py file iteratively at the terminal

2015-01-26 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: unicode question

2015-01-27 Thread Mark Lawrence
People might find this http://bugs.python.org/issue1602 and hence this https://github.com/Drekin/win-unicode-console useful. The latter is available on pypi. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: Python is DOOMED! Again!

2015-01-27 Thread Mark Lawrence
llow 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: An object is an instance (or not)?

2015-01-27 Thread Mark Lawrence
to get the stage payment, does either of your bosses really care whether or not you are dealing with an object, an instance, or a piece of dead meat dropped by the neighbour's cat? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: An object is an instance (or not)?

2015-01-27 Thread Mark Lawrence
s, instance and object. Instead of accepting their knowledge of the language and gracefully stepping back, you've carried on until the twist of knots would make any boy scout proud. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our lang

Re: write file to a server

2015-01-28 Thread Mark Lawrence
ut it produces, especially if that's a traceback. Those are incredibly helpful. ChrisA Windows will accept forward slashes in path names. -- 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 is DOOMED! Again!

2015-01-28 Thread Mark Lawrence
then makes all sense for them to coexist with the language syntax. -- 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: ANN: unpyc3 - a python bytecode decompiler for Python3

2015-01-28 Thread Mark Lawrence
y/anything/ -- 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 zip64_limit defined as 1<<31 -1?

2015-01-29 Thread Mark Lawrence
ou can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python is DOOMED! Again!

2015-01-29 Thread Mark Lawrence
didn't feel guilty of including there. I don't know enough about most other languages to comment, I'll leave that to the various gurus. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.pyt

The Most Diabolical Python Antipattern

2015-01-29 Thread Mark Lawrence
The author is quite clear on his views here https://realpython.com/blog/python/the-most-diabolical-python-antipattern/ but what do you guys and gals think? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https

Re: Python is DOOMED! Again!

2015-01-29 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: parsing tree from excel sheet

2015-01-29 Thread Mark Lawrence
. It seems I could use the generator and iterate with .next() in python 2.6, at least from what I found here: http://stackoverflow.com/questions/1756096/understanding-generators-in-python Al I'd be inclined to upgrade, see here https://www.python.org/dev/peps/pep-0380/#formal-semantics for why :)

Re: The Most Diabolical Python Antipattern

2015-01-30 Thread Mark Lawrence
ep-0409/ https://www.python.org/dev/peps/pep-0415/ and finally try (groan :) https://pypi.python.org/pypi/pep3134/ -- 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 Most Diabolical Python Antipattern

2015-01-30 Thread Mark Lawrence
On 30/01/2015 08:10, Mark Lawrence wrote: On 30/01/2015 06:16, Marko Rauhamaa wrote: Ian Kelly : At least use "except Exception" instead of a bare except. Do you really want things like SystemExit and KeyboardInterrupt to get turned into 0?

Re: [OT] fortran lib which provide python like data type

2015-01-31 Thread Mark Lawrence
tion in reposting for the umpteenth time. -- 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

[OT]very high tech humour

2015-01-31 Thread Mark Lawrence
https://www.youtube.com/watch?v=kAG39jKi0lI -- 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: Create dictionary based of x items per key from two lists

2015-01-31 Thread Mark Lawrence
ss. As a one-liner: result = {x:l2[min(i/(len(l1)/len(l2)),len(l2)-1)] for i,x in enumerate(l1)} But the one-liner is not better code :) ChrisA The one-liner might not be better code, but it must be better speed wise precisely because it's on one line, right? :) -- My fellow Pythonis

Re: CSV and number formats

2015-01-31 Thread Mark Lawrence
question will claim it's a feature. You'll surely have to work around it whilst waiting for a reply to the "WTF do you think you're playing at?" question. -- 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: Create dictionary based of x items per key from two lists

2015-02-01 Thread Mark Lawrence
On 01/02/2015 18:14, Grant Edwards wrote: On 2015-02-01, Chris Angelico wrote: On Sun, Feb 1, 2015 at 2:06 PM, Mark Lawrence wrote: The one-liner might not be better code, but it must be better speed wise precisely because it's on one line, right? :) Well of course it is. Python code

<    16   17   18   19   20   21   22   23   24   25   >