Re: Create dictionary based of x items per key from two lists

2015-02-01 Thread Mark Lawrence
On 01/02/2015 19:36, Ian Kelly wrote: On Sun, Feb 1, 2015 at 11:49 AM, Mark Lawrence wrote: On 01/02/2015 18:14, Grant Edwards wrote: A loop containing 1 line of code will execute in the same abount of time as that loop with 1 line of code and 99 blanks lines. The latter loop is running at

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

2015-02-02 Thread Mark Lawrence
simple and I cope (somehow) with English. -- 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] fortran lib which provide python like data type

2015-02-02 Thread Mark Lawrence
not match your English teacher's answer, but the language we are talking about is not standard English but the dialect you have acquired in childhood. Marko I'd love to see a formal definition for "standard English". -- My fellow Pythonistas, ask not what our language can do f

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

2015-02-02 Thread Mark Lawrence
On 02/02/2015 16:21, Rustom Mody wrote: On Monday, February 2, 2015 at 9:40:35 PM UTC+5:30, Mark Lawrence wrote: On 02/02/2015 08:52, Marko Rauhamaa wrote: Chris Angelico : On Mon, Feb 2, 2015 at 12:59 PM, Steven D'Aprano wrote: And there are underspecified rules too. What is the plur

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

2015-02-02 Thread Mark Lawrence
On 02/02/2015 17:25, Chris Angelico wrote: On Tue, Feb 3, 2015 at 3:52 AM, Mark Lawrence wrote: I'd like to see anybody define 'a' and 'the' without using 'a' and 'the'. Would that be formally rigorous or rigorously formal? a: Indefinite arti

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Mark Lawrence
it's difficult because it's a Flash Application? Thx I don't actually know, but could you please provide some context and write in plain English, those damn ... things are extremely annoying. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for

Re: How to write a non blocking SimpleHTTPRequestHandler ?

2015-02-03 Thread Mark Lawrence
the second obstacle is this soon to be Olympic sport https://www.youtube.com/watch?v=TSqkdcT25ss -- 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: __pycache__

2015-02-03 Thread Mark Lawrence
onistas, 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 write a non blocking SimpleHTTPRequestHandler ?

2015-02-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: dunder-docs (was Python is DOOMED! Again!)

2015-02-03 Thread Mark Lawrence
__.f = a.__class__.g >>> a.f() g In my preferred semantics, a.f() would print >>> a.f() f IMHO as clear as mud. -- 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: Matplotlib import error

2015-02-06 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: Matplotlib import error

2015-02-07 Thread Mark Lawrence
scapy are more important than matplotlib to me, and they work well. An alternative is to use another OS that perhaps doesn't run on overrated, overpriced hardware from an overrated company. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our

Re: How to extract a movie title out of a text file

2015-02-07 Thread Mark Lawrence
? Sure, just write out a cheque made payable to the Python Software Foundation, we'll fill in the details and when it's been cashed we'll provide the code. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: [RELEASE] Python 3.4.3rc1 is now available

2015-02-08 Thread Mark Lawrence
https://www.python.org/download/releases/3.4.3 Not done yet, //arry/ The link provided took me to 3.4.1 not 3.4.3rc1. -- 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: [RELEASE] Python 3.4.3rc1 is now available

2015-02-08 Thread Mark Lawrence
On 08/02/2015 22:14, Larry Hastings wrote: On 02/08/2015 02:06 PM, Mark Lawrence wrote: On 08/02/2015 22:00, Larry Hastings wrote: On behalf of the Python development community and the Python 3.4 release team, I'm happy to announce the availability of Python 3.4.3rc1. Python 3.4.3rc1 has

Re: doc buglets?

2015-02-09 Thread Mark Lawrence
ing change, just the stuff in help() ] So raise an issue and attach a patch. -- 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: locale bug in Python 2.7, 3.3, 3.4 (Win7 64)?

2015-02-09 Thread Mark Lawrence
ion, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~ Those flaming Romans didn't get the locales right did they? :) -- 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: TypeError: list indices must be integers, not tuple

2015-02-10 Thread Mark Lawrence
7;ll happily buy you a tipple of your choice. Also please don't top post here, it makes following long threads difficult if not impossible to follow, 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

