[issue10510] distutils upload/register should use CRLF in HTTP requests

2011-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: duplicate -> stage: committed/rejected -> superseder: Factor out common code for d2 commands register, upload and upload_docs -> title: packaging upload/register should use CRLF in HTTP requests -> distutils upload/register should

[issue13237] subprocess docs should emphasise convenience functions

2011-10-22 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue13237> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13224] Change str(class) to return only the class name

2011-10-22 Thread Éric Araujo
Éric Araujo added the comment: Here’s the python-ideas thread: http://mail.python.org/pipermail/python-ideas/2011-October/thread.html#12459 -- ___ Python tracker <http://bugs.python.org/issue13

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-10-22 Thread Éric Araujo
Éric Araujo added the comment: FTR, distribute recently committed two fixes for the exe wrappers: https://bitbucket.org/tarek/distribute/issue/238 and https://bitbucket.org/tarek/distribute/issue/207 -- ___ Python tracker <http://bugs.python.

[issue1170] shlex have problems with parsing unicode

2011-10-22 Thread Éric Araujo
Éric Araujo added the comment: $ ./python Python 2.7.2+ (2.7:27ae7d4e1983+, Oct 23 2011, 00:09:06) [GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import shlex >>> shlex.split(

[issue1170] shlex have problems with parsing unicode

2011-10-22 Thread Éric Araujo
Éric Araujo added the comment: The second message in this page reports that StringIO.StringIO works, but when I pass a unicode string with non-ASCII chars there’s a method call that fails because of implicit unicode-to-str conversion: Traceback (most recent call last): File "/us

[issue13193] test_packaging and test_distutils failures

2011-10-24 Thread Éric Araujo
Éric Araujo added the comment: Spamlib-0.1.dist-info is in a directory on sys.path, so the error makes no sense to me. Can you inspect the content of that directory? (i.e os.listdir and file contents) Also, if you can interrupt the test to get a Python or pdb shell, could you try this

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-10-24 Thread Éric Araujo
Éric Araujo added the comment: > FYI: In pythonv, the build_scripts functionality provides identical support > for dotted > callables to what Éric proposed, while preserving existing functionality for > ordinary script > files. My current preference is to use only new-style ge

[issue13258] replace hasattr(obj, '__call__') with callable(obj)

2011-10-25 Thread Éric Araujo
Éric Araujo added the comment: This change is fine for packaging. In the 2.x backport I already use callable (and damn the py3k warning) and the 3.x backport uses the incorrect hasattr(inst, '__call__'); I’ll change that to use a backported d2.compa

[issue12618] py_compile cannot create files in current directory

2011-10-25 Thread Éric Araujo
Éric Araujo added the comment: I can reproduce in 3.2 and 3.3. I’ll commit a test and patch when I get the time, or another dev can take this over. -- ___ Python tracker <http://bugs.python.org/issue12

[issue13260] distutils and cross-compiling the extensions

2011-10-25 Thread Éric Araujo
Éric Araujo added the comment: Hi Alexander, Thanks for your interest in improving Python. I’m forced to reject your request because - Python 2.7 does not get new features (and support for cross-compilation would be one). - distutils does not get new features (we had to freeze it because

[issue9750] sqlite3 iterdump fails on column with reserved name

2011-10-25 Thread Éric Araujo
Éric Araujo added the comment: Hi Lucas. Have you read my previous message? The patch needs to be updated. Would you like to do it? -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue9

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-25 Thread Éric Araujo
Éric Araujo added the comment: > If we truly want to enable this by default, then the defaulting should be > moved to > configure. This will give a more accurate portrayal in sysconfig. This sounds good. (I know little about configure/pyconfig.h, but making sysconfig more accu

[issue13244] WebSocket schemes in urllib.parse

2011-10-25 Thread Éric Araujo
Éric Araujo added the comment: > # must always be escaped, both in path and query components. Agreed. This just follows from the Generic URI Syntax RFC, it’s not specific to WebSockets. > And further: urlparse should raise an exception upon unescaped # within URLs > from ws/ws

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-10-25 Thread Éric Araujo
Éric Araujo added the comment: > What about Windows support? Just like with distutils: the file extension is used, not the shebang. -- ___ Python tracker <http://bugs.python.org/issu

[issue10197] subprocess.getoutput fails on win32

2011-10-25 Thread Éric Araujo
Éric Araujo added the comment: > IMO, both should be deprecated: > - they're not cross-platform Isn’t the purpose of this report to fix that? :) > - they invoke the shell implicitly, which subprocess promises never to do One could argue that it’s not implicit if it’s documented

[issue13269] Document that "Remote hg repo" accepts remote branches

2011-10-26 Thread Éric Araujo
Éric Araujo added the comment: > I take care of this. Okay, as long as you don’t use Git terminology like “remote” :) -- components: +Devguide -Distutils ___ Python tracker <http://bugs.python.org/issu

[issue1011113] Make “install” find the build_base directory

2011-10-26 Thread Éric Araujo
Éric Araujo added the comment: Actually I think this bug can be fixed in distutils. -- components: +Distutils keywords: +easy resolution: remind -> stage: -> needs patch type: feature request -> behavior versions: +Python 2.7, Python 3.2, P

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Éric Araujo
Éric Araujo added the comment: anikom15, can you give me a URI to download the OS you used? I don’t know when I’ll be able to download Windows, but surely a linux-using OS will take less space and time to download and install in a VM

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Éric Araujo
Éric Araujo added the comment: I want to review the doc, but lack time right now. For example, one function signature in your patch uses keyword-only arguments but 2.7 doesn’t support them. -- ___ Python tracker <http://bugs.python.

[issue13244] WebSocket schemes in urllib.parse

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: > Is urlparse meant to follow the generic URI RFC? No, it predates it. > IMHO, the patch at least should do the equivalent of > urlparse.uses_fragment.extend(wsschemes) > so users of urlparse can do the checking for fragment != "", required

[issue13244] WebSocket schemes in urllib.parse

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue13244> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13276] distutils bdist_wininst created installer does not run the postinstallation script on uninstalling

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis, mhammond ___ Python tracker <http://bugs.python.org/issue13276> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13253] 2to3 fix_renames renames sys.maxint only in imports

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: Do people really import maxint from sys? I’d find that less readable than using sys.maxint —which should, if you ask me, also be replaced :) -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, rhettinger ___ Python tracker <http://bugs.python.org/issue13266> ___ ___ Python-bugs-list mailing list Unsub

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> test needed versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker <http://bugs.python.org/issue13274> ___ _

[issue13275] Recommend xml.etree for XML processing

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: It makes sense that SAX and DOM would be mentioned in the tutorial: SAX is similar to how HTMLParser works and is used in many languages; DOM is the official W3C API and is used in many languages, despite its ugliness. ElementTree is not a very elegant API in

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: I’d argue this is a behavior bug that could be fixed in 2.7 and 3.2 too, but Steven will decide. -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker <http://bugs.python.org/issue13

[issue13270] all classes are new style

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: LGTM. -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue13270> ___ ___ Python-bugs-list mailing list Unsub

[issue4945] json checks True/False by identity, not boolean value

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: I agree with the request. I don’t know if this behavior change can go into stable versions; Raymond will decide, as Bob seems to have retired from the maintenance of stdlib json. -- nosy: +eric.araujo, ezio.melotti, rhettinger

[issue13263] Group some os functions in submodules

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue13263> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11440] fix_callable should be dropped from lib2to3 / changed

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue11440> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12641] Remove -mno-cygwin from distutils

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: > Would it be practical to have a trivial compilation test to see if we > are capable of using GCC with -mno-cygwin and if so, use it, otherwise > drop off? I think GNU autotools uses a similar strategy for detecting > compiler capabilities. The co

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

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: distutils will not change. I’ll ask if removing the deprecation warnings is okay, otherwise they’ll stay. For ConfigParser.readfp, it would ease porting between 2.x and 3.x if the method could stay longer, or forever. -- nosy: +eric.araujo

