[ python-Bugs-1587679 ] scipy gammaincinv gives incorrect answers

2006-10-31 Thread SourceForge.net
Bugs item #1587679, was opened at 2006-10-31 06:46
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1587679&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: 3rd Party
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: David J.C. MacKay (djcmackay)
Assigned to: Nobody/Anonymous (nobody)
Summary: scipy gammaincinv gives incorrect answers

Initial Comment:
For extreme values, gamaincinv gives the answer '0.0'
when it should not do so.
Examples:

>>> import scipy.special as S
>>> S.gammainc( 50 , 12.00 )
2.3998794536786009e-16
>>> S.gammaincinv( 50 , 2.39e-16 )
11.996909478523992
>>> S.gammainc( 50 , 11.00 )
8.2075477738848345e-18
>>> S.gammaincinv( 50 , 8e-18 )
0.0


Python 2.4.3 (#2, Oct  6 2006, 07:52:30) 
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2

David
[EMAIL PROTECTED]


--

>Comment By: Martin v. Löwis (loewis)
Date: 2006-10-31 19:28

Message:
Logged In: YES 
user_id=21627

Can you please report this to the SciPy Trac, at

http://projects.scipy.org/scipy/scipy

This tracker is for the "core" Python distribution only.
Closing as third-party.

--

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



[ python-Bugs-1588217 ] quoted printable parse the sequence '= ' incorrectly

2006-10-31 Thread SourceForge.net
Bugs item #1588217, was opened at 2006-10-31 13:06
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=1588217&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
Private: No
Submitted By: Wai Yip Tung (tungwaiyip)
Assigned to: Nobody/Anonymous (nobody)
Summary: quoted printable parse the sequence '= ' incorrectly

Initial Comment:
>>> import quopri

>>> s = 'I say= a secret message\r\nThank you'

>>> quopri.a2b_qp

>>> quopri.decodestring(s)  # use the c version 
binascii.a2b_qp() to decode
'I sayThank you'

>>> quopri.a2b_qp=None
>>> quopri.decodestring(s)  # use the python version 
quopri.decode() to decode
'I say= a secret message\nThank you'


Note that the sequence '= ' is invalid according to 
RFC 2045 section 6.7:

---
An "=" followed by a character that is neither a 
hexadecimal digit (including "abcdef") nor the CR 
character of a CRLF pair is illegal ... A reasonable 
approach by a robust implementation might be to 
include the "=" character and the following character 
in the decoded data without any transformation
---

The lenient interpretation is used by the Python 
version parser quopri.decode() to produce the second 
string. Most email clients use a similar lenient 
interpretation.

The C version parser binascii.a2b_qp(), which is used 
in preference to the Python verison, produce a 
surprising result with the string 'a secret message' 
omitted.

This may create an opportunity for spammers to insert 
secret message after '= ' so that it is not visible to 
Python based spam filter but woiuld display in non-
Python based email client.


--

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



[ python-Bugs-1588217 ] quoted printable parse the sequence '= ' incorrectly

2006-10-31 Thread SourceForge.net
Bugs item #1588217, was opened at 2006-10-31 13:06
Message generated for change (Comment added) made by tungwaiyip
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1588217&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
Private: No
Submitted By: Wai Yip Tung (tungwaiyip)
Assigned to: Nobody/Anonymous (nobody)
Summary: quoted printable parse the sequence '= ' incorrectly

Initial Comment:
>>> import quopri

>>> s = 'I say= a secret message\r\nThank you'

>>> quopri.a2b_qp

>>> quopri.decodestring(s)  # use the c version 
binascii.a2b_qp() to decode
'I sayThank you'

>>> quopri.a2b_qp=None
>>> quopri.decodestring(s)  # use the python version 
quopri.decode() to decode
'I say= a secret message\nThank you'


Note that the sequence '= ' is invalid according to 
RFC 2045 section 6.7:

---
An "=" followed by a character that is neither a 
hexadecimal digit (including "abcdef") nor the CR 
character of a CRLF pair is illegal ... A reasonable 
approach by a robust implementation might be to 
include the "=" character and the following character 
in the decoded data without any transformation
---

The lenient interpretation is used by the Python 
version parser quopri.decode() to produce the second 
string. Most email clients use a similar lenient 
interpretation.

The C version parser binascii.a2b_qp(), which is used 
in preference to the Python verison, produce a 
surprising result with the string 'a secret message' 
omitted.

This may create an opportunity for spammers to insert 
secret message after '= ' so that it is not visible to 
Python based spam filter but woiuld display in non-
Python based email client.


--

>Comment By: Wai Yip Tung (tungwaiyip)
Date: 2006-10-31 13:18

Message:
Logged In: YES 
user_id=561546

The problem may come from binascii_a2b_qp() in binascii.c. It 
considers the '= ' or '=\t' sequence as a soft line break. Such 
interpretation appears to have no basis. It could be an 
misinterpretation of RFC 2045:

---
In particular, an "=" at the end of an encoded line, indicating a 
soft line break (see rule #5) may follow one or more TAB (HT) or 
SPACE characters.
---

This passage reminds readers they might find TAB or SPACE before 
an "=", but not after it. "= " is plain illegal as far as I know.


--

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



[ python-Bugs-1588287 ] python: Python/ast.c:541: seq_for_testlist: Assertion fails

2006-10-31 Thread SourceForge.net
Bugs item #1588287, was opened at 2006-10-31 15: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=1588287&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: Parser/Compiler
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tom Epperly (tepperly)
Assigned to: Nobody/Anonymous (nobody)
Summary: python: Python/ast.c:541: seq_for_testlist: Assertion fails

Initial Comment:
I 
1. downloaded Python 2.5 final
wget
'http://www.python.org/ftp/python/2.5/Python-2.5.tar.bz2'
2. edited Python-2.5/Objects/obmalloc.c to uncomment
the #define Py_USING_MEMORY_DEBUGGER line (I plan to
run valgrind on this installation of Python)
3. ./configure --without-pymalloc --with-pydebug
--prefix=/somewhere/python2_5
4. make and then "make install"
5. next I downloaded and extracted numpy-1.0.tar.gz
from Sourceforge:
http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103

When I try to run the setup.py for numpy-1.0, I get an
assertion failure.
[EMAIL PROTECTED] numpy-1.0]$ python setup.py install
Running from numpy source directory.
python: Python/ast.c:541: seq_for_testlist: Assertion
`((n)->n_type) == 326 || ((n)->n_type) == 318 ||
((n)->n_type) == 319 || ((n)->n_type) == 300' failed.
Abort
[EMAIL PROTECTED] numpy-1.0]$


--

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



[ python-Bugs-1588287 ] python: Python/ast.c:541: seq_for_testlist: Assertion fails

2006-10-31 Thread SourceForge.net
Bugs item #1588287, was opened at 2006-10-31 15:05
Message generated for change (Comment added) made by tepperly
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1588287&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: Parser/Compiler
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tom Epperly (tepperly)
Assigned to: Nobody/Anonymous (nobody)
Summary: python: Python/ast.c:541: seq_for_testlist: Assertion fails

Initial Comment:
I 
1. downloaded Python 2.5 final
wget
'http://www.python.org/ftp/python/2.5/Python-2.5.tar.bz2'
2. edited Python-2.5/Objects/obmalloc.c to uncomment
the #define Py_USING_MEMORY_DEBUGGER line (I plan to
run valgrind on this installation of Python)
3. ./configure --without-pymalloc --with-pydebug
--prefix=/somewhere/python2_5
4. make and then "make install"
5. next I downloaded and extracted numpy-1.0.tar.gz
from Sourceforge:
http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103

When I try to run the setup.py for numpy-1.0, I get an
assertion failure.
[EMAIL PROTECTED] numpy-1.0]$ python setup.py install
Running from numpy source directory.
python: Python/ast.c:541: seq_for_testlist: Assertion
`((n)->n_type) == 326 || ((n)->n_type) == 318 ||
((n)->n_type) == 319 || ((n)->n_type) == 300' failed.
Abort
[EMAIL PROTECTED] numpy-1.0]$


--

>Comment By: Tom Epperly (tepperly)
Date: 2006-10-31 15:16

Message:
Logged In: YES 
user_id=94539

If I drop the --with-pydebug from the configure line, it
runs the NumPy's setup.py without error.

--

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