[issue13549] Incorrect nested list comprehension documentation

2011-12-09 Thread Ezio Melotti
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

[issue13549] Incorrect nested list comprehension documentation

2011-12-10 Thread Ezio Melotti
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

[issue13549] Incorrect nested list comprehension documentation

2011-12-10 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file23901/issue13549-3-py32.diff ___ Python tracker <http://bugs.python.org/issue13549> ___ ___ Python-bug

[issue13515] Consistent documentation practices for security concerns and considerations

2011-12-10 Thread Ezio Melotti
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

[issue13576] Handling of broken condcoms in HTMLParser

2011-12-10 Thread Ezio Melotti
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

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-12-12 Thread Ezio Melotti
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

[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python

2011-12-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +rprosser versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue7867> ___ ___ Python-bugs-list mailin

[issue13248] deprecated in 3.2, should be removed in 3.3

2011-12-12 Thread Ezio Melotti
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

[issue11468] Improve unittest basic example in the doc

2011-12-12 Thread Ezio Melotti
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

[issue13591] import_module potentially imports a module twice

2011-12-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +brett.cannon, ncoghlan ___ Python tracker <http://bugs.python.org/issue13591> ___ ___ Python-bugs-list mailing list Unsub

[issue13538] Improve doc for str(bytesobject)

2011-12-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue13538> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13592] repr(regex) doesn't include actual regex

2011-12-13 Thread Ezio Melotti
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

[issue13549] Incorrect nested list comprehension documentation

2011-12-13 Thread Ezio Melotti
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,

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue13394] Patch to increase aifc lib test coverage

2011-12-13 Thread Ezio Melotti
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

[issue13593] importlib needs to be updated for __qualname__

2011-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +pitrou stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue13593> ___ ___ Python-bugs-lis

[issue13592] repr(regex) doesn't include actual regex

2011-12-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Regular Expressions nosy: +mrabarnett ___ Python tracker <http://bugs.python.org/issue13592> ___ ___ Python-bugs-list m

[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Ezio Melotti
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

[issue13600] rot_13 codec not working

2011-12-14 Thread Ezio Melotti
Ezio Melotti added the comment: See #7475. -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue13600> ___ ___ Python-bugs-list mailin

[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker <http://bugs.python.org/issue13599> ___ ___ Python-bugs-list mailing list Un

[issue13592] repr(regex) doesn't include actual regex

2011-12-15 Thread Ezio Melotti
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

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue7502> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2292] Missing *-unpacking generalizations

2011-12-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: low -> normal ___ Python tracker <http://bugs.python.org/issue2292> ___ ___ Python-bugs-list mailing list Unsubscri

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue2134> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11379] Remove "lightweight" from minidom description

2011-12-16 Thread Ezio Melotti
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 "

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
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

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file23977/issue13613.diff ___ Python tracker <http://bugs.python.org/issue13613> ___ ___ Python-bugs-list m

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file23978/issue13613.diff ___ Python tracker <http://bugs.python.org/issue13613> ___ ___ Python-bugs-list m

[issue13613] Small error in regular expression poker hand example

2011-12-16 Thread Ezio Melotti
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

[issue13618] bytes.decode() UnicodeEncodeError on Apple iOS (>16-bit) characters

2011-12-16 Thread Ezio Melotti
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

[issue13619] Add a new codec: "locale", the current locale encoding

2011-12-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Unicode nosy: +ezio.melotti, lemburg stage: -> patch review type: -> enhancement ___ Python tracker <http://bugs.python.org/i

[issue13610] On Python parsing numbers.

2011-12-17 Thread Ezio Melotti
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. &

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> collinwinter components: +Unicode nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue13621> ___ _

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue13623> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13610] On Python parsing numbers.

2011-12-17 Thread Ezio Melotti
Ezio Melotti added the comment: I'll close this then. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pyth

[issue13387] suggest assertIs(type(obj), cls) for exact type checking

2011-12-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed type: behavior -> enhancement ___ Python tracker <http://bugs.python

[issue3932] HTMLParser cannot handle '&' and non-ascii characters in attribute names

2011-12-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: behavior -> enhancement ___ Python tracker <http://bugs.pytho

[issue13576] Handling of broken condcoms in HTMLParser

2011-12-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed type: behavior -> enhancement ___ Python tracker <http://bugs.python

[issue13633] Handling of hex character references in HTMLParser.handle_charref

2011-12-18 Thread Ezio Melotti
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

[issue11105] Compiling evil ast crashes interpreter

2011-12-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +None stage: -> test needed versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue11105> ___ ___ Py

[issue7338] recursive __attribute__ -> Fatal Python error: Cannot recover from stack overflow.

2011-12-24 Thread Ezio Melotti
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

[issue1953] Compact int and float freelists

2011-12-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: -BreamoreBoy versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue1953> ___ ___ Python-bugs-list m

[issue13413] time.daylight incorrect behavior in linux glibc

2011-12-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +amaury.forgeotdarc ___ Python tracker <http://bugs.python.org/issue13413> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11977] Document int.conjugate, .denominator, ...

2011-12-24 Thread Ezio Melotti
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

[issue7098] g formatting for decimal types should always strip trailing zeros.

2011-12-24 Thread Ezio Melotti
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

[issue13294] http.server: minor code style changes.

2011-12-24 Thread Ezio Melotti
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