[issue13224] Change str(class) to return only the class name

2011-10-28 Thread Éric Araujo
Éric Araujo added the comment: [Guido] > What's holding this up? - I haven’t updated the patch for function and module objects yet - I need to catch up with the python-ideas discussion - There is at least one strong argument against the idea (I’ll point it out on

[issue13238] Add shell command helpers to shutil module

2011-10-28 Thread Éric Araujo
Éric Araujo added the comment: The custom formatter idea sounds brilliant. Can you test that auto-escaping of spaces works well with glob patterns? -- ___ Python tracker <http://bugs.python.org/issue13

[issue13170] distutils2 test failures

2011-10-28 Thread Éric Araujo
Éric Araujo added the comment: > The remaining test > (test_command_install_data.InstallDataTestCase.test_simple_run) was > broken in r1152. This looks like a local revision number, which has no meaning outside of one specific repository. What is the changeset identifier? (

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: I’d rather fix the page (look at the diff to find one violation: the first heading is an h2 instead of h1) and use an HTML5 doctype, as it’s just HTML 4.01 + pragmatism. -- ___ Python tracker <http://bugs.python.

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker <http://bugs.python.org/issue13301> ___ ___ Pytho

[issue13238] Add shell command helpers to shutil module

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure my question was well phrased. If I have these files: spam.py ham.py foo bar.py will a pattern of '*.py' match all of them with your functions, even the one with an embedded space? --

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: > Here's a test for the bug. Thanks! Some comments are strange, but the patch is a good start. > One way to fix the symptom (maybe not the correct way) would be to edit > tarfile._Stream._init_write_gz I’d rather change distutils, not tarfile. I

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: > Here's the error message: > error: File not found: > /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyc Thanks. Some rpm tool is looking for byte-compiled files in the old locat

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: -def set_cdata_mode(self): +def set_cdata_mode(self, elem): Looks like an incompatible behavior change. Is it only an internal method that will never affect users’ code (even subclasses)? -- ___ Python

[issue9750] sqlite3 iterdump fails on column with reserved name

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: > Sure, I can have a try at it and address the issues you pointed out. Nice! > The URL to the guidelines you provided gives a 404. They’ve moved to http://docs.python.org/devguide meanwhile. > I wouldn't mind either adding to the test suite, but I&

[issue13295] Fix HTML produced by http.server

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: Okay. -- title: html5 template for Lib/http/server.py -> Fix HTML produced by http.server versions: +Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issu

[issue13170] distutils2 test failures

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: > When I do "import shutil" inside _backport/shutil.py You shouldn’t do that! Our backported module is fully stand-alone. I have fixed the bug with this change in install_data.py: -from shutil import Error +from distutils2._backport.shutil im

[issue3990] The Linux2 platform definition is incorrect for alpha, hppa, mips, sparc

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: A proposal by Martin in a python-dev email: > I'd generate four versions of CDROM.py (with differing names), and > provide a CDROM.py that imports the right one. -- keywords: +easy -patch stage: -&g

[issue13224] Change str(class) to return only the class name

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: I’ve updated my patch to handle modules and functions too, but there is a decision to make. The functions of built-in modules are implemented by methodobject.c, not functionobject.c (that’s for Python functions), so if we want str(sys.exc_info) to be equal to

[issue13307] bdist_rpm: INSTALLED_FILES does not use __pycache__

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: bdist_rpm uses the record option of install to create INSTALLED_FILES. install delegates to the get_output method of install_* commands to build its record. install_lib has buggy code that appends 'c' or 'o' instead of using imp functions.

[issue13320] _remove_visual_c_ref in distutils.msvc9compiler causes DLL load fail with embedded Python and multiple CRT versions

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: Mark, can you give feedback? -- nosy: +mhammond ___ Python tracker <http://bugs.python.org/issue13320> ___ ___ Python-bugs-list m

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: > This is what Firefox seems to do. I think more confidence would be good. Doesn’t the HTML5 spec define that? Have you found their test suite? Do you have more than one browser known to be compliant (trick: not sure there is even

[issue13307] bdist_rpm: INSTALLED_FILES does not use __pycache__

2011-11-02 Thread Éric Araujo
Changes by Éric Araujo : -- dependencies: +distutils doesn't byte-compile .py files to __pycache__ during installation ___ Python tracker <http://bugs.python.org/is

[issue13295] Fix HTML produced by http.server

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: Thanks. +0. -- ___ Python tracker <http://bugs.python.org/issue13295> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3173] external strftime for Python?

2011-11-02 Thread Éric Araujo
Éric Araujo added the comment: > Maybe rather than spending the effort maintaining a legacy API such as > strftime, someone could > look into implementing localized date formatting as defined by recent Unicode > standards: > http://unicode.org/reports/tr35/#Date_Format_Patter

[issue13307] bdist_rpm: INSTALLED_FILES does not use __pycache__

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: I wrote the same fix this night :) -- ___ Python tracker <http://bugs.python.org/issue13307> ___ ___ Python-bugs-list mailin

[issue13224] Change str(class) to return only the class name

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: > Please also see the proposed PEP 3155 I’ve seen it and like it. I assume you’re telling that we should consider str(cls/mod/func) to return the qname instead of the name? I think it could be good. My patch can wait for your PEP, or go in first and

[issue13331] Packaging cannot install resource directory trees specified in setup.cfg

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: Should be easy to add a test to reproduce this. -- assignee: tarek -> eric.araujo keywords: +easy priority: high -> normal stage: -> needs patch type: -> behavior versions: +3rd party ___ Python tr

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-11-03 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12120] test_packaging failure

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: I have improved packaging to be independent of -B/-O in http://hg.python.org/cpython/rev/dad02a080bbc. See commit message for rationale. -- assignee: tarek -> eric.araujo stage: -> committed/rejected versions: +3rd

