Mark Dickinson dicki...@gmail.com added the comment:
Hah. Good point. I'd forgotten about the taking-the-low-order-bits
thing. Should probably do some timings (and possibly also number-of-
collisions measurements) to find out whether using id() 3 actually
makes any significant difference
Antoine Pitrou pit...@free.fr added the comment:
Updated patch.
Added file: http://bugs.python.org/file12956/pybench3.0-3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4704
___
New submission from Jean-Paul Calderone exar...@divmod.com:
The weekly tracker summary emails sent to python-dev contain incorrect
information. The value for the median duration of open issues it
reports has recently wrapped around to 0 and started growing from there.
Looking at older reports,
Marc-Andre Lemburg m...@egenix.com added the comment:
On 2009-02-06 18:35, Marc-Andre Lemburg wrote:
Marc-Andre Lemburg m...@egenix.com added the comment:
Perfect ! Thanks, Antoine. Please check it in.
Well, except for this part that sneaked in:
@@ -4,8 +4,6 @@
#
-# Note: Please keep
New submission from Matthew Woodcraft m...@pearson.co.uk:
In the current What's New In Python 3.0 documentation, under Changes
To Exceptions, it is claimed that the removal of StandardError is in
2.6 already.
But according to the 2.6.1 documentation, StandardError is still there
in its usual
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r69372.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5173
___
Eric Smith e...@trueblade.com added the comment:
The patch does solve the problem for me. It no longer hangs when running
either:
./python Lib/test/regrtest.py test_tcl test_ttk_guionly
or:
./python Lib/test/regrtest.py
-
...
test_traceback
test_transformer
test_ttk_guionly
Changes by Forest Wilkinson for...@users.sourceforge.net:
--
nosy: +forest
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1194378
___
___
Paul Moore p.f.mo...@gmail.com added the comment:
Here's an updated patch. I've reverted to the name simplegeneric and
documented the limitation around ABCs (I've tried to give an explanation
why it's there, as well as a hint on now to work around the limitation -
let me know if I'm overdoing
Mark Dickinson dicki...@gmail.com added the comment:
Some preliminary timings indicate that it may well be worth replacing 'return
(long)p' with
'return (long)p 3' in _Py_HashPointer (in Objects/object.c): I'm getting a
10% speedup in
dict-building and dict-lookup for dicts of plain
Guilherme Polo ggp...@gmail.com added the comment:
Here is a better patch, for some definition of better.
It syncs the failed attempt to load tk that may occur in
_tkinter.Tkapp_TkInit, _tkinter.Tcl_AppInit and tkappinit.Tcl_AppInit.
And that is done only for tk 8.4.14 now.
Said that, I'm a
Terry J. Reedy tjre...@udel.edu added the comment:
If you semi-optimize the implementation by pre-cancelling out the larger
of the denominators, then these functions would be justified as more
efficient than the naive use of the factorial function indicated by the
formulas.
Possible shorter
Guilherme Polo ggp...@gmail.com added the comment:
Any chance you can look at the proposed patch, Martin ? I found out that
it was you who reported this deadlock back then, so you might want to
review the patch.
--
nosy: +loewis
___
Python tracker
Benjamin Peterson benja...@python.org added the comment:
This should be reported to the meta-tracker:
http://psf.upfronthosting.co.za/roundup/meta/
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Python tracker
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
The attached test script and output file appear to show logging working
correctly. The script writes a log message including the Cyrillic text
доброе утро (Good morning) to a CP1251-encoded file, test.log. Opening
this file in a
Eric Smith e...@trueblade.com added the comment:
The second patch (checking_for_failed_tk_load.diff) also works for me.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5122
___
Guilherme Polo ggp...@gmail.com added the comment:
Found a place still out of sync, it is fixed on this new patch. To
reproduce the problem with the previous patch try this:
import os
del os.environ['DISPLAY']
import Tkinter
Tkinter.Tk()
Tkinter.Tcl().loadtk() # should hang now (with a proper
Neil Schemenauer nas-pyt...@arctrix.com added the comment:
Thanks Antoine. For some reason I don't think I ever got an email about
this issue. I did some further cleanups and optimizations. Committed
as SVN rev 69373.
Lib/compiler is still in need of some fixing since it doesn't handle
Terry J. Reedy tjre...@udel.edu added the comment:
If the interactive interpreter did not require blank lines within blocks
to have at least one 'trailing' space to avoid prematurely ending the
block (as when copy from editor window and paste), IDLE could
automatically rstrip lines. Given that
Changes by Georg Brandl ge...@python.org:
--
assignee: - effbot
nosy: +effbot
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5166
___
___
Georg Brandl ge...@python.org added the comment:
I've experimented with a style variant that keeps the sidebar fixed on
the left side, however I did not manage to get it to show a separate
scrollbar. Maybe I was just stupid though.
___
Python tracker
Terry J. Reedy tjre...@udel.edu added the comment:
On IDLE 3.0, win xp, cntl-space brings up a selection box with known
names to select. What was your actual input?
--
nosy: +tjreedy
___
Python tracker rep...@bugs.python.org
Eric Smith e...@trueblade.com added the comment:
With the second patch installed, your code snippet does indeed hang for me.
With the third patch installed, I get:
[trunk]$ ./python
Python 2.7a0 (trunk:69369M, Feb 6 2009, 14:59:32)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2
Type help,
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
Exactly but I don't open issue as I address it in issue5060 .
--
nosy: +rpetrov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5161
Ezio Melotti ezio.melo...@gmail.com added the comment:
Something like this maybe?
div.sphinxsidebar {
float: left;
width: 230px;
height: 100%;
font-size: 90%
/* add these: */
margin-top: 30px;
height: 100%;
overflow: auto;
position: fixed;
}
...
div.related
Jesús Cea Avión j...@jcea.es added the comment:
The issue is trivially reproductible in any 32 bits platform, simply
allocating objects until you go up the 2GB mark.
Since __hash__() wants to take advantage of every bit in a 32 bit
platform, and we don't have unsigned integers in python, I vote
Guilherme Polo ggp...@gmail.com added the comment:
Eric Smith added the comment:
.
.
Which I assume is the expected behavior.
Yes it is expected.
Also with the third patch installed, the regrtest's all pass.
Very nice.
And Eric, thanks for the patience and for testing them all.
New submission from Calvin Spealman ironfro...@users.sourceforge.net:
The following example from the xmlrpclib docs has an obviously erronous
call to close() after the actual return.
(http://docs.python.org/library/xmlrpclib.html)
def python_logo():
handle = open(python_logo.jpg)
Calvin Spealman ironfro...@users.sourceforge.net added the comment:
The patch attached uses a with statement for proper file closing in the
examples.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5174
Antoine Pitrou pit...@free.fr added the comment:
It's ok to bump this to Python 2.3, though :-)
The current version only works with 3.x, due to the use of the print
function with the end keyword argument.
Should it be fixed?
Regards
Antoine.
___
Python
Antoine Pitrou pit...@free.fr added the comment:
Thanks Antoine. For some reason I don't think I ever got an email about
this issue. I did some further cleanups and optimizations. Committed
as SVN rev 69373.
Thanks! If I knew you hadn't received any notification I would have
tried to ping
Ezio Melotti ezio.melo...@gmail.com added the comment:
Ezio, itertools currently has combinations with and without
*replacement*, not repetition.
I think you're talking about something slightly different
(repetitions in the *iterable*, rather than allowing
repeated *drawings* of the same
Guilherme Polo ggp...@gmail.com added the comment:
Committed now.
trunk: r69376, r69377
release26-maint: r69378
py3k: r69380
release30-maint: r69381 (hand-merged, as you may notice I forgot to
split the patch in two again in py3k)
--
resolution: - fixed
status: open - closed
New submission from Lisandro Dalcin dalc...@gmail.com:
At Objects/longobject.c, in almost all cases
OverflowError is raised when a unsigned integral is requested from a
negative PyLong. However, this one breaks the rules:
int
_PyLong_AsByteArray(PyLongObject* v,
unsigned char*
Martin v. Löwis mar...@v.loewis.de added the comment:
What specific changes do you have in mind?
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5164
___
New submission from Collin Winter coll...@gmail.com:
This patch speeds up the string formatting % operator by avoiding the
unnecessary indirection in PyNumber_Remainder(). This particularly
benefits templating systems that do a lot of string formatting via %.
Performance tested with gcc 4.3.1
Martin v. Löwis mar...@v.loewis.de added the comment:
My approach for disabling the
warnings in the code has (to me) two advantages:
What specific file would you put these pragmas into?
Are you perhaps proposing to change upstream code?
___
Python tracker
Tarek Ziadé ziade.ta...@gmail.com added the comment:
PEP8 :
- removing space between function names and ()
like: function () - function()
- function(arg1,
arg2,
arg3)
becomes
function(arg1, arg2, arg3)
- remove the usage of string.translate,
Martin v. Löwis mar...@v.loewis.de added the comment:
I think the comment (an invalid fd would be a C program bug)
misrepresents the facts. Please don't check it in as-is. An invalid file
descriptor is *not* assertable. The authority on file descriptors, the
POSIX standard, specifies for, say,
Martin v. Löwis mar...@v.loewis.de added the comment:
It's neither a bug nor a feature. It's simply not possible to copy the
hidden flag (or system flag, for that matter), since there is no API for
doing so. copystat only copies Unix attributes.
If you were to copy the hidden flag, you would
Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it added the comment:
As the tests are new, I hope sending the real file is the right way to
proceed.
Added file: http://bugs.python.org/file12963/test_imapnet.py
___
Python tracker rep...@bugs.python.org
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it:
Added file: http://bugs.python.org/file12964/test_smtpnet.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4470
___
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it:
Added file: http://bugs.python.org/file12965/test_popnet.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4473
___
Changes by Neil Schemenauer nas-pyt...@arctrix.com:
--
assignee: - nascheme
nosy: +nascheme
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1754094
___
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it:
--
components: +Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4473
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Hmm. Ok. I was hoping you could point to a revision number...
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5164
___
Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it added the comment:
There is a problem I forgot to state with test_anonlogin:
since I try and test both SSL and starttls, the DoS checker at cmu kicks
in and refuse the login attempt in PopSSLTest. Since I'd rather avoid
cheating, I'm leaning to
Neil Schemenauer nas-pyt...@arctrix.com added the comment:
Fixed in SVN rev 69394 (finally). This was done by having the symbol
table differentiate between explicit and implicit globals.
--
assignee: jhylton - nascheme
nosy: +nascheme
resolution: - fixed
status: open - closed
Changes by Neil Schemenauer nas-pyt...@arctrix.com:
--
assignee: jhylton - nascheme
nosy: +nascheme
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue999444
___
Changes by Neil Schemenauer nas-pyt...@arctrix.com:
--
assignee: - nascheme
nosy: +nascheme
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5064
___
Guilherme Polo ggp...@gmail.com added the comment:
Another way to reproduce it (tested using debug build):
Python 2.7a0 (trunk:69375:69376M, Feb 6 2009, 20:27:09)
[GCC 4.3.2] on linux2
Type help, copyright, credits or license for more information.
import Tkinter
Tkinter.Tk()
Tkinter.Tk
Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it added the comment:
I'm enclosing the expected-failure version of test_popnet. It's much
simpler to talk and comment about something you can see!
Added file: http://bugs.python.org/file12966/test_popnet.py
___
Jeffrey Yasskin jyass...@gmail.com added the comment:
I think this is only valid when PyString_CheckExact is true. A subclass
could override __mod__, right?
I'm somewhat interested to see how a primarily-numeric benchmark
responds to this patch. I'd expect it to get very slightly slower for %
Brett Cannon br...@python.org added the comment:
Here is a patch to remove the DeprecationWarning.
--
keywords: +patch
Added file: http://bugs.python.org/file12967/issue3652.diff
___
Python tracker rep...@bugs.python.org
Chema Cortés dev.xt...@gmail.com added the comment:
I also agree to close this bug as invalid. Indeed, there is not any
reason to make equal id(a) and hash(a), but the description of
hashable object from the documentation (but this is a different
issue).
'hash' and 'id' returns the
201 - 255 of 255 matches
Mail list logo