New submission from kxroberto kxrobe...@users.sourceforge.net:
With transition from Python2.5 to Python2.6 on current Debian stable I noticed
that the python2.6 executable has now 2x size of python2.5's.
Half of lib-dynload/* obviously have been embedded into the executable by
default. While
maniram maniram maniandra...@gmail.com added the comment:
+1
--
nosy: +maniram.maniram
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13580
___
___
Filip Gruszczyński grusz...@gmail.com added the comment:
I didn't know about `make patchcheck`, next time I will use it, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13544
___
maniram maniram maniandra...@gmail.com added the comment:
Remove the needs patch keyword since this bug has a patch.
--
nosy: +maniram.maniram
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13544
Mark Dickinson dicki...@gmail.com added the comment:
+1 for fixing this.
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13573
___
Nick Coghlan ncogh...@gmail.com added the comment:
Explicitly spelling out __qualname__ like that makes the tests a bit too
sensitive to otherwise irrelevant details of the test layout.
I suggest using comparisons like self.assertEqual(wrapper.__qualname__,
f.__qualname__) and
kxroberto kxrobe...@users.sourceforge.net added the comment:
Well, == whould allow the wanted feature by exception through meta classes
for concerned classes:
class X:
... a=1
...
Y=X
class X:
... a=1
...
Y==X
False
class XCompare(type):
... def __eq__(self, other):
...
Filip Gruszczyński grusz...@gmail.com added the comment:
Fixed tests.
--
Added file: http://bugs.python.org/file23912/13544_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13544
___
sbt shibt...@gmail.com added the comment:
I already have a patch for the descriptor types which lazily calculates the
__qualname__. However test.test_sys also needs fixing because it tests that
these types have expected sizes.
I have not got round to builtin_function_or_method though.
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13574
___
___
Python-bugs-list
sbt shibt...@gmail.com added the comment:
Updated patch which fixes test.test_sys.SizeofTest. (It also adds __qualname__
to member descriptors and getset descriptors.)
--
Added file: http://bugs.python.org/file23914/descr_qualname.patch
___
Python
Jesús Cea Avión j...@jcea.es added the comment:
I see this effect in the stock ubuntu 10.04 python 2.6.
I can't see it in my selfcompiled binaries for Solaris 10 and 2.7 ubuntu.
The reason seems to be that my compilated code uses the python shared libs,
while the stock Ubuntu 10.04 python 2.6
Changes by Eric V. Smith e...@trueblade.com:
--
assignee: - eric.smith
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13579
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13577
___
___
Python-bugs-list mailing list
Roger Serwy roger.se...@gmail.com added the comment:
Attached is a patch to fix the bug.
When selecting Open from the File Menu, ishanderrunning is empty.
Unbind/Bind requests are handled synchronously.
When pressing Ctrl+O, ishandlerrunning is no longer empty, and the actual
bind/unbind
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
So, if I understand your last comment correctly, it's OK to close this issue,
so I'm going to. If I misunderstood, then please feel free to reopen.
--
resolution: - invalid
status: open - closed
R. David Murray rdmur...@bitdance.com added the comment:
So isn't this saying that this is a problem with the distribution packaging and
not with CPython itself?
--
nosy: +barry, r.david.murray
___
Python tracker rep...@bugs.python.org
Changes by Kasun Herath kasun...@gmail.com:
--
nosy: +kasun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13559
___
___
Python-bugs-list mailing
kxroberto kxrobe...@users.sourceforge.net added the comment:
Of course, as soon as we use sockets, we will bring SSL in
Indeed, as it is now.
Suggestions:
* urllib.URLOpener.open_https shall always exist, but fail on runtime.
non-existance with strange AttributeError is inelegant..bogus.
sbt shibt...@gmail.com added the comment:
I don't really know that much about pickle, but Antoine mentioned that
'bytearray'
works fine going from 3.2 to 2.7. Given that, can't we just compose 'bytes'
with
'bytearray'?
Yes, although it would only work for 2.6 and 2.7.
codecs.encode()
kxroberto kxrobe...@users.sourceforge.net added the comment:
Can you try to compile python using the shared lib
yes I can try lot of things, but I'd need to do this on many machines. Yet I
didn't create this issue for some local purpose ;-)
99% of Pythons are installed by apt-get, .msi etc.
New submission from Christopher the Magnificent
ultimate.mac.fana...@gmail.com:
observe help(type) and type.__doc__ in Python 3.1:
help(type)
Help on class type in module builtins:
class type(object)
| type(object) - the object's type
| type(name, bases, dict) - a new type
|
|
Antoine Pitrou pit...@free.fr added the comment:
The patch should add some tests for the added functionality (I'm not sure
where, but perhaps test_descr is a good location).
Also, just a nitpick, you can use _PyObject_GetAttrId and the _Py_IDENTIFIER
macro instead of interning the
Antoine Pitrou pit...@free.fr added the comment:
From a fresh-compiled Python 2.7:
$ ldd ./python
linux-vdso.so.1 = (0x7fff85cde000)
libpthread.so.0 = /lib64/libpthread.so.0 (0x7f772f725000)
libdl.so.2 = /lib64/libdl.so.2 (0x7f772f521000)
Antoine Pitrou pit...@free.fr added the comment:
os.fstat wouldn't work since it succeeds with non-regular files, e.g.
standard I/O:
os.fstat(0)
posix.stat_result(st_mode=8592, st_ino=5, st_dev=11, st_nlink=1, st_uid=500,
st_gid=5, st_size=0, st_atime=1323629303, st_mtime=1323629303,
sbt shibt...@gmail.com added the comment:
Note that extension (non-builtin) types will need to have their
__qualname__ fixed before their methods' __qualname__ is usable:
collections.deque.__qualname__
'deque'
I'm confused. Isn't that the expected behaviour? Since the deque class is
akira 4kir4...@gmail.com added the comment:
Related bug in Java:
http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html
Do not consider any change as trivial:
http://www.solipsys.co.uk/new/BinarySearchReconsidered.html (the author ran
binary search coding
Antoine Pitrou pit...@free.fr added the comment:
Note that extension (non-builtin) types will need to have their
__qualname__ fixed before their methods' __qualname__ is usable:
collections.deque.__qualname__
'deque'
I'm confused. Isn't that the expected behaviour? Since the
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
It fails for the same reason as issue1785:
~/python/cpython3.2$ ./python -c import inspect;
inspect.classify_class_attrs(type)
Traceback (most recent call last):
File string, line 1, in module
File
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The 'type' object now has the same issue: __abstractmethods__ appears in
dir(type) but type.__abstractmethods__ fails with an AttributeError.
See issue13581
--
nosy: +amaury.forgeotdarc
___
kxroberto kxrobe...@users.sourceforge.net added the comment:
It doesn't happen in Python 3
Yet the cheap/unnecessary pre-imports of ssl in those other mentioned socket
using libs (urllib (cgi!),httplib,smtplib,pop,imap...) exist there. socket is
rarely used directly, so not much difference to
New submission from Roger Serwy roger.se...@gmail.com:
Running IDLE on Windows typically uses pythonw.exe. Unfortunately any error
messages written to stderr will cause IDLE to terminate abruptly without an
error message. This is due to __stderr__ == None.
Attached is a patch against 3.3a0
Filip Gruszczyński grusz...@gmail.com added the comment:
I have written a patch and a test, but since it's changing C code, I am far
from being sure if it's achieve the expected behavior in the right way. There
are also tests and running whole test suite didn't bring any errors.
--
Filip Gruszczyński grusz...@gmail.com added the comment:
Also: I'll be happy to work further on this patch, if I get some comments and
advice.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13521
Antoine Pitrou pit...@free.fr added the comment:
If _PyDict_SetItemUsingHash is module-private, it should be declared static.
Also, better if it follows the usual naming of static functions inside that C
file (i.e. dict_some_lowercase_name).
--
stage: needs patch - patch review
Antoine Pitrou pit...@free.fr added the comment:
It doesn't happen in Python 3
Yet the cheap/unnecessary pre-imports of ssl in those other mentioned
socket using libs (urllib (cgi!),httplib,smtplib,pop,imap...) exist
there. socket is rarely used directly, so not much difference to Py2
in
Filip Gruszczyński grusz...@gmail.com added the comment:
Done.
--
Added file: http://bugs.python.org/file23918/13521_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13521
___
Guido van Rossum gu...@python.org added the comment:
What you're seeing here is just one of may things that go subtly wrong when you
reload a class. I don't think we should fix this one aspect while leaving so
many other bugs due to the same root cause.
It would be better to focus your
New submission from Lucas Sinclair blastoc...@mac.com:
When using the sqlite3.Row object as a row factory, one can access the
resulting rows by index (such as row[1]) or by name (such as row['b']).
However, the slice functionality is lost, as doing row[0:2] raises the error:
slices not
Jesús Cea Avión j...@jcea.es added the comment:
Performance report for current 3.3 tip, using pybench.
BASELINE: (original version without DTRACE patch)
---
PYBENCH 2.1
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file23920/f73be85b9a7e.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file23921/43d1a819a63d.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Changes by Jesús Cea Avión j...@jcea.es:
Removed file: http://bugs.python.org/file23758/a9f4ae43fd85.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Changes by Jesús Cea Avión j...@jcea.es:
Removed file: http://bugs.python.org/file23827/2a7dedf6a65e.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Martin v. Löwis mar...@v.loewis.de added the comment:
It's reasonable that string % formatting might have become slower...
I wonder what the issue is at this point. Unless you can state a clear issue
that you want to see resolved, I propose to close this report as invalid.
--
Antoine Pitrou pit...@free.fr added the comment:
The patch looks ok to me. I'll let Raymond make the final call.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13521
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Some people might want other compression methods, e.g. bz2, zip, lzma ...
Have you considered subclassing the existing handler classes as in the
following example?
Jesús Cea Avión j...@jcea.es added the comment:
Same calculations for 64 bit binaries:
* STOCK PYTHON:
---
PYBENCH 2.1
---
* using CPython
kxroberto kxrobe...@users.sourceforge.net added the comment:
It doesn't happen in Python 3
Yet the cheap/unnecessary pre-imports of ssl in those other mentioned
socket using libs (urllib (cgi!),httplib,smtplib,pop,imap...) exist
there. socket is rarely used directly, so not much difference
New submission from Phillip Feldman phillip.m.feld...@gmail.com:
I tried switching from `optparse` to `argparse`, but ended up reverting back
because `argparse` does not respect double quotes. For example, `optparse`
correctly parses the following, while `argparse` does not:
python
Antoine Pitrou pit...@free.fr added the comment:
(I often wonder why software today isn't much faster than years ago -
though the nominal speed of hardware increases tremendously. package
sizes grow, without appropriate growth of functionality. This is one
example how the rescources are
Stefan Krah stefan-use...@bytereef.org added the comment:
Sorry, the title of the issue isn't correct any more. The revised
issue is that in 3.3
a) outfil.write(%s\n % t)
is about 11% slower than in Python2.7 and 8% slower than in Python3.2.
On the other hand in 3.3 the hack
b)
Antoine Pitrou pit...@free.fr added the comment:
But if I understand correctly, the slowdown in string formatting is
expected, so we can indeed close this.
Well, expected doesn't mean it shouldn't be improved, so finding a way to speed
it up would be nice ;)
(probably difficult, though)
sbt shibt...@gmail.com added the comment:
New version of the patch with tests and using _Py_IDENTIFIER.
--
Added file: http://bugs.python.org/file23922/descr_qualname.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13577
STINNER Victor victor.stin...@haypocalc.com added the comment:
Hum, it's still not ok:
==
FAIL: test_tzset (test.test_time.TimeTestCase)
--
Traceback (most
STINNER Victor victor.stin...@haypocalc.com added the comment:
Can you please write a doc patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13561
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
.. versionchanged:: 3.2
- The *strict* parameter is deprecated. HTTP 0.9-style Simple Responses
+ The *strict* parameter is removed. HTTP 0.9-style Simple Responses
are not supported anymore.
Such change looks
STINNER Victor victor.stin...@haypocalc.com added the comment:
@Barry: can you try to get a trace using gdb? Start python in gdb, set a
breapoint on PyErr_SetObject, continue, run the Python command import
_curses, get the gdb traceback (or continue if the error is not the UTF-8
error).
Meador Inge mead...@gmail.com added the comment:
On Sun, Dec 11, 2011 at 4:42 AM, Nick Coghlan rep...@bugs.python.org wrote:
Explicitly spelling out __qualname__ like that makes the tests a bit too
sensitive to otherwise irrelevant details of the test layout.
I suggest using comparisons
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berkerpeksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8538
___
___
New submission from Nikolaus Rath nikol...@rath.org:
I'd like to propose addding the CleanupManager class described in
http://article.gmane.org/gmane.comp.python.ideas/12447 to the contextlib
module. The idea is to add a general-purpose context manager to manage (python
or non-python)
Nikolaus Rath nikol...@rath.org added the comment:
Here's the first part of the patch with the implementation. I'll add tests and
documentation as soon as someone confirms that the idea API is okay.
--
keywords: +patch
Added file:
Nikolaus Rath nikol...@rath.org added the comment:
Hmm. Does the total lack responses mean agreement, disagreement or lack of
interest? I'm attaching a patch against Python 3.3 in the hope of moving this
forward.
--
keywords: +patch
Added file:
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I would like to see this posted as a recipe before being put in the standard
library. It needs a chance to mature and to demonstrate that people will want
to use it.
FWIW, the example is problematic in a couple of ways. The
Nikolaus Rath nikol...@rath.org added the comment:
Not sure what you mean with posted as a recipe -- are you thinking of a
specific website/mailing list?
Example: which one do you mean? The one in the issue or the one in the patch?
With statement: what advantages do you have in mind?
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
'''
Example code:
with CleanupManager() als mngr:
tmpdir = tempfile.mkdtemp()
mngr.register(shutil.rmtree(tmpdir)) -- this makes the call right away
# do stuff with tmpdir
'''
The part of my note that should be clear
Changes by Ned Deily n...@acm.org:
--
nosy: +bethard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13584
___
___
Python-bugs-list mailing list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 963e98f5ad31 by Meador Inge in branch 'default':
Issue #13544: Add __qualname__ to functools.WRAPPER_ASSIGNMENTS.
http://hg.python.org/cpython/rev/963e98f5ad31
--
nosy: +python-dev
Meador Inge mead...@gmail.com added the comment:
Thanks for the patch Filip.
--
resolution: - fixed
stage: patch review - committed/rejected
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13544
New submission from Marco Scataglini atlant...@gmx.com:
Entering the Replace dialog (by ctrl+h or from Edit/Replace... menu) with a
selection does not auto-magically have the selected text in the find field.
This is not consistent with the other find functions (ctrl+f: Find...; alt+F3:
Find
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset bf7329190ca6 by Raymond Hettinger in branch '2.7':
Issue #13573: The csv.writer now uses the repr() for floats rather than str().
http://hg.python.org/cpython/rev/bf7329190ca6
--
nosy: +python-dev
71 matches
Mail list logo