[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue20611
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 :-)

--
nosy: +flox

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18622
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: not, in, and, not and in
In the second form, you find only 3 operators: not in, and, is not


Of course CPython does internal optimization, and it compiles both expressions 
to the same bytecode.

However the second form is more readable and less error-prone. It is plain 
English.

I propose to add such advice to the section Programming Recommendations of 
PEP 8.

--
assignee: docs@python
components: Documentation
messages: 218837
nosy: barry, docs@python, flox, ncoghlan
priority: normal
severity: normal
status: open
title: PEP 8 should recommend is not and not in
type: enhancement

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21540
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 will be raised in any other case.

Reading only this documentation, if the developer doesn't have a test platform 
on Windows, he could blindly write:

try:
signal.signal(signal.SIGPIPE, lambda signum, frame: sys.exit(1))
except ValueError:
pass

... until a Windows user detects the issue (thank you rsevcan)


Now I just found this page which is relevant here ... either we could link to 
the page in a See also section, or give an hint about which signals are 
defined or not.
http://msdn.microsoft.com/en-us/library/xdkz3x12.aspx

--
components:  -Library (Lib)
priority: normal - low
versions: +Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21382
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/issue21364
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-1.4.5-py2.6.egg/erppeek.py, line 
894, in wrapper
return self.execute(obj, method, *params, **kwargs)
  File /srv/openerp/.buildout/eggs/ERPpeek-1.4.5-py2.6.egg/erppeek.py, line 
636, in execute
res = self._execute(obj, method, *params)
  File /srv/openerp/.buildout/eggs/ERPpeek-1.4.5-py2.6.egg/erppeek.py, line 
361, in lambda
wrapper = lambda s, *args: s._dispatch(name, args)
  File /usr/lib/python2.6/xmlrpclib.py, line 1489, in __request
verbose=self.__verbose
  File /usr/lib/python2.6/xmlrpclib.py, line 1235, in request
self.send_content(h, request_body)
  File /usr/lib/python2.6/xmlrpclib.py, line 1349, in send_content
connection.endheaders()
  File /usr/lib/python2.6/httplib.py, line 908, in endheaders
self._send_output()
  File /usr/lib/python2.6/httplib.py, line 780, in _send_output
self.send(msg)
  File /usr/lib/python2.6/httplib.py, line 739, in send
self.connect()
  File /usr/lib/python2.6/httplib.py, line 1112, in connect
sock = socket.create_connection((self.host, self.port), self.timeout)
  File /usr/lib/python2.6/socket.py, line 561, in create_connection
raise error, msg
socket.error: [Errno 4] Interrupted system call



It seems that the EINTR should be caught by the standard library in all cases: 
http://bugs.python.org/issue1628205

But it's not the case for the socket.create_connection method (verified in 
3.3 and 2.7 source code).

--
components: IO, Library (Lib)
messages: 211095
nosy: flox
priority: normal
severity: normal
status: open
title: socket.create_connection() doesn't handle EINTR properly
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20611
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/issue17825
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--
assignee: docs@python
components: Documentation
messages: 208277
nosy: docs@python, flox
priority: low
severity: normal
status: open
title: add predicate to the glossary
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20280
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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('x' * 1010)   # ResourceWarning
test_fieldstorage.py:29: ResourceWarning: unclosed file _io.BufferedRandom 
name=3
  check('x' * (maxline - 1))  # ResourceWarning

--
components: Library (Lib)
files: test_fieldstorage.py
messages: 192530
nosy: flox, orsenthil, serhiy.storchaka
priority: normal
severity: normal
status: open
title: cgi.FieldStorage triggers ResourceWarning sometimes
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30837/test_fieldstorage.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18394
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 test --randseed 1234 does not randomize tests
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18375
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 6 2013, 10:20:02) [GCC 4.2.1 
(Apple Inc. build 5666) (dot 3)]
==   Darwin-10.8.0-x86_64-i386-64bit little-endian
==   /Volumes/DATA/pydev/cpython/build/test_python_56822 (1 process)
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=1, 
verbose=0, bytes_warning=2, quiet=0, hash_randomization=1)
Using random seed 9023960
[  1/375] test_epoll
[  2/375] test_tokenize
...