Re: TypeError: list indices must be integers, not tuple

2015-02-10 Thread Mark Lawrence
On 10/02/2015 14:28, Dave Angel wrote: On 02/10/2015 06:35 AM, Mark Lawrence wrote: On 10/02/2015 00:05, Ryan Stuart wrote: Hi, If you can show me a one tuple anywhere in the original code I'll happily buy you a tipple of your choice. print Menu[fav,RandomNum] was in the original

Re: Taming the verbosity of ipython tracebacks

2015-02-10 Thread Mark Lawrence
nefits of having multiple pips (except in virtualenvs)? Regards, Albert-Jan On Windows under C:\Python34\Scripts I have pip.exe, pip3.exe and pip3.4.exe. I believe that they are identical. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our lang

Re: idle feature request

2015-02-11 Thread Mark Lawrence
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: Floating point "g" format not stripping trailing zeros

2015-02-11 Thread Mark Lawrence
ior is present in both 2.7.8 and 3.4.1. Is this a bug in the formatting of Decimals? I'd say it's a bug. P is 15, you've got 17 digits after the decimal place and two of those are insignificant trailing zeros. -- My fellow Pythonistas, ask not what our language can do for you,

warnings building 3.5 on Windows

2015-02-11 Thread Mark Lawrence
lder? -- 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: warnings building 3.5 on Windows

2015-02-11 Thread Mark Lawrence
On 11/02/2015 22:38, Tim Golden wrote: On 11/02/2015 22:31, Chris Angelico wrote: On Thu, Feb 12, 2015 at 9:17 AM, Mark Lawrence wrote: 26> C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(3623) : see declaration of 'WSAStringToAddressA' To clarify, are y

Re: idle feature request

2015-02-11 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: Python discussed in Nature

2015-02-12 Thread Mark Lawrence
diplomatic than myself to reply to the comment at the end of the article. -- 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: Odd version scheme

2015-02-12 Thread Mark Lawrence
; False I believe that this could be solved by borrowing from Mark Pilgrim's excellent "Dive Into Python" which uses (or used?) these hex (?) numbers as the basis for a look at unit testing. -- My fellow Pythonistas, ask not what our language can do for you, ask what yo

Re: Floating point "g" format not stripping trailing zeros

2015-02-13 Thread Mark Lawrence
recision is a decimal number indicating how many digits should be displayed after the decimal point for a floating point value formatted with 'f' and 'F', or before and after the decimal point for a floating point value formatted with 'g' or 'G'". In other words is has nothing to do with the precision of the underlying number. -- 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: Floating point "g" format not stripping trailing zeros

2015-02-13 Thread Mark Lawrence
On 14/02/2015 00:11, Ian Kelly wrote: On Fri, Feb 13, 2015 at 4:05 PM, Mark Lawrence wrote: I still think it's a bug as the 'p' being referred to in the OP's original message is "The precision is a decimal number indicating how many digits should be displayed afte

tempfile mktemp function

2015-02-16 Thread Mark Lawrence
This has been deprecated since 2.3 but is still in the 3.4 code and docs. This strikes me as weird in the extreme so can anybody explain why? -- 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

Re: sqlite3 and dates

2015-02-17 Thread Mark Lawrence
"d [date]", current_timestamp as "ts [timestamp]"') row = cur.fetchone() print("current_date", row[0], type(row[0])) print("current_timestamp", row[1], type(row[1])) https://docs.python.org/3/library/sqlite3.html#default-adapters-and-converters -- My

Re: python implementation of a new integer encoding algorithm.

2015-02-18 Thread Mark Lawrence
;s been a bit quiet recently. -- 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 implementation of a new integer encoding algorithm.

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

Re: sqlite3 and dates

2015-02-18 Thread Mark Lawrence
here. -- 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: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Mark Lawrence
block" that could take over as I'd happily switch again? Nothing has sprung out at me, hence the choice I made. -- 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: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-18 Thread Mark Lawrence
use a different placeholder, such as %s or :1.) For example:..." -- 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 implementation of a new integer encoding algorithm.

2015-02-19 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: python implementation of a new integer encoding algorithm.

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

Re: python implementation of a new integer encoding algorithm.

