On Dec 10, 2011, at 12:04 PM, Alan Gauld wrote:
> On 10/12/11 16:46, Steven D'Aprano wrote:
>
>> ...the alternative would also have caught out everybody at some point.
>> Consider a hypothetical Python where mutator methods returned a result:
>>
>> a = [1, 2, 3]
>> b = a.append(4)
>>
>> Does t
In some cases, it is a useful fact that Python only shows error messages when
they are encountered. For example, I can test a program while keeping away
from an area that still doesn't work, rather than having to make it work
flawlessly before my first test.
Python *can* generate executables w
Thank you. This will work perfectly.
On Nov 18, 2011, at 11:58 AM, Prasad, Ramit wrote:
> Hi. I've been using a lot of text files recently, and I'm starting to worry
> about a user hacking some element by editing the text files. I know that I
> can pickle my data instead, creating less easil
Thank you, Wayne! This helps a lot.
On Nov 4, 2011, at 5:38 PM, Wayne Werner wrote:
> On Fri, Nov 4, 2011 at 4:21 PM, Max S. wrote:
> Is it possible to create a variable with a string held by another variable in
> Python? For example,
>
> >>> var_name = input("Variable name: ")
> (input: 'var
Thanks Steven.
On Nov 4, 2011, at 6:45 PM, Steven D'Aprano wrote:
> Max S. wrote:
>> Is it possible to create a variable with a string held by another variable
>> in Python? For example,
>
> Yes, but you shouldn't do it. Seriously. Don't do this, you will regret it.
>
>var_name = input("Var
Heh, yeah. It's usually a bad idea to do stuff like that (I know a guy
(Windows) who deleted his OS of his system).
On Nov 1, 2011, at 7:40 PM, Joel Montes de Oca wrote:
> I just discovered that it is a bad idea to complete uninstall Python 2.7 on
> Ubuntu 11.10. If you do, expect a lot of thi