== CPython 3.4.0a0 (default:6d278f426417, Jul 6 2013, 10:20:02) [GCC 4.2.1 
(Apple Inc. build 5666) (dot 3)]
==   Darwin-10.8.0-x86_64-i386-64bit little-endian
==   /Volumes/DATA/pydev/cpython/build/test_python_56826 (4 processes)
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, 
dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=1, 
verbose=0, bytes_warning=2, quiet=0, hash_randomization=1)
Using random seed 9023960
[  1/375] test_epoll
[  2/375] test_tokenize
...

--
components: Tests
messages: 192408
nosy: flox
priority: normal
severity: normal
stage: needs patch
status: open
title: show the effective count of process when running the testsuite
type: enhancement
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18376
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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()

c_warnings = support.import_fresh_module('warnings', fresh=['_warnings'])

saved == warnings.filters
# -- False

--
components: Tests
messages: 192441
nosy: flox
priority: low
severity: normal
stage: needs patch
status: open
title: test_warnings modifies warnings.filters when running with -W default
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18383
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

Explanation: the default filter is duplicated on each reload of the warnings 
module.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18383
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/issue18383
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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) 
where the resource is truncated on 304 Not Modified.
(the resource was a CSS file in that case)

This is loosely related to http://bugs.python.org/issue3839.


# How to reproduce:

def test_304():
import time
from email.utils import formatdate
from wsgiref.simple_server import make_server

def demo_app(environ, start_response):
if 'HTTP_IF_MODIFIED_SINCE' in environ:
start_response(304 Not Modified, [])
return []
headers = [('Content-Type', 'text/html; charset=utf-8'),
   ('Last-Modified', formatdate(time.time(), usegmt=True))]
start_response(200 OK, headers)
return [Hello World!]

httpd = make_server('127.0.0.1', 8000, demo_app)
sa = httpd.socket.getsockname()
print(Serving HTTP on %s port %s ... % sa)
httpd.serve_forever()

if __name__ == '__main__':
test_304()

--
components: Library (Lib)
messages: 190352
nosy: flox, pitrou, pje
priority: normal
severity: normal
status: open
title: wsgiref sets Content-Length: 0 on 304 Not Modified
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 import escape as html; from cgi import 
escape; s = repr(copyright) h = html(s)
1 loops, best of 3: 48.7 usec per loop
$ python3 -m timeit -s from html import escape as html; from cgi import 
escape; s = repr(copyright) * 19 h = html(s)
1000 loops, best of 3: 898 usec per loop

With cgi.escape:

$ python3 -m timeit -s from html import escape as html; from cgi import 
escape; s = repr(copyright) h = escape(s)
10 loops, best of 3: 7.42 usec per loop
$ python3 -m timeit -s from html import escape as html; from cgi import 
escape; s = repr(copyright) * 19 h = escape(s)
1 loops, best of 3: 21.5 usec per loop


Since this kind of function is called frequently in template engines, it makes 
a difference.
Of course C replacements are available on PyPI: MarkupSafe or Webext

But it would be nice to restore the performance of cgi.escape with a pragmatic 
`.replace(` approach.

--
components: Library (Lib)
messages: 189641
nosy: ezio.melotti, flox, orsenthil
priority: normal
severity: normal
status: open
title: html.escape 10x slower than cgi.escape
type: performance
versions: Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18020
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue18020
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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,
 line 592, in __setitem__
self.__set(key, rval, cval)
  File 
/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py,
 line 585, in __set
M.set(key, real_value, coded_value)
  File 
/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py,
 line 459, in set
if  != translate(key, idmap, LegalChars):
  File 
/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/string.py,
 line 493, in translate
return s.translate(table, deletions)
TypeError: translate() takes exactly one argument (2 given)



The documentation don't say it's not supported.
And the error TypeError seems not appropriate.

