[ python-Bugs-1019808 ] wrong socket error returned

2005-06-24 Thread SourceForge.net
Bugs item #1019808, was opened at 2004-08-31 13:18
Message generated for change (Comment added) made by fgsch
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1019808&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Extension Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Federico Schwindt (fgsch)
Assigned to: Nobody/Anonymous (nobody)
Summary: wrong socket error returned

Initial Comment:
hi,

  first, background:

  OS: OpenBSD-current/i386
  Python version: 2.3.4

   example script:

import socket

socket.setdefaulttimeout(30)

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', ))

   where nothing is listening on  (ECONNREFUSED
should be returned).
   when ran it i get:

Traceback (most recent call last):
  File "bug.py", line 8, in ?
s.connect(('127.0.0.1', ))
  File "", line 1, in connect
socket.error: (22, 'Invalid argument')

  this is a problem in the socketmodule.c, in the
internal_connect() function. getsockopt with SOCK_ERROR
should be used once EINPROGRESS is returned to get the
real error.
  this code works on linux, but the connect semantic
is, imho, broken. you cannot reuse a socket once it
failed (a test afterwards shown that this is valid
under linux).
  please contact me if you need further details,
although i find this very clear.
  thanks,

  f.-


--

>Comment By: Federico Schwindt (fgsch)
Date: 2005-06-24 06:41

Message:
Logged In: YES 
user_id=50493

just tried this with 2.4.1 running in OpenBSD 3.7/amd64 and
the problem is still there :-(

--

Comment By: Federico Schwindt (fgsch)
Date: 2004-09-23 00:58

Message:
Logged In: YES 
user_id=50493

any news? this may be a problem in other *BSDs as well..

--

Comment By: Federico Schwindt (fgsch)
Date: 2004-08-31 13:22

Message:
Logged In: YES 
user_id=50493

maybe i was not clear. the problem is only happening when
setdefaulttimeout is used. otherwise ECONNREFUSED is
correctly returned.

f.-

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1019808&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1226955 ] cPickle and pickle dump bug (inf float)

2005-06-24 Thread SourceForge.net
Bugs item #1226955, was opened at 2005-06-24 14:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1226955&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Extension Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrea Bolzonella (bolzonella)
Assigned to: Nobody/Anonymous (nobody)
Summary: cPickle and pickle dump bug (inf float)

Initial Comment:
An "inf float" can't be dumped in binary form. 
 
Python 2.4.1 (#1, Jun 10 2005, 16:30:55) 
[GCC 3.3.3 (SuSE Linux)] on linux2 
Type "help", "copyright", "credits" or "license" for more 
information. 
>>> import pickle 
>>> import cPickle 
>>> pickle.dumps (10e5000) 
'Finf\n.' 
>>> pickle.dumps (10e5000, pickle.HIGHEST_PROTOCOL) 
Traceback (most recent call last): 
  File "", line 1, in ? 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 1386, in 
dumps 
Pickler(file, protocol, bin).dump(obj) 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 231, in 
dump 
self.save(obj) 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 293, in 
save 
f(self, obj) # Call unbound method with explicit self 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 489, in 
save_float 
self.write(BINFLOAT + pack('>d', obj)) 
SystemError: frexp() result out of range 
>>> 

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1226955&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1226969 ] segfault in os module

2005-06-24 Thread SourceForge.net
Bugs item #1226969, was opened at 2005-06-24 13:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1226969&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: jacobo_es (jacobo_es)
Assigned to: Nobody/Anonymous (nobody)
Summary: segfault in os module

Initial Comment:
python crashes when a bad parameters are passed to execl function
of the os module:
>>> import os
>>> os.execl("/bin/bash")
Segmentation Fault (core dumped)

No matter the platform (on ppc raises a bus error) and the version of  
C compiler,  always crashes, python versions used are 2.4.1 and
2.4c1.  
  
Proved on MacOSX (ppc), and Knoppix, Red Hat  Enterprise   
and debian woody 3.0 (x86).   
  
However, on 2.2.3 version not crashes.  

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1226969&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1226955 ] cPickle and pickle dump bug (inf float)

2005-06-24 Thread SourceForge.net
Bugs item #1226955, was opened at 2005-06-24 13:35
Message generated for change (Comment added) made by mwh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1226955&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Extension Modules
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Andrea Bolzonella (bolzonella)
>Assigned to: Michael Hudson (mwh)
Summary: cPickle and pickle dump bug (inf float)

Initial Comment:
An "inf float" can't be dumped in binary form. 
 
