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
Changes by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<http://bugs.python.org/issue13237>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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
É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.
É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(
É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
É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
É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
É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
É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
É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
É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
É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
É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
É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
É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
É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
É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
É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
É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.
É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
Changes by Éric Araujo :
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue13244>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Éric Araujo :
--
nosy: +loewis, mhammond
___
Python tracker
<http://bugs.python.org/issue13276>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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.
Changes by Éric Araujo :
--
nosy: +eric.araujo, rhettinger
___
Python tracker
<http://bugs.python.org/issue13266>
___
___
Python-bugs-list mailing list
Unsub
Changes by Éric Araujo :
--
stage: -> test needed
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker
<http://bugs.python.org/issue13274>
___
_
É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
É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
Éric Araujo added the comment:
LGTM.
--
nosy: +eric.araujo
___
Python tracker
<http://bugs.python.org/issue13270>
___
___
Python-bugs-list mailing list
Unsub
É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
Changes by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<http://bugs.python.org/issue13263>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<http://bugs.python.org/issue11440>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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
É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
É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
É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
É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? (
É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.
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
É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?
--
É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
É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
É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
É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&
É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
É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
É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
É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
É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.
Éric Araujo added the comment:
Mark, can you give feedback?
--
nosy: +mhammond
___
Python tracker
<http://bugs.python.org/issue13320>
___
___
Python-bugs-list m
É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
Changes by Éric Araujo :
--
dependencies: +distutils doesn't byte-compile .py files to __pycache__ during
installation
___
Python tracker
<http://bugs.python.org/is
Éric Araujo added the comment:
Thanks. +0.
--
___
Python tracker
<http://bugs.python.org/issue13295>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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
Éric Araujo added the comment:
I wrote the same fix this night :)
--
___
Python tracker
<http://bugs.python.org/issue13307>
___
___
Python-bugs-list mailin
É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
É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
Changes by Éric Araujo :
--
resolution: -> fixed
stage: commit review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
É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
É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
É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
É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: +
Changes by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<http://bugs.python.org/issue13314>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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
É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
É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://
É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
É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
É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
É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>
___
___
Éric Araujo added the comment:
See also #13229.
--
___
Python tracker
<http://bugs.python.org/issue13033>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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
É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"
>
Éric Araujo added the comment:
s/and /and #13033/
--
___
Python tracker
<http://bugs.python.org/issue13229>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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
Changes by Éric Araujo :
--
resolution: -> duplicate
stage: patch review -> committed/rejected
status: open -> closed
superseder: -> Introspectable range objects
___
Python tracker
<http://bugs.python
Éric Araujo added the comment:
I think this is ready for commit.
--
nosy: +smarnach
___
Python tracker
<http://bugs.python.org/issue9896>
___
___
Python-bug
É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
Changes by Éric Araujo :
--
nosy: +rhettinger
___
Python tracker
<http://bugs.python.org/issue13290>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Éric Araujo :
--
assignee: docs@python -> eric.araujo
nosy: +eric.araujo
___
Python tracker
<http://bugs.python.org/issue13292>
___
___
Python-
É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
É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
É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
É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
É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
É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
Changes by Éric Araujo :
___
Python tracker
<http://bugs.python.org/issue11610>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/
É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
Éric Araujo added the comment:
Another nice API: http://feldboris.alwaysdata.net/blog/unittest-template.html
--
___
Python tracker
<http://bugs.python.org/issue7
Changes by Éric Araujo :
--
nosy: +loewis
___
Python tracker
<http://bugs.python.org/issue13341>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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
É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
É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
É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
É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
É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
É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
Changes by Éric Araujo :
--
nosy: +eric.araujo
___
Python tracker
<http://bugs.python.org/issue13298>
___
___
Python-bugs-list mailing list
Unsubscribe:
É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
É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
401 - 500 of 7440 matches
Mail list logo