2015-02-19 Thread Mark Lawrence
On 19/02/2015 09:42, Mario Figueiredo wrote: On Thu, Feb 19, 2015 at 9:06 AM, Mark Lawrence mailto:[email protected]>> wrote The opinions being expressed seem to be along the lines of "reinventing round wheels is a waste of time. Reinventing square or even triang

Re: urgent help

2015-02-19 Thread Mark Lawrence
three times, as some people pay for bandwidth. 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

Re: What the Pythons docs means by "container" ?

2015-02-19 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: 'Lite' Databases (Re: sqlite3 and dates)

2015-02-19 Thread Mark Lawrence
On 19/02/2015 14:17, Tim Chase wrote: On 2015-02-19 05:32, Mark Lawrence wrote: On 19/02/2015 00:08, Mario Figueiredo wrote: Parameterized queries is just a pet peeve of mine that I wish to include here. SQLite misses it and I miss the fact SQLite misses it. The less SQL one needs to write in

Re: matplotlib.pyplot documentation

2015-02-19 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: urgent help

2015-02-20 Thread Mark Lawrence
rch or you need to pass in 'complicated' alone. Seeing those three magic letters P H D I'll leave you to research the former :) -- 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 path on windows

2015-02-20 Thread Mark Lawrence
python.org/moin/GoogleGroupsPython to prevent us seeing double line 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

Re: Python Requests logging 401 immediately before 200

2015-02-20 Thread Mark Lawrence
On 20/02/2015 17:16, Zach Dunlap wrote: Hi everyone, I'm using MarkLogic A name that frightens me to death, what idiot thought of that? :) -- 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: 'Lite' Databases (Re: sqlite3 and dates)

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

Re: try pattern for database connection with the close method

2015-02-21 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: Python path on windows

2015-02-21 Thread Mark Lawrence
er 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: Design thought for callbacks

2015-02-21 Thread Mark Lawrence
hat 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: Algorithm for Creating Supersets of Smaller Sets Based on Common Elements

2015-02-21 Thread Mark Lawrence
27;,'R'}, {'O','M','Y'}) d = defaultdict(list) for i, aSet in enumerate(sets): for a in aSet: d[a].append(i) superSets = [] for k in d: if len(d[k]) > 1: superSet = set() for i in d[k]: superSet |= sets[i] superSets.append(superSet) -- 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: Standard

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

Re: try pattern for database connection with the close method

2015-02-22 Thread Mark Lawrence
On 22/02/2015 18:41, Mario Figueiredo wrote: On Sat, 21 Feb 2015 12:22:58 +, Mark Lawrence wrote: Use your context manager at the outer level. import sqlite3 as lite try: with lite.connect('data.db') as db: try: db.execute(sql, parms) except lite.Inte

Re: Bug in timsort!?

2015-02-24 Thread Mark Lawrence
On 24/02/2015 22:36, [email protected] wrote: On Tuesday, February 24, 2015 at 1:50:15 PM UTC-8, Mark Lawrence wrote: On 24/02/2015 21:34, Roy Smith wrote: http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ As you can clearly no

Re: Are threads bad? - was: Future of Pypy?

2015-02-25 Thread Mark Lawrence
r language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Silent Install

2015-02-25 Thread Mark Lawrence
other ways of installing pip after the event. Including simply: py -3 -m ensurepip TJG 18 characters, why do the core devs have to make everything so verbose? :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --

Re: Bug in timsort!?

2015-02-25 Thread Mark Lawrence
s breaks down from a stack overflow in TimSort. Sturla When I were a lad we only had one bit of data, and we were only able to utilise half of that. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.py

Re: Bug in timsort!?

2015-02-25 Thread Mark Lawrence
u. Reading the bug report http://bugs.python.org/issue23515, specifically msg236586, it looks as if the proposed fix was wrong and one of the smarter members of the python community fixed it. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our l

Re: Are threads bad? - was: Future of Pypy?

2015-02-25 Thread Mark Lawrence
On 25/02/2015 17:00, Ian Kelly wrote: On Wed, Feb 25, 2015 at 9:37 AM, Mark Lawrence wrote: On 25/02/2015 06:02, Ian Kelly wrote: Is the name of that database program "Microsoft Access" perchance? Are you referring to the GUI, the underlying database engine, both, or what?

