I was wondering if there is any resource that explains why certain methods
like str() and type() were implemented the way they are, rather than
.to_string() or .type() instance/object methods.
I find instance/object methods more intuitive for this cases, but I am
wondering why it wasn't implemente
0 PM UTC-4, neubyr wrote:
> > I am trying to understand sys.path working and best practices for
> managing it within a program or script. Is it fine to modify sys.path using
> sys.path.insert(0, EXT_MODULES_DIR)? One stackoverflow answer -
> http://stackoverflow.com/a/10097543 - sug
I am trying to understand sys.path working and best practices for managing
it within a program or script. Is it fine to modify sys.path using
sys.path.insert(0, EXT_MODULES_DIR)? One stackoverflow answer -
http://stackoverflow.com/a/10097543 - suggests that it may break external
3'rd party code as
On Tue, Sep 6, 2011 at 5:05 PM, MRAB wrote:
> On 06/09/2011 22:52, neubyr wrote:
>>
>> I am trying to write a program which can email file's content using
>> smtplib. I am getting following error while using Python 2.6.6
>> version.
>>
>> {{{
>
I am trying to write a program which can email file's content using
smtplib. I am getting following error while using Python 2.6.6
version.
{{{
File "./killed_jobs.py", line 88, in sendmail
msg = MIMEText(ipfile.read, 'plain')
File "/home/ssp/sge/python/2.6.6/lib/python2.6/email/mime/text.py",