Martin v. Löwis added the comment:
Antoine: in (my experience of) memory analysis, the size of a single object is
mostly irrelevant. If you need to know how much memory something consumes, you
typically want to know the memory of a set of objects. So this is the case that
really must be
Nick Coghlan added the comment:
It's the docs for XMLPullParser.close that need to be updated.
On 20 September 2013 15:59, Stefan Behnel rep...@bugs.python.org wrote:
Stefan Behnel added the comment:
I'm not entirely happy about the docs anyway. Most people just want to loop
over
Stefan Behnel added the comment:
Ah, right - I forgot that it currently only implements a part of the parser API
in ElementTree. Adding Returns the toplevel document element. behind the
current sentence would do, I guess. That will need updating once the
XMLPullParser implements support for
Balazs added the comment:
Hi, this is the platform:
Linux cloudbackupbr 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.24,
Benoît D Vages added the comment:
An other exemple if necessary (python 2.6 / 2.7)
Got same behavior than mal using his script and my files.
Seems to occur when the chunk of lines between 2 differences is repeated many
times in the file
--
nosy: +folder4ben
Added file:
Serhiy Storchaka added the comment:
There are disadvantages in the changing int to Py_ssize_t. Converting
Py_ssize_t to/from Python int is a little harder than converting C int or
long. This change (as any other change) has a risk of introduce new bugs (as
you can see on example of your
New submission from Thierry Seunevel:
Executing a script from the command prompt works if Python.exe called
explicitly, doesn't work if script name only.
Example :
python.exe script.py is ok
script.py gives the following :
Traceback (most recent call last):
File D:\soft\python\lib\site.py,
Antoine Pitrou added the comment:
I suggest just add (yet one) explicit comment.
int index; /* 0 = index = LINKCELLS */
Ok, I think a comment is good enough here.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19049
Borut Podlipnik added the comment:
Using c compiler instead of c++ compiler, solved the problem:
setenv CC cc
setenv CXX cc
setenv LD_LIBRARY_PATH /opt/solarisstudio12.3/lib:/usr/lib
# ./configure --without-gcc --with-cxx-main=CC --prefix=/opt/python
# make
# make test
However, make test
mrDoctorWho0 . added the comment:
Trying to use POST-request to https://vk.com and sometimes library raise an
error.
File library/vkApi.py, line 31, in post
response = self.Opener.open(request)
File /usr/lib/python2.7/urllib2.py, line 404, in open
response = self._open(req, data)
mrDoctorWho0 . added the comment:
oops! wrong place!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
___
Python-bugs-list mailing list
Changes by mrDoctorWho0 . mrdoctor...@gmail.com:
Removed file: http://bugs.python.org/file31824/code.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
New submission from mrDoctorWho0 .:
Trying to use POST-request to https://vk.com and sometimes library raise an
error.
File library/vkApi.py, line 31, in post
response = self.Opener.open(request)
File /usr/lib/python2.7/urllib2.py, line 404, in open
response = self._open(req, data)
Changes by Christopher Benson chris.benson...@gmail.com:
--
nosy: +ChrisBenson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6792
___
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: -mrDoctorWho0..
title: Sometimes library raises URLError when trying POST with httpS - https
sslv3 error 14077417: illegal parameter
versions: +Python 2.6, Python 3.1 -Python 2.7
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
Removed message: http://bugs.python.org/msg198139
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
Removed message: http://bugs.python.org/msg198140
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11220
___
Serhiy Storchaka added the comment:
After adding read1() and peek() what stop us from inheriting HTTPResponse from
BufferedIOBase?
I suggest split _read1_or_peek_chunked() by two parts. First part calculates n
bounded by chunk_left (it can read the next chunk size and close a connection
if
Antoine Pitrou added the comment:
If you want this, I think it should be somehow folded into existing classes
(for example BufferedIOBase). Yet another implementation of readline() isn't
really a good idea.
--
___
Python tracker
Changes by Adam Bielański abg...@gmail.com:
--
nosy: +Adam.Bielański
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18756
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
See issue19051. Even preliminary Python implementation noticeable speed up the
reading of short lines.
$ ./python -m timeit -s import lzma, io f=lzma.LZMAFile('words.xz', 'r')
for line in f: pass
Unpatched: 1.44 sec per loop
Patched: 1.06 sec per loop
Eli Bendersky added the comment:
Hi Nick,
I disagree with this change. The way the APIs are currently defined, XMLParser
and XMLPullParser are different animals. XMLParser can be considered to only
have one front in the API - feed() and close(). You feed() until the document
is done and then
Antoine Pitrou added the comment:
With C implementation it should be as fast as with BufferedReader.
So why not simply use BufferedReader?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18003
R. David Murray added the comment:
I would guess that if you did a network trace you'd find out there really was a
packet that did not arrive (a timeout). Note that detecting this is
complicated by the fact that ssl is involved. (I don't know the details, but I
remember someone saying that
Kristján Valur Jónsson added the comment:
Ok, I have refactored this a bit.
A separate new function now takes care of the reading of chunk-header and tail.
This simplifies the other functions.
I'm not sure what you mean by inheriting from the buffered class. Do we gain
anything by doing
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
nosy: +ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19019
___
___
Connor Osborn added the comment:
Should the pretty print behavior remain?
--
nosy: +cdosborn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18764
___
R. David Murray added the comment:
Ah, that's a very good question. So perhaps the print command should be
renamed 'pprint'.
Anyone else have thoughts about the API? Do we instead need to fix the print
command, for backward compatibility reasons?
--
Changes by Josh Lee jlee...@gmail.com:
--
nosy: +jleedev
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10976
___
___
Python-bugs-list mailing list
Eric V. Smith added the comment:
Can you print out sys.executable and sys.path in both cases, and post the
results here?
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19056
Charles-François Natali added the comment:
So this may have been a DNS related issue, perhaps a load balancer referring
the connection to a dead machine. Yet, for some reason, the Windows command
line FTP client can recover from this problem after 20 seconds? What are they
doing right?
Charles-François Natali added the comment:
Well, as Ned explained, that's a libc bug.
If getaddrinfo() fails with EAI_SYSTEM, errno should be set.
There's nothing more Python can do.
If the error is reproducible, you can run the failing code with strace, to see
what's going on (and check if
Changes by Ned Deily n...@acm.org:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19045
___
___
Python-bugs-list mailing list
Ned Deily added the comment:
You may have a mismatch with two different versions of Python 2.7 installed.
Issue18050 documents the basic problem: a change introduced in Python 2.7.4
causes problems if a pre-2.7.4 interpreter executable is launched with a 2.7.4
or later Python standard
Jason Stumpf added the comment:
I like that clearer description. as produce matches is more correct than as
possible.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19055
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
priority: high - normal
versions: -Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
Serhiy Storchaka added the comment:
A separate new function now takes care of the reading of chunk-header and
tail. This simplifies the other functions.
Good. It is even better than I expected.
Do we gain anything by doing that, would it change the code? or would it
merely be for the
Roundup Robot added the comment:
New changeset 68a7d77a90c3 by Serhiy Storchaka in branch '3.3':
Issue #18050: Fixed an incompatibility of the re module with Python 3.3.0
http://hg.python.org/cpython/rev/68a7d77a90c3
New changeset f27af2243e2a by Serhiy Storchaka in branch '2.7':
Issue #18050:
Raymond Hettinger added the comment:
Marking this for Python 3.4. It isn't a bug in the descriptor protocol;
rather, it is an implementation detail that is sometimes helpful but is mostly
annoying.
--
title: descriptor protocol bug - PyObject_GenericGetAttr suppresses
Serhiy Storchaka added the comment:
Thank you Samuel for your report and suggested solution. Thank you Ned for
additional investigating.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker
Antoine Pitrou added the comment:
So why not simply use BufferedReader?
Because we want good performance LZMAFile and compatibility with older
versions.
You're reading me wrong. I'm simply suggesting that users interested in
readline() performance wrap LZMAFile in a BufferedReader. The
Serhiy Storchaka added the comment:
So why not simply use BufferedReader?
Because we want good performance LZMAFile and compatibility with older
versions. And I guess that it will be even faster than wrapping in
BufferedReader (due to the avoiding of double buffering).
--
Serhiy Storchaka added the comment:
Perhaps we should rather change GzipFile.mode to be a string?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18575
___
Antoine Pitrou added the comment:
Note for the different interpretation of the final chunk:
Chunked encoding allows for adding headers after the final chunk.
This is what _read_and_discard_trailer() does, but discarding the
trailing headers. So, if support is ever added for reading those
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3015
___
___
Roundup Robot added the comment:
New changeset 08c45e18e7b2 by Serhiy Storchaka in branch '3.3':
Issue #3015: Fixed tkinter with wantobject=False. Any Tcl command call
http://hg.python.org/cpython/rev/08c45e18e7b2
New changeset 65dd0de6b4a5 by Serhiy Storchaka in branch 'default':
Issue #3015:
Serhiy Storchaka added the comment:
Here is a patch which change the default value for the wantobjects parameter of
_tkinter.create() and adds deprecation warnings.
--
stage: - patch review
type: - behavior
versions: -Python 3.3
___
Python
Kristján Valur Jónsson added the comment:
Ok, I can change the base class inheritance and see if it changes things.
Note for the different interpretation of the final chunk:
Chunked encoding allows for adding headers after the final chunk. This is what
_read_and_discard_trailer() does, but
Arfrever Frehtes Taifersar Arahesis added the comment:
Here is a patch
You again forgot to attach a patch :) .
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3015
___
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19049
___
Roundup Robot added the comment:
New changeset 900bf633b7f4 by Antoine Pitrou in branch 'default':
Add a comment making it explicit that itertools.tee() is already 64bit-safe
(issue #19049)
http://hg.python.org/cpython/rev/900bf633b7f4
--
nosy: +python-dev
Antoine Pitrou added the comment:
I don't get a crash under Linux. Perhaps this is a Windows-specific thing.
--
components: +Interpreter Core, Windows -Library (Lib)
nosy: +brian.curtin, pitrou, tim.golden, tim.peters
___
Python tracker
Serhiy Storchaka added the comment:
Oh, thanks Arfrever.
--
Added file: http://bugs.python.org/file31827/tkinter_deprecate_wantobjects.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3015
Kristján Valur Jónsson added the comment:
Ok, I can make it resilient. I was just pointing out that resilience in the
face of RFC violations can be a bad thing. E.g. Internet explorer and how they
allowed internet servers of the world to be lax in how they served their data.
No matter, I can
New submission from Antoine Pitrou:
The test added in issue18818 fails on the new OS X buildbot:
==
FAIL: test_ioencoding_nonascii (test.test_sys.SysModuleTest)
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19049
___
___
Antoine Pitrou added the comment:
Ok, I can make it resilient. I was just pointing out that resilience
in the face of RFC violations can be a bad thing. E.g. Internet
explorer and how they allowed internet servers of the world to be lax
in how they served their data.
I'm afraid the ship
Kristján Valur Jónsson added the comment:
Very well, let's support both then :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19009
___
___
STINNER Victor added the comment:
The test fails with ASCII locale encoding (ex: LANG= on Linux).
The test should not try to display a non-ASCII character, but should check the
encoding (sys.stdout.encoding) instead. The test should ensure that
sys.stdout.encoding is the same with the
New submission from R. David Murray:
The new OS X buildbot is failing in test_posix:
==
FAIL: test_getgroups (test.test_posix.PosixTester)
--
Traceback (most
Changes by Ned Deily n...@acm.org:
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19059
___
___
Python-bugs-list mailing list
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - ronaldoussoren
components: +Macintosh
nosy: +ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19059
___
R. David Murray added the comment:
I've spun up a 10.6.8 OS X buildbot.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19019
___
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19019
___
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19048
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: serhiy.storchaka - rhettinger
versions: -Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15475
Raymond Hettinger added the comment:
getsizeof() is interesting only if it gives sensible results
when used correctly, especially if you want to sum these values
and get a global memory usage.
If accounting for global memory usage is a goal, it needs to have a much more
comprehensively
Ned Deily added the comment:
From irc, I believe RDM has changed the buildbot to run under a group that the
user is a member of (staff) and so I think this issue can be closed. David?
--
resolution: - out of date
stage: - committed/rejected
status: open - pending
R. David Murray added the comment:
Yes, the problem turned out to be that the buildslave process was running under
group 'daemon' (1), but the buildbot userid that it was running under was not
part of that group. So I changed the run group to 'staff', which buildbot is a
member of, and the
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: out of date - invalid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19059
___
___
R. David Murray added the comment:
I set LC_CTYPE to en_US.utf-8 on the buildbot, which I think is the better
setting for that buildbot, so the test doesn't fail there anymore. However,
the test should still be fixed (and maybe we should have a buildbot running
with no language set at all).
Changes by Marco Buttu marco.bu...@gmail.com:
Removed file: http://bugs.python.org/file31820/py3howto.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19054
___
Changes by Marco Buttu marco.bu...@gmail.com:
Removed file: http://bugs.python.org/file31821/py2howto.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19054
___
Changes by Marco Buttu marco.bu...@gmail.com:
Added file: http://bugs.python.org/file31829/py2howto.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19054
___
Marco Buttu added the comment:
Maybe is better to underline the difference between classes and non-classes
objects, instead of between objects and classes, because a class is an object,
so it could be confusing).
Raymond, what do you think about rewriting this sentence:
`The details of
Changes by Marco Buttu marco.bu...@gmail.com:
Removed file: http://bugs.python.org/file31829/py2howto.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19054
___
Changes by Marco Buttu marco.bu...@gmail.com:
Added file: http://bugs.python.org/file31830/py2howto.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19054
___
Changes by Marco Buttu marco.bu...@gmail.com:
Removed file: http://bugs.python.org/file31828/py3howto.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19054
___
Marco Buttu added the comment:
I saw right now your decision about keeping object in the Python 3 doc:
http://bugs.python.org/issue17351#msg183870
So, now the py3 patch takes in account just the indentation of the
`RevealAccess` example and the class or not suggestion.
--
Added file:
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1615
___
80 matches
Mail list logo