Martin v. Löwis [EMAIL PROTECTED] added the comment:
The control characters?
Indeed, also the private-use characters. test_unicode explicitly
comments that the test is about unassigned characters, although
I don't understand the purpose of that test (it then also tests
a surrogate character,
Changes by Martin v. Löwis [EMAIL PROTECTED]:
--
resolution: - invalid
status: open - closed
versions: +3rd party
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3832
___
Heikki Toivonen [EMAIL PROTECTED] added the comment:
Ok, thank you for clarifications. Now I understand why the hostname
checking isn't the solution that fits every problem. I am still not
completely clear how you'd do the checking otherwise, for example to
verify the service you are talking to
Martin v. Löwis [EMAIL PROTECTED] added the comment:
I have now committed the new patch as r66383 and r66384
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3642
Martin v. Löwis [EMAIL PROTECTED] added the comment:
The patch is fine, please apply. My only question is why the 3.0 patch
integrates the find_recursionlimit change, whereas the 2.6 patch does not.
--
assignee: mhammond - amaury.forgeotdarc
nosy: +loewis
resolution: - accepted
Lars Gustäbel [EMAIL PROTECTED] added the comment:
This problem existed only in the first 2.5 release.
--
resolution: - works for me
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3830
Anthon van der Neut [EMAIL PROTECTED] added the comment:
FWIW:
I have performance problems on Windows XP (SP2) with Python 2.5.1 that
could be caused by this behaviour.
My code regularily calculates the sha1 sum of 10.000 files and because
in another reuse of the code had to deal with files too
Martin v. Löwis [EMAIL PROTECTED] added the comment:
According to POSIX, if no determinate value for SEM_VALUE_MAX can be
given, the actual value should be queried with
sysconf(_SC_SEM_VALUE_MAX), and SEM_VALUE_MAX should not be defined;
this is in particular the case when the value depends on
Gerhard Häring [EMAIL PROTECTED] added the comment:
I like Skip's version better, because it's closer to the dbm
specification instead of trying to mimic bsddb (first, last, etc.).
I'd like to keep such things out.
I've made a few changes to the sandbox project which I will check in
later
Gerhard Häring [EMAIL PROTECTED] added the comment:
One question about Josiah's _check_value(). SQLite is less crippled than
other simplistic databases and also supports integers, reals and blobs
in addition to strings.
Shouldn't we make this accessible to users? Or is compatibility with
other
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
- cpickle.patch and find_recursion_limit.patch are for 2.6
- cpickle.patch-3.0.patch groups the two previous patches, adapted to 3.0.
___
Python tracker [EMAIL PROTECTED]
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Ah, ok. It's all fine, then.
--
keywords: -needs review
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3640
___
New submission from Christopher Arndt [EMAIL PROTECTED]:
The readline method in the InputWrapper class in wsgiref.validate does
not accept any arguments and therefore is not compatible with the
file-like interface, where the readline method accepts an optional
size argument.
This breaks code
Nick Coghlan [EMAIL PROTECTED] added the comment:
Applied to trunk for 2.6 in r66386.
--
priority: release blocker - deferred blocker
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3781
___
Skip Montanaro [EMAIL PROTECTED] added the comment:
Gerhard What's all this ORDER BY in both your implementations about?
Gerhard The dbm spec says nothing about keys being ordered AFAIC. Can
Gerhard we get rid of these?
I'd like to guarantee that zip(db.keys(), db.values() ==
Jesse Noller [EMAIL PROTECTED] added the comment:
Steve, I'm a little nervous about exposing the underlying Queue pipes in
an official API simply due to the fact that it is an advanced use case,
and we do want to keep the API simple, and relatively close to the core
Queue implementation.
Do
New submission from Helmut Jarausch [EMAIL PROTECTED]:
With version 3.0 (SVN 66386)
import pydoc
pydoc.gui()
gives
Exception in thread Thread-1:
Traceback (most recent call last):
File /usr/local/lib/python3.0/threading.py, line 507, in
_bootstrap_inner
self.run()
File
Antoine Pitrou [EMAIL PROTECTED] added the comment:
My code regularily calculates the sha1 sum of 10.000 files and because
in another reuse of the code had to deal with files too big to fit in
memory I set a limit of 256Mb.
Why don't you use a sensible buffer size, e.g. 1MB? Reading data in
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Andrew, as for memory reallocation issues, you may take a look at #3526
where someone has similar problems on SunOS.
If nobody objects, I will close the present bug as invalid.
___
Python tracker [EMAIL
Antoine Pitrou [EMAIL PROTECTED] added the comment:
By the way, this isn't caused by the present issue, but you'll notice
that in the latest trunk, some tests in find_recursion_limit.py fail
with an AttributeError instead of RuntimeError. This is likely caused by
a PyDict_GetItem() call
Gerhard Häring [EMAIL PROTECTED] added the comment:
I'd like to guarantee that zip(db.keys(), db.values() == db.items().
Ok. If that isn't guaranteed elsewhere just drop it here?
FWIW that will also work without the ORDER BY, because you're getting
the rows back in the same ORDER. Something
Skip Montanaro [EMAIL PROTECTED] added the comment:
I'd like to guarantee that zip(db.keys(), db.values() == db.items().
Antoine It doesn't sound very useful, and it may hurt performance on
Antoine big tables.
Actually, I think Python guarantees (for dicts at least - other mappings
Skip Montanaro [EMAIL PROTECTED] added the comment:
Gerhard FWIW that will also work without the ORDER BY, because you're
Gerhard getting the rows back in the same ORDER. Something cheaper
Gerhard would also be ORDER BY ROWID. I still propose to just do
Gerhard without the ORDER BY.
Gerhard Häring [EMAIL PROTECTED] added the comment:
Skip Montanaro wrote:
Skip Montanaro [EMAIL PROTECTED] added the comment:
Gerhard FWIW that will also work without the ORDER BY, because you're
Gerhard getting the rows back in the same ORDER. Something cheaper
Gerhard would also
Nick Coghlan [EMAIL PROTECTED] added the comment:
Blocked merge in the py3k branch since it requires some fiddling to
handle the change from test.test_support to test.support. I'll post a
new patch here for the py3k forward port when I can (I may not make it
before 3.0b4 though, so unassigning
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Le jeudi 11 septembre 2008 à 16:01 +0200, Anthon van der Neut a écrit :
The thing however was resolved by reading multiple smaller chunks indeed
1Mb if the filesize exceeds 1Mb (in the latter case the original read()
is done.
It's too
Gerhard Häring [EMAIL PROTECTED] added the comment:
I've fixed that in the externally maintained pysqlite. I suppose it's
too late to bring this into 2.6 or 3.0, right?
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3103
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Le jeudi 11 septembre 2008 à 13:48 +, Skip Montanaro a écrit :
Actually, I think Python guarantees (for dicts at least - other mappings
should probably follow suit) that if you call keys() then call values()
without making any changes to
Antoine Pitrou [EMAIL PROTECTED] added the comment:
If they aren't part of a public API I think it's ok to fix them in
2.6/3.0. It is a bug fix, not a feature change.
--
nosy: +pitrou
___
Python tracker [EMAIL PROTECTED]
Antoine Pitrou [EMAIL PROTECTED] added the comment:
I might add that calling keys() then values() is suboptimal, because it
will issue two SQL queries while calling items() will issue just one.
___
Python tracker [EMAIL PROTECTED]
Changes by Giampaolo Rodola' [EMAIL PROTECTED]:
--
nosy: +giampaolo.rodola
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3766
___
___
Python-bugs-list
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Thorben, is the problem still there if you use fork() rather than
launching a separate thread for the server?
The implementation of the recv() method is straightforward and I don't
see anything that could cause a huge latency there, it's just
Bill Janssen [EMAIL PROTECTED] added the comment:
I think that, where it's appropriate, you can do that. Just don't put it in
the SSL module.
Bill
On Wed, Sep 10, 2008 at 11:24 PM, Heikki Toivonen [EMAIL PROTECTED]wrote:
Heikki Toivonen [EMAIL PROTECTED] added the comment:
Ok, thank you
New submission from Haoyu Bai [EMAIL PROTECTED]:
In the py3k SVN head(r66389) of lib2to3, the main.py used Python 2.x's
print syntax, and the refactor.py used Python 3.0's exception syntax. So
the 2to3 finally broken on both Python 2.5 and 3.0.
Well, it able to run with Python 2.6, but also
Thorben [EMAIL PROTECTED] added the comment:
The problem exists even if the server part is replaced by a server
written in C. I only wrote up the dummy server in python to be able to
provide a testcase.
The C server works with reasonable speed when connected to a client
written in perl by the
New submission from Janet Swisher [EMAIL PROTECTED]:
In Sphinx 0.4.2, the handling of the html_logo setting was changed to
use a relative path, like latex_logo, rather than the static path.
However, the comment for html_logo in the quickstart template was not
changed. This caused me confusion
Haoyu Bai [EMAIL PROTECTED] added the comment:
A patch on main.py to fix this.
--
keywords: +patch
Added file: http://bugs.python.org/file11464/fix_syntax.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3836
Antoine Pitrou [EMAIL PROTECTED] added the comment:
You can use setsockopt() to set the TCP_NODELAY flag and see if that
improves things; sending thousands of 4-bytes packets isn't exactly the
expected utilization of TCP.
As I said, socket.recv() is just a thin wrapper above the same-named C
Thorben [EMAIL PROTECTED] added the comment:
2008/9/11 Antoine Pitrou [EMAIL PROTECTED]:
Antoine Pitrou [EMAIL PROTECTED] added the comment:
You can use setsockopt() to set the TCP_NODELAY flag and see if that
improves things; sending thousands of 4-bytes packets isn't exactly the
expected
New submission from Hirokazu Yamamoto [EMAIL PROTECTED]:
This differs from issue3824. test_tarfile claims following error at the
end of test.
Traceback (most recent call last):
File test_tarfile.py, line 1210, in module
test_main()
File test_tarfile.py, line 1207, in test_main
New submission from Clovis Fabricio [EMAIL PROTECTED]:
The finish_content method in wsgiref.handlers.BaseHandler class resets
Content-Length to 0 if there was no content returned by the
application, even if the application has set it already.
That makes impossible to implement things like HEAD
Changes by Josiah Carlson [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file11412/sq_dict.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3783
___
Josiah Carlson [EMAIL PROTECTED] added the comment:
I like Skip's version better, because it's closer to the dbm
specification instead of trying to mimic bsddb (first, last, etc.).
I'd like to keep such things out.
dbm.sqlite is meant as a potential replacement of dbm.bsddb. Since
people
Antoine Pitrou [EMAIL PROTECTED] added the comment:
now thats interesting:
adding the line sock.setsockopt(SOL_TCP, TCP_NODELAY, 1) decreased
the delay by half. It still is extremely high but it's a start.
Did you do it on both the client and server sockets?
Would be interesting to
New submission from Stephen McInerney [EMAIL PROTECTED]:
IDLE exhibits quirky behavior when displaying strings longer than 4093
characters
Python versions: believed to be all. I found this on Python 2.5 / IDLE
1.2.2
OS: Windows Vista; let me know if it repros on others.
Testcase attached has
Thorben [EMAIL PROTECTED] added the comment:
2008/9/11 Antoine Pitrou [EMAIL PROTECTED]:
Antoine Pitrou [EMAIL PROTECTED] added the comment:
now thats interesting:
adding the line sock.setsockopt(SOL_TCP, TCP_NODELAY, 1) decreased
the delay by half. It still is extremely high but it's a
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:
I cannot create patch now, but test_site error comes from same reason.
test_support.TESTFN is /tmp/@test on cygwin
After I applied following adhok patch, test passed.
Index: Lib/test/test_site.py
New submission from Bruce Frederiksen [EMAIL PROTECTED]:
There is no way to get generators to clean up (run their 'finally'
clause) when used as an inner iterable to chain:
def gen(n):
... try:
... # do stuff yielding values
... finally:
... # clean up
c =
Skip Montanaro [EMAIL PROTECTED] added the comment:
As long as SQLite guarantees that the ordering is identical, then
sure, dump the ORDER BY clause.
Gerhard It doesn't guarantee it, but the implementation behaves like
Gerhard this.
If the behavior isn't guaranteed, I think you
Skip Montanaro [EMAIL PROTECTED] added the comment:
Antoine I might add that calling keys() then values() is suboptimal,
Antoine because it will issue two SQL queries while calling items()
Antoine will issue just one.
Well, sure, but heaven only knows what an application programmer will
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:
Same happend in test_import.py too.
test_support.TESTFN is /tmp/@test on cygwin
This was false information. There was a directry named @test, so
open(TESTFN, w+) in test_support.py failed, /tmp/@test was used instead.
Several tests seem to
Benjamin Peterson [EMAIL PROTECTED] added the comment:
main.py is really not a public interface, but it should be fixed.
--
assignee: collinwinter - benjamin.peterson
nosy: +benjamin.peterson
priority: - high
___
Python tracker [EMAIL PROTECTED]
Benjamin Peterson [EMAIL PROTECTED] added the comment:
On Thu, Sep 11, 2008 at 9:03 AM, Nick Coghlan [EMAIL PROTECTED] wrote:
Nick Coghlan [EMAIL PROTECTED] added the comment:
Blocked merge in the py3k branch since it requires some fiddling to
handle the change from test.test_support to
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Committed as r66390 and r66391.
--
resolution: accepted - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3640
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Fixed in r66392.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3836
___
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
assignee: - rhettinger
nosy: +rhettinger
versions: +Python 2.7, Python 3.1 -Python 3.0
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3842
___
New submission from maix [EMAIL PROTECTED]:
On http://docs.python.org/dev/library/string.html, at the format string
documentation, it says:
The '#' option is only valid for integers, and only for binary, octal,
or *decimal* output. If present, it specifies that the output will be
prefixed by
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
assignee: - pje
nosy: +pje
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3834
___
___
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I can reproduce this on 2.6.
--
nosy: +benjamin.peterson
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3657
___
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Thanks! Fixed in r66394.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3843
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Note that this does cause incompatibility between development copies and
installed copies:
$ python -S -c import itertools; print itertools
module 'itertools' from ...
$ ./python -S -c import itertools; print itertools
Traceback (most
Phillip J. Eby [EMAIL PROTECTED] added the comment:
Per PEP 333:
The optional size argument to readline() is not supported, as it
may be complex for server authors to implement, and is not often used in
practice.
The whole point of this code is to catch broken programs that pass an
argument to
Georg Brandl [EMAIL PROTECTED] added the comment:
Thanks, fixed in r66397.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3837
___
Andrew Dalke [EMAIL PROTECTED] added the comment:
I'm still undecided on if this is a bug or not. The problem occurs even
when I'm not reading data from a file of an unknown size. My example
causes a MemoryError on my machine even though the file I'm reading
contains 0 bytes.
The problem
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Well, sure, but heaven only knows what an application programmer will do...
If the docs clearly explain that there is no guarantee, we don't need
heaven.
I would find it strange to potentially ruin performance just for a
guarantee which has
Josiah Carlson [EMAIL PROTECTED] added the comment:
I would find it strange to potentially ruin performance just for a
guarantee which has no useful purpose.
Benchmarks to prove or disprove performance changes? Subclasses to
offer different order by semantics (see the version I uploaded for
Steve Smith [EMAIL PROTECTED] added the comment:
Hi Jesse,
The use-case I had is mind is enabling asyncronous (i.e. select() style)
notification of data being available on the queue, which is more elegant
(and efficient) than polling with get(). Example code showing how this
works with GTK is
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Benchmarks to prove or disprove performance changes?
Agreed, benchmarks should be run.
Subclasses to
offer different order by semantics (see the version I uploaded for an
example)?
If you like, but ordering semantics is something which
Anthony Lenton [EMAIL PROTECTED] added the comment:
It's probably just a typo from copying from an editor, but there is a
bug in the workaround. It should be:
maxRead = 100
class MySSL (imaplib.IMAP4_SSL):
def read (self, n):
#print ..Attempting to read %d bytes % n
if n =
Skip Montanaro [EMAIL PROTECTED] added the comment:
Well, sure, but heaven only knows what an application programmer will
do...
Antoine If the docs clearly explain that there is no guarantee, we
Antoine don't need heaven. I would find it strange to potentially ruin
Antoine
New submission from Daniel Diniz [EMAIL PROTECTED]:
The attached script reports C functions not flexed by unittests. It
needs a 'coverage' build and a run of the tests. Coverage data is then
passed to gcov and those functions with zero calls written to a text
file, grouped by source file.
It's
Josiah Carlson [EMAIL PROTECTED] added the comment:
If you like, but ordering semantics is something which is just as
easily done in Python, so I don't understand the point of integrating
it in the dbm layer...
Actually, the db layer is *exactly* where it should be implemented,
especially
Changes by Josiah Carlson [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file11467/sq_dict.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3783
___
Daniel Diniz [EMAIL PROTECTED] added the comment:
Here's example output of a run against 3.0. The number after a function
name is its length in lines (as gcov counts them :).
False positives include:
./Objects/weakrefobject.c gc_clear
./Modules/readline.c on_completion_display_matches_hook
Gabriel Genellina [EMAIL PROTECTED] added the comment:
I've tested it on Windows XP. MSG_WAITALL is not supported, but I
replaced it using a while loop. I didn't notice any extraneous delay.
500 packets @ 2 tokens each (500 very short lists)
0.140999794006
16008 function calls in
Changes by Josiah Carlson [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file11470/sq_dict.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3783
___
Josiah Carlson [EMAIL PROTECTED] added the comment:
Here's a version with views from Python 3.0 for keys, values, and items
:) . I know that no one hear likes my particular implementation (though
it offers more or less the full interface), but the Keys, Values, and
Items classes in the
77 matches
Mail list logo