Re: Survey -- Move To Trash function in Python?

2015-05-18 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: Python 3: yum is dead, long live dnf!

2015-05-18 Thread Mark Lawrence
u can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Green Tree Snakes - the missing Python AST docs

2015-05-18 Thread Mark Lawrence
en/latest/nodes.html Giga kudos to Thomas Kluyver methinks. -- 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: Slices time complexity

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

Re: Slices time complexity

2015-05-19 Thread Mark Lawrence
What is the unladen air speed velocity of a swallow in flight? Who actually gives a stuff? -- 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: Slices time complexity

2015-05-20 Thread Mark Lawrence
s with the RUE (amongst others) making nonsensical claims, please don't take us down that path, 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: No ttk in 2.7

2015-05-20 Thread Mark Lawrence
ine, for example: from six.moves import tkinter_ttk as ttk Thanks for the tip. I will look into it. https://docs.python.org/3/howto/pyporting.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.

Re: Camelot a good tool for me

2015-05-22 Thread Mark Lawrence
uot; and you're the only person who (hopefully) knows the course you're running :) -- 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: Ah Python, you have spoiled me for all other languages

2015-05-22 Thread Mark Lawrence
shall remain nameless. /Grrr It could be any of *nix, OSX or Windows as VMS is still vastly superior. -- 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: PYTHONPATH when calling from ipython

2015-05-23 Thread Mark Lawrence
/PythonLibrary python2 … But I find that a little bit cumbersome. Is there a better way to do it? What makes you think this? Have you tried:- >>> import os >>> os.environ['PYTHONPATH'] 'C:\\Users\\Mark\\Documents\\Cash\\Python;C:\\Users\\Mark\\Documents\\MyPython'

Re: PYTHONPATH when calling from ipython

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

Re: programmatically change windows regional settings?

2015-05-24 Thread Mark Lawrence
sk what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Setting prompt in ipython

2015-05-24 Thread Mark Lawrence
;d like to look into this issue? I'm not aware of anything on the bug tracker about 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: programmatically change windows regional settings?

2015-05-24 Thread Mark Lawrence
On 24/05/2015 15:16, Albert-Jan Roskam via Python-list wrote: - On Sun, May 24, 2015 3:07 PM CEST Mark Lawrence wrote: You're probably better off asking this on https://mail.python.org/mailman/listinfo/python-win32 which is also availab

Re: Documentaion of dunder methods

2015-05-26 Thread Mark Lawrence
wax about duck-typing but that translates into semi-formal protocols and they are just not documented All you need do is raise an issue on the bug tracker with an attached patch. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawren

Re: SyntaxError on progress module

2015-05-26 Thread Mark Lawrence
ine to go. -- 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: should "self" be changed?

2015-05-26 Thread Mark Lawrence
cratched. Anyone else have any thoughts? --mark Yes, how about you taking a permanent holiday rather than bother this list with more of your nonsense? -- 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: should "self" be changed?

2015-05-26 Thread Mark Lawrence
eaking all the tools that rely on "self" being spelt "self" this looks like an excellent idea. -- 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: SyntaxError on progress module

2015-05-27 Thread Mark Lawrence
quot;a lot" whilst bearing in mind green against red here https://python3wos.appspot.com/ -- 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: SyntaxError on progress module

2015-05-27 Thread Mark Lawrence
On 27/05/2015 15:11, Cecil Westerhof wrote: Op Wednesday 27 May 2015 15:44 CEST schreef Mark Lawrence: On 27/05/2015 09:42, Cecil Westerhof wrote: Op Wednesday 27 May 2015 09:30 CEST schreef alb: But here I have another question, as a python novice is there really any reason for me to use

Re: SyntaxError on progress module

2015-05-27 Thread Mark Lawrence
On 27/05/2015 16:18, Cecil Westerhof wrote: Op Wednesday 27 May 2015 16:51 CEST schreef Mark Lawrence: On 27/05/2015 15:11, Cecil Westerhof wrote: Op Wednesday 27 May 2015 15:44 CEST schreef Mark Lawrence: On 27/05/2015 09:42, Cecil Westerhof wrote: Op Wednesday 27 May 2015 09:30 CEST

