New submission from Stefan Behnel sco...@users.sourceforge.net:
Subject says it all:
Python 2.7 (r27:82500, Jul 5 2010, 13:37:06)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
import xml.etree.ElementTree as ET
el = ET.Element('hui')
Changes by Stefan Behnel sco...@users.sourceforge.net:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9375
___
___
Stefan Behnel sco...@users.sourceforge.net added the comment:
The parser actually starts with this code:
def iterfind(elem, path, namespaces=None):
# compile selector pattern
if path[-1:] == /:
path = path + * # implicit all (FIXME: keep this?)
IMHO, the 'FIXME' is worth
Changes by Stefan Behnel sco...@users.sourceforge.net:
--
nosy: +effbot, flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9375
___
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7303
___
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Closing as no response to msg110598.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1818
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Closing as no response to msg97413 or msg110632.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2796
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Closing as no response to msg110681.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3532
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Closed as duplicate of #6517.
--
nosy: +BreamoreBoy
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Łukasz: could you provide a patch that clarifies the default behaviour.
--
assignee: georg.brandl - d...@python
nosy: +BreamoreBoy, d...@python
stage: unit test needed - needs patch
___
Python
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment:
Terry, thanks for the feedback!
I have added a patch, replacing the previous one, which deals with your points
1 and 3 in the following ways:
1. I have used (an edited form of) your synopsis - I've removed the details of
exactly
Changes by Mark Smith mark.sm...@practicalpoetry.co.uk:
Removed file: http://bugs.python.org/file18179/7635.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7635
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Closing as the main BOM issue is addressed on #7651 and a solution to the OP's
problem is given in msg97335.
--
nosy: +BreamoreBoy
resolution: - duplicate
status: open - closed
superseder: - Python3: guess text file charset
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Łukasz: please provide an updated patch.
--
nosy: +BreamoreBoy
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2651
Alex Willmer a...@moreati.org.uk added the comment:
On 25 July 2010 03:46, Matthew Barnett rep...@bugs.python.org wrote:
issue2636-20100725.zip is a new version of the regex module.
This is now packaged and uploaded to PyPI
http://pypi.python.org/pypi/regex/0.1.20100725
Mark Lawrence breamore...@yahoo.co.uk added the comment:
This has already been done for py3k. Is it worth doing for 2.6 or 2.7?
--
nosy: +BreamoreBoy
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1773632
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
assignee: effbot - d...@python
nosy: -effbot
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2864
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
assignee: effbot - orsenthil
nosy: +orsenthil -effbot
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue648658
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Richard: Could you provide a test case for this, or do you consider it beyond
your Python capabilities allowing for your comments on msg75875?
--
nosy: +BreamoreBoy
___
Python tracker
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Tried the patch against 2.7 and got RuntimeError: Attempt to read ZIP archive
that was already closed for TestsWithSourceFile test_deflated and test_stored.
The patch needs updating for py3k.
--
nosy: +BreamoreBoy
stage: unit
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@David: I couldn't apply the patches directly with tortoisesvn cos of the git
format so tried to do them manually but failed. E.g. in test_os I couldn't
find PYTHONTESTVAROS to insert the two new lines after and in test_posix
couldn't
New submission from Mark Lawrence breamore...@yahoo.co.uk:
Section 6.1 How to make a patch? currently reads in part
(a Windows version is available as part of the cygwin tools).
I suggest that this is reworded to read
(Windows versions are available as part of the cygwin tools or as part of
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Can this be closed given that we're now at 2.7 and py3k and openSUSE is at 11.3?
--
nosy: +BreamoreBoy
status: open - pending
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Could someone with minidom experience please comment on this, thanks.
--
nosy: +BreamoreBoy
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6098
Mark Lawrence breamore...@yahoo.co.uk added the comment:
This is still an issue with all Python versions, is there anybody who could
take this on please?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Closed as a duplicate of #5752 which has patches attached.
--
nosy: +BreamoreBoy
resolution: - duplicate
status: open - closed
versions: +Python 3.1, Python 3.2 -Python 2.6
___
Python tracker
Alan McIntyre alan.mcint...@gmail.com added the comment:
Ok, I'll see if I can update that in the next week or so.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1739648
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Nobody has objected to Terry Reedy's recommendations so can the docs be updated
please.
--
assignee: loewis - d...@python
nosy: +BreamoreBoy, d...@python
___
Python tracker
Alan McIntyre alan.mcint...@gmail.com added the comment:
Both 2.6 and 2.7 are in the maintenance-only stage at this point, aren't they?
I personally don't think this important enough to worry about for 2.x.
--
___
Python tracker
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Digitalxero: could you provide an updated unit test file please.
--
nosy: +BreamoreBoy
stage: - unit test needed
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
This issue will not move unless somebody provides a unit test for it.
--
nosy: +BreamoreBoy
stage: - unit test needed
type: crash - behavior
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Items 1) and 3) have been committed, only 2) needs to be addressed.
--
assignee: georg.brandl - d...@python
nosy: +BreamoreBoy, d...@python
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9375
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Lib/test/test_trace.py is now moved to Lib/test/test_sys_settrace.py.
3.2: r83140 r83141
3.1: r83143
2.7: r83142
--
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Eli,
test_trace_module.py is a good start and I would like to commit it soon. I
have a few nitpicks and a suggestion.
1. pprint module is not used in the tests so it should not be imported.
2. It is better to do
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8733
___
___
Python-bugs-list
David Watson bai...@users.sourceforge.net added the comment:
You're having a bad day at the office :) Just use patch -p1.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4926
___
New submission from David Watson bai...@users.sourceforge.net:
The functions in the socket module which return host/domain
names, such as gethostbyaddr() and getnameinfo(), are wrappers
around byte-oriented interfaces but return Unicode strings in
3.x, and have not been updated to deal with
Changes by David Watson bai...@users.sourceforge.net:
Added file: http://bugs.python.org/file18196/try-surrogateescape-first.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9377
___
Teemu Rytkönen teemu.rytko...@gmail.com added the comment:
Hi!
I encountered the same problem and I debugged it a bit..
I think it not doing the entire unzipping again, but the problem is that the
winzip packaged zip actually contains all file and directory entries and it
fails trying to
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Re-opening because we ought to do something along these lines at some point.
The DictReader and DictWriter are inadequate for preserving order and they are
unnecessarily memory intensive (one dict per record).
FWIW, the
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
Attached patch makes python -m pickle pickle file unpickle the first object
from the pickle file and display it using pprint. Future enhancements may
include printing the summary (object number, object type) of the
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +alexandre.vassalotti, mark.dickinson, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9378
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7447
___
New submission from Łukasz Langa luk...@langa.pl:
Two behaviour problems with random.randrange:
1. Method argument `start` behaves as `stop` if `stop` is not defined:
==
from random import randrange
help(randrange)
Help on
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
A nitpick:
lol is a very well-known acronym and list of lists is not the expansion
that first comes to mind.
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9379
___
___
Python-bugs-list
Mark Dickinson dicki...@gmail.com added the comment:
On issue 2: I agree that this is strange behavior, and would be interested to
see a patch. It's not 100% clear to me what the patched code should do,
though. In particular, an example like:
randrange(10, step=5)
that mixes positional
Ask Solem a...@opera.com added the comment:
A potential implementation is in termination.patch. Basically,
try to shut down gracefully, but if you timeout, just give up and
kill everything.
You can't have a sensible default timeout, because the worker may be processing
something
Terry J. Reedy tjre...@udel.edu added the comment:
Unlike with some issues, my in-message recommendations here do not constitute a
patch.
d...@python could update the link immediately. I would be willing to review the
more extensive patch for 3.x if someone makes one.
--
keywords:
Terry J. Reedy tjre...@udel.edu added the comment:
Leonard, that you for the patch, in particular, the list of hints. I think the
first is good but overly specific. It also has an extra '.itertools' in the
path. Now:
'''
+ - To concatenate a list of lists ``lol`` use
Georg Brandl ge...@python.org added the comment:
Note that using `~itertools.chain.from_iterable` is equivalent to
`from_iterable itertools.chain.from_iterable` and saves a repetition.
--
___
Python tracker rep...@bugs.python.org
A.M. Kuchling li...@amk.ca added the comment:
The current link in the docs works; it's http://www.omg.org/spec/PYTH/1.2/PDF/.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1495229
___
Grant Limberg glimb...@gmail.com added the comment:
It looks like at one point, internal_print was a recursive function, but this
is no longer the case. I've updated the function parameters to no longer
contain the nesting parameter and removed the if block shown in this case.
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
Issue #8622 proposes the creation of an environment variable PYTHONFSENCODING.
It will be used to set sys.getfilesystemencoding(). Would it help this issue?
--
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
I'm not sure that using an hardcoded mapping CP1252 = unicode is a good idea.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2927
Terry J. Reedy tjre...@udel.edu added the comment:
In order to have a chance at 2.6.6rc, due out in a week, I hand-edited the
patch, incorporating Georg's suggestion, and uploaded. I think it is ready to
commit.
Since this is not a critical doc fix, I am not marking it a blocker, but I
still
Changes by Łukasz Langa luk...@langa.pl:
--
nosy: +michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4686
___
___
Python-bugs-list
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
FWIW, I like the new patch better, but still have a few nitpicks:
- Starting a sentence with an argument name is a bit awkward because that makes
a sentence that starts with a lower case letter.
- There is an extra
Łukasz Langa luk...@langa.pl added the comment:
In msg111399 I remarked the new itertools dependency. It seems it is in fact
problematic because when building Python from scratch `setup.py` which is used
to build C extensions is using configparser. And one of the C-only modules is
itertools
A.M. Kuchling li...@amk.ca added the comment:
Changed on the trunk in rev83149.
I removed both paragraphs after the table, adding null and DOMString to the
table, and took the word 'primitive' out of the first sentence (so the table
isn't listing just primitive types, but can list DOMString).
Michael Foord mich...@voidspace.org.uk added the comment:
Committed revision 83150.
Still needs backporting to 3.1, 2.7 and possibly even 2.6.
--
assignee: - michael.foord
resolution: - accepted
stage: patch review - commit review
versions: +Python 2.6
Grant Limberg glimb...@gmail.com added the comment:
On second thought, internal_print() doesn't look like it's needed anymore as
it's only called by PyObject_Print() and is no longer recursive. This second
patch moves internal_print()'s function body into PyObject_Print and removes
the
Changes by Grant Limberg glimb...@gmail.com:
Removed file:
http://bugs.python.org/file18198/internal_print_non_recursive.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9294
___
A.M. Kuchling li...@amk.ca added the comment:
2) changed in rev83151. I extensively rearranged the description of toxml(),
hopefully making its meaning clearer.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
Victor, This looks like your cup of tee.
Unicode is my cup of tee, but not programs considering that bytes are
characters.
a byte string.isalpha() doesn't mean anything to me :-)
This issue is a more question about the C
A.M. Kuchling li...@amk.ca added the comment:
Closing. The replaceChild() bug reported by tobixx was fixed by patch #1094164.
--
resolution: - fixed
status: pending - closed
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
patch3 incorporates all your suggestions.
I verified the itertools hint:
list(itertools.chain.from_iterable([[10],[1,2],['a']]))
[10, 1, 2, 'a']
I think the hints are clear enough; anyone with more questions should follow
the link to the
Changes by Łukasz Langa luk...@langa.pl:
Removed file: http://bugs.python.org/file18200/issue7113_without_itertools.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7113
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I'm happy to improve the docs and docstring a bit to match the description for
range().
I don't want to change any of the keyword arguments because it can break code
that currently works and has been working for ages. It's
Łukasz Langa luk...@langa.pl added the comment:
Patch from py3k root. Some minor formatting changes suggested by Ezio Melotti
included.
--
Added file: http://bugs.python.org/file18204/issue7113_without_itertools.diff
___
Python tracker
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I want to look at this more before it goes forward.
The docs are roughly correct as-is. In a effort
to make them precise, it is easy make them more
confusing or at least a bit harder to understand
the basic function of sum().
Łukasz Langa luk...@langa.pl added the comment:
Raymond, I agree, that is reasonable. Would you like me to send a patch for the
docstring or would you rather make the change on your own?
--
___
Python tracker rep...@bugs.python.org
A.M. Kuchling li...@amk.ca added the comment:
Well, we certainly can't going making any incompatible changes now, so I've
opted to add an empty normalize() method to the Childless mix-in. This makes
minidom a little more liberal than other DOM implementations, but I think
that's OK.
Eric Smith e...@trueblade.com added the comment:
I think this is a good idea. To test how much impact it would have, I changed
float's str to return the same value as repr. regrtest broke only 3 tests:
test_float test_tokenize test_unicodedata. It's not clear to me why unicodedata
failed.
New submission from ipatrol ipatrol6...@yahoo.com:
Yes, I know, this was proposed with builtin lists years before. But I can't
help but think that at least for pop-append oriented deques, a popping analogue
to extend would make use of deques in iterators easier. It should ideally
return an
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
You are welcome to suggest wording. Aim for the shortest explanation that
guides people to the right understanding. Being overly specific often causes
more harm than good. Instead, try to be maximally helpful to someone
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
components: +Documentation -Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9379
___
Terry J. Reedy tjre...@udel.edu added the comment:
Thank you for the patches, but I do not think this is quite done.
1. It is recommended that you always specify an encoding; you may use any
encoding you like, but an argument of utf-8 is the most common, avoid
:exc:`UnicodeError` exceptions
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Sorry, I'm going to reject this one.
Looking at implementations in other languages,
I see that this is almost never needed.
It is not worth complicating the API which
is currently very simple.
Also, there is an issue in that
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Sun, Jul 25, 2010 at 7:27 PM, STINNER Victor rep...@bugs.python.org wrote:
..
Unicode is my cup of tee, but not programs considering that bytes are
characters.
What I called your cup of tee was 3.x returning 'UTF-8'
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oops, the issue is already closed /o\
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9335
___
Craig McQueen pyt...@craig.mcqueen.id.au added the comment:
http://code.activestate.com/recipes/577016-path-entire-split-commonprefix/
--
nosy: +cmcqueen1975
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4755
Brian Curtin cur...@acm.org added the comment:
Committed to py3k in r83154 and release27-maint in r83155.
--
nosy: +brian.curtin
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Eli Bendersky eli...@gmail.com added the comment:
Alexander,
1. Done
2. Done
3. Done. Made docstrings follow PEP 257, to the best of my understanding
4. Done. Attached patch is made on fresh SVN 2.7 branch, file renamed to
test_trace.py and 'svn add' executed
5. I'm not sure I agree with you
Changes by Eli Bendersky eli...@gmail.com:
Removed file: http://bugs.python.org/file18205/test_trace.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9315
___
Changes by Eli Bendersky eli...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file18206/issue9315.1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9315
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I will defer to your judgement on the level of whiteness that is appropriate.
I have passed your patch through 2to3, replaced test_support with support and
it looks like we have a test case for a regression in 3.x:
Eli Bendersky eli...@gmail.com added the comment:
Hello,
I'm attaching a patch for this issue.
1. _from_iterable in KeysView and ItemsView overridden as per Daniel's
suggestion (Lib/_abcoll.py)
2. Added a test case to Lib/test/test_collections.py that uses this test case
(creates the
Fernando Perez fdo.pe...@gmail.com added the comment:
Here is an illustration of the problem with a simple test case (the value of
the posix flag doesn't make any difference):
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for
Eli Bendersky eli...@gmail.com added the comment:
The test failure of the py3k ports boils down to this: the 'runfunc' method of
'Trace' appears as a caller to '_traced_func_importing_caller'. In 2.7 it
appears as 'Trace.runfunc', in py3k as just 'runfunc'.
This raises a question: should
New submission from Chris Rebert pyb...@rebertia.com:
See http://docs.python.org/py3k/c-api/unicode.html#file-system-encoding
Note the literal and unhyperlinked :func:PyUnicode_FSConverter in the last
sentence of the first paragraph. I suspect there's a trivial syntax error in
the ReST
New submission from Chris Rebert pyb...@rebertia.com:
http://docs.python.org/py3k/library/os.html currently mentions os.popen() in
several places. The docs for os.popen() itself say:
'These functions are described in section File Object Creation'
However, unlike the 2.x version of that
Changes by Chris Rebert pyb...@rebertia.com:
Added file: http://bugs.python.org/file18209/subprocess.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7950
___
Chris Rebert pyb...@rebertia.com added the comment:
My apologies for the extra email...
--
Added file: http://bugs.python.org/file18210/subprocess.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7950
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file18209/subprocess.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7950
___
96 matches
Mail list logo