New submission from Vajrasky Kok:
$ ./python -S Lib/test/test_site.py
Traceback (most recent call last):
File Lib/test/test_site.py, line 28, in module
raise unittest.SkipTest(importation of site.py suppressed)
unittest.case.SkipTest: importation of site.py suppressed
This counts as fail
Roundup Robot added the comment:
New changeset f51ca196d77a by Serhiy Storchaka in branch '2.7':
Issue #19795: Improved markup of True/False constants.
http://hg.python.org/cpython/rev/f51ca196d77a
New changeset b2066bc8cab9 by Serhiy Storchaka in branch '3.3':
Issue #19795: Improved markup of
Jean-Pierre Flori added the comment:
Hello all,
I've been working on porting Sage, which heavily relies on Python to say the
least, to Cygwin so would be very interested in improving Python support for
Cygwin.
Lately we've been having troubles with Python and ncurses, see:
*
New submission from STINNER Victor:
$ ./python
Python 3.4.0b1 (default:acabd3f035fe, Nov 28 2013, 15:04:09)
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux
Type help, copyright, credits or license for more information.
import _pyio
f=_pyio.open(/etc/issue); f=None
f=_pyio.open(/etc/issue,
Serhiy Storchaka added the comment:
Thank you Georg for your help.
Here is a patch which fixes markups for the None constant. It is more
unequivocal.
--
Added file: http://bugs.python.org/file32885/doc_none.patch
___
Python tracker
New submission from Vajrasky Kok:
$ ./python Lib/test/test_poplib.py
omitted
test_uidl (__main__.TestPOP3_TLSClass) ... ok
test_user (__main__.TestPOP3_TLSClass) ... ok
--
Ran 62 tests in 4.994s
OK
New submission from STINNER Victor:
tracemalloc cannot be used in object destructors because the module is stopped
early at Python shutdown.
I would like to use tracemalloc.get_object_traceback() in object destructors to
retrieve where an object was allocated.
Attached patch replaces the
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: tracemalloc: stop the module later - tracemalloc: stop the module later
at Python shutdown
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19831
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19829
___
___
STINNER Victor added the comment:
Oh tracemalloc_fini.patch is not correct, _PyTraceMalloc_Fini() should be
called after PyImport_Cleanup().
--
Added file: http://bugs.python.org/file32888/tracemalloc_fini-2.patch
___
Python tracker
Stefan Krah added the comment:
class B1(ctypes.Structure):
... _fields_ = [(data, ctypes.c_uint8 * 256), ]
... _pack_ = 1
...
a= B1()
x = memoryview(a)
x.format
'B'
In the first case the format is 'B', in the second case the
format is:
x = memoryview(b)
x.format
New submission from Tobias Kuhn:
The first line of an XML file should be something like this:
?xml version='1.0' encoding='UTF-8'?
The XML parser of xml.sax, however, seems to ignore the value of version:
?xml version='X' encoding='UTF-8'?
This should give an error, but it doesn't.
Changes by Brett Cannon br...@python.org:
--
priority: normal - low
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19826
___
Brett Cannon added the comment:
We cannot accept anything you produce until you sign the CLA.
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19826
___
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com:
--
nosy: +bkabrda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15657
___
___
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19616
___
Changes by Brett Cannon br...@python.org:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19659
___
___
Python-bugs-list
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19828
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
22:36:13 [ ~/PythonDev/cpython ]$ ./python.exe -m timeit import
pickle
with open('test.pickle4', 'rb', buffering=0) as f: pickle.load(f) 100
loops, best of 3: 9.28 msec per loop
Did you use the same test file or different files (generated by patched
and
Zdeněk Pavlas added the comment:
Hit this issue too, but with the read method. I think that providing a
custom read() and write() methods in the wrapper class that override
__getattr__ is a sufficient solution. These are the attributes most likely to
be used as the tail.
--
nosy:
New submission from STINNER Victor:
Attached patches document get_event_loop() and BaseEventLoop; and add two
hello world examples copied from:
http://code.google.com/p/tulip/source/browse/#hg%2Fexamples
--
assignee: docs@python
components: Documentation
files:
STINNER Victor added the comment:
I know that the documentation contains a lot of XXX, but it documents at least
the prototype of the methods. I may provide more patches fixing XXX later ;-)
I hesitated to document the Handle class, but it looks like Guido prefers to
not document it?
Brett Cannon added the comment:
This is going to have to wait until Python 3.5, so I'm going to back out the
exec_module() aspects of BuiltinImporter and ExtensionFileLoader. As Nick has
pointed out previously, we are going to need to change the init function
signature of extension modules to
Antoine Pitrou added the comment:
Since there are many event loop methods, I structured the doc so that methods
are grouped in different sections: see the existing delayed calls and
creating connections sections.
I'm not saying it's the best solution (is it?), but I think it would be nice to
Serhiy Storchaka added the comment:
See also issue19255.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19831
___
___
Serhiy Storchaka added the comment:
I think it will be good.
--
components: +IO
stage: - needs patch
type: - resource usage
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19829
Antoine Pitrou added the comment:
ImportError: 'test_error' module incorrectly imported from
'/usr/lib/python2.7/dist-packages/lazr/restfulclient/tests'. Expected
'/usr/lib/python2.7/dist-packages/lazr/restfulclient/tests'. Is this module
globally installed?
Well, this looks like the
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +christian.heimes, eli.bendersky, scoder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19832
___
Serhiy Storchaka added the comment:
For test_poplib issue19830 was opened.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19758
___
___
New submission from Walter Dörwald:
Exception objects that have been pickled with Python 2 can not be unpickled
with Python 3, even when fix_imports=True is specified:
$ python2.7
Python 2.7.2 (default, Aug 30 2011, 11:04:13)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type help,
Changes by Brett Cannon br...@python.org:
--
dependencies: +Update runpy for PEP 451
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19702
___
___
Changes by Brett Cannon br...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19706
___
___
Python-bugs-list
Brett Cannon added the comment:
To add another point about load_module(), I just had to rip out exec_module()
for Python 3.4 as working around _imp.init_builtin() and _imp.load_dynamic()
are going to need to be done hand-in-hand. So load_module() should probably get
documented as deprecated
Changes by Brett Cannon br...@python.org:
--
dependencies: +Merge all (non-syntactic) import-related tests into
test_importlib
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19705
___
Changes by Brett Cannon br...@python.org:
--
dependencies: +Merge all (non-syntactic) import-related tests into
test_importlib
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19704
___
Stefan Behnel added the comment:
If (as I assume) XML 1.1 isn't supported, then rejecting anything but 1.0
would be correct.
Not for Py2.7 anymore, though, I guess, more something to fix for 3.4.
--
___
Python tracker rep...@bugs.python.org
Martin Pitt added the comment:
In this new code:
mod_file = os.path.abspath(getattr(module, '__file__',
full_path))
realpath = os.path.splitext(os.path.realpath(mod_file))[0]
fullpath_noext =
Antoine Pitrou added the comment:
Also, see issue #19645.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18054
___
___
Antoine Pitrou added the comment:
On ven., 2013-11-29 at 16:23 +, Martin Pitt wrote:
This new patch essentially enforces that the *.py file is not a
symlink, which breaks the Debian-ish way of installing python 2
modules.
So it doesn't help that Debian/Ubuntu likes to put symlinks
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +alexandre.vassalotti, pitrou
type: - behavior
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19834
Changes by Julian Berman julian+python@grayvines.com:
--
nosy: +Julian
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19645
___
___
Martin Pitt added the comment:
Yes, this affects python 2.7 only; as I said, this is all solved in python3 by
introducing the explicit extensions like __pycache__/*..cpython-33.pyc so that
multiple versions can share one directory. With that these symlink hacks aren't
necessary any more.
New submission from STINNER Victor:
Under very low memory condition, PyErr_NoMemory() or PyErr_NormalizeException()
enters an unlimited loop when the free list of MemoryError becomes empty.
I propose to add a MemoryError read-only singleton to fix this corner case.
Attributes cannot be
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +alexandre.vassalotti, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19835
___
Guido van Rossum added the comment:
I would much rather review the docs after they've been committed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19833
___
STINNER Victor added the comment:
Under very low memory condition, PyErr_NoMemory() or
PyErr_NormalizeException() enters an unlimited loop when the free list of
MemoryError becomes empty.
I got this bug when I worked on the issue #19817 which adds an arbitary limit
to memory allocations
Antoine Pitrou added the comment:
Under very low memory condition, PyErr_NoMemory() or
PyErr_NormalizeException() enters an unlimited loop when the free list
of MemoryError becomes empty.
The real question is why the free list becomes empty.
Either way, I don't think a read-only singleton
Serhiy Storchaka added the comment:
Here are remnants of initial patch which were not committed. There are no tests.
--
nosy: +haypo
Added file: http://bugs.python.org/file32893/long_aslong_overflow_2-3.4.patch
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15989
___
___
Waffle Souffle added the comment:
Replicated with Perl being discovered as follows:
['C:\\perl\\bin\\perl.exe', 'c:\\cygwin\\bin\\perl.exe',
'c:\\perl\\bin\\perl.exe']
C:\perl\bin\perl.exe is installed from
ActivePerl-5.16.3.1603-MSWin32-x86-296746.msi
Attempting to compile Python 2.7.6.
Roundup Robot added the comment:
New changeset 34cb64cdbf7b by Guido van Rossum in branch 'default':
Add brief explanation and web pointers to README.txt. Fixes issue 19822.
http://hg.python.org/peps/rev/34cb64cdbf7b
--
nosy: +python-dev
___
Python
Changes by Guido van Rossum gu...@python.org:
--
resolution: rejected - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19822
___
___
Guido van Rossum added the comment:
This is explicitly left up to the core developers' finely tuned sense of
judgment. Adding a definition will not simplify decisions or reduce
disagreements, it will just cause more pointless legalistic debate about the
meaning of specific words.
--
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: ocean-city -
nosy: +tim.peters
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10752
___
New submission from Charles-François Natali:
Here's a patch improving the examples section for the selectors module.
--
assignee: docs@python
components: Documentation
files: selectors_examples.diff
keywords: needs review, patch
messages: 204750
nosy: docs@python, neologix
priority:
Changes by Charles-François Natali cf.nat...@gmail.com:
Removed file: http://bugs.python.org/file32894/selectors_examples.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19836
___
Changes by Charles-François Natali cf.nat...@gmail.com:
Added file: http://bugs.python.org/file32895/selectors_examples.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19836
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19696
___
Antoine Pitrou added the comment:
This sounds ok to me.
--
nosy: +gvanrossum, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19836
___
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19834
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19829
___
Guido van Rossum added the comment:
This is definitely an improvement over the previous example, but I think both
examples are still pretty unrealistic; they seem to be more useful as smoke
tests than as examples. My primary concern is that, in order to be both
self-contained and small, both
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19255
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19831
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18879
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19828
___
Guido van Rossum added the comment:
Here's my suggestion. It can use a lot of cleaning up, but it shows the
fundamentals of a selector-based I/O loop.
--
Added file: http://bugs.python.org/file32896/echo.py
___
Python tracker rep...@bugs.python.org
New submission from Roundup Robot:
New changeset dad74ff75a6b by Brett Cannon in branch 'default':
Issue #19712: Port test.test_importlib.import_ tests to use PEP 451
http://hg.python.org/cpython/rev/dad74ff75a6b
--
nosy: +python-dev
___
Python
Changes by Guido van Rossum gu...@python.org:
Removed file: http://bugs.python.org/file32896/echo.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19836
___
Guido van Rossum added the comment:
Sorry, here's a version with slightly more logical order of the code.
--
Added file: http://bugs.python.org/file32897/echo.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19836
Arfrever Frehtes Taifersar Arahesis added the comment:
New changeset b2066bc8cab9 by Serhiy Storchaka in branch '3.3':
Issue #19795: Improved markup of True/False constants.
http://hg.python.org/cpython/rev/b2066bc8cab9
Accidental, unrelated changes in Doc/library/importlib.rst (and with
R. David Murray added the comment:
3.4 patch updated to address Vajrasky's review comment.
I'll probably apply this tomorrow.
--
Added file: http://bugs.python.org/file32898/support_8bit_charset_cte.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 9d0dc3d7bf01 by Serhiy Storchaka in branch '3.3':
Revert unrelated changes introduced by changeset b2066bc8cab9 (issue #19795).
http://hg.python.org/cpython/rev/9d0dc3d7bf01
--
___
Python tracker
Serhiy Storchaka added the comment:
Thank you Arfrever.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19795
___
___
Python-bugs-list mailing
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17232
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19820
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19835
___
Charles-François Natali added the comment:
Here's an updated patch adding your echo server to the examples section.
--
Added file: http://bugs.python.org/file32899/selectors_example-1.diff
___
Python tracker rep...@bugs.python.org
Guido van Rossum added the comment:
Committed: revision 2a679870d7d2.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19836
Antoine Pitrou added the comment:
Good catch! Would you like to provide a patch together with an added unit test?
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19834
Antoine Pitrou added the comment:
One reason I originally didn't add the class names to the methods is that I
don't know if we want to document the inheritance hierarchy. Guido, what do you
think?
--
___
Python tracker rep...@bugs.python.org
New submission from Nick Coghlan:
In the Python 3 transition, we had to make a choice regarding whether we
treated the JSON module as a text transform (with load[s] reading Unicode code
points and dump[s] producing them), or as a text encoding (with load[s] reading
binary sequences and
Nick Coghlan added the comment:
The other simple solution would be to add nameb variants of the affected
APIs. That's a bit ugly though, especially since it still has the problem of
making it difficult to write correct cross-version code (although that problem
is likely to exist regardless)
Terry J. Reedy added the comment:
As I first noted, 1990 is before the first release of Python in 1992, so that
seemed to be too early. I think Marc-Andre's fix is good enough and should be
applied.
Victor, you want something weird? You can probably find technical books now
copyrighted
Roundup Robot added the comment:
New changeset 30b3798782f1 by Zachary Ware in branch '2.7':
Issue #19595: Re-enable a long-disabled test in test_winsound
http://hg.python.org/cpython/rev/30b3798782f1
New changeset 63f3e8670fa6 by Zachary Ware in branch '3.3':
Issue #19595: Re-enable a
Zachary Ware added the comment:
As long as the buildbots stay happy, this test is back to actually testing.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
In my opinion, vague ideas like this one should go to python-ideas first.
I agree with David that globals() and locals() are separate issues. Since there
have been and perhaps still are locals() doc issues, I will take this one to be
about 'globals()'.
A
Alexandre Vassalotti added the comment:
As part of the implementation of PEP 3154 (Pickle protocol 4), I've introduced
support for pickling methods for all pickle protocols (and not just for the new
protocol 4). This was implemented by adding the appropriate __reduce__ method
on built-in
Terry J. Reedy added the comment:
I too prefer to move in the direction of less back-compatibility constraint
rather than more.
If I had written the module, I would prefer the altered doctest as being less
fragile and representation dependent. For 1 or 2 objects, I prefer the from
form
Terry J. Reedy added the comment:
I checked and Idle does not color code the prompt. In 2.7, it only color-codes
the response to input(prompt), which is eval-ed as Python code, but not the
response to raw_input(prompt). (In 2.7, the code and input displayed raises
SyntaxError.) So the bug in
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19833
___
___
Python-bugs-list
Alexandre Vassalotti added the comment:
Test data are too small, they all less than frame size.
Ah, good point! It seems your patch helps when the reads are *very* slow and
buffering is disabled.
### unpickle_file ###
Min: 1.125320 - 0.663367: 1.70x faster
Avg: 1.237206 - 0.701303: 1.76x
Roundup Robot added the comment:
New changeset 2c87d3944c7a by Alexandre Vassalotti in branch 'default':
Issue #3693: Fix array obscure error message when given a str.
http://hg.python.org/cpython/rev/2c87d3944c7a
--
nosy: +python-dev
___
Python
Changes by Alexandre Vassalotti alexan...@peadrop.com:
--
assignee: - alexandre.vassalotti
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Alexandre Vassalotti alexan...@peadrop.com:
--
assignee: - alexandre.vassalotti
resolution: - duplicate
stage: patch review - committed/rejected
status: open - closed
superseder: - Implement PEP 3154 (pickle protocol 4)
versions: +Python 3.4 -Python 3.3
paul j3 added the comment:
With a minor tweak to `argparse._is_mnrep()`, `nargs='{3}'` would also work.
This means the same as `nargs=3`, so it isn't needed. But it is consistent
with the idea of accepting Regular Expression syntax where it makes sense.
`nargs='{2,3}?'` also works, though
Changes by Alexandre Vassalotti alexan...@peadrop.com:
--
assignee: - alexandre.vassalotti
resolution: - duplicate
stage: patch review - committed/rejected
status: open - closed
superseder: - Implement PEP 3154 (pickle protocol 4)
___
Python
Nick Coghlan added the comment:
I'm going to run with the approach of adding a private _uninstall function in
ensurepip (that includes the version guard), and then a python -m
ensurepip._uninstall submodule to invoke it from the command line.
I'll also extend the with_pip test in test_venv to
Martin Panter added the comment:
How about swapping the two sentences for globals() then:
“Returns the dictionary of the module . . . This represents the symbol table .
. .”
I thought the current locals() entry is fairly clear. It actually says _not_ to
modify the dictionary!
--
yinkaisheng added the comment:
http://support.microsoft.com/kb/305723
COM application hangs when you call CoCreateInstance from DllMain
SYMPTOMS
When you call the CoCreateInstance function from the DllMain function, the
Component Object Model (COM) application hangs.
CAUSE
CoCreateInstance
1 - 100 of 107 matches
Mail list logo