Re: Python 3.5 crashes on wrong %PYTHONHOME

2015-05-27 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: Logic problem: need better logic for desired thruth table.

2015-05-28 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: Fwd: Lossless bulletproof conversion to unicode (backslashing) (fwd)

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

Re: Basic Info

2015-05-31 Thread Mark Lawrence
at 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 use for reversed()?

2015-05-31 Thread Mark Lawrence
rror will get something to print :) -- 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: What is considered an "advanced" topic in Python?

2015-06-01 Thread Mark Lawrence
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: Zero [was Re: What is considered an "advanced" topic in Python?]

2015-06-01 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: What is considered an "advanced" topic in Python?

2015-06-01 Thread Mark Lawrence
types so the choice was even narrower. Didn't Turbo C have compiler options to allow either BCD or fp? -- 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: Pyton re module and POSIX equivalence classes

2015-06-01 Thread Mark Lawrence
doc.perl.org/perlrecharclass.html I wouldn't know directly as I tend to avoid them like the plague, but if not are they in the "new" regex module, see https://pypi.python.org/pypi/regex/2015.05.28 and/or http://bugs.python.org/issue2636 ??? -- My fellow Pythonistas, ask not what ou

Re: What use of string module?

2015-06-01 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: Parser needed.

2015-06-01 Thread Mark Lawrence
t/python-parsers.html Can you also please stop sending so many emails as I believe some people still pay by the byte. -- 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: Everything is an object in python - object class and type class

2015-06-01 Thread Mark Lawrence
taclass" term (because no one really knows that that is, so they feel *pretty* safe). A type is not an object in the same way an instantiated type is an object -- anymore than a blueprint for a building is the building itself. Point 1 Yes. You may be onto something here Mark [I

Re: Create Web app on Win and run on Win or Mac

2015-06-01 Thread Mark Lawrence
ki.python.org/moin/WebFrameworks is hopefully the correct voltage and frequency :) I'll hazard a guess that your best bet for starters is the section "Popular Non Full-Stack Frameworks". -- My fellow Pythonistas, ask not what our language can do for you, ask what you

Re: Religion [was Re: Everything is an object in python - object class and type class]

2015-06-01 Thread Mark Lawrence
ke it off list, as it surely has no place here when we're meant to be discussing the Python programming langauge. -- 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: Everything is an object in python - object class and type class

2015-06-02 Thread Mark Lawrence
e as I can quite happily write working code, what with practicality beating purity and all that. Does it worry you that much? -- 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: Everything is an object in python - object class and type class

2015-06-02 Thread Mark Lawrence
/12/java-is-not-python-either.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

most ambiguous line of code ever written?

2015-06-03 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: Everything is an object in python - object class and type class

2015-06-03 Thread Mark Lawrence
00) => True The others all give True in all cases. It seems that older Python versions have a purer object model. No, you don't understand how cPython does 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: Retrying to send message

2015-06-03 Thread Mark Lawrence
er in the first place, especially when you're developing? Far easier to let the exception bubble up, or are we talking cross purposes? -- 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/mailma

Re: Everything is an object in python - object class and type class

2015-06-03 Thread Mark Lawrence
ittle or no TLC. -- 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 access the low digits of a list

2015-06-03 Thread Mark Lawrence
uction.html, "Slice indices have useful defaults; an omitted first index defaults to zero, an omitted second index defaults to the size of the string being sliced."? -- 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: Everything is an object in python - object class and type class

2015-06-03 Thread Mark Lawrence
On 03/06/2015 22:33, BartC wrote: On 03/06/2015 21:58, Mark Lawrence wrote: Not so hypothetical in my case as I have to implement a lot of this stuff. I'm also quite interested in how Python does things. If it's a good idea I'll copy it, if not I'll try and avoid it!

Re: Let's make Python into LISP

2015-06-03 Thread Mark Lawrence
of interpreter impositions. 3. Forget *practicality*. All hail *purity*. Wait. Someone's time machine broke. Mark Hi Mark The way you keep bringing up Lisp, λ-calculus, etc completely without relevance to anything, I wonder if you had a bad experience with someone teaching these and the