Re: Bug in timsort!?

2015-02-25 Thread Mark Lawrence
believe that any technical community with exactly 4,750 open issues on its bug tracker regards itself as smug. -- 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

Python Worst Practices

2015-02-25 Thread Mark Lawrence
http://www.slideshare.net/pydanny/python-worst-practices Any that should be added to this list? Any that be removed as not 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

Re: Python Worst Practices

2015-02-25 Thread Mark Lawrence
On 25/02/2015 20:45, Mark Lawrence wrote: http://www.slideshare.net/pydanny/python-worst-practices Any that should be added to this list? Any that be removed as not that bad? Throwing in my own, how about built-in functions should not use "object" as the one and only argum

Re: GDAL Installation in Enthought Python Distribution

2015-02-26 Thread Mark Lawrence
. Thanks for any help. -Leo Was it really neccessary to start a new thread one day after asking this question in a slightly different formt? -- 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 Worst Practices

2015-02-26 Thread Mark Lawrence
On 26/02/2015 02:57, Steven D'Aprano wrote: Mark Lawrence wrote: On 25/02/2015 20:45, Mark Lawrence wrote: http://www.slideshare.net/pydanny/python-worst-practices Any that should be added to this list? Any that be removed as not that bad? Throwing in my own, how about built-in func

Re: Python Worst Practices

2015-02-26 Thread Mark Lawrence
On 26/02/2015 03:05, Dave Angel wrote: On 02/25/2015 08:44 PM, Mark Lawrence wrote: On 25/02/2015 20:45, Mark Lawrence wrote: http://www.slideshare.net/pydanny/python-worst-practices Any that should be added to this list? Any that be removed as not that bad? Throwing in my own, how about

Re: Python programming

2014-02-12 Thread Mark Lawrence
ll let you know when I get there. I started, on an RCA 1802 board in '79. I'm damned sure not there yet. Cheers, Gene Snap :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses

Re: Finding size of Variable

2014-02-12 Thread Mark Lawrence
On 12/02/2014 07:49, [email protected] wrote: Le mardi 11 février 2014 20:04:02 UTC+1, Mark Lawrence a écrit : On 11/02/2014 18:53, [email protected] wrote: Le lundi 10 février 2014 15:43:08 UTC+1, Tim Chase a écrit : On 2014-02-10 06:07, [email protected] wrote: Python does

Re: Finding size of Variable

2014-02-12 Thread Mark Lawrence
On 12/02/2014 14:14, Rustom Mody wrote: On Wednesday, February 12, 2014 7:34:42 PM UTC+5:30, Mark Lawrence wrote: I ask you, members of the jury, to find the accused, jmf, guilty of writing nonsense and deliberately using google groups to double line space. The evidence is directly above and

Re: Combination Function Help

2014-02-12 Thread Mark Lawrence
r language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Flag control variable

2014-02-12 Thread Mark Lawrence
or you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Combination Function Help

2014-02-12 Thread Mark Lawrence
your original print call. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Top down Python

2014-02-12 Thread Mark Lawrence
ibed in Thinking Forth, by the way). Please don't top post on this list. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: singleton ... again

2014-02-12 Thread Mark Lawrence
what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Wait... WHAT?

2014-02-12 Thread Mark Lawrence
ting file format that i just made up, an acronym of the program What is it, trying to write a Python list to a file or trying to access offsets into a file handle? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: Wait... WHAT?

2014-02-12 Thread Mark Lawrence
r you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Wait... WHAT?

2014-02-12 Thread Mark Lawrence
r our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Combination Function Help

2014-02-12 Thread Mark Lawrence
honistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Wait... WHAT?

2014-02-12 Thread Mark Lawrence
;test.txt', 'w') >>> f.write('a string') 8 >>> f.close() >>> -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast

Re: Wait... WHAT?

2014-02-12 Thread Mark Lawrence
On 13/02/2014 00:44, Tim Chase wrote: On 2014-02-12 23:36, Mark Lawrence wrote: On 12/02/2014 22:14, Tim Chase wrote: To be pedantic, you can only write *bytes* to files, so you need to serialize your lists (or other objects) to strings and then encode those to bytes; or skip the string and