[issue12119] test_distutils failure

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: I have changed packaging in dad02a080bbc to work even under -O or -B. packaging gives control over the creation of pyc and/or pyo files to the user with its own explicit options (--compile/--no-compile and --optimize 0/1/2), and the behavior should not change

[issue13317] building with 2to3 generates wrong import paths because build_ext is run after build_py

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: Hello and thanks for the report. > We need build_ext before build_py. Otherwise, when 2to3 is called (in > build_py), > it will not find ext modules, Why is 2to3 interested in extension modules? 2to3 converts Python code, extension modules are writte

[issue13316] build_py_2to3 does not convert when there was an error in the last run

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: > When I use build_py_2to3 and there is an error while converting a > file with 2to3, convert is skipped on the next run. I think build should stop with an error message if 2to3 fails. Do you agree? -- assignee: -> tarek components: +

[issue13314] ImportError ImportError: Import by filename, should be deferred until sys.meta_path hooks are processed

2011-11-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue13314> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11805] package_data only allows one glob per-package

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: > As far as I've been able to tell there is no proposed syntax in the docs > specifically for > package_data. Right. I’ve only found an example in d2’s own setup.cfg: package_data = distutils2._backport = sysconfig.cfg distutils2.command

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: > I’m not sure yet whether this is a bug or a new feature, but when python runs > from an > uninstalled build, I would like paths to refer to the source directory, not > the default > configure prefix. I need this fixed for packaging and it may

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: Buildbot passes, certainly thanks to the fix for #13307. -- assignee: tarek -> eric.araujo resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker <http://

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-11-03 Thread Éric Araujo
Éric Araujo added the comment: Hm, did I close this too hastily? The original report was not about the buildbot; does the buildbot run as a non-root user with the same version that was reported in the first message? If no, can someone try to reproduce the issue in the same conditions as

