Mark Dickinson [EMAIL PROTECTED] added the comment:
Okay---so committing this would be premature at this point.
It looks like the test_math errors are the same problem that Jean found.
Skip, does
LDFLAGS=-xlibmieee ./configure ...
do anything to alleviate the test_math errors?
The cmath
New submission from Stefan Sonnenberg-Carstens [EMAIL PROTECTED]:
Given the attached source, I can produce these results:
[EMAIL PROTECTED] ~]$ python ziptest.py
Start 10:05:54
ZIP stored mtime: (2008, 6, 29, 10, 5, 54)
Original mtime: (2008, 6, 29, 10, 5, 54)
Duration 0.00291705131531
Stop
Stefan Sonnenberg-Carstens [EMAIL PROTECTED] added the comment:
I changed the script a bit, so that the txt file is not getting
recreated every time.
It gives:
[EMAIL PROTECTED] ~]$ python ziptest.py
Start 10:15:05
ZIP stored mtime: (2008, 6, 29, 10, 15, 4)
Original mtime: (2008, 6, 29, 10,
Nick Coghlan [EMAIL PROTECTED] added the comment:
Well, I think I figured out why the __hash__ changes were backported
from Py3k: without them, the existence of object.__hash__ makes the
Hashable ABC completely useless (every newstyle class meets it).
I see two options here. Option 1 is to
Mark Dickinson [EMAIL PROTECTED] added the comment:
LDFLAGS=-xlibmieee ./configure ...
I guess that should probably be:
LDFLAGS=-Xlinker -xlibmieee ./configure
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3167
Martin v. Löwis [EMAIL PROTECTED] added the comment:
That's a limitation of the zip file format. It uses DOS time stamps,
which only support 5 bits for representing seconds. As a consequence,
within a minute, ZIP can only store even seconds.
If the number of seconds in the minute is odd on the
Mark Dickinson [EMAIL PROTECTED] added the comment:
Skip: one more question. What does
cmath.exp(710.0 + 1.5j)
give instead of the expected OverflowError?
Incidentally, the Solaris buildbot seems happy enough at the moment. I
wonder what the difference between Skip's machine and the
New submission from Martin Mokrejs [EMAIL PROTECTED]:
I try to get working pipe emulation using Popen. I try to pass StringIO
object to p1.stdin of the first process and I got the following:
File /usr/lib/python2.5/subprocess.py, line 587, in __init__
errread, errwrite) =
New submission from Martin Mokrejs [EMAIL PROTECTED]:
Although I do appreciate that you try to improve python it is not clear
to me from http://docs.python.org/lib/module-subprocess.html:
1. Why the old functions have been deprecated
2. I can pipe together two processes. But how can I use pipe
Martin Mokrejs [EMAIL PROTECTED] added the comment:
Please link to http://www.python.org/dev/peps/pep-0324/ from the docs
webpage at least.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3235
___
Martina Oefelein [EMAIL PROTECTED] added the comment:
I can reproduce it with Safari if I enlarge the font size (Cmd +), and it looks
like this will happen with
*any* browser.
Main cause is that the with of the sidebar is set in pixels, while the size of
the Quick search box (and the
Changes by Mark Dickinson [EMAIL PROTECTED]:
--
nosy: +marketdickinson
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1580
___
___
Python-bugs-list
Changes by Senthil [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file10496/issue600362.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue600362
___
Changes by Senthil [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file10771/issue600362-py26.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue600362
___
Changes by Senthil [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file10772/issue600362-py3k.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue600362
___
Nick Coghlan [EMAIL PROTECTED] added the comment:
Attached patch allows classes to explicitly block inheritance of
object.__hash__ by setting the tp_hash slot to Py_None or the __hash__
attribute to None.
This is similar to the approach used in Py3k, but allows __hash__ to be
inherited by
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I suspect this is because of the transition from PyInt to PyLong:
Python 2.6b1+ (trunk:64580M, Jun 28 2008, 18:04:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type help, copyright, credits or license for more information.
Benjamin Peterson [EMAIL PROTECTED] added the comment:
No, the class you are creating with cStringIO.cStringIO is actually
called cStringIO.cStringI.
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Python tracker [EMAIL
Jean Brouwers [EMAIL PROTECTED] added the comment:
For comparison, 64-bit -xO5 Python build:
Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5
Type help, copyright, credits or license for more information.
import cmath
cmath.exp(710.0 + 1.5j)
Traceback (most recent call last):
Mark Dickinson [EMAIL PROTECTED] added the comment:
What about this case? Should cmath not produce the same result as math:
No; this is correct, I think. Note that the cmath.log result has nonzero
imaginary part, so can't be represented as a float.
Similarly, math.sqrt(-1) is an error,
Jean Brouwers [EMAIL PROTECTED] added the comment:
I have not yet been able to duplicate the problem in a smaller test
case, but I did stumble into a fix. Changing the following statement in
the cmath_log function from
if (PyTuple_GET_SIZE(args) == 2)
x = c_quot(x,
David [EMAIL PROTECTED] added the comment:
See if Doug Hellman's module of the week helps any
http://blog.doughellmann.com/2007/07/pymotw-subprocess.html I plan on
asking him if we can include some of his examples in the Python 3000
docs. Subprocess is new enough and gets enough questions on
Jean Brouwers [EMAIL PROTECTED] added the comment:
Attached is a test case which does demonstrate the problem. See the top
of that file. I will post this at the SUN C Forum.
Added file: http://bugs.python.org/file10774/SunC-64bit-xO5-bug.c
___
Python
Changes by Jean Brouwers [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file10774/SunC-64bit-xO5-bug.c
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3168
___
Martin v. Löwis [EMAIL PROTECTED] added the comment:
1. The documentation never gives a rationale for deprecating things. To
find out why they are deprecated, you'll typically have to research what
checkins to a code base have been made that added the deprecation, and
perhaps also ask on mailing
Martin v. Löwis [EMAIL PROTECTED] added the comment:
For the old int type, implementing this was trivial, as the conversion
converted into a C long, then called PyInt_FromLong.
For long, it's much more tricky, as no C type can be used to store the
intermediate result. So instead,
Jean Brouwers [EMAIL PROTECTED] added the comment:
Without changing the cmath_log code, another workaround is to compile
Python with optimization level -xO2 or less for 64-bit using Sun C.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3168
New submission from Terry J. Reedy [EMAIL PROTECTED]:
As reported in the py3 list
File /root/Py3kb1/lib/python3.0/tkinter/__init__.py, line 1409,
in __call__
return self.func(*args)
File /root/Py3kb1/lib/python3.0/idlelib/MultiCall.py, line 165,
in handler
r = l[i](event)
File
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
assignee: - kbk
nosy: +kbk
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3237
___
___
Jean Brouwers [EMAIL PROTECTED] added the comment:
There is another, perhaps related issue on Solaris. The compiler warns
that function finite is implicitly defined.
Commenting out this line in pyconfig.h as
/* #define HAVE_FINITE 1 */
make that warning go away. If there is no function
New submission from kai zhu [EMAIL PROTECTED]:
this patch touches only Python/ceval.c.
1. the only existing thing it modifies is PyEval_EvalFrameEx (adds 7
extra cases for the new 3.0 opcodes, doesn't mess w/ any of the existing
ones, or anything else as a matter of fact)
2. that, plus it
Aaron Gallagher [EMAIL PROTECTED] added the comment:
I've provided an alternate implementation of this that works with very
minimal modification to pickle.py. See issue 3119 for the patch.
--
nosy: +habnabit
___
Python tracker [EMAIL PROTECTED]
Antoine Pitrou [EMAIL PROTECTED] added the comment:
This new patch also introduces re.ASCII as discussed on the mailing-list.
Added file: http://bugs.python.org/file10777/reunicode2.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2834
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Improved patch which also detects incompatibilities for (?u).
Added file: http://bugs.python.org/file10778/reunicode3.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2834
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Le dimanche 29 juin 2008 à 17:43 +, Martin v. Löwis a écrit :
For long, it's much more tricky, as no C type can be used to store the
intermediate result. So instead, PyLong_FromString already allocates a
sufficiently-sized long object
New submission from Georgij Kondratjev [EMAIL PROTECTED]:
Line 'import curses, ascii' should be replaced with 'import curses'
--
components: Library (Lib)
messages: 68969
nosy: orivej
severity: normal
status: open
title: curses/textpad.py incorrectly and redundantly imports ascii
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
Not creating new bug entry because everybody can quickly fix it.
In urllib/request.py some instances of URLError are raised with raise
urllib.error.URLError and this works, buth there are lines with raise
URLError which produces NameError:
Martin v. Löwis [EMAIL PROTECTED] added the comment:
The first beta release for 2.6 has been made, so no new features can be
accepted here. Deferring this to 2.7.
--
nosy: +loewis
versions: +Python 2.7 -Python 2.6
___
Python tracker [EMAIL PROTECTED]
Martin v. Löwis [EMAIL PROTECTED] added the comment:
The bug entry is just for pointing out a missed optimization
opportunity. The first mentioned solution would already be an
improvement, although of course it would even be better to skip the
intermediary allocation altogether.
Can you
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Le dimanche 29 juin 2008 à 21:52 +, Martin v. Löwis a écrit :
Can you propose an implementation strategy that doesn't create the
object, yet still avoids duplication of large chunks of code?
If by duplicating large chunks of code, you
Rafael Zanella [EMAIL PROTECTED] added the comment:
On subprocess.py the new method communicate() doesn't encode the string:
_communicate(self, input):
...
if isinstance(input, str):
input = input.encode()
...
I've attached a patch that adds the str.encode() call on communicate().
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Hmm. I think it's better to make people explicity encode their string.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
___
Mark Dickinson [EMAIL PROTECTED] added the comment:
Here's some Python code to translate floats to hex strings and back, in
case it's useful.
Added file: http://bugs.python.org/file10780/hex_float.py
___
Python tracker [EMAIL PROTECTED]
Changes by Mark Dickinson [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file10729/hex_float.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3008
___
New submission from Roger Upole [EMAIL PROTECTED]:
The problem seems to stem from this line in IOBinding.py:
locale.setlocale(locale.LC_CTYPE, )
From the command prompt:
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on
win32
Type help, copyright, credits or
Bill Janssen [EMAIL PROTECTED] added the comment:
The 2.6/3.0 changes are now up-to-date. We could reconsider this
problem. My guess is that we still don't quite know what to do.
I think the issue is that we need a way to unwrap the SSL-secured
TCP stream, after it's been used. So we need to
Bill Janssen [EMAIL PROTECTED] added the comment:
I believe this is now fixed in the SVN.
There's a new parameter on SSLSocket, suppress_ragged_eofs, which allows
it to be enabled selectively, but default to True.
--
resolution: - accepted
___
Skip Montanaro [EMAIL PROTECTED] added the comment:
I tried to configure with '-Xlinker -xlibmieee' added to LDFLAGS. Failed
miserably. In fact, configure complained that my compiler couldn't create
executables, told me to look at config.log for details then logged me out
from the machine!
Facundo Batista [EMAIL PROTECTED] added the comment:
The ascii module is used all around the file... if you don't import it,
how would you use that functionality?
--
nosy: +facundobatista
resolution: - invalid
status: open - closed
___
Python
Changes by Bill Janssen [EMAIL PROTECTED]:
--
assignee: - janssen
nosy: +janssen
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1291446
___
___
Facundo Batista [EMAIL PROTECTED] added the comment:
Great, Amaury, I applied your second patch... it make all tests pass ok, :)
Commited in 64595.
Thank you all!!
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Why do you think string.letters gets corrupted? AFAICT, it's still correct.
--
nosy: +loewis
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3240
Rafael Zanella [EMAIL PROTECTED] added the comment:
So..., could this issue be closed ?
--
nosy: +zanella
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2325
___
Matias Gonzalez [EMAIL PROTECTED] added the comment:
Yes, it should be. I don't have permissions to.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2325
___
___
kai zhu [EMAIL PROTECTED] added the comment:
ok
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3238
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
resolution: - duplicate
status: open - closed
superseder: - idlelib/EditorWindow.py uses xrange()
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3237
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
resolution: - invalid
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2325
___
Jeffrey Yasskin [EMAIL PROTECTED] added the comment:
I don't think so. It wouldn't be a bug if I wrote:
class Meta(type):
... def __instancecheck__(self, other):
... return True
isinstance(3, Meta)
... False
but it is a bug that the isinstance call raises an exception. If recent
builds
Jeffrey Yasskin [EMAIL PROTECTED] added the comment:
Yeah, I'll take a look. Feel free to bug me if I haven't gotten to it in
a couple more days.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3056
___
Changes by Martin v. Löwis [EMAIL PROTECTED]:
--
priority: normal - high
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1622
___
___
Python-bugs-list
New submission from Ralf Schmitt [EMAIL PROTECTED]:
The warnings module prints garbage when the __file__ points to a binary.
This happens e.g. when freezing applications with bbfreeze/py2exe.
It's easy to reproduce even without freezing:
~/ python
61 matches
Mail list logo