Serhiy Storchaka added the comment:
It looks as bz2 in Python 3.3 has bad buffering. Reading by larger chunks shows
the same speed in 2.7 and 3.3.
--
components: +Library (Lib) -None
nosy: +storchaka
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Well, I was able to restore performance (using same code as in zipfile). The
patch will be later.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16034
Victor Hooi added the comment:
Hi,
I didn't have any buffering size set before, so I believe it defaults to 0 (no
buffering), right? Wouldn't this be the behaviour on both 2.x and 3.x?
I'm using a 1.5 Mb bzip2 file - I just tried setting buffering to 1000 and
100, and it didn't seem to
Victor Hooi added the comment:
Hi,
Aha, whoops, sorry Serhiy, didn't see your second message - I think you and I
posted our last messages at nearly the same time...
Cool, looking forward to your patch =).
Also, is there any chance you could provide a more detailed explanation of
what's
Omanand Jha Vatsa added the comment:
I have tried re-installing to 8.5.11.1. Still same issue. I am on Mac OSX
10.7.4 version.
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16032
Ned Deily added the comment:
Odd, it works for me. Check to make sure it really got installed:
$ cd /Library/Frameworks/Tk.framework/
$ grep PATCH tkConfig.sh
TK_PATCH_LEVEL='.11'
You could manually delete the frameworks and try installing again:
$ cd /Library/Frameworks
$ sudo rm -r
Mark Dickinson added the comment:
Updated patch, which also fixes issue 16030. It needs more tests.
--
Added file: http://bugs.python.org/file27289/xrange_reduce_repr.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16029
Serhiy Storchaka added the comment:
Here is a test.
--
Added file: http://bugs.python.org/file27290/csv_eof_test.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16013
___
Zellmeyer added the comment:
I used OSX 10.8.2 build 12C54 on both Macbookair and iMac
I have ActiveState TCL installed 8.5
Ctrl-shift-5 does not correspond to a special character on my keyboard layout.
But i discovered that this combination open a window called tab width in the
IDLE shell
Serhiy Storchaka added the comment:
Cool, looking forward to your patch =).
It will take some time to make a completed patch. I don't have much time
*right* now. Wait for a few hours.
Also, is there any chance you could provide a more detailed explanation of
what's going on? This is just
Changes by Michele Orrù maker...@gmail.com:
Added file: http://bugs.python.org/file27293/bench.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8425
___
Michele Orrù added the comment:
Updated.
tumbolandia:cpython maker$ hg import --no-commit -f issue8425.2.patch make
-j3 /dev/null 2/dev/null
sto applicando issue8425.2.patch
tumbolandia:cpython maker$ ./python.exe bench.py starting...
setting up tests...
testing...
big_timer_no_intersection
Senthil Kumaran added the comment:
The patch looks good and is doing the right thing, that is, when the, strict
mode is passed, it fails and without strict mode, it is printing the parsed
list.
--
nosy: +orsenthil
___
Python tracker
Ezio Melotti added the comment:
OK. If you change the date also change s/py3k/default/, py3k was used on the
SVN days. Here is what my header looks like:
$ python3
Python 3.2.3 (default, May 3 2012, 15:54:42)
[GCC 4.6.3] on linux2
Type help, copyright, credits or license for more
New submission from Arfrever Frehtes Taifersar Arahesis:
The fix for issue #13992 introduced segmentation fault in test suite of apsw
(http://code.google.com/p/apsw/) (with Python 2.7, 3.2 and 3.3).
$ python2.7 setup.py build
running build
running build_ext
SQLite: Using system sqlite
Roundup Robot added the comment:
New changeset e9c005676d6e by Senthil Kumaran in branch '3.2':
Issue #16013: Fix CSV Reader parsing issue with ending quote characters. Patch
by Serhiy Storchaka.
http://hg.python.org/cpython/rev/e9c005676d6e
New changeset 25f0756deeae by Senthil Kumaran in
Roundup Robot added the comment:
New changeset 5f0465d0e91e by Senthil Kumaran in branch '2.7':
2.7 : Issue #16013: Fix CSV Reader parsing issue with ending quote characters.
Patch by Serhiy Storchaka.
http://hg.python.org/cpython/rev/5f0465d0e91e
--
New submission from Chris Jerdonek:
This issue is to simplify the documentation of the built-in function int()'s
signature:
int([number | string[, base]])
and to make any needed changes to the text of the docs as a consequence.
Discussion around this issue began in the comments to issue
Chris Jerdonek added the comment:
To make it easier to make progress on this docstring issue, I created issue
16036 to focus on int()'s reST documentation. (I have a comment on that
aspect.) This will allow the current issue to focus on the docstring aspect.
--
nosy: +chris.jerdonek
New submission from Christian Heimes:
The httplib module / package can read arbitrary amounts of data from its socket
when it's parsing the HTTP header. This may lead to issues when a user connects
to a broken HTTP server or something that isn't a HTTP at all. The issue can be
broken up into
New submission from Christian Heimes:
This bug is similar to #16037.
The ftplib module doesn't limit the amount of read data in its call to
readline(). An erroneous or malicious FTP server can trick the ftplib module to
consume large amounts of memory.
Suggestion:
The ftplib module should be
New submission from Christian Heimes:
This bug is similar to #16037 and a modified copy of #16038.
The imaplib module doesn't limit the amount of read data in its call to
readline(). An erroneous or malicious IMAP server can trick the imaplib module
to consume large amounts of memory.
New submission from Christian Heimes:
This bug is similar to #16037 and a modified copy of #16038.
The nntplib module doesn't limit the amount of read data in its call to
readline(). An erroneous or malicious news server can trick the nntplib module
to consume large amounts of memory.
New submission from Christian Heimes:
This bug is similar to #16037 and a modified copy of #16038.
The poplib module doesn't limit the amount of read data in its call to
readline(). An erroneous or malicious POP3 server can trick the poplib module
to consume large amounts of memory.
New submission from Christian Heimes:
This bug is similar to #16037 and a modified copy of #16038.
The smtplib module doesn't limit the amount of read data in its call to
readline(). An erroneous or malicious SMTP server can trick the smtplib module
to consume large amounts of memory.
New submission from Christian Heimes:
The xmlrpc client library is the only stdlib module that has a gzip
decompression handler for compressed HTTP streams. The gzip_decode() function
decompresses HTTP bodies that are compressed and sent with Accept-Encoding:
x-gzip.
A malicious server can
Changes by Ralf Schmitt python-b...@systemexit.de:
--
nosy: +schmir
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16043
___
___
Python-bugs-list
Christian Heimes added the comment:
Also see #15955
According to Nadeem it's not (easily) possible to detect how large the output
is going to be.
--
dependencies: +gzip, bz2, lzma: add method to get decompressed size
___
Python tracker
Christian Heimes added the comment:
I've checked the implementation of the gzip command. It uses some tricks to get
the result size of a compressed file. The bzip2 command doesn't have the
ability. lzmainfo can print the actual size of the file but it says Unknown
for my test file.
Also see
Changes by Georg Brandl ge...@python.org:
--
assignee: - pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16035
___
___
Python-bugs-list
Georg Brandl added the comment:
Can you provide a stacktrace?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16035
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 8a22a2804a66 by Christian Heimes in branch '2.7':
Issue #16037: Limit httplib's _read_status() function to work around broken
http://hg.python.org/cpython/rev/8a22a2804a66
--
nosy: +python-dev
___
Python
Christian Heimes added the comment:
The readline() limitation in _read_status() was added at some point in the 3.2
line. Python 3.1 has an unlimited readline().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16037
Roundup Robot added the comment:
New changeset d2df5bc89fc9 by Chris Jerdonek in branch '3.2':
Issue #16015: Make welcome message more realistic in tutorial example.
http://hg.python.org/cpython/rev/d2df5bc89fc9
New changeset fcb5bc824e3e by Chris Jerdonek in branch 'default':
Issue #16015:
Chris Jerdonek added the comment:
Fixed, and thanks for the report!
(Ezio, I didn't add code-block:: sh because it resulted in some undesired
highlighting in the interpreter portion when I tried it.)
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
Antoine Pitrou added the comment:
I can't build apsw here:
gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -DEXPERIMENTAL=1 -DNDEBUG=1 -DAPSW_FORK_CHECKER=1
-DSQLITE_OMIT_LOAD_EXTENSION=1 -Isrc -I/home/antoine/opt/include/python3.3m -c
src/apsw.c -o
New submission from kirpit:
xml.etree.ElementTree.Element's append method doesn't support iterator/sequence
parameters as it's supposed to, for the version 1.3.0.
Python 2.7.3 (default, Sep 14 2012, 09:52:31)
[GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin
Type
Ronald Oussoren added the comment:
(unassigning as this is not a mac-specific issue)
BTW. Is this really a bug, the documentation says that append appends a single
element
http://docs.python.org/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.append:
quote
append(subelement)
Antoine Pitrou added the comment:
You don't need to know the final size. You just need to be able to pass an
output size limit. This would be an easy feature to add to functions like
zlib.decompress(), since they already handle sizing of the output buffer.
--
nosy: +pitrou
title:
Antoine Pitrou added the comment:
100 headers sounds more than enough for everybody.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16037
___
Chris Jerdonek added the comment:
[Continuing the issue 14783 discussion]
That said, I don't have a strong opinion about this, so if people think that
x should be used, it's fine with me.
I also feel that *x* should be used, since that is what the code enforces.
I'm attaching a revised
kirpit added the comment:
well, i've just followed the source code regardless to documentation so you may
be right about appending a single element. (kind of newbie around here.)
but then, append method is misbehaving about asserting the parameter, isn't it?
--
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: accepted - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10980
Ronald Oussoren added the comment:
Use the extend method to add multiple elements. Both the source and
documentation indicate that 'append' is used for appending a single item and
'extend' for appending multiple items (just like with list).
IMHO this is not a bug.
As an aside: when you
Antoine Pitrou added the comment:
Reading the original issue:
it appears that IE is sending 2 extra bytes ('\r\n') after
the request data. and if you don't read those two extra
bytes off, the window's socket handling gets messed up.
the result is that a partial response is returned and the
Antoine Pitrou added the comment:
The example URL doesn't seem to work anymore. Do you have another example to
test with?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14044
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +flox, loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14414
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Note there's already a couple of HTTPS servers in Lib/test/ssl_servers.py.
I'm not sure there's anything special to do for XMLRPC except to take the core
instantiation code and put it in xmlrpclib.
--
nosy: +flox, loewis, pitrou
stage: - needs patch
Mark Dickinson added the comment:
Patch with tests.
--
components: +Interpreter Core -Library (Lib)
stage: needs patch - commit review
Added file: http://bugs.python.org/file27295/xrange_reduce_repr_2.patch
___
Python tracker rep...@bugs.python.org
Mark Dickinson added the comment:
The patch for issue #16029 fixes this issue, too.
--
components: +Interpreter Core -Library (Lib)
dependencies: +pickle.dumps(xrange(sys.maxsize)) produces xrange(0)
___
Python tracker rep...@bugs.python.org
Chris Jerdonek added the comment:
- :meth:`close`\ d without adding any files to the archive, the appropriate
+ :meth:`close close`\ d without adding any files to the archive, the
appropriate
This formatting looks odd to me when rendered (both cases). I would perhaps
suggest something
Antoine Pitrou added the comment:
We had support for chunked transfer encoding for POST method recently,
which is exposed via urllib2 wrapper function.
I couldn't find what you're talking about.
If I look at AbstractHTTPHandler.do_request_, it actually mandates a
Content-Length header for
Mark Dickinson added the comment:
Whoops; there's no need to iterate over pickle protocols in test_repr. New
patch.
--
Added file: http://bugs.python.org/file27296/xrange_reduce_repr_3.patch
___
Python tracker rep...@bugs.python.org
New submission from Chris Jerdonek:
The built-in function int() does not seem to have any basic unit tests (e.g. in
test_builtin). It would be good to add some.
Some cases (including edge cases) for possible inclusion:
int()
int(base='foo') # no exception; returns 0
int(x=5)
int(x=5,
Antoine Pitrou added the comment:
HTTPConnection now supports timeout and source_address parameters, so this is
really out of date. Thanks for reporting, though!
(see
http://docs.python.org/dev/library/http.client.html#http.client.HTTPConnection)
--
nosy: +pitrou
resolution: - out
Changes by Brett Cannon br...@python.org:
--
versions: +Python 3.4 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16027
___
Antoine Pitrou added the comment:
Well, have you looked at test_int?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16045
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16027
___
___
Python-bugs-list mailing
Chris Jerdonek added the comment:
Thanks for the pointer. That should do it. :) Searching for test_int(
completely missed test_int.py.
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker
Chris Jerdonek added the comment:
[Reopening] Actually, there may still be value in this. Not all of the edge
cases I mentioned are covered (e.g. calling using keyword arguments).
--
resolution: invalid -
stage: committed/rejected - test needed
status: closed - open
title: create
Chris Jerdonek added the comment:
We should also add a code-comment pointer in test_builtin to test_int (where
test_int() would be located).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16045
New submission from Marco Buttu:
$ echo print(__file__) foo.py
$ python3.3 -O -m foo
/home/marco/temp/foo.py
$ ls
foo.py __pycache__
$ rm foo.py
$ mv __pycache__/foo.cpython-33.pyo foo.pyo
$ rm __pycache__ -r
$ ls
foo.pyo
# The following works in Python3.2, but not in Python 3.3.0rc3
$
Changes by Marco Buttu marco.bu...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16046
___
___
Python-bugs-list
Marc-Andre Lemburg added the comment:
Here's the fix we're applying in pyrun to make -m imports work at least for
top-level modules:
--- /home/lemburg/orig/Python-2.7.3/Lib/pkgutil.py 2012-04-10
01:07:30.0 +0200
+++ pkgutil.py 2012-09-24 22:53:30.982526065 +0200
@@ -273,10
Changes by Antoine Pitrou pit...@free.fr:
--
keywords: +3.3regression
nosy: +brett.cannon, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16046
___
Stefan Krah added the comment:
I don't get a segfault, but a fatal error. Here's the back trace
(unfortunately I've no time to debug this further today; sqlite
is the latest version compiled from source):
#0 0x771e6a75 in *__GI_raise (sig=value optimized out) at
Ezio Melotti added the comment:
:meth:`closed close` works too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16025
___
___
Python-bugs-list
Benjamin Peterson added the comment:
My guess is an extension problem (failing to aqcuire locks?)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16035
___
Barry A. Warsaw added the comment:
Looks good to me too! Thanks; I'll apply the patch.
--
assignee: docs@python - barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15935
___
Nick Coghlan added the comment:
Can you confirm this problem still exists on 3.3? The pkgutil emulation isn't
used by runpy any more - with the migration to importlib, the interface that
runpy invokes fails outright if no loader is found rather than falling back to
the emulation (we only
Antoine Pitrou added the comment:
The cause for Stefan's traceback looks quite clear:
Connection_createaggregatefunction() release the GIL (through the
PYSQLITE_CON_CALL macro) before calling into sqlite3_create_function_v2, which
itself calls the destructor for the old aggregate function,
Roundup Robot added the comment:
New changeset b624059a8dac by Barry Warsaw in branch '2.7':
- Issue #15935: Clarification of argparse docs, re: add_argument() type and
http://hg.python.org/cpython/rev/b624059a8dac
New changeset b738e42e664a by Barry Warsaw in branch '3.2':
- Issue #15935:
Changes by Barry A. Warsaw ba...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15935
___
R. David Murray added the comment:
FTR, the 3.3 commit is cce2bfe03dc5.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15935
___
___
Georg Brandl added the comment:
Not a blocker then.
--
priority: release blocker - normal
resolution: - invalid
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16035
Benjamin Peterson added the comment:
Georg, do you want to take this for 3.3, final?
--
assignee: - georg.brandl
nosy: +georg.brandl
priority: normal - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16046
Georg Brandl added the comment:
Looks serious enough, yes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16046
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset 4de5e4ec3cff by Benjamin Peterson in branch 'default':
don't depend on __debug__ because it's baked in at freeze time (issue #16046)
http://hg.python.org/cpython/rev/4de5e4ec3cff
--
nosy: +python-dev
___
Benjamin Peterson added the comment:
This tested in the sense if you run test_import with -O, it fails. We ought
to have a buildbot running with -O.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
Transplanted to ff50579241cd.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16046
___
Marc-Andre Lemburg added the comment:
Nick Coghlan wrote:
Nick Coghlan added the comment:
Can you confirm this problem still exists on 3.3? The pkgutil emulation isn't
used by runpy any more - with the migration to importlib, the interface that
runpy invokes fails outright if no loader
Ezio Melotti added the comment:
Before adding tests (and possibly documentation) for edge cases like
int(base='foo') # no exception; returns 0
I'd take a look at what other implementations do. If they do something
different we might still decide to keep the tests and mark them as
Christian Heimes added the comment:
RFC 821 [1] specifies rather short line lengths between 512 and 1001 chars
including the trailing CRLF. A line limit of a couple of kilobyte should
definitely work with all standard conform SMTP clients and servers.
[1]
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +barry, r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16042
___
___
New submission from Marc-Andre Lemburg:
The freeze tool used for compiling Python binaries with frozen modules no
longer works with Python 3.x.
It looks like it was never updated to the various path and symbols changes
introduced with PEP 3149 (ABI tags) in Python 3.2.
Even with lots of
Christian Heimes added the comment:
First patch
I haven't written tests yet nor implemented the size limit on the mock_socket
class.
--
keywords: +patch
Added file: http://bugs.python.org/file27297/smtp_readline.patch
___
Python tracker
R. David Murray added the comment:
I've only taken a quick glance at this so far.
Why size=-1 instead of size=None?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16042
___
Christian Heimes added the comment:
size=-1 mimics the code of the io module. The C implementation of readline()
maps all negative values to unlimited and values = 0 as limit.
sys.stdin.readline(None)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: 'NoneType'
Chris Jerdonek added the comment:
Good thought. Here is one data point:
$ pypy
Python 2.7.2 (341e1e3821fff77db3bb5cdb7a4851626298c44e, Jun 09 2012, 14:24:11)
[PyPy 1.9.0] on darwin
Type help, copyright, credits or license for more information.
int()
0
int(x='10', base=8)
8
int(x=5, base=10)
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:
--
nosy: +jkloth
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16047
___
___
Trent Nelson added the comment:
Hi Stefan, quick question: how did you invoke ./configure on the AIX box? The
reason for asking is that a7/arsenic is a little quirky, you need to run a zsh
subroutine via `_xlc 12` to set up the right CC env (see
~/buildslave/start.zsh).
Once you've done
Serhiy Storchaka added the comment:
Both io.IOBase.readline() and io.TextIOBase.readline() have parameter named
limit.
I doubt that such a change can be done in 2.7 and 3.2.
--
nosy: +storchaka
___
Python tracker rep...@bugs.python.org
Erik Johansson added the comment:
The issue14201-v2.patch patch looks good to me at least.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14201
___
Serhiy Storchaka added the comment:
Please submit patches in standard Mercurial format to them understood Rietveld.
I wanted to make a code review, but I don't see the definition of readline()
method in the file Lib/smtplib.py.
--
___
Python
Serhiy Storchaka added the comment:
Agree with Antoine. This would be a desirable feature.
--
nosy: +storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15955
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file27277/doc_zipfile-3.3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16025
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file27278/doc_zipfile-3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16025
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file27279/doc_zipfile-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16025
___
Serhiy Storchaka added the comment:
:meth:`closed close` works too.
Patches updated.
--
Added file: http://bugs.python.org/file27298/doc_zipfile-3.3.patch
Added file: http://bugs.python.org/file27299/doc_zipfile-3.2.patch
Added file:
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file27301/entities.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
1 - 100 of 131 matches
Mail list logo