[issue13283] removal of two unused variable in locale.py

2011-11-04 Thread Éric Araujo
Éric Araujo added the comment: Our policy is to not commit code cleanup patches that are not strict bug fixes; see thread at http://mail.python.org/pipermail/python-dev/2011-October/114281.html and http://mail.python.org/pipermail/python-dev/2011-November/114301.html -- nosy

[issue12260] Make install default to user site-packages

2011-11-04 Thread Éric Araujo
Éric Araujo added the comment: With the raise of virtualenv and its inclusion in CPython for 3.3, this is even less a concern, even for UNIX. I’m withdrawing the idea and will continue to advertise --user and warn against sudo in documentation and other venues. -- assignee: tarek

[issue13204] sys.flags.__new__ crashes

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure it is useful to fix this bug. -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue13204> ___ ___

[issue13033] Add shutil.chowntree

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: See also #13229. -- ___ Python tracker <http://bugs.python.org/issue13033> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13033] Add shutil.chowntree

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: Tigger: Could you provide a patch for Python 3.3? (more info at http://docs.python.org/devguide/) -- ___ Python tracker <http://bugs.python.org/issue13

[issue13229] Add shutil.filter_walk

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: During the discussion about adding a chowntree function to shutil (http://mail.python.org/pipermail/python-dev/2011-May/111661.html and ), Victor suggested this: > I don't like the idea of a recursive flag. I would prefer a "map-like" >

[issue13229] Add shutil.filter_walk

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: s/and /and #13033/ -- ___ Python tracker <http://bugs.python.org/issue13229> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13200] Add start, stop and step attributes to range objects

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: The other bug is older and has more discussion, I’m closing this one as duplicate. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13200] Add start, stop and step attributes to range objects

2011-11-05 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: patch review -> committed/rejected status: open -> closed superseder: -> Introspectable range objects ___ Python tracker <http://bugs.python

[issue9896] Introspectable range objects

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: I think this is ready for commit. -- nosy: +smarnach ___ Python tracker <http://bugs.python.org/issue9896> ___ ___ Python-bug

[issue13290] get vars for object with __slots__

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: > You should attach diffs (context diffs, I believe) Nope, these are hard to read :) The universal diff format is the unified one. That’s also what Mercurial uses (see the devguide for more info on contributing). -- nosy: +eric.ara

[issue13290] get vars for object with __slots__

2011-11-05 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue13290> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13292] missing versionadded for bytearray

2011-11-05 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: docs@python -> eric.araujo nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue13292> ___ ___ Python-

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: Thanks, I’ll add the disable_cache call. Westley: I’ve installed Arch. Is there a command I can run to get zlib, openssl, gcc, make and all that, similar to “aptitude build-dep python3.2”? -- ___ Python tracker