Re: Can Python function return multiple data?

2015-06-03 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: Can Python function return multiple data?

2015-06-04 Thread Mark Lawrence
On 04/06/2015 19:34, Ian Kelly wrote: On Wed, Jun 3, 2015 at 3:56 PM, Mark Lawrence wrote: Now does Python pass by value or by reference? Happily sits back and waits for 10**6 emails to arrive as this is discussed for the 10**6th time. Troll. True indeed. As expected the "pass by

Re: Can Python function return multiple data?

2015-06-04 Thread Mark Lawrence
t;>> tmp [] >>> x [] -- 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: Function to show time to execute another function

2015-06-07 Thread Mark Lawrence
istas, 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: Function to show time to execute another function

2015-06-07 Thread Mark Lawrence
On 07/06/2015 09:22, Cecil Westerhof wrote: On Sunday 7 Jun 2015 09:39 CEST, Mark Lawrence wrote: On 07/06/2015 07:39, Cecil Westerhof wrote: Sometimes I just want to know how much time a function takes, but at the same time I also want the result of the function. For this I wrote the

Re: [OT] Re: Function to show time to execute another function

2015-06-07 Thread Mark Lawrence
On 07/06/2015 12:02, Marko Rauhamaa wrote: Mark Lawrence : Get your cheque book and go for paid support. Are checks still in use in Britain? I thought only Americans still did that. Marko Cheques are still in use in Britain. There was a move a year or so ago to get rid of them but too

Re: Cheat sheet for the new string formatting?

2015-06-08 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: Cheat sheet for the new string formatting?

2015-06-09 Thread Mark Lawrence
ing was to be deprecated. See http://bugs.python.org/issue14123 which refers to http://www.gossamer-threads.com/lists/python/dev/969817 -- 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: enhancement request: make py3 read/write py2 pickle format

2015-06-09 Thread Mark Lawrence
pickle format. You know, backward compatibility? http://bugs.python.org/issue13566 -- 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 NBSP DWIM

2015-06-10 Thread Mark Lawrence
t;> print(repr("hello\N{NO-BREAK SPACE}world".split())) ['hello', 'world'] What's the purpose of a non-breaking space if it's treated like a space for breaking/splitting purposes? :-) Is this a bug? -tkc IMNSHO yes. -- My fellow Pythonistas,

Re: Did the 3.4.4 docs get published early?

2015-06-10 Thread Mark Lawrence
istas, 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 find number of whole weeks between dates?

2015-06-10 Thread Mark Lawrence
o the 21st century the link is https://docs.python.org/3/library/calendar.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: How to find number of whole weeks between dates?

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

Re: New Python student needs help with execution

2015-06-11 Thread Mark Lawrence
I'm not sure what you're asking but this https://docs.python.org/3/using/windows.html should 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: Error in or

2015-06-11 Thread Mark Lawrence
"FINE" input1(1) PRINT YOUR QUERY:"Java" input1(1) PRINT YOUR QUERY:"Obama in London" input1(1) PRINT YOUR QUERY:Obama AND Bush FINE input1(1) PRINT YOUR QUERY:Obama OR Bush FINE you may get better my problem. Regards, Subhabrata Ban

Re: Java to Python autoconverters

2015-06-12 Thread Mark Lawrence
On 12/06/2015 12:36, Sebastian M Cheung via Python-list wrote: Are these available? Any good ones to recommend? Yes and no. -- 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

Re: zip as iterator and bad/good practices

2015-06-12 Thread Mark Lawrence
dangerous code but I can't find a more elegant solution. Thanks! Fabien Start here https://docs.python.org/3/howto/pyporting.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/

Re: Writting Dialog to enter preset items from a combo list

2015-06-12 Thread Mark Lawrence
more I will put more here You'd be better off putting your question(s) on the wxPython users list, see http://wiki.wxpython.org/wxPython-users -- 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: Testing random

2015-06-13 Thread Mark Lawrence
am team. -- 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: Is there a utility to tally function calls from other files?

