Nir n...@winpdb.org added the comment:
First patch, please forgive long comment :)
I submit a small patch which speeds up readline() on my data set - a
74MB (5MB .gz) log file with 600K lines.
The speedup is 350%.
Source of slowness is that (~20KB) extrabuf is allocated/deallocated in
Martin v. Löwis mar...@v.loewis.de added the comment:
Thanks for the report; this is now fixed.
--
nosy: +loewis
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7489
Ronald Oussoren ronaldousso...@mac.com added the comment:
This issue is for deprecated Carbon module that has a well-maintained
alternative outside of the stdlib.
--
resolution: - wont fix
stage: test needed - committed/rejected
status: open - closed
New submission from Lennart Regebro rege...@gmail.com:
In Python 3.x [1] the exception formatting prints the module path, while
under 2.x it prints only the exception class name. This makes it very
tricky to make doctests that pass under both Python 2 and Python 3
without resorting to ugly
Changes by Lennart Regebro rege...@gmail.com:
Added file: http://bugs.python.org/file15538/python-trunk-exception-detail.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7490
___
Lars Gustäbel l...@gustaebel.de added the comment:
I changed the default value for the errorlevel argument, so that fatal
errors are now raised as regular exceptions by default (trunk: r76780,
py3k: r76782). Thank you very much for bringing up this issue.
--
resolution: - accepted
Antoine Pitrou pit...@free.fr added the comment:
You should check the return value from PyObject_Str().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6108
___
Mark Dickinson dicki...@gmail.com added the comment:
nirinA: thanks for the erf patch. It's fine as far as it goes; the main
technical issue is that the series development only converges at a
sensible rate for smallish x; for larger x something more is needed.
Here's a prototype patch for
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: - high
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7490
___
Mark Dickinson dicki...@gmail.com added the comment:
Here's the C version.
--
Added file: http://bugs.python.org/file15540/erf_c.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3366
___
New submission from Jean-Paul Calderone exar...@divmod.com:
Here's an example of a metaclass with a __cmp__ special:
exar...@boson:/tmp$ cat metacmp.py
class X(type):
def __cmp__(self, other):
return -1
class Y:
__metaclass__ = X
print Y Y
Jean-Paul Calderone exar...@divmod.com added the comment:
Apparently type has __lt__ and the other rich cmp specials in Python
2.6, but lacked them in Python 2.5. I suppose these are probably being
given precedence over the overridden __cmp__.
--
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7056
___
___
Benjamin Peterson benja...@python.org added the comment:
Fixed in r76794.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7491
R. David Murray rdmur...@bitdance.com added the comment:
Ezio, the original problem this ticket was opened for appears to be
solved, so I'm going to close it. If you still want to work on the
thread exception issue, please open a new ticket referencing this one.
--
nosy:
Benjamin Peterson benja...@python.org added the comment:
Fixed in r76798.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7348
R. David Murray rdmur...@bitdance.com added the comment:
NB: this issue was triggered by the issue 6267 patch.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
type: - behavior
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
NB: this issue was caused by the issue 6267 patch.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
type: security - behavior
___
Python tracker
Changes by R. David Murray rdmur...@bitdance.com:
--
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6267
___
New submission from flox la...@yahoo.fr:
Word cPickle is still used on these pages.
http://docs.python.org/dev/py3k/library/shelve.html
http://docs.python.org/dev/py3k/library/copyreg.html
--
assignee: georg.brandl
components: Documentation
messages: 96342
nosy: flox, georg.brandl
Changes by flox la...@yahoo.fr:
--
keywords: +patch
Added file: http://bugs.python.org/file15541/issue7492_cpickle.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7492
___
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5596
___
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
yes, I'll do so as soon as I'm able.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6654
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Committed in r76804. Leaving it open until I port this to 2.6 and 3.x.
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7342
New submission from flox la...@yahoo.fr:
I reviewed the documentation and tested the examples with Python 3.
I found many parts which are changed or irrelevant.
Here is the patch.
--
assignee: georg.brandl
components: Documentation
files: py3k_doc_faq_design.diff
keywords: patch
New submission from STINNER Victor victor.stin...@haypocalc.com:
clearEntries() delete all nodes of the profiler tree, but
currentProfilerContext keeps a reference to a tree node
(currentProfilerContext-previous-header attribute).
The patch fixes clearEntries() to delete all references
STINNER Victor victor.stin...@haypocalc.com added the comment:
The crash is an Heisenbug (read object which just has been destroyed,
sometimes it works, sometimes it crash), so it's not easy the write a
short example showing the crash.
The code looks like:
import cProfile
prof =
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also issue #3952.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7494
___
___
New submission from flox la...@yahoo.fr:
I reviewed the documentation and tested the examples with Python 3.
I found some parts which are changed or irrelevant.
Here is the patch.
The examples for Mandelbrot and Fibonacci work fine.
--
assignee: georg.brandl
components: Documentation
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
priority: - normal
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7493
___
Benjamin Peterson benja...@python.org added the comment:
Fixed in r76805. I think I got all the cases...
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7349
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
priority: - normal
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7495
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7495
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7493
___
___
Python-bugs-list
New submission from mohammad mohammad.madan...@gmail.com:
when i type python in my command promp this message is shown :
C:\Documents and Settings\Xpython
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: cp720
This application has
New submission from R. David Murray rdmur...@bitdance.com:
autoconf tries to open a semaphore (/autoconf) to find out if posix
semaphores are available and working. On linux, a file 'sem.autoconf'
is left behind in /dev/shm, owned by the user running autoconf. If any
other user on the system
R. David Murray rdmur...@bitdance.com added the comment:
According to the linux man page, to delete the named semaphore after all
processes are done with it one must call sem_unlink on it. So an unlink
call should be added to both autoconf tests that use sem_open.
--
Changes by R. David Murray rdmur...@bitdance.com:
--
title: configure test for posix_semaphore capability leaves semaphore behind,
on linux causing test to fail for other users - configure test for
posix_semaphore capability leaves semaphore behind, causing test to fail for
other
Benjamin Peterson benja...@python.org added the comment:
Fixed in r76812.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7492
Brett Cannon br...@python.org added the comment:
Fixed in py3k in r76820 by replacing 2.6 references in paths to VERSION.
Not bothering to backport since this is such a minor thing.
--
nosy: +brett.cannon
resolution: - fixed
status: open - closed
Mark Dickinson dicki...@gmail.com added the comment:
I've added the calls to sem_unlink in r76813 (trunk), r76815 (py3k) and
r76821 (release31-maint). I also changed the name of the semaphore for
the second sem_open, so that we can tell which test is leaving files
behind if it happens again
Brett Cannon br...@python.org added the comment:
Your OS is using an encoding called cp720 which Python knows nothing
about. That means it can't open stdout, stderr, or stdin properly for
reading/writing according to your set codec. You need to use a codec
recognized by Python or add support
New submission from R. David Murray rdmur...@bitdance.com:
test_rapid_restart has a hardcoded port. Patch updates it to use
test_support.find_unused_port. Discovered on a buildbot with a hung
test_multiprocessing run and confirmed to fix the subsequent failures of
other test_multiprocessing
New submission from flox la...@yahoo.fr:
I reviewed the documentation and tested the examples with Python 3.
I found some import and print statements to change.
Here is the patch.
Note: I added a warning for the question How do I get a single
keypress (without curses). The solution may not
New submission from flox la...@yahoo.fr:
I reviewed some FAQ documents: issue7493, issue7495 and issue7499
But other documents may be inaccurate.
We may add a warning at the top of these documents, until someone
volunteer to review them.
Patch attached.
--
assignee: georg.brandl
Benjamin Peterson benja...@python.org added the comment:
See #1616979.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7496
___
R. David Murray rdmur...@bitdance.com added the comment:
Yes, it does. Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7497
___
___
New submission from Robert Collins robe...@robertcollins.net:
:!python -m unittest foo.test_suite
Traceback (most recent call last):
File /usr/lib/python2.6/runpy.py, line 122, in _run_module_as_main
__main__, fname, loader, pkg_name)
File /usr/lib/python2.6/runpy.py, line 34, in
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +michael.foord
priority: - normal
type: crash - behavior
versions: -Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7501
Mark Dickinson dicki...@gmail.com added the comment:
Thanks, David!
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7497
Changes by flox la...@yahoo.fr:
Removed file: http://bugs.python.org/file15547/py3k_doc_faq_warnings.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7500
___
Changes by flox la...@yahoo.fr:
Added file: http://bugs.python.org/file15548/py3k_doc_faq_warnings.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7500
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7490
___
___
Python-bugs-list mailing
Changes by Jesse Noller jnol...@gmail.com:
--
assignee: - jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7498
___
___
Python-bugs-list
Nick Coghlan ncogh...@gmail.com added the comment:
The only design level question I can see is as follows:
ExceptionName matches ExceptionName (always)
a.b.ExceptionName matches ExceptionName (under IGNORE_EXCEPTION_DETAIL)
ExceptionName matches a.b.ExceptionName (under IGNORE_EXCEPTION_DETAIL)
Changes by flox la...@yahoo.fr:
Added file: http://bugs.python.org/file15549/py3k_doc_faq_library.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7499
___
Changes by flox la...@yahoo.fr:
Removed file: http://bugs.python.org/file15546/py3k_doc_faq_library.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7499
___
Changes by flox la...@yahoo.fr:
Removed file: http://bugs.python.org/file15549/py3k_doc_faq_library.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7499
___
Changes by flox la...@yahoo.fr:
Added file: http://bugs.python.org/file15550/py3k_doc_faq_library.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7499
___
R. David Murray rdmur...@bitdance.com added the comment:
My impression is that IGNORE_EXCEPTION_DETAIL is designed to allow you
to have a doctest as an example with a fully typed out exception detail,
but have it pass even if the exception detail changes. If that is
indeed the original design,
New submission from Jean-Paul Calderone exar...@divmod.com:
Consider this example, based on two doctests from Twisted:
from doctest import DocTestSuite
import twisted.web2.stream
docTestOne = DocTestSuite(twisted.web2.stream)._tests[0]
import twisted.web2.test.test_stream
docTestTwo =
Nick Coghlan ncogh...@gmail.com added the comment:
Agreed - particularly since that corner case can still be tested through
doctest if desired by using ELLIPSIS instead of IGNORE_EXCEPTION_DETAIL.
The patches mostly look good, but the doc changes should be updated to
indicate that using
Changes by Jeong-Min Lee false...@gmail.com:
--
nosy: +falsetru
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6902
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6902
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
priority: - normal
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7499
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
priority: - normal
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7500
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7500
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7388
___
___
Python-bugs-list
Lennart Regebro rege...@gmail.com added the comment:
Yes, x.y.Exception and a.b.Exception should match. I just realized I
didn't add an explicit test for that, but maybe that's not strictly
necessary.
--
___
Python tracker rep...@bugs.python.org
New submission from Pete Hunt floydoph...@gmail.com:
When pickling a proxy object (such as a list) created on a client, an
exception is thrown. Example attached.
Python 2.6.4 Mac OS X 10.6
p
--
components: Library (Lib)
files: multiprocessing_bug.py
messages: 96371
nosy: peterhunt
70 matches
Mail list logo