--
components: Library (Lib)
messages: 189595
nosy: flox
priority: normal
severity: normal
status: open
title: cannot assign unicode keys to SimpleCookie
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/stdtypes.html#str.translate

--
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18012
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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=submit-name

   Larry
   --AaB03x
   Content-Disposition: form-data; name=files
   Content-Type: multipart/mixed; boundary=BbC04y

   --BbC04y
   Content-Disposition: file; filename=file1.txt
   Content-Type: text/plain

   ... contents of file1.txt ...
   --BbC04y
   Content-Disposition: file; filename=file2.gif
   Content-Type: image/gif
   Content-Transfer-Encoding: binary

   ...contents of file2.gif...
   --BbC04y--
   --AaB03x--

(broken) test attached.

--
components: Library (Lib)
files: test_multipart_w3.diff
keywords: patch
messages: 189609
nosy: flox, orsenthil
priority: normal
severity: normal
status: open
title: cgi.FieldStorage does not parse W3C sample
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file30313/test_multipart_w3.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18013
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/issue18013
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/pilami.py, line 2, in module
from .houba import bi
SystemError: Parent module '' not loaded, cannot perform relative import


In Python 3.2 (or Python 2.7):

./python3.2 marsu/pilami.py

Traceback (most recent call last):
  File marsu/pilami.py, line 2, in module
from .houba import bi
ValueError: Attempted relative import in non-package

--
components: Interpreter Core
keywords: 3.3regression
messages: 189630
nosy: brett.cannon, eric.snow, flox, ncoghlan
priority: normal
severity: normal
status: open
title: SystemError: Parent module '' not loaded, cannot perform relative import
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18018
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:`.

--
assignee: docs@python
components: Documentation
messages: 188349
nosy: docs@python, flox
priority: normal
severity: normal
status: open
title: bytes should be listed as built-in function for 2.7
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17904
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the 
exact position.

--
Added file: http://bugs.python.org/file30033/issue17825_cases.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue17825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in the source code.

--
Added file: http://bugs.python.org/file30038/test_traceback_caret.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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('except IOError:')
except Exception as e:
report(e)

try:
exec('open(filepath)')
except Exception as e:
report(e)


** OUTPUT **
lineno 1, offset 6
Traceback (most recent call last):
  File stdin, line 4, in module
  File stdin, line 2, in module
  File string, line 1
except IOError:
 ^
SyntaxError: invalid syntax

lineno 1, offset 4
Traceback (most recent call last):
  File stdin, line 4, in module
  File stdin, line 2, in module
  File string, line 1
open(filepath)
^
IndentationError: unexpected indent


** Analysis **

Case (1): offset is 6, and caret is below column 5 for SyntaxError
Case (2): offset is 4, and caret is below column 4 for IndentationError

--
messages: 187690
nosy: flox
priority: normal
severity: normal
status: open
title: Indentation.offset and SyntaxError.offset mismatch
type: behavior
versions: Python 2.7, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7475
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/rfc4648

* About rot13: the same code can be used for encoding and decoding
  http://www.catb.org/~esr/jargon/html/R/rot13.html

* The Huffman coding is an entropy encoding algorithm (used for DEFLATE)
  http://en.wikipedia.org/wiki/Huffman_coding

* RFC 2616 lists (zlib's) deflate or gzip as encoding transformations
  http://tools.ietf.org/html/rfc2616#section-3.5


However, I acknowledge that there are valid reasons to choose a different verb 
too.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7475
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 s.isidentifier() and not iskeyword(s)
... 
 is_valid_identifier('def')
False

--
nosy: +flox

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17447
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, which should check the 
unicodedata.category or better, check with method str.isidentifier.

--
nosy: +flox
versions: +Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17331
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: not a decimal
 

Changing the title to focus on the issue with collections.namedtuple.

--
components: +Library (Lib)
title: Fix str methods for detecting digits with unicode - namedtuple raises a 
SyntaxError instead of ValueError on invalid identifier
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17331
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   6   7   8   9   10   >