[Python-Dev] status of absolute_import w/ python 2.7
Hi there, the documentation state that absolute_import feature is the default behaviour with python 2.7, though it seems that it behave differently with the __future__ import : $ cat package/__init__.py import subpackage $ python2.7 Python 2.7.1+ (default, Apr 20 2011, 22:33:39) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import package >>> $ cat package/__init__.py from __future__ import absolute_import import subpackage $ python2.7 Python 2.7.1+ (default, Apr 20 2011, 22:33:39) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import package Traceback (most recent call last): File "", line 1, in File "package/__init__.py", line 23, in import subpackage ImportError: No module named subpackage Maybe the doc should be fixed ? -- Sylvain Thénault LOGILAB, Paris (France) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework:http://www.cubicweb.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Summary of Python tracker Issues
ACTIVITY SUMMARY (2011-07-01 - 2011-07-08) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open2857 ( +7) closed 21444 (+45) total 24301 (+52) Open issues with patches: 1243 Issues opened (33) == #10898: posixmodule.c redefines FSTAT http://bugs.python.org/issue10898 reopened by alanh #12472: Build failure on IRIX http://bugs.python.org/issue12472 opened by kais58 #12476: ctypes: need example how to pass raw data from Python http://bugs.python.org/issue12476 opened by techtonik #12478: Possible error in HTTPErrorProcessor documentation http://bugs.python.org/issue12478 opened by sandro.tosi #12479: Add HTTPErrorProcessor class definition http://bugs.python.org/issue12479 opened by sandro.tosi #12480: urllib2 doesn't use proxy (fieddler2), configed the proxy with http://bugs.python.org/issue12480 opened by Or.Wilder #12483: CThunkObject_dealloc should call PyObject_GC_UnTrack? http://bugs.python.org/issue12483 opened by rfk #12484: The Py_InitModule functions no longer exist, but remain in the http://bugs.python.org/issue12484 opened by alejolp #12485: textwrap.wrap: new argument for more pleasing output http://bugs.python.org/issue12485 opened by parent5446 #12486: tokenize module should have a unicode API http://bugs.python.org/issue12486 opened by Devin Jeanpierre #12488: multiprocessing.Connection does not communicate pipe closure b http://bugs.python.org/issue12488 opened by lcampagn #12489: email.errors.HeaderParseError if base64url is used http://bugs.python.org/issue12489 opened by guettli #12491: Update glossary documentation for the term 'attribute' http://bugs.python.org/issue12491 opened by orsenthil #12494: subprocess: check_output() doesn't close pipes on error http://bugs.python.org/issue12494 opened by haypo #12495: Rewrite InterProcessSignalTests http://bugs.python.org/issue12495 opened by haypo #12498: asyncore.dispatcher_with_send, disconnection problem + miss-co http://bugs.python.org/issue12498 opened by François-Xavier.Bourlet #12499: textwrap.wrap: add control for fonts with different character http://bugs.python.org/issue12499 opened by parent5446 #12500: Skip test_ssl.test_connect_ex() on connection error http://bugs.python.org/issue12500 opened by haypo #12502: 100% cpu usage when using asyncore with UNIX socket http://bugs.python.org/issue12502 opened by Alexey.Agapitov #12503: "with" statement error message is more confusing in Py2.7 http://bugs.python.org/issue12503 opened by Ismael.Garrido #12506: NIS module cant handle multiple NIS map entries for the same G http://bugs.python.org/issue12506 opened by bjorn.lofdahl #12507: tkSimpleDialog problem http://bugs.python.org/issue12507 opened by rzn8tr #12508: Codecs Anomaly http://bugs.python.org/issue12508 opened by spatz123 #12509: test_gdb fails on debug build when builddir != srcdir http://bugs.python.org/issue12509 opened by dmalcolm #12510: IDLE get_the_calltip mishandles raw strings http://bugs.python.org/issue12510 opened by Roy.Fox #12512: codecs: StreamWriter issues with stateful codecs after a seek http://bugs.python.org/issue12512 opened by haypo #12513: codec.StreamReaderWriter: issues with interlaced read-write http://bugs.python.org/issue12513 opened by haypo #12514: timeit disables garbage collection if timed code raises an exc http://bugs.python.org/issue12514 opened by Gareth.Rees #12515: email modifies the message structure when the parsed email is http://bugs.python.org/issue12515 opened by xavierd #12516: imghdr.what should take one argument http://bugs.python.org/issue12516 opened by jfinkels #12517: Large file support on Windows: sizeof(off_t) is 32 bits http://bugs.python.org/issue12517 opened by haypo #12518: In string.Template it's impossible to transform delimiter in t http://bugs.python.org/issue12518 opened by py.user #12519: Call next version 3.3.0 http://bugs.python.org/issue12519 opened by eric.araujo Most recent 15 issues with no replies (15) == #12519: Call next version 3.3.0 http://bugs.python.org/issue12519 #12518: In string.Template it's impossible to transform delimiter in t http://bugs.python.org/issue12518 #12516: imghdr.what should take one argument http://bugs.python.org/issue12516 #12515: email modifies the message structure when the parsed email is http://bugs.python.org/issue12515 #12513: codec.StreamReaderWriter: issues with interlaced read-write http://bugs.python.org/issue12513 #12510: IDLE get_the_calltip mishandles raw strings http://bugs.python.org/issue12510 #12509: test_gdb fails on debug build when builddir != srcdir http://bugs.python.org/issue12509 #12506: NIS module cant handle multiple NIS map entries for the same G http://bugs.python.org/issue12506 #12498: asyncore.dispatcher_with_send, disconnect