[issue13662] os.listdir bug

2011-12-25 Thread Ezio Melotti
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

[issue13662] os.listdir bug

2011-12-25 Thread Ezio Melotti
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

[issue13663] pootle.python.org is outdated.

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue13663> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> enhancement ___ Python tracker <http://bugs.python.org/issue13665> ___ ___

[issue13695] "type specific" to "type-specific"

2012-01-02 Thread Ezio Melotti
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

[issue13706] Unicode fill characters no longer work in numeric formatting

2012-01-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue13706> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8416] python 2.6.5 documentation can't search

2012-01-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue8416> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13711] html.parser.HTMLParser doesn't parse tags in comments in scripts correctly

2012-01-04 Thread Ezio Melotti
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>

[issue13715] typo in unicodedata documentation

2012-01-05 Thread Ezio Melotti
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

[issue13717] print fails on unicode '\udce5' surrogates not allowed

2012-01-05 Thread Ezio Melotti
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

[issue13718] Format Specification Mini-Language does not accept comma for percent value

2012-01-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.smith, ezio.melotti ___ Python tracker <http://bugs.python.org/issue13718> ___ ___ Python-bugs-list mailing list Unsub

[issue12415] Missing: How to checkout the Doc sources

2012-01-06 Thread Ezio Melotti
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

[issue12415] Missing: How to checkout the Doc sources

2012-01-06 Thread Ezio Melotti
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

[issue13691] pydoc help (or help('help')) claims to run a help utility; does nothing

2012-01-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> behavior ___ Python tracker <http://bugs.python.org/issue13691> ___ ___

[issue13767] Would be nice to have a future import that turned off old except style

2012-01-11 Thread Ezio Melotti
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

[issue13763] rm obsolete reference in devguide

2012-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: If 'program' refers to the executable, the sentence is still valid. -- type: -> enhancement ___ Python tracker <http://bugs.pytho

[issue12140] Crash upon start up

2011-05-22 Thread Ezio Melotti
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. -- __

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-05-22 Thread Ezio Melotti
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

[issue12154] PyDoc Partial Functions

2011-05-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue12154> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12074] regrtest: display the current number of failures

2011-05-23 Thread Ezio Melotti
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: ->

[issue12162] Documentation about re \number

2011-05-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue12162> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12173] PyImport_ImportModuleLevel doesn't have 'const' on its argument

2011-05-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +needs review nosy: +brett.cannon, haypo stage: -> patch review ___ Python tracker <http://bugs.python.org/issu

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-26 Thread Ezio Melotti
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

[issue12193] Argparse does not work together with gettext and non-ASCII help text

2011-05-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +bethard type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue12193> ___ ___ Python-bugs-list mai

[issue12192] Doc that collection mutation methods return item or None

2011-05-27 Thread Ezio Melotti
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

[issue12188] PEP 7, C style: add ++ policy and explanation

2011-05-28 Thread Ezio Melotti
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

[issue11906] test_argparse failure in interactive mode

2011-05-28 Thread Ezio Melotti
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

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Ezio Melotti
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

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Ezio Melotti
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

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue12170> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9382] os.popen referenced but not documented in Python 3.x

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue9382> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10224] Build 3.x documentation using python3.x

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue10224> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10225] Fix doctest runable examples in python manual

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue10225> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Ezio Melotti
Ezio Melotti added the comment: That would be c4ddb460f4f2. -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue12106> ___ ___ Python-bug

[issue12185] Decimal documentation lists "first" and "second" arguments, should be "self" and "other"

2011-05-28 Thread Ezio Melotti
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

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue10449> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12185] Decimal documentation lists "first" and "second" arguments, should be "self" and "other"

2011-05-28 Thread Ezio Melotti
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

[issue12162] Documentation about re \number

2011-05-28 Thread Ezio Melotti
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

[issue12134] json.dump much slower than dumps

2011-05-28 Thread Ezio Melotti
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

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +georg.brandl stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue11975> ___ ___ Python-

[issue12134] json.dump much slower than dumps

2011-05-29 Thread Ezio Melotti
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

[issue12204] str.upper converts to title

2011-05-29 Thread Ezio Melotti
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

[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-06-01 Thread Ezio Melotti
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

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Ezio Melotti
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

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Ezio Melotti
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

[issue12270] Please update copyright notice on bugs.python.org to 2011?

2011-06-06 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue12270> ___ ___ Python-bugs-list mai

[issue12270] Please update copyright notice on bugs.python.org to 2011?

2011-06-06 Thread Ezio Melotti
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

[issue12188] PEP 7, C style: add ++ policy and explanation

2011-06-07 Thread Ezio Melotti
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

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-07 Thread Ezio Melotti
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

[issue12286] float('nan') breaks sort() method on a list of floats

2011-06-08 Thread Ezio Melotti
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

[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-06-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue12301> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12298] Sphinx glitch in library/functions

2011-06-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- dependencies: +Fix referencing of built-in types (list, int, ...) ___ Python tracker <http://bugs.python.org/issue12298> ___ ___ Pytho

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-09 Thread Ezio Melotti
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. -- __

[issue11375] urllib2 over SOCKS doesn't use proxy for DNS

2011-06-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue11375> ___ ___ Python-bugs-list mailing list Unsubscri

<    1   2   3   4   5   6   7   8   9   10   >