[issue21161] list comprehensions don't see local variables in pdb in python3

2014-12-02 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21161 ___ ___ Python-bugs-list

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2014-12-02 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14134

[issue17554] Compact output for regrtest

2014-07-05 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17554 ___ ___ Python-bugs-list

[issue15974] Optional compact and colored output for regrest

2014-07-05 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- superseder: Optional compact and colored output for regrest - Compact output for regrtest ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15974

[issue20898] Missing 507 response description

2014-07-05 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20898 ___ ___ Python-bugs-list

[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

2014-07-05 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15025 ___ ___ Python-bugs-list

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2014-07-02 Thread Florent Xicluna
Florent Xicluna added the comment: The patch proposed by Christian addresses the issue. Good to merge. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18099

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Florent Xicluna
Florent Xicluna added the comment: @meishao Previous comments answer your question : http://bugs.python.org/issue20611#msg218836 http://bugs.python.org/issue20611#msg218841 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-05-25 Thread Florent Xicluna
Florent Xicluna added the comment: I've been bitten by this issue with a custom psycopg2 mock. cur = mock.Mock() cur.connection.cursor.return_value = cur cur.reset_mock() RuntimeError: maximum recursion depth exceeded the patch looks ok, except the mix of tab and spaces

[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional

2014-05-23 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21356 ___ ___ Python-bugs-list

[issue15293] AST nodes do not support garbage collection

2014-05-22 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15293 ___ ___ Python-bugs-list

[issue21540] PEP 8 should recommend is not and not in

2014-05-20 Thread Florent Xicluna
New submission from Florent Xicluna: Python accepts both syntaxes: if not item in some_list and not item is None: return item and if item not in some_list and item is not None: return item In the first form, you identify 5 operators

[issue21540] PEP 8 should recommend is not and not in

2014-05-20 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- assignee: docs@python - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21540

[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-05-19 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546 ___ ___ Python-bugs-list

[issue2506] Add mechanism to disable optimizations

2014-05-19 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list

[issue21408] delegation of `!=` to the right-hand side argument is not always done

2014-05-01 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21408 ___ ___ Python-bugs-list

[issue21382] Signal module doesnt raises ValueError Exception

2014-04-29 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +Library (Lib), Windows nosy: +flox type: enhancement - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21382

[issue21382] Signal module doesnt raises ValueError Exception

2014-04-29 Thread Florent Xicluna
Florent Xicluna added the comment: It's about documentation only. The sentence is not wrong, but it is slightly confusing, and there's no hint which signals are defined on Windows. On Windows, signal() can only be called with SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, or SIGTERM. A ValueError

[issue18472] Update PEP 8 to encourage modern conventions

2014-04-28 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18472 ___ ___ Python-bugs-list

[issue21364] Documentation Recommends Broken Pattern

2014-04-27 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +IO nosy: +benjamin.peterson, flox, hynek, pitrou, stutzbach type: - behavior versions: +Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http

[issue21362] concurrent.futures does not validate that max_workers is proper

2014-04-27 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox stage: - patch review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21362

[issue11380] Improve reporting of broken stdout pipe during interpreter shutdown

2014-04-18 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11380 ___ ___ Python-bugs-list

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2014-04-18 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- keywords: +3.4regression nosy: +flox type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21295

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list

[issue21235] importlib's spec module create algorithm is not exposed

2014-04-15 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21235

[issue21202] Naming a file` io.py` causes cryptic error message

2014-04-12 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21202 ___ ___ Python-bugs-list

[issue21082] os.makedirs(exist_ok=True) is not thread-safe: umask is set temporary to 0, serious security problem

2014-03-28 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21082 ___ ___ Python-bugs-list

[issue672115] Assignment to __bases__ of direct object subclasses

2014-03-13 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue672115

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-23 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19081 ___ ___ Python-bugs-list

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-02-12 Thread Florent Xicluna
New submission from Florent Xicluna: I had this sporadic traceback in a project: File test.py, line 62, in module result = do_lqs(client, str(dnvn)) File test.py, line 25, in do_lqs qualif_service_id = client.create('ti.qualif.service', {}) File /srv/openerp/.buildout/eggs/ERPpeek

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-02-12 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +gregory.p.smith, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20611

[issue20280] add predicate to the glossary

2014-01-21 Thread Florent Xicluna
Florent Xicluna added the comment: Then we can forget it. Thank you for your input. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20280

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2014-01-21 Thread Florent Xicluna
Florent Xicluna added the comment: Done. The alignment error with non-ASCII chars should be fixed too, thanks to the work of Serhiy on issue #2382. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +Interpreter Core nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20339

[issue20280] add predicate to the glossary

2014-01-16 Thread Florent Xicluna
New submission from Florent Xicluna: This term is used in various places in the documentation. http://docs.python.org/dev/search.html?q=predicate Probably it deserves an entry in the glossary, even if it is not specific to Python: http://en.wikipedia.org/wiki/Predicate_%28mathematical_logic%29

[issue19293] test_asyncio hanging for 1 hour (AIX version, hangs in test_subprocess_interactive)

2013-10-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19293 ___ ___ Python-bugs-list

[issue18394] cgi.FieldStorage triggers ResourceWarning sometimes

2013-07-07 Thread Florent Xicluna
New submission from Florent Xicluna: It happens when POSTing a file for example. When running the test suite: ./python.exe -m test test_cgi Or with the script attached: $ ./python test_fieldstorage.py test_fieldstorage.py:28: ResourceWarning: unclosed file _io.BufferedRandom name=3 check

[issue18013] cgi.FieldStorage does not parse W3C sample

2013-07-07 Thread Florent Xicluna
Florent Xicluna added the comment: Fix committed, with tests. -- resolution: - fixed status: open - closed versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18013

[issue18375] python -m test --randseed 1234 does not randomize tests

2013-07-06 Thread Florent Xicluna
New submission from Florent Xicluna: I noticed a minor issue with regrtest. IMHO it should assume --randomize when you pass --randseed. -- assignee: flox components: Tests messages: 192401 nosy: flox priority: normal severity: normal stage: needs patch status: open title: python -m

[issue18376] show the effective count of process when running the testsuite

2013-07-06 Thread Florent Xicluna
New submission from Florent Xicluna: It would be useful to display the number of processes used to run the test suite. (some buildbots have multiple -j on the command line, and it is unclear which one is effective) Proposal (on the third line): == CPython 3.4.0a0 (default:6d278f426417, Jul

[issue18376] show the effective count of process when running the testsuite

2013-07-06 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18376

[issue18376] show the effective count of process when running the testsuite

2013-07-06 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file30798/issue18376_regrtest_count_processes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18376

[issue18383] test_warnings modifies warnings.filters when running with -W default

2013-07-06 Thread Florent Xicluna
New submission from Florent Xicluna: Running the test suite with -Wd, we got the warning: [247/375] test_warnings Warning -- warnings.filters was modified by test_warnings This is how to reproduce: ./python -Wd import warnings from test import support saved = warnings.filters.copy

[issue18383] test_warnings modifies warnings.filters when running with -W default

2013-07-06 Thread Florent Xicluna
Florent Xicluna added the comment: Much simpler: $ ./python -Wd import warnings import sys saved = warnings.filters.copy() del sys.modules['warnings'] import warnings assert warnings.filters != saved assert warnings.filters.pop(0) = warnings.filters[0] assert warnings.filters == saved

[issue18383] test_warnings modifies warnings.filters when running with -W default

2013-07-06 Thread Florent Xicluna
Florent Xicluna added the comment: This patch fixes the issue. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file30817/issue18383_test_warnings_filters.diff ___ Python tracker rep...@bugs.python.org http

[issue18167] cgi.FieldStorage fails to handle multipart/form-data when \r\n appears at end of 65535 bytes without other newlines

2013-06-09 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18167 ___ ___ Python-bugs-list

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2013-05-30 Thread Florent Xicluna
New submission from Florent Xicluna: While testing wsgiref w.r.t RFC2616, I noticed that it sets the Content-Length to 0 when the application returns 304 Not Modified. This is a violation of RFC 2616 section 10.3.5. And the net effect is a weird bug with some browsers (tested with Chrome 27

[issue17844] Add link to alternatives for bytes-to-bytes codecs

2013-05-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17844 ___ ___ Python-bugs-list

[issue18020] html.escape 10x slower than cgi.escape

2013-05-20 Thread Florent Xicluna
New submission from Florent Xicluna: I noticed the convenient ``html.escape`` in Python 3.2 and ``cgi.escape`` is marked as deprecated. However, the former is an order of magnitude slower than the latter. $ python3 --version Python 3.3.2 With html.escape: $ python3 -m timeit -s from html

[issue16611] multiple problems with Cookie.py

2013-05-20 Thread Florent Xicluna
Florent Xicluna added the comment: Eric, this last one is not a bug in Cookie. This is a limitation with Python 2. See #18012. -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16611

[issue18020] html.escape 10x slower than cgi.escape

2013-05-20 Thread Florent Xicluna
Florent Xicluna added the comment: I would suggest you redo the test using timing done inside of the script after modules have been imported. The -s switch takes care of this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue2226] Small _abcoll Bugs / Oddities

2013-05-20 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2226 ___ ___ Python-bugs-list

[issue18012] cannot assign unicode keys to SimpleCookie

2013-05-19 Thread Florent Xicluna
New submission from Florent Xicluna: from Cookie import SimpleCookie cookie = SimpleCookie() cookie[u'apple'] = u'green' Traceback (most recent call last): File stdin, line 1, in module File /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py

[issue18012] cannot assign unicode keys to SimpleCookie

2013-05-19 Thread Florent Xicluna
Florent Xicluna added the comment: you're right, this behavior is documented. u'read this short text'.translate(None, 'aeiou') Traceback (most recent call last): File stdin, line 1, in module TypeError: translate() takes exactly one argument (2 given) http://docs.python.org/2/library

[issue18013] cgi.FieldStorage does not parse W3C sample

2013-05-19 Thread Florent Xicluna
New submission from Florent Xicluna: Trying to parse the W3C sample, it fails in 3.3 (while it passes on 2.7). http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4 (last example) Content-Type: multipart/form-data; boundary=AaB03x --AaB03x Content-Disposition: form-data; name

[issue18013] cgi.FieldStorage does not parse W3C sample

2013-05-19 Thread Florent Xicluna
Florent Xicluna added the comment: At first glance it seems related to rev d864328a74e4 , issue 4953 The check on self.bytes_read = self.length returns True because length == -1. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http

[issue18013] cgi.FieldStorage does not parse W3C sample

2013-05-19 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18013 ___ ___ Python

[issue18013] cgi.FieldStorage does not parse W3C sample

2013-05-19 Thread Florent Xicluna
Florent Xicluna added the comment: This seems to fix it. -- stage: needs patch - patch review Added file: http://bugs.python.org/file30314/patch_multipart_w3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18013

[issue18018] SystemError: Parent module '' not loaded, cannot perform relative import

2013-05-19 Thread Florent Xicluna
New submission from Florent Xicluna: When executing a submodule, there's a SystemError in 3.3 where we used to receive a ValueError. mkdir marsu touch marsu/__init__.py echo from .houba import bi marsu/pilami.py ./python marsu/pilami.py Traceback (most recent call last): File marsu

[issue17973] '+=' on a list inside tuple both succeeds and raises an exception

2013-05-14 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17973 ___ ___ Python-bugs-list

[issue17960] Clarify the required behaviour of locals()

2013-05-12 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17960 ___ ___ Python-bugs-list

[issue17934] Add a frame method to clear expensive details

2013-05-12 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17934 ___ ___ Python-bugs-list

[issue4831] exec() behavior - revisited

2013-05-07 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4831 ___ ___ Python-bugs-list

[issue17904] bytes should be listed as built-in function for 2.7

2013-05-04 Thread Florent Xicluna
New submission from Florent Xicluna: Looking into the summary table, there's no information about the `bytes` built-in alias for `str`: http://docs.python.org/2/library/functions.html IMHO it should appear in this table (as str, unicode, bytearray) with the appropriate `.. versionadded

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-30 Thread Florent Xicluna
Florent Xicluna added the comment: Patch updated with latest changes of trunk. -- Added file: http://bugs.python.org/file30081/patch_indenterror_offset_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17825

[issue17866] TestCase.assertItemsEqual exists in 2.7, not in 3.3

2013-04-29 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17866 ___ ___ Python-bugs-list

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2013-04-29 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10242 ___ ___ Python-bugs-list

[issue17867] Deleting __import__ from builtins can crash Python3

2013-04-29 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17867 ___ ___ Python-bugs-list

[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2013-04-29 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15535 ___ ___ Python-bugs-list

[issue17863] Bad sys.stdin assignment hangs interpreter.

2013-04-29 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox title: Bad sys.stdin assignment hands interpreter. - Bad sys.stdin assignment hangs interpreter. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17863

[issue16518] add buffer protocol to glossary

2013-04-28 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16518 ___ ___ Python-bugs-list

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-28 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +Interpreter Core, Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17825

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-27 Thread Florent Xicluna
Florent Xicluna added the comment: Hello again, actually, the attached script demonstrates some issues with the computation of the offset. In rare cases, the computed offset does not match the position of the caret '^' in the traceback. It makes it difficult to reuse exc.offset to display

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-27 Thread Florent Xicluna
Florent Xicluna added the comment: And this additional script (test_indenterror.py) demonstrates a different issue in the traceback module. -- Added file: http://bugs.python.org/file30034/test_indenterror.py ___ Python tracker rep...@bugs.python.org

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-27 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17825 ___ ___ Python

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-27 Thread Florent Xicluna
Florent Xicluna added the comment: The proposed patch deals with the case of the IndentationError in the traceback module. -- keywords: +patch resolution: works for me - Added file: http://bugs.python.org/file30036/patch_indenterror_offset.diff

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-27 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: Removed file: http://bugs.python.org/file30036/patch_indenterror_offset.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17825

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-27 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: Added file: http://bugs.python.org/file30037/patch_indenterror_offset.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17825

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-27 Thread Florent Xicluna
Florent Xicluna added the comment: The previous patch fixes some cases where the caret was wrongly positioned. However, there's probably stuff to fix in Python internals too. See attached test cases (test_traceback_caret.py) which demonstrates other issues with non-ASCII chars or tab

[issue17396] modulefinder fails if module contains syntax error

2013-04-27 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17396 ___ ___ Python-bugs-list

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2013-04-24 Thread Florent Xicluna
New submission from Florent Xicluna: I noticed a difference between computation of column offset for SyntaxError and IndentationError (a subclass of SyntaxError). It is slightly confusing. def report(exc): print('lineno %s, offset %s' % (exc.lineno, exc.offset)) raise try: exec

[issue17827] Document codecs.encode and codecs.decode

2013-04-24 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17827 ___ ___ Python-bugs-list

[issue17828] More informative error handling when encoding and decoding

2013-04-24 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17828 ___ ___ Python-bugs-list

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2013-04-23 Thread Florent Xicluna
Florent Xicluna added the comment: Another rant, because it matters to many of us: http://lucumr.pocoo.org/2012/8/11/codec-confusion/ IMHO, the solution to restore str.decode and bytes.encode and return TypeError for improper use is probably the most obvious for the average user

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2013-04-23 Thread Florent Xicluna
Florent Xicluna added the comment: I am not a native english speaker, but it seems that the common usage of encode/decode is wider than the restricted definition applied for Python 3.3: Some examples: * RFC 4648 specifies Base16, Base32, and Base64 Data Encodings http://tools.ietf.org/html

[issue17618] base85 encoding

2013-04-02 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17618 ___ ___ Python-bugs-list

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2013-04-01 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: -flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2013-04-01 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list

[issue15494] Move test/support.py into a test.support subpackage

2013-03-31 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15494 ___ ___ Python-bugs-list

[issue17546] Document the circumstances where the locals() dict get updated

2013-03-31 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17546 ___ ___ Python-bugs-list

[issue17441] Do not cache re.compile

2013-03-24 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17441 ___ ___ Python-bugs-list

[issue1602] windows console doesn't print or input Unicode

2013-03-24 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list

[issue8796] Deprecate codecs.open()

2013-03-24 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list

[issue5845] rlcompleter should be enabled automatically

2013-03-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5845 ___ ___ Python-bugs-list

[issue17447] str.identifier shouldn't accept Python keywords

2013-03-17 Thread Florent Xicluna
Florent Xicluna added the comment: According to the documentation, the reserved words are classified as identifiers: http://docs.python.org/3/reference/lexical_analysis.html#keywords There's an easy workaround: from keyword import iskeyword def is_valid_identifier(s): ... return

[issue17331] Fix str methods for detecting digits with unicode

2013-03-01 Thread Florent Xicluna
Florent Xicluna added the comment: Actually, the character is SUPERSCRIPT ONE, in the category No (Number other). http://www.fileformat.info/info/unicode/char/b9/index.htm This is not a valid category for the identifiers, only Nd Number decimal is accepted. The issue is probably in namedtuple

[issue17331] namedtuple raises a SyntaxError instead of ValueError on invalid identifier

2013-03-01 Thread Florent Xicluna
Florent Xicluna added the comment: This is consistent: '¹'.isnumeric(), '¹'.isdigit(), '¹'.isdecimal() (True, True, False) unicodedata.numeric('¹') 1.0 unicodedata.digit('¹') 1 unicodedata.decimal('¹') Traceback (most recent call last): File stdin, line 1, in module ValueError

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-02-22 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___ ___ Python-bugs-list

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2013-02-15 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list

[issue17143] trace.py uses _warn without importing it

2013-02-14 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: -Ronald.Chapman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17143 ___ ___ Python

  1   2   3   4   5   6   7   8   9   10   >