On 3 déc, 04:54, Antti J Ylikoski wrote:
> Helsinki, Finland, the EU <<<
>>> sys.version
'2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]'
>>> 'éléphant'
'\xe9l\xe9phant'
>>>
>>> sys.version
'3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)]'
>>>
I think the OP meant when the parent gets killed (by ctrl+c or similar),
not deleted. At least that's what I think when I think of a program being
killed. Is it even possible to send a signal in such a case?
Cheers,
Jack
On Fri, Dec 2, 2011 at 4:27 PM, 8 Dihedral wrote:
> Please check Erla
On Sat, 03 Dec 2011 05:54:19 +0200, Antti J Ylikoski wrote:
> The O'Reilly book has some 1200 pages. I would not want to invest such
> an amount of work and time to an obsolete language (i. e. Python 2).
Python 2 is not an obsolete language. The differences between Python 2
and Python 3 are min
On Sat, Dec 3, 2011 at 9:04 PM, Steven D'Aprano
wrote:
> If you can deal with the difference between these two lines without
> getting confused:
>
> print md5.md5("spam").hexdigest() # Python 2.x
> print(hashlib.md5("spam").hexdigest()) # Python 3.x
The second line needs to be:
print(hashlib.md
HA! After much experimenting I hit upon getattr(__import__(page), page):
for page in self.allowedPages:
scriptPath = '{}/{}.py'.format(os.path.dirname(__file__), page)
if os.path.exists(scriptPath):
self.modules[page] = getattr(__import__(page), page)
Then in __call_ I just say:
tar
On 3 December 2011 03:54, Antti J Ylikoski wrote:
>
> I'm in the process of learning Python. I already can code
> objet-oriented programs with the language. I have in my hands the
> O'Reilly book by Mark Lutz, Programming Python, in two versions: the
> 2nd Edition, which covers Python 2, and the
On 02/12/2011 16:34, snorble wrote:
Is it possible to automate the Python installation on Windows using
the MSI file so it does not add a Start Menu folder? I would like to
push out Python to all of my office workstations, but I'd like for it
to be relatively silent from the user's point of view.
Thanks Stefan for clarifying that. I guess Martin deserves most of the
credit.
But I still admire how Sajip jumped in, and I especially admire how
the core team accepted his work without taking a "Not Invented Here"
attitude.
I sure hope the port is accepted into the main trunk soon. There is
jus
On Saturday, December 3, 2011 9:04:49 AM UTC+8, Steven D'Aprano wrote:
> On Fri, 02 Dec 2011 10:18:12 -0800, 8 Dihedral wrote:
> [...]
>
>
> Dihedral, EVERY SINGLE ONE of your messages is double posted. You are
> sending to the newsgroup and the mailing list, but they are aliases for
> each
On 12/02/2011 07:39 PM, Dave Angel wrote:
> On 12/01/2011 08:55 AM, Neal Becker wrote:
>> Gelonida N wrote:
>>
>>> On 11/30/2011 01:32 PM, Neal Becker wrote:
I like to hash a list of words (actually, the command line args of my
program) in such a way that different words will create diffe
On 12/03/2011 04:54 AM, Antti J Ylikoski wrote:
>
> I'm in the process of learning Python. I already can code
> objet-oriented programs with the language. I have in my hands the
> O'Reilly book by Mark Lutz, Programming Python, in two versions: the
> 2nd Edition, which covers Python 2, and the 4
Hi all,
I need to generate some java .properties files in Python (2.6 / 2.7).
It's a simple format to store key/value pairs e.g.
blue=bleu
green=vert
red=rouge
The key/value are unicode strings. The annoying thing is that the
file is encoded in ISO 8859-1, with all non Latin1 characters escaped
In article
,
Ron wrote:
> Django has such
> enormous psychological significance for Python 3. Many important
> projects will never begin serious porting until after Django
> officially supports Python 3. And many Python folks will finally start
> to take Python 3 seriously only when Django does
Arnaud Delobelle wrote:
> I need to generate some java .properties files in Python (2.6 / 2.7).
> It's a simple format to store key/value pairs e.g.
>
> blue=bleu
> green=vert
> red=rouge
>
> The key/value are unicode strings. The annoying thing is that the
> file is encoded in ISO 8859-1, with
On Sun, Dec 4, 2011 at 7:59 AM, Gelonida N wrote:
> if you write code nicely enough in python 2, then you can translate it
> to python 3. autmatically.
It's entirely possible to write code that can run on both Python 2 and
Python 3 - at least, if you can target 2.6/2.7 and get the
appropriate f
On 12/3/2011 3:59 PM, Gelonida N wrote:
I would still stick with python 2.
In my opinion there is no reason to rush to the most recent version.
Python 3 is 3 years old. Starting with it now is hardly rushing.
There are several reasons someone 'in the process of learning Python'
might want to
On Sun, Dec 4, 2011 at 1:52 PM, Terry Reedy wrote:
> For anyone working with unicode instead of ascii...
Which, frankly, should be everyone. You can't get away with assuming
that a character is a byte any more; even if you stick to the US,
you're going to run into some non-ASCII symbols sooner or
17 matches
Mail list logo