Zbyszek Szmek zbys...@in.waw.pl added the comment:
The patch is already almost there (in #13041). I'll post an updated version
here in a moment.
--
nosy: +zbysz
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13609
New submission from Stefan Behnel sco...@users.sourceforge.net:
The ElementC14N.py module by Fredrik Lundh implements XML canonicalisation for
the ElementTree serialiser. Given that the required API hooks to use it are
already in xml.etree.ElementTree, this would make a nice, simple and
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13611
___
___
Python-bugs-list mailing list
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
However, it is a real change from 2.6 to 2.7 that breaks code.
John, this issue is not the same as the one above. The difference between
Python 2.6 and Python 2.7.2 you mention only applies to % formatting.
The change is clearly
Stefan Krah stefan-use...@bytereef.org added the comment:
For my part, a two-lines description of the purpose of file is enough.
OK, I'll go for small comments in the files themselves and put big
ones in separate files.
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Is there any reason why this issue is still open?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6715
___
New submission from Dongying Zhang zhangdongying1...@gmail.com:
I've been trying to parse xml string using python, codes following:
#-*- coding: utf-8 -*-
import xml.etree.ElementTree as xmlet
s = '?xml version=1.0 encoding=GBK?info/info'
xmlet.fromstring(s)
Then:
$
Changes by Dongying Zhang zhangdongying1...@gmail.com:
--
versions: +3rd party
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13612
___
___
Changes by Dongying Zhang zhangdongying1...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13612
___
___
Antoine Pitrou pit...@free.fr added the comment:
fullname is technically wrong:
import logging.bar
Traceback (most recent call last):
File stdin, line 1, in module
ImportError: No module named 'bar'
module_name sounds fine and explicit enough to me. Also, as Eric points out,
there are many
Stefan Behnel sco...@users.sourceforge.net added the comment:
I started a mailing list thread on the same topic:
http://thread.gmane.org/gmane.comp.python.devel/127963
Especially see
http://thread.gmane.org/gmane.comp.python.devel/127963/focus=128162
where I extract a proposal from the
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Yes, almost half of the buildbots still don't have the xz-utils headers
installed, and thus are not building/testing the lzma module. I've kept
the issue open as a reminder to myself to follow up on this.
--
Antoine Pitrou pit...@free.fr added the comment:
Updated patch for 3.2.
--
stage: - patch review
versions: +Python 3.2 -Python 2.6
Added file: http://bugs.python.org/file23975/inspect-and-pydoc-bug2.patch
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Updated patch that adds a test for classifying builtin types (checks that
``inspect.classify_class_attrs(type)`` does not throw as in issue13581).
--
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file23976/inspect-and-pydoc-bug3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1785
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12809
___
___
Python-bugs-list mailing
Charles-François Natali neolo...@free.fr added the comment:
Can this be fixed?
More or less.
The following patch does the trick, but is not really elegant:
--- a/Parser/tokenizer.c2011-06-01 02:39:38.0 +
+++ b/Parser/tokenizer.c2011-12-16 08:48:45.0 +
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 57f0af61da53 by Antoine Pitrou in branch 'default':
Issue #6695: Full garbage collection runs now clear the freelist of set objects.
http://hg.python.org/cpython/rev/57f0af61da53
--
nosy: +python-dev
Antoine Pitrou pit...@free.fr added the comment:
The clearing the dict and list freelists has been added independently, so I
committed the part of the patch pertaining to sets. Thank you!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.3
Ezio Melotti ezio.melo...@gmail.com added the comment:
xml.dom.minidom is a [-XXX: light-weight] implementation of the Document
Object Model interface.
This is ok.
It is intended to be simpler than the full DOM and also
[+XXX: provide a] significantly smaller [+XXX: API].
Doesn't simpler
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5424
___
___
Python-bugs-list mailing
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Actually, this fails on 2.6 and 2.7 on wide unicode builds, and passes with
narrow unicode builds (on my 64bit Linux box).
In pyexpat.c, PyUnknownEncodingHandler accesses 256 characters of a unicode
buffer, without checking its
Denilson Figueiredo de Sá denilso...@gmail.com added the comment:
Zbyszek, I just looked at [1] and I disagree that the environment variable
should have higher precedence. In fact, I believe it should have lower
precedence, and should be used as a fallback.
[1]:
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6a966179c73a by Antoine Pitrou in branch '3.2':
Issue #10350: Read and save errno before calling a function which might
overwrite it.
http://hg.python.org/cpython/rev/6a966179c73a
New changeset 8e0b2e75ca7a by
Antoine Pitrou pit...@free.fr added the comment:
Committed in 3.x. I won't bother backporting to 2.x. Thank you!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.3 -Python 2.7, Python 3.1
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9975
___
___
Python-bugs-list mailing
Giampaolo Rodola' g.rod...@gmail.com added the comment:
http://bugs.python.org/file23241/patch1.1.diff
This looks like something which would fit better into shutil module rather than
os.
Also, the Windows implementation should not rely on ctypes.
--
nosy: +giampaolo.rodola
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
dependencies: +Add os.get_terminal_size() function
versions: -Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13041
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Plus, you should provide also heigth, not only width, possibly as a namedtuple:
import shutil
shutil.get_terminal_size()
size(width=80, heigth=170)
--
___
Python tracker
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12809
___
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13229
___
___
Steven Bethard steven.beth...@gmail.com added the comment:
Closing then. Thanks for checking it again!
--
assignee: - bethard
resolution: - works for me
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Edmund Eyles ho...@heddonsgate.co.uk:
The documentation for Python 2.7.2 has a section of examples for the regular
expression match() function, based on a poker hand, at section 7.2.6.1. These
examples show a suit of cards as having 14 cards! The ace is counted twice, as
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: docs@python - ezio.melotti
keywords: +patch
nosy: +ezio.melotti
stage: - commit review
type: behavior - enhancement
versions: +Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23977/issue13613.diff
Changes by Ezio Melotti ezio.melo...@gmail.com:
Removed file: http://bugs.python.org/file23977/issue13613.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13613
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file23978/issue13613.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13613
___
Zbyszek Szmek zbys...@in.waw.pl added the comment:
One reply to three comments:
[To myself]:
I'll post an updated version here in a moment.
Hm, it's not so simple. The implementation is simple,
but the configure defines are harder than I thought.
But I'm getting there :)
Zbyszek, I just
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 1f23bb74f4bc by Antoine Pitrou in branch 'default':
Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystem
http://hg.python.org/cpython/rev/1f23bb74f4bc
--
nosy: +python-dev
Antoine Pitrou pit...@free.fr added the comment:
Patch committed in 3.3 (default branch), thank you!
--
nosy: +pitrou
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.3 -Python 3.1, Python 3.2
Jim Jewett jimjjew...@gmail.com added the comment:
Why is the utf-8 representation not cached when it is generated for
ParseTuple et alia?
My error -- I read something backwards.
When a string is created from a wchar_t array, who is responsible for
releasing the original wchar_t array?
Edmund Eyles ho...@heddonsgate.co.uk added the comment:
Changes proposed in file 23978 look good to me!
On 16/12/2011 13:28, Ezio Melotti wrote:
Changes by Ezio Melottiezio.melo...@gmail.com:
Added file: http://bugs.python.org/file23978/issue13613.diff
Changes by Jim Jewett jimjjew...@gmail.com:
Added file: http://bugs.python.org/file23980/pep-0393_20111216.txt.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13604
___
Mark Dickinson dicki...@gmail.com added the comment:
Can this be fixed?
Not without breaking backwards compatibility, I would think.
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13610
Benjamin Peterson benja...@python.org added the comment:
I think it's fairly harmless. Perhaps Python 4.
--
priority: normal - low
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13610
___
Giampaolo Rodola' g.rod...@gmail.com added the comment:
The docstring for shutil says: Utility functions for copying and
archiving files and directory trees. So it doesn't seem to fit at all.
Well... shutil should stand for shell utilities and it already contains stuff
which is not strictly
Brian Curtin br...@python.org added the comment:
I think I'm going to stick with name unless anyone is super opposed. If we can
eventually import something else (sausages?), then setting module_name with a
sausage name will seem weird.
I'll work up a more complete patch. The private helper is
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13604
___
___
Python-bugs-list mailing list
Zbyszek Szmek zbys...@in.waw.pl added the comment:
This is proof-of-concept implementation.
This adds two modules: termsize (python) and _termsize (C). The first one
contains the get_terminal_size user-facing function and namedtuple definition.
The second on contains the function
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Don't forget the Windows platform... here is an implementation:
https://bitbucket.org/hpk42/py/src/980c8d526463/py/_io/terminalwriter.py#cl-284
But it would be better written in C, of course.
--
nosy: +amaury.forgeotdarc
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13607
___
___
Python-bugs-list mailing list
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1785
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Ok, a couple of general comments:
- there is no point having a separate module for a single function; I think the
os module (and posixmodule.c for the C side) is a reasonable place where to put
this
- C code should be indented with 4 spaces
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13610
___
___
Python-bugs-list mailing list
Josh josh.david...@lmco.com added the comment:
Where was this fixed? It is still a problem in Python 2.6.6.
For example, if I do:
python setup.py build_ext --compiler=mingw32 build --build-platlib=build\win64
Then follow it up with:
python setup.py clean --build-base=build\win64 -a
This is
Martin v. Löwis mar...@v.loewis.de added the comment:
Code added to the standard library should be contributed by its author, with an
explicit statement of plans to support it in an ongoing manner, and preferably
also with plans to stop providing standalone releases over time.
--
Martin v. Löwis mar...@v.loewis.de added the comment:
I agree with Antoine: a single test testing that we actually raise exceptions
properly should be sufficient.
OTOH, the patch doesn't hurt (AFAICT), so I wouldn't mind if it was applied
as-is.
--
Martin v. Löwis mar...@v.loewis.de added the comment:
If you have to work with XML, ElementTree is usually the best
choice, because it has a simple API and it's efficient [or whatever].
I still object such a wording, for many reasons.
--
___
New submission from anatoly techtonik techto...@gmail.com:
It seems that invalid ReST in long_description causes traceback in distutils
`register` command. See attached log.
More details:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/905500
--
assignee: tarek
components:
New submission from anatoly techtonik techto...@gmail.com:
$ python setup.py sdist register -r https://pypi.python.org/pypi upload
...
Creating tar archive
removing 'pager-0.2' (and everything under it)
running register
Traceback (most recent call last):
File setup.py, line 17, in module
anatoly techtonik techto...@gmail.com added the comment:
Ubuntu 11.10
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13615
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 766a21ebf82e by Ezio Melotti in branch '2.7':
#13613: fix example in re doc.
http://hg.python.org/cpython/rev/766a21ebf82e
New changeset 0b86da9d6964 by Ezio Melotti in branch '3.2':
#13613: fix example in re doc.
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the report!
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13613
New submission from David Butler croe...@gmail.com:
CPU will sit a 100% indefinitely, this is also pretty tough (takes several
hours) to reproduce
if you step through the program it is stuck between 290 and 292
Modules/gcmodule.c:
/* Set all gc_refs = ob_refcnt. After this, gc_refs is 0
Terry J. Reedy tjre...@udel.edu added the comment:
I agree with Roger that developing an extension elsewhere is the proper first
step. I suspect that you will want to experiment with the exact behavior and
interface. So I am closing this for now, though you can reopen later if there
is a
Terry J. Reedy tjre...@udel.edu added the comment:
Is this complete and ready to close, or does the doc need a note?
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13573
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Are you sure that the program is really stuck in the gc module?
The loop you mention has to go through all objects of the process. It's
possible that it allocated many objects, that one garbage collection takes a
few seconds, and even
Terry J. Reedy tjre...@udel.edu added the comment:
At line 237 of string.py:
def convert_field(self, value, conversion):
# do any conversion on the resulting object
if conversion == 'r':
return repr(value)
elif conversion == 's':
return
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - needs patch
type: - behavior
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13579
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13582
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +ghaering
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13583
___
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
The code is fixed. Am leaving this open until I have a chance to see if
anything in the docs need to be updated.
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
In 3.2 on Win 7, selected text *is* put in the 'find' field of Replace boxes,
just as with Find boxes, just as it should be. So there is something specific
either to 2.7 (which is unusual, since the code base in mostly the same, but
possible)
Changes by Terry J. Reedy tjre...@udel.edu:
--
title: Replace selected not working/consistent with find - IDLE: Replace
selected not working/consistent with find
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13586
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13587
___
Terry J. Reedy tjre...@udel.edu added the comment:
Error is in 3.2 docs as well.
2.6/3.1 only get security patches. 3.4 is for future enhancements what will not
even go into 3.3.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13590
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
but if #11957 is fixed, the result will look like
re.Regex('abc', re.I|re.S)
That is what I would like to see.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13598
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13607
___
___
Python-bugs-list
Benjamin Peterson benja...@python.org added the comment:
Seems mostly fine to me.
--
assignee: - benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13607
___
Terry J. Reedy tjre...@udel.edu added the comment:
The proposal is to change the definition of numbers literals from X to one that
is context-sensitive: X followed by whitespace or a syntactic symbol but not
anything else, in particular, not by an identifier_start character. I am +-0 at
the
Terry J. Reedy tjre...@udel.edu added the comment:
3.2, Win7 (a narrow build) it indeed works and returns
Element 'info' at 0x3389128
--
nosy: +terry.reedy
versions: +Python 2.7 -3rd party, Python 2.6
___
Python tracker rep...@bugs.python.org
Zbyszek Szmek zbys...@in.waw.pl added the comment:
Here's updated version: termsize.diff.1
Ok, a couple of general comments:
- there is no point having a separate module for a single function; I think
the os module (and posixmodule.c for the C side) is a
reasonable place where to put this
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294232
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
changeset: 74002:279b0aee0cfb
user:Victor Stinner victor.stin...@haypocalc.com
date:Fri Dec 16 23:56:01 2011 +0100
files: Doc/c-api/unicode.rst Include/unicodeobject.h
Modules/_localemodule.c Modules/main.c
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 88198b93ff2f by Victor Stinner in branch 'default':
Issue #13560: Add PyUnicode_EncodeLocale()
http://hg.python.org/cpython/rev/88198b93ff2f
New changeset 51412b4b81ae by Victor Stinner in branch 'default':
Issue
New submission from STINNER Victor victor.stin...@haypocalc.com:
The curses module (only since Python 3.3), locale.strcoll(), locale.strxfrm(),
time.strftime() and imp.NullImporter() (only on Windows) accept embedded null
characters, whereas they convert the Unicode string to a wide character
STINNER Victor victor.stin...@haypocalc.com added the comment:
PyUnicode_AsWideCharString() documentation should also warn about this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13617
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 07802351ccad by Victor Stinner in branch 'default':
Issue #13560: Locale codec functions use the classic errors parameter,
http://hg.python.org/cpython/rev/07802351ccad
--
New submission from Silverback Networks silverback...@gmail.com:
I've searched high and low to find a way to make Python accept Apple's iOS
characters, but it looks like Python is not supporting greater than 16-bit
characters correctly. If you look at the leading character of each group, it's
Changes by Silverback Networks silverback...@gmail.com:
--
title: bytes.deocde() UnicodeEncodeError on Apple iOS characters -
bytes.decode() UnicodeEncodeError on Apple iOS (16-bit) characters
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13618
___
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
To factorize the code and to fix encoding issues in the time module, I added
functions to decode/encode from/to the locale encoding:
PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and
PyUnicode_EncodeLocale() (issue
STINNER Victor victor.stin...@haypocalc.com added the comment:
Ok, I think that the current code is good enough to close the issue. I opened a
more global issue about the Python codec: #13619.
--
resolution: - fixed
status: open - closed
___
Python
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
keywords: +patch
Added file: http://bugs.python.org/file23985/locale_encoding.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13619
STINNER Victor victor.stin...@haypocalc.com added the comment:
# On FreeBSD, Solaris and Mac OS X, b'\xff' can be decoded in
# the C locale. The C locale is something like ISO-8859-1, not
# 7-bit ASCII.
On FreeBSD, it *is* the ISO-8859-1 encoding.
--
Marco Scataglini atlant...@gmx.com added the comment:
Win 7 Pro 32bit.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13586
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
I tried to decode this with utf-8 and I got
'...\U0001f384\U0001f385\U0001f381\U0001f384\U0001f385\U0001f381 if you
haven#39;t checked this out yet please do. download APP TRAILERS and go to
videos use promo code FREE4U and enjoy free
98 matches
Mail list logo