[issue1255] Strange Python hangup

2007-10-10 Thread Jiri Krivanek

Jiri Krivanek added the comment:

The reason for it is pragmatic: The whole of my application is published
as .pyc files. Except of the only one which must stay .py - that one
which has to be executable (+x) on Linux and thus it starts with the line:
# !/usr/bin/python
and then it should only contain:
import 
and  is .pyc.

So I did a simple change into my application. I start it via a very
brief script whic only contains:
# !/usr/bin/python
import 

Wow! It stopped working at all!

After 4 hours of isolating of the problem I developped an elementary
code which demonstrates my problem (attached at the bug report).

I expect that the import statement does not return the control until the
code being executed by it finishes, does'n it?

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1255>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1255] Strange Python hangup

2007-10-10 Thread Jiri Krivanek

Jiri Krivanek added the comment:

One more hint: There is the coincidence of three facts:
1. It uses the thread (if I remove the thread then it works fine).
2. It is "double imported" (if I remove the outer import then it works
fine).
3. There is the strptime() function being used (if I remove this
function then it works fine).

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1255>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1255] Strange Python hangup

2007-10-25 Thread Jiri Krivanek

Jiri Krivanek added the comment:

In the mena time, by intuition, I have resolved my troube exactly the
way you recommend.

Thanks to you, currently I also know what is he core of the problem.

So the issue can be closed...

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1255>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7085] strptime problem

2009-10-08 Thread Jiri Krivanek

New submission from Jiri Krivanek :

The following simple code works perfectly on W2K, WXP, Ubuntu, OSX10.4 
OSX10.5. It, however, stopped working on OSX10.6 (Snow Leopard): It 
simply crashes. It is a strptime() which causes problems to me.

Any idea? Any workaround?

import time
import thread

def test():
print "TS: "
print "%s" % str(time.strptime("2009-09-09 16-56-37", "%Y-%m-%d %H-
%M-%S"))

thread.start_new_thread (test, ())
time.sleep(2.0)

--
assignee: ronaldoussoren
components: Macintosh
messages: 93765
nosy: kakacek, ronaldoussoren
severity: normal
status: open
title: strptime problem
type: crash
versions: Python 2.4

___
Python tracker 
<http://bugs.python.org/issue7085>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7085] strptime problem

2009-10-08 Thread Jiri Krivanek

Jiri Krivanek  added the comment:

The suggested workaround helped to solve the issue to me. Thank for it 
very much.

I am using Python 2.4.4 and cannot upgrade to anything above 2.4 due to 
incompatibility between .pyc files (I have tenths of production sites with 
Python 2.4.4, with automatic update feature, onto which I only populate 
the .pyc files only, so upgrading to Python 2.5.x+ would cause all my 
sites to crash upon the next automatic update).

Consequently, from my perspective, this issue is solved and may be closed.

--

___
Python tracker 
<http://bugs.python.org/issue7085>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com