Re: Create datetime instance using a tuple.

2005-07-07 Thread Negroup
Use: dt =3D datetime(*t) Thanks for the quick reply. I can't find any doc about '*' used in this context. Have you some url or suggestion for which terms search in Google? -- http://mail.python.org/mailman/listinfo/python-list

Create datetime instance using a tuple.

2005-07-06 Thread Negroup
Hi, all. I would like to know if it is possible to create a datetime instance using a tuple instead of single values. I mean: from datetime import datetime t = (1, 2, 3) dt = datetime(t) Traceback (most recent call last): File stdin, line 1, in ? TypeError: function takes at least 3

Add methods to string objects.

2005-06-30 Thread Negroup
Hi all. I'm writing a simple Python module containing functions to process strings in various ways. Actually it works importing the module that contains the function I'm interested in, and calling my_module.my_function('mystring'). I was just asking if it is possible to extend string objects'

User interfaces in console (dialog like)

2005-06-23 Thread Negroup
Hi all. I need to provide to my users a graphical interface to be used from os' command line. Initially I thought something equivalent to Unix dialog, and googling around I have found Python Dialog (http://pythondialog.sourceforge.net/). This would be the perfect solution for me if it could be