Ezio Melotti added the comment:
In the first patch I included this example:
+ >>> swapped = []
+ >>> for i in [0, 1, 2]:
+ ... swapped.append([row[i] for row in mat])
+ ...
+ >>> print swapped
+ [[1, 4, 7], [2, 5, 8], [3, 6, 9]]
Because I applied t
Ezio Melotti added the comment:
Having both is fine.
I just noticed that the 3.2 docs are different[0], so I tried to merge them:
3.2 says:
"""
List comprehensions provide a concise way to create lists from sequences.
Common applications are to make lists where each element i
Changes by Ezio Melotti :
Added file: http://bugs.python.org/file23901/issue13549-3-py32.diff
___
Python tracker
<http://bugs.python.org/issue13549>
___
___
Python-bug
Ezio Melotti added the comment:
> I think an icon would be as scary as the current big color boxes.
Especially if I design it.
Georg, is the patch ok if I add a bit of indentation as suggested by Antoine?
--
___
Python tracker
&l
New submission from Ezio Melotti :
The attached patch adds a few tests about the handling of broken conditional
comments (condcoms).
A valid condcom looks like .
An invalid one looks like
This seems a common mistake, and it's found even on popular sites like adobe,
linkedin, devia
Ezio Melotti added the comment:
Terry, does the latest patch look good to you?
--
___
Python tracker
<http://bugs.python.org/issue6570>
___
___
Python-bugs-list m
Changes by Ezio Melotti :
--
nosy: +rprosser
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue7867>
___
___
Python-bugs-list mailin
Ezio Melotti added the comment:
I think it would be better to decide in what version each thing will be removed
and then mark them with the deprecated-removed directive in the doc.
--
___
Python tracker
<http://bugs.python.org/issue13
Ezio Melotti added the comment:
The patch includes only assertEqual, assertTrue, and assertRaises and, except a
s/functions/methods/ in the first line, looks good to me.
--
stage: needs patch -> commit review
versions: -Python 3.1
___
Pyt
Changes by Ezio Melotti :
--
nosy: +brett.cannon, ncoghlan
___
Python tracker
<http://bugs.python.org/issue13591>
___
___
Python-bugs-list mailing list
Unsub
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue13538>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
I'm not sure having the pattern in the repr will make it more readable, since
the regex might even be very long. You can use the .pattern attribute if you
want to see the pattern.
--
nosy: +ezio.melotti
status: open -> pending
versions: +Py
Ezio Melotti added the comment:
Fixed.
On a side note, using:
>>> [x, x**2 for x in range(6)]
File "", line 1
[x, x**2 for x in range(6)]
^
SyntaxError: invalid syntax
In the 3.x docs seems to break the hightlight.
With 'File "", line 1,
Changes by Ezio Melotti :
--
resolution: -> fixed
stage: commit review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Ezio Melotti added the comment:
Thanks for splitting the patch.
I tried to apply the patch to 3.2 and I have 3 comments:
1) you changed a commented-out assertEqual with an assertNotEqual, because
"ULAW is lossy compression, so frames *may* not match". Does it mean that
sometimes
Changes by Ezio Melotti :
--
nosy: +pitrou
stage: patch review -> commit review
___
Python tracker
<http://bugs.python.org/issue13593>
___
___
Python-bugs-lis
Changes by Ezio Melotti :
--
components: +Regular Expressions
nosy: +mrabarnett
___
Python tracker
<http://bugs.python.org/issue13592>
___
___
Python-bugs-list m
Ezio Melotti added the comment:
This seems already fixed in 2.7.2+/3.2/3.3, what version have you tried?
--
resolution: -> out of date
status: open -> pending
type: -> enhancement
___
Python tracker
<http://bugs.python.or
Ezio Melotti added the comment:
See #7475.
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue13600>
___
___
Python-bugs-list mailin
Changes by Ezio Melotti :
--
stage: -> committed/rejected
___
Python tracker
<http://bugs.python.org/issue13599>
___
___
Python-bugs-list mailing list
Un
Ezio Melotti added the comment:
If an eval-able re.Regex is used, the flags can be showed as second arg, like:
re.Regex('a', re.I|re.S)
instead of being added to the pattern as in
re.Regex('(?is)a')
The repr can be generated with something like
're.Regex({r.patte
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue7502>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ezio Melotti :
--
priority: low -> normal
___
Python tracker
<http://bugs.python.org/issue2292>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue2134>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti 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 "
Changes by Ezio Melotti :
--
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/issue1
Changes by Ezio Melotti :
Removed file: http://bugs.python.org/file23977/issue13613.diff
___
Python tracker
<http://bugs.python.org/issue13613>
___
___
Python-bugs-list m
Changes by Ezio Melotti :
Added file: http://bugs.python.org/file23978/issue13613.diff
___
Python tracker
<http://bugs.python.org/issue13613>
___
___
Python-bugs-list m
Ezio Melotti added the comment:
Fixed, thanks for the report!
--
resolution: -> fixed
stage: commit review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Ezio Melotti added the comment:
I tried to decode this with utf-8 and I got
'...\U0001f384\U0001f385\U0001f381\U0001f384\U0001f385\U0001f381 if you
haven't checked this out yet please do. download APP TRAILERS and go to
videos use promo code FREE4U and enjoy free apps courtesy of a
Changes by Ezio Melotti :
--
components: +Unicode
nosy: +ezio.melotti, lemburg
stage: -> patch review
type: -> enhancement
___
Python tracker
<http://bugs.python.org/i
Ezio Melotti added the comment:
>>> 999if 888else 888
File "", line 1
999if 888else 888
^
SyntaxError: invalid token
This might be because 888e5 is a valid expression, so the 'e' is parsed as part
of the number rather than a separate token.
&
Changes by Ezio Melotti :
--
assignee: -> collinwinter
components: +Unicode
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue13621>
___
_
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue13623>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
I'll close this then.
--
resolution: -> wont fix
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.pyth
Changes by Ezio Melotti :
--
resolution: -> fixed
stage: commit review -> committed/rejected
status: open -> closed
type: behavior -> enhancement
___
Python tracker
<http://bugs.python
Changes by Ezio Melotti :
--
resolution: -> fixed
stage: needs patch -> committed/rejected
status: open -> closed
type: behavior -> enhancement
___
Python tracker
<http://bugs.pytho
Changes by Ezio Melotti :
--
resolution: -> fixed
stage: commit review -> committed/rejected
status: open -> closed
type: behavior -> enhancement
___
Python tracker
<http://bugs.python
New submission from Ezio Melotti :
The doc for handle_charref and handle_entityref say:
"""
HTMLParser.handle_charref(name)
This method is called to process a character reference of the form
"&#ref;". It is intended to be overridden by a derived class; the ba
Changes by Ezio Melotti :
--
components: +None
stage: -> test needed
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue11105>
___
___
Py
Ezio Melotti added the comment:
> This is normal.
Can this be closed then?
--
nosy: +ezio.melotti
versions: +Python 3.2, Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/iss
Changes by Ezio Melotti :
--
nosy: -BreamoreBoy
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue1953>
___
___
Python-bugs-list m
Changes by Ezio Melotti :
--
nosy: +amaury.forgeotdarc
___
Python tracker
<http://bugs.python.org/issue13413>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
Isn't there a way to specify multiple targets for the same entry?
The doc could say that int, float and complex all share some methods/attributes
and then either list e.g. int.conjugate, float.conjugate, complex.conjugate
with a single description or use
Changes by Ezio Melotti :
--
versions: +Python 3.3 -Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue7098>
___
___
Python-bugs-list mailin
Ezio Melotti added the comment:
The first chunk of the patch (the use of strip) changes the behavior as
discussed in the previous comments, so it should probably be reverted. The
rest of the changes are OK.
--
status: closed -> open
___
Pyt
Ezio Melotti added the comment:
U+FFEF is a Unicode ZERO WIDTH NO-BREAK SPACE / BYTE ORDER MARK. I'm not sure
what is it doing in the file name but this doesn't seem a bug in os.listdir.
--
nosy: +ezio.melotti
resolution: -> invalid
stage: -> committed/rejec
Ezio Melotti added the comment:
s/U+FFEF/U+FEFF/
See also http://unicode.org/faq/utf_bom.html#bom1
--
___
Python tracker
<http://bugs.python.org/issue13
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue13663>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
stage: -> needs patch
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue13665>
___
___
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
stage: -> needs patch
type: -> enhancement
versions: -Python 3.1, Python 3.4
___
Python tracker
<http://bugs.python.org/i
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue13706>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue8416>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
Yep, this was fixed in #670664.
With the development version of Python (AFAIK the fix has not be released yet)
and the example parser found in the doc[0] I get this:
>>> parser = MyHTMLParser()
>>> parser.feed('<td></td>
Changes by Ezio Melotti :
--
assignee: docs@python -> ezio.melotti
nosy: +ezio.melotti
stage: -> patch review
type: -> enhancement
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker
<http://bugs.python.or
Ezio Melotti added the comment:
On Python 3, os.walk() uses the surrogateescape error handler. If the filename
is in e.g. iso-8859-* and the filesystem encoding is UTF-8, decoding '\xe5'
will then result in '\udce5', and '\udce5' can't then be printed b
Changes by Ezio Melotti :
--
nosy: +eric.smith, ezio.melotti
___
Python tracker
<http://bugs.python.org/issue13718>
___
___
Python-bugs-list mailing list
Unsub
Ezio Melotti added the comment:
http://docs.python.org/dev/documenting/building.html also needs to be updated
(it still mentions Subversion and probably obsolete versions of Sphinx and
other packages). If you are going to add the text proposed in your second
message, you might want to drop
Ezio Melotti added the comment:
> Well, the doc makefile still uses Subversion.
Indeed, I was thinking about getting a CPython checkout with the doc, not about
the tools used to built it (maybe it could be clarified).
> I don’t understand: "p"s?
>From "_D
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
stage: -> needs patch
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue13691>
___
___
Ezio Melotti added the comment:
If you run python with the -3 flag you should get a warning about that. If you
combine it with -We you should be able to get an error instead of a warning.
Note however that both the flags are not specific for the "except" but also
generate/af
Ezio Melotti added the comment:
If 'program' refers to the executable, the sentence is still valid.
--
type: -> enhancement
___
Python tracker
<http://bugs.pytho
Ezio Melotti added the comment:
The 'site' module should be in Python27\Lib\site.py.
You could try to run "python.exe -v" to see if it says something useful in the
output, or maybe try to reinstall Python and see if it works.
--
__
New submission from Ezio Melotti :
The attached patch causes a segfault while running test_urllib:
$ ./python -m test test_urllib
[1/1] test_urllib
Fatal Python error: Segmentation fault
Current thread 0xb77de8d0:
File "/home/wolf/dev/py/py3k/Lib/http/client.py", line 45
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue12154>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
I removed the /0 when there are no failures after a short discussion on
#python-dev. FWIW I'm -0 on the /N, but now that it's not displayed if there
are no failures it won't bother me too much.
--
nosy: +ezio.melotti
stage: ->
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue12162>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ezio Melotti :
--
keywords: +needs review
nosy: +brett.cannon, haypo
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issu
Ezio Melotti added the comment:
The test should be a diff against Lib/test/test_multiprocessing.py that adds a
unit test.
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue11
Changes by Ezio Melotti :
--
nosy: +bethard
type: crash -> behavior
___
Python tracker
<http://bugs.python.org/issue12193>
___
___
Python-bugs-list mai
Ezio Melotti added the comment:
I find this wording a little confusing: "For lists, sets, and dicts, methods
that change the contents or order never return the instance. Instead, they
return an item from the instance or, more commonly, None.".
I would suggest to drop the second pa
Ezio Melotti added the comment:
I'm not sure it's worth adding this to the PEP 7. The PEP is about conventions
and style not idioms.
PEP 8 has a section about "Programming Recommendations" that contains a few
idioms, but since PEP 7 doesn't have an equival
Ezio Melotti added the comment:
Terry, I think you can apply the patch you proposed in msg137085 and close this
issue.
If the recommended structure of test files is not documented, a section in the
devguide should be added, but that's another issue. (FWIW I'm not even sure
Ezio Melotti added the comment:
Python 3.1.4 should be released today, so I think it's too late for this to be
fixed.
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/is
Ezio Melotti added the comment:
The release date of 3.1.4 is actually June 11th. Today will be released an RC
though, so what I said should still apply.
--
___
Python tracker
<http://bugs.python.org/issue10
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue12170>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue9382>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue10224>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue10225>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
That would be c4ddb460f4f2.
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue12106>
___
___
Python-bug
Ezio Melotti added the comment:
Note that usually 'self' is not included in the arguments of methods. The 3.3
doc correctly uses e.g. copy_sign(other). A 'd.' could also be added so that
the end result looks like:
d.copy_sign(other)
but it's not mandatory (if do
Changes by Ezio Melotti :
--
nosy: +benjamin.peterson
___
Python tracker
<http://bugs.python.org/issue10449>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
In this case using:
d.copy_sign(other)
and then refer to 'd' and 'other' might be clearer.
--
___
Python tracker
<http://bug
Ezio Melotti added the comment:
The regex sets (\d\w\s\D\W\S) don't match any Python escape sequence, so even
if some suggest to always use r'' regardless, I don't find it necessary,
especially for simple regexs.
The two conflicting escape sequences to keep in mind a
Ezio Melotti added the comment:
The name dump and dumps exist to match the same API provided by pickle and
marshal.
I agree that a note marked as CPython implementation detail should be added.
--
keywords: +easy -patch
stage: -> needs patch
versions: +Python 2.7, Python
Changes by Ezio Melotti :
--
nosy: +georg.brandl
stage: needs patch -> patch review
___
Python tracker
<http://bugs.python.org/issue11975>
___
___
Python-
Ezio Melotti added the comment:
Are you against the proposed wording or the note itself?
Stating that in CPython json.dump doesn't use the C accelerations is a
reasonable thing to do imho.
--
___
Python tracker
<http://bugs.python.org/is
Ezio Melotti added the comment:
'\u1ff3'.upper() returns '\u1ffc', so we have:
U+1FF3 (ῳ - GREEK SMALL LETTER OMEGA WITH YPOGEGRAMMENI)
U+1FFC (ῼ - GREEK CAPITAL LETTER OMEGA WITH PROSGEGRAMMENI)
The first belongs to the Ll (Letter, lowercase) category, whereas the secon
Ezio Melotti added the comment:
IMHO it would be better to tweak regrtest so that it understand
test_file.TestClass.test_method, possibly supporting wildcards.
E.g.:
- ./python -m test test_subprocess.POSIXProcessTestCase
- ./python -m test
Ezio Melotti added the comment:
FWIW using the class directive also adds a 'class' before the name, and I -1
about having int()/float()/etc. prepended by 'class' in the functions.rst page.
What happens if we leave ".. function::" there and use ".. clas
Ezio Melotti added the comment:
I think the only way to find it out is to try it and see.
In the worst case, sphinx will give an error while building the doc, if we are
lucky it will just pick one of the two (or even better the one defined with the
function directive while using :func:`` and
Changes by Ezio Melotti :
--
assignee: -> ezio.melotti
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue12270>
___
___
Python-bugs-list mai
Ezio Melotti added the comment:
Done in r88853, thanks for the report!
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Ezio Melotti added the comment:
If there are a few of these idioms, I'm not against adding a new section to
PEP 7 (something like the "Programming Recommendations" section in the PEP 8).
It's just not worth doing it for the "*p
Ezio Melotti added the comment:
What if in the functions.rst page we specify the current module for all the
functions (or even just for int/float/etc) as __builtin__ and use the function
directive, and in the stdtypes.rst (or elsewhere) we use the class directive?
The idea is to pretend that
Ezio Melotti added the comment:
This is expected. See also #11986 and #11949.
--
nosy: +belopolsky, ezio.melotti, mark.dickinson, rhettinger
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
___
Python track
Changes by Ezio Melotti :
--
nosy: +ezio.melotti
___
Python tracker
<http://bugs.python.org/issue12301>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ezio Melotti :
--
dependencies: +Fix referencing of built-in types (list, int, ...)
___
Python tracker
<http://bugs.python.org/issue12298>
___
___
Pytho
Ezio Melotti added the comment:
It won't (because there's the ~ in :func/class:`~__builtin__.int`). Specifying
the module would just be a workaround used to distinguish the 'int' in
functions.rst from the one in stdtypes.rst.
--
__
Changes by Ezio Melotti :
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issue11375>
___
___
Python-bugs-list mailing list
Unsubscri
501 - 600 of 5818 matches
Mail list logo