2015-06-13 Thread Mark Lawrence
might come in handy for you one day. -- 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 financial data cleaning

2015-06-15 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: Creating .exe file in Python

2015-06-15 Thread Mark Lawrence
e to 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: Set a flag on the function or a global?

2015-06-15 Thread Mark Lawrence
f I have to choose it's a flag on the object, just no competition. -- 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 financial data cleaning

2015-06-16 Thread Mark Lawrence
On 15/06/2015 22:01, Sebastian M Cheung via Python-list wrote: On Monday, June 15, 2015 at 11:19:48 AM UTC+1, Mark Lawrence wrote: On 15/06/2015 11:12, Sebastian M Cheung via Python-list wrote: How to do financial data cleaning ? Say I assume a list of 1000 finance series data in myList

Re: Testing random

2015-06-17 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: Problem with PyPI login

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

Re: anaconda upgrade

2015-06-17 Thread Mark Lawrence
ecise details as to what you tried, the error messages, your OS and Python version. -- 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: Classic OOP in Python

2015-06-17 Thread Mark Lawrence
hould be the user manual. The developers should then go and build the product that fits the manual. Marko Awesome, one of the funniest things I've read in years. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- ht

Re: Classic OOP in Python

2015-06-17 Thread Mark Lawrence
of time. Couldn't agree with you more. To once again quote my favourite part of the Zen of Python, "practicality beats purity". -- 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: Classic OOP in Python

2015-06-17 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: Classic OOP in Python

2015-06-18 Thread Mark Lawrence
ven if you don't want to use TTD, you will enjoy Ned's tool. It's GREAT. Thank you, Ned. Laura Throw in http://clonedigger.sourceforge.net/ as well and you've a really awesome combination. -- My fellow Pythonistas, ask not what our language can do for you, ask what you

Re: thinking with laziness

2015-06-18 Thread Mark Lawrence
Reminds me of last night's AGM of the Apathy Society, which was an outstanding success as nobody turned up. -- 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: Classic OOP in Python

2015-06-20 Thread Mark Lawrence
On 19/06/2015 00:01, Laura Creighton wrote: In a message of Thu, 18 Jun 2015 11:50:28 +0100, Mark Lawrence writes: Throw in http://clonedigger.sourceforge.net/ as well and you've a really awesome combination. Mark Lawrence I didn't know about that one. Hey thank you, Mark. Looks

HOPE: A Python just-in-time compiler for astrophysical computations

2015-06-20 Thread Mark Lawrence
Another beasty I've just stumbled across which you may find interesting http://www.sciencedirect.com/science/article/pii/S2213133714000687 -- 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/ma

Re: How to construct matrix from vectors?

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

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Mark Lawrence
e same time that my legal skills are nowhere near as good as my computing skills, which is really saying something :) -- 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: MGCP Server implementation

2015-06-23 Thread Mark Lawrence
uot;python MGCP gateway/server" into your favourite search engine and see if you can find the same thing. -- 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 File as the Default PDF handler for Windows

2015-06-23 Thread Mark Lawrence
lf, and arguments to the script are collected with %*). Assoc then links the extension to the handler (so you can also assoc .pyc files to the same interpreter). With Python 3.4 or if you've installed the pylauncher independantly. C:\Users\Mark\Documents\MyPython>assoc .py .py=Python.File C:

Re: Looking up a dictionary _key_ by key?

2015-06-24 Thread Mark Lawrence
for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Why does the unit test fail of the pyPDF2 package?

2015-06-24 Thread Mark Lawrence
artup.txt file. My heavily encrypted :) version follows cmd /F:ON /T:02 /K cd C:\Users\Mark\Documents\MyPython "-new_console:t:MyPython" cmd /F:ON /T:02 /K cd c:\Users\Mark\pythonissues "-new_console:t:Python Issues" cmd /F:ON /T:02 /K cd c:\cPython\PCBuild "-new_con

Windows install error

2015-06-25 Thread Mark Lawrence
n and the precise error message that you're getting, then we should be able to 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: windows and file names > 256 bytes

2015-06-25 Thread Mark Lawrence
would prefer if Python dealt with the gory details of Windows' silly behavior. I don't see why Python should work around any particular limitation of any given OS. -- 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: Could you explain why this program runs?

2015-06-25 Thread Mark Lawrence
--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: converting boolean filter function to lambda

2015-06-25 Thread Mark Lawrence
ch" meant? :) I've also seen Ethan refer to bowlers today, I just hope he's very careful and doesn't get caught on the back foot. Next question from Ethan is? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

Re: converting boolean filter function to lambda

2015-06-25 Thread Mark Lawrence
On 26/06/2015 01:57, Ethan Furman wrote: On 06/25/2015 05:09 PM, Mark Lawrence wrote: On 26/06/2015 00:59, Chris Angelico wrote: On Fri, Jun 26, 2015 at 1:59 AM, Ethan Furman wrote: My attempt at a lambda function fails: filter(lambda p: (p in c for c in contacts), main) # ['291.792

Re: Pure Python Data Mangling or Encrypting

2015-06-25 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: Can anybody explain the '-' in a 2-D creation code?

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

Re: Pure Python Data Mangling or Encrypting

2015-06-25 Thread Mark Lawrence
On 26/06/2015 03:06, Chris Angelico wrote: On Fri, Jun 26, 2015 at 11:17 AM, Mark Lawrence wrote: Even the famous Enigma machine was a lot more than just letter-for-letter substitution - a double letter in the cleartext wouldn't be represented by a double letter in the result - and onc

Re: Can anybody explain the '-' in a 2-D creation code?

2015-06-25 Thread Mark Lawrence
On 26/06/2015 02:40, fl wrote: On Thursday, June 25, 2015 at 6:24:07 PM UTC-7, Mark Lawrence wrote: On 26/06/2015 02:07, fl wrote: Hi, I read Ned's tutorial on Python. It is very interesting. On its last example, I cannot understand the '_' in: board=[[0]*8 for _ in ran

Re: Pure Python Data Mangling or Encrypting

2015-06-26 Thread Mark Lawrence
ven't understood what problem is being solved here. To be perfectly blunt I gave up days ago trying to follow what was being said, just too many words from all angles and too few diagrams for me to follow. I sincerely hope it doesn't end in tears. -- My fellow Pythonistas, ask n

How to debug TypeError: required field "lineno" missing from expr?

2015-06-28 Thread Mark Lawrence
ogspot.co.uk/2010/01/python-ast-pretty-printer.html [3] https://twitter.com/mitsuhiko/status/91169383254200320 -- 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 debug TypeError: required field "lineno" missing from expr?

2015-06-29 Thread Mark Lawrence
On 29/06/2015 21:59, Terry Reedy wrote: On 6/29/2015 7:17 AM, Terry Reedy wrote: On 6/29/2015 3:08 AM, Laura Creighton wrote: In a message of Mon, 29 Jun 2015 02:14:43 +0100, Mark Lawrence writes: Purely as an exercise I've been converting Grant Jenks' pypatt[1] from 2.7 to 3.4. I&

Re: How to debug TypeError: required field "lineno" missing from expr?

2015-06-30 Thread Mark Lawrence
On 29/06/2015 03:44, Steven D'Aprano wrote: On Mon, 29 Jun 2015 11:14 am, Mark Lawrence wrote: Purely as an exercise I've been converting Grant Jenks' pypatt[1] from 2.7 to 3.4. I've managed to sort out most of the required changes by checking on what I can see with an

Re: win32print

2015-07-01 Thread Mark Lawrence
trying to avoid that.) That's the standard pywin32 docs that happen to be on Tim's site. Get the latest pywin32 here http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our lang

Re: "normalizing" a value

2015-07-01 Thread Mark Lawrence
ed that does this for 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: error with pillow: decoder not avaliable

2015-07-02 Thread Mark Lawrence
of which this is the first http://stackoverflow.com/questions/8915296/python-image-library-fails-with-message-decoder-jpeg-not-available-pil -- 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

<    26   27   28   29   30   31   32   33   34   35   >