Python 2.4.1 (#1, Jun 10 2005, 16:30:55) 
[GCC 3.3.3 (SuSE Linux)] on linux2 
Type "help", "copyright", "credits" or "license" for more 
information. 
>>> import pickle 
>>> import cPickle 
>>> pickle.dumps (10e5000) 
'Finf\n.' 
>>> pickle.dumps (10e5000, pickle.HIGHEST_PROTOCOL) 
Traceback (most recent call last): 
  File "", line 1, in ? 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 1386, in 
dumps 
Pickler(file, protocol, bin).dump(obj) 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 231, in 
dump 
self.save(obj) 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 293, in 
save 
f(self, obj) # Call unbound method with explicit self 
  File "/home/bolz/DLD/lib/python2.4/pickle.py", line 489, in 
save_float 
self.write(BINFLOAT + pack('>d', obj)) 
SystemError: frexp() result out of range 
>>> 

--

>Comment By: Michael Hudson (mwh)
Date: 2005-06-24 14:19

Message:
Logged In: YES 
user_id=6656

This should work in CVS HEAD.

It's not very likely that it will get backported though.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1226955&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1226969 ] segfault in os module

2005-06-24 Thread SourceForge.net
Bugs item #1226969, was opened at 2005-06-24 15:05
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1226969&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: jacobo_es (jacobo_es)
Assigned to: Nobody/Anonymous (nobody)
Summary: segfault in os module

Initial Comment:
python crashes when a bad parameters are passed to execl function
of the os module:
>>> import os
>>> os.execl("/bin/bash")
Segmentation Fault (core dumped)

No matter the platform (on ppc raises a bus error) and the version of  
C compiler,  always crashes, python versions used are 2.4.1 and
2.4c1.  
  
Proved on MacOSX (ppc), and Knoppix, Red Hat  Enterprise   
and debian woody 3.0 (x86).   
  
However, on 2.2.3 version not crashes.  

--

>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-06-24 16:53

Message:
Logged In: YES 
user_id=1188172

This behaviour was introduced with the fixing of bug
#952953, where someone complained that he couldn't call
execl with only one argument.

I tried this directly on the C layer on Linux, and it
segfaults too.
Are there OSes where this is legal?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1226969&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1227166 ] Queue class does not inherit object

2005-06-24 Thread SourceForge.net
Bugs item #1227166, was opened at 2005-06-24 18:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1227166&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Vincent Côté-Roy (jbabel)
Assigned to: Nobody/Anonymous (nobody)
Summary: Queue class does not inherit object

Initial Comment:
Queue class does not inherit object, and thus is not a
so-called new-style class. 

That means you can't sub-class it and do things like
call super on it.

One would expect all classes shipped with the Python
library to inherit object, especially since it's so
easy to apply such a change.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1227166&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1227181 ] CGIXMLRPCRequestHandler example uses nonexistant "div()"

2005-06-24 Thread SourceForge.net
Bugs item #1227181, was opened at 2005-06-24 18:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1227181&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Danny Yoo (dyoo)
Assigned to: Nobody/Anonymous (nobody)
Summary: CGIXMLRPCRequestHandler example uses nonexistant "div()"

Initial Comment:
The example code in
http://python.org/dev/doc/devel/lib/node551.html uses a
"div" function that does not exist, and is slightly
confusing for someone who just tries to copy-and-paste
the code to see what it does.

To make the relationship between the code there and the
other SimpleXMLRPCServer code here:
http://python.org/dev/doc/devel/lib/simple-xmlrpc-servers.html,
the definition of the MyFuncs class should be identical.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1227181&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1227181 ] CGIXMLRPCRequestHandler example uses nonexistant "div()"

2005-06-24 Thread SourceForge.net
Bugs item #1227181, was opened at 2005-06-24 18:23
Message generated for change (Comment added) made by dyoo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1227181&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Danny Yoo (dyoo)
Assigned to: Nobody/Anonymous (nobody)
Summary: CGIXMLRPCRequestHandler example uses nonexistant "div()"

Initial Comment:
The example code in
http://python.org/dev/doc/devel/lib/node551.html uses a
"div" function that does not exist, and is slightly
confusing for someone who just tries to copy-and-paste
the code to see what it does.

To make the relationship between the code there and the
other SimpleXMLRPCServer code here:
http://python.org/dev/doc/devel/lib/simple-xmlrpc-servers.html,
the definition of the MyFuncs class should be identical.

--

>Comment By: Danny Yoo (dyoo)
Date: 2005-06-24 20:57

Message:
Logged In: YES 
user_id=49843

oops, duplicate of SF#1041501.  Closing.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1227181&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com