[issue13193] test_packaging and test_distutils failures

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: I’ll open another reports for the possible bug in _generate_cache and for review of the other tests calling get_distribution. > Test test_install and test_command_install_data interference cache I’ve added checks in regrtest to make sure that each tests cle

[issue13204] sys.flags.__new__ crashes

2011-11-05 Thread Éric Araujo
Éric Araujo added the comment: Because the class of sys.flags is an implementation detail. Most people won’t try to instantiate it, IMO. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13224] Change str(class) to return only the class name

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: I misreported: dict.update is actually okay, but collections.Counter.update (a Python method) is a not an unbound method but a function (py3k-style). -- ___ Python tracker <http://bugs.python.org/issue13

[issue7071] distutils and IronPython compatibility

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: I think this change was wrong. Please see my rationale in http://bugs.python.org/issue12119. (BTW, I’d be surprised if byte compilation was the only compat issue with distutils and IronPython. For a start, sys.version[:3] is used to get the version number

[issue13193] test_packaging and test_distutils failures

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: [global variables] > one possible approach might be: Have those bindings be instance variables in > a Database class in > database.py, and have a module-level binding to an instance of it. Then, > tests can have their > own instance which

[issue11610] Improved support for abstract base classes with descriptors

2011-11-07 Thread Éric Araujo
Changes by Éric Araujo : ___ Python tracker <http://bugs.python.org/issue11610> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/

[issue13283] removal of two unused variable in locale.py

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: > Éric, thanks for paying attention to this. You’re welcome. I hope that my commits get reviewed too. > In this particular case, I checked the code and verified that the > variables were not used anywhere. Yep, I can’t imagine third-party code being

[issue7897] Support parametrized tests in unittest

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: Another nice API: http://feldboris.alwaysdata.net/blog/unittest-template.html -- ___ Python tracker <http://bugs.python.org/issue7

[issue13341] Incorrect documentation for "u" PyArg_Parse format unit

2011-11-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue13341> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13349] Uninformal error message in index() and remove() functions

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: > The good thing about this is ease of debugging. Exactly! +1 for the idea. > On the other hand, the repr of a value might be very long: You can restrict the length with % formats. > Also, all values don't have a very informal repr: Not your

[issue13349] Uninformal error message in index() and remove() functions

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: > There's also documentation and tests that depend on this actual error message: > Doc/library/doctest.rst: ValueError: list.remove(x): x not in list > Lib/test>/test_xml_etree.py:ValueError: list.remove(x): x not in list That’s a well-know

[issue7252] list().index() should provide better error reporting

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: > FWIW, quickly grepping through the raises of ValueErrors in the 2.6 > stdlib doesn't bring up any other usage of repeat-with-fake-variable-x. #13349 begs to differ :) -- nosy: +eric.araujo ___ Python tra

[issue13364] Duplicated code in decimal module

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. If I may offer recommendations about submitting bugs: - Know that stable branches don’t get code cleanups, only bug fixes, so you have to target 3.3 - Focused bugs (“code duplication in packaging commands”) are much better that over-broad

[issue13193] test_packaging and test_distutils failures

2011-11-07 Thread Éric Araujo
Éric Araujo added the comment: > By "flag" I mean _cache_generated_egg ("flag" as in Boolean value) Ah, I had forgotten this earlier message: > I get the opposite failure to Nadeem as far as > InstallDataTestCase.test_resources: it works on > Ubuntu 64-bit, b

[issue13294] http.server - HEAD request when no resource is defined.

2011-11-12 Thread Éric Araujo
Éric Araujo added the comment: Hi Karl, I’m not clear about what problem or need this report describes. Is it a proposition to add a new method for SimpleHTTPRequestHandler to handle HEAD requests? -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.1, Python 3.2

[issue13297] xmlrpc.client could accept bytes for input and output

2011-11-12 Thread Éric Araujo
Éric Araujo added the comment: I made comments on Rietveld but there was a glitch, I’m not sure the email was sent. -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue13

[issue13298] Result type depends on order of operands for bytes and bytearray

2011-11-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue13298> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13299] namedtuple row factory for sqlite3

2011-11-12 Thread Éric Araujo
Éric Araujo added the comment: > collections.namedtuple provides a much nicer interface than sqlite3.Row Definitely! -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issu

[issue13329] Runs normal as console script but falls as CGI

2011-11-12 Thread Éric Araujo
Éric Araujo added the comment: The contents are valid UTF-8; the problem does not seem related to PYTHONIOENCODING (run “python3.2 Test.py | cat” so that stdout is not a tty; this used to be buggy in 2.x, hence PYTHONIOENCODING, but in 3.x the encoding of stdout is UTF-8 even in a pipeline

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