Re: A curious bit of code...

2014-02-13 Thread Mark Lawrence
re worried about the speed of a single line of code like the above then you've got problems. Having said that, I suspect that using an index to extract a single character has to be faster than using a slice, but I haven't run these through a profiler yet :) -- My fellow Pythonistas, ask

Re: A curious bit of code...

2014-02-13 Thread Mark Lawrence
On 13/02/2014 19:25, Neil Cerutti wrote: On 2014-02-13, Ethan Furman wrote: On 02/13/2014 11:09 AM, Mark Lawrence wrote: All I can say is that if you're worried about the speed of a single line of code like the above then you've got problems. Having said that, I suspect that using a

Re: A curious bit of code...

2014-02-13 Thread Mark Lawrence
Error: string index out of range The corrected version key and key[0] == '<' and key[-1] == '>' probably still wins the Pretty Unimportant Olympics. Exactly how I'd write it. To me it wins awards for being most boring and most obvious, obviously YMMV or we would

Re: Best practices to overcome python's dynamic data type nature

2014-02-14 Thread Mark Lawrence
ythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Best practices to overcome python's dynamic data type nature

2014-02-14 Thread Mark Lawrence
guage can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: A curious bit of code...

2014-02-14 Thread Mark Lawrence
ply to paragraphs that run as a single line across the screen. Therefore would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

Re: ipython

2014-02-15 Thread Mark Lawrence
not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Generator using item[n-1] + item[n] memory

2014-02-15 Thread Mark Lawrence
w Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Explanation of list reference

2014-02-15 Thread Mark Lawrence
enjoy comparing the various Python implementations while I'm *STILL* writing code. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protectio

Re: Localized Type Inference of Atomic Types in Python

2014-02-15 Thread Mark Lawrence
inference for python. Thanks and Regards, Anand Hardly surprising for a nine year old link but search for brett+cannon+python+thesis and you'll find it :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- Thi

Re: inheriting a large python code base

2014-02-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 --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: decimal numbers

2014-02-15 Thread Mark Lawrence
ecent tool? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Can one use Python to learn and even apply Functional Programming?

2014-02-16 Thread Mark Lawrence
On 16/02/2014 08:00, Pat Johnson wrote: This made me grin. ;) What did, using google groups? :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus

Re: How to turn a package into something pip can install

2014-02-16 Thread Mark Lawrence
ellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: How to turn a package into something pip can install

2014-02-16 Thread Mark Lawrence
On 16/02/2014 15:20, MRAB wrote: On 2014-02-16 15:06, Mark Lawrence wrote: On 16/02/2014 14:25, Roy Smith wrote: We tend not to upgrade stuff unless there's a good reason to. You never know what will break (looking furtively in the direction of the Python 3.x mafiosi). Yeah, those r

Re: Explanation of list reference

2014-02-16 Thread Mark Lawrence
None and x is not None could crop up (from native code, perhaps). Marko Patches are always welcome :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus

Re: Python version problem for rpm

2014-02-17 Thread Mark Lawrence
, I don’t want to change my default python version(2.4). -- ANJU TIWARI... Please refer to the answer Dave Angel gave you to the same question you posed three days ago. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: How to use logging

2014-02-17 Thread Mark Lawrence
causes. if not sorry about the noise :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.pyt

[OT]Internet Trolls Really Are Horrible People

2014-02-17 Thread Mark Lawrence
. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Turning an AST node / subnodes into something human-readable

2014-02-19 Thread Mark Lawrence
uld be on the node itself - maybe in __str__. Is there anything nice and easy? I don't care if it's not perfect, as long as it's more readable than ast.dump(). :) ChrisA http://alexleone.blogspot.co.uk/2010/01/python-ast-pretty-printer.html ? -- My fellow Pythonistas, ask not wh

Re: IDLE won't run after installing Python 3.3 in Windows

2014-02-19 Thread Mark Lawrence
On 19/02/2014 16:56, Mark H. Harris wrote: Any suggestions? Thanks in advance! Switch to Gnu/Linux. Which version of tcl/tk is installed. I would guess that tkinter is honked up somehow... did you clear up the old tkinter stuff? The version of tcl/tk is completely irrelevant

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