Armin Rigo ar...@users.sourceforge.net added the comment:
Fwiw, a class with methods __long__ and __float__ but no method __int__ behaves
strangely in many other places; the canonical example is that calling
int(Foo(42)) will not work. In light of this, does it make sense for '%d' %
Foo(42)
Armin Rigo ar...@users.sourceforge.net added the comment:
I think this can then be considered a duplicate of issue #6727.
--
nosy: +arigo
resolution: wont fix - duplicate
status: - closed
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
What about providing a function that init would call to get this
information, instead of a hidden parameter?.
How would the function that init calls itself get the information,
without a hidden parameter?
--
title: Pass context
Martin v. Löwis mar...@v.loewis.de added the comment:
Indeed, PEP 8 mandates that constants be written in all uppercase, so changing
it would actually make it deviate from PEP 8. Also, using a lower-case variable
name string would be a bad choice because it collides with a module name.
Martin v. Löwis mar...@v.loewis.de added the comment:
If you *really* want to solve this problem, you could start working on making
Python release all memory at interpreter shutdown. Please understand that this
project may well take several years to complete, but it would help not only
your
Changes by Oleg Plakhotnyuk oleg...@gmail.com:
Removed file: http://bugs.python.org/file23678/test_aifc2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13394
___
Oleg Plakhotnyuk oleg...@gmail.com added the comment:
1. Test coverage increased to 95%.
2. G722 compressed files reading in aifc.py fixed (it used to use 0 bytes frame
size).
3. audioop's ulaw2lin, alaw2lin and adpcm2lin length checks fixed (width should
be used for output only, because input
Changes by Oleg Plakhotnyuk oleg...@gmail.com:
Removed file: http://bugs.python.org/file23677/test_aifc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13394
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3430
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
I thought about having another class, but I couldn't come up with a
decent name for it (ResponseWithCloseHook?).
If it’s used together with the base Response class (I don’t have the details in
memory anymore), you could try ClosingMixin or
Éric Araujo mer...@netwok.org added the comment:
#6533: Make test_xmlrpc_net functional in the absence of time.xmlrpc.com
#6027: test_xmlrpc_net fails when the ISP returns 302 Found
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
I agree with Mark. The Documenting Python docs were recently updated by
Raymond Hettinger to recommend not abusing notes and warnings, and the doc
maintainer Georg Brandl approved it: d5d91b14b238 (#12047).
--
nosy: +eric.araujo
Éric Araujo mer...@netwok.org added the comment:
Another way to fix this would be to use Sphinx 1.0 for Python 2.7, but I don’t
know what’s the status of that, given the amount of changes needed.
--
nosy: +eric.araujo, sandro.tosi
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Thanks for the updated patch. I made a review, you should have received an
email. When you make a new patch, it would be most helpful if you could make
one patch with code and tests changes, and then we’ll remove the old versions.
--
Éric Araujo mer...@netwok.org added the comment:
Hi Julian, thanks for your interest in improving Python and welcome! It is
Raymond who initially added these links, and I helped porting them between
versions. The criterion can be read in the commit message: “Provide links to
Python source
Éric Araujo mer...@netwok.org added the comment:
The patches I’ve discussed and committed were actually peripheral. The
original bug reported here is that shebangs shouldn’t use “/usr/bin/env python”
with an altinstall installation, as in that case you’re not creating a python
(or python3)
Oleg Plakhotnyuk oleg...@gmail.com added the comment:
Minor style fixes
--
Added file: http://bugs.python.org/file23734/test_aifc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13394
Changes by Oleg Plakhotnyuk oleg...@gmail.com:
Removed file: http://bugs.python.org/file23733/test_aifc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13394
___
Éric Araujo mer...@netwok.org added the comment:
No, I’m not talking about a rephrasing, but on a full change of meaning. I
don’t understand your use of “superclasses” at all; isinstance(x, T) checks if
x is an instance of T or any subclass, am I wrong?
--
Éric Araujo mer...@netwok.org added the comment:
This was fixed in 615a29295d5f.
--
resolution: accepted - fixed
stage: needs patch - committed/rejected
status: open - closed
title: shutil._make_tarball - shutil._make_tarball misses a guard against
loggger=None
Éric Araujo mer...@netwok.org added the comment:
This is still a bothersome issue, but we've taken to patching every version
of python
downstream before deploying them. All for a simple three line patch.
Sorry about the unsatisfactory situation. Could we start anew and define
exactly what
New submission from Oleg Plakhotnyuk oleg...@gmail.com:
I got following error when trying to delete outdated patch set:
Environment:
Request Method: POST
Request URL: http://bugs.python.org/review/13394/patchset/3680/delete
Django Version: 1.1.1 SVN-17047
Python Version: 2.5.2
Installed
New submission from Christopher Smith smi...@users.sourceforge.net:
The docstring example is written using onkey instead of onkeyrelease.
--
components: Library (Lib)
messages: 147995
nosy: smichr
priority: normal
severity: normal
status: open
title: turtle docstring for onkeyrelease
Éric Araujo mer...@netwok.org added the comment:
I’ve found a way to make sure error messages always bubble up *and* clean up
the ugly code in resolve_name, but it’s a rather drastic one. The idea is to
restrict the function to work only with names defined at the module level, not
Éric Araujo mer...@netwok.org added the comment:
Advice from Ezio Melotti:
I would keep the flags even if you don't need them
someone in the present or in the future might need them, and having them
doesn't harm
--
___
Python tracker
Jesús Cea Avión j...@jcea.es added the comment:
Python interpreter already have that information internally. The initial
proposal was to pass it to the init as an additional parameter. My suggestion
is to export it as a new function that the init can call if VERSION =3.3.
--
Ezio Melotti ezio.melo...@gmail.com added the comment:
Is To check for the exact type, use :func:`assertIs(type(obj), cls)
assertIs`. better?
I think the problem this solves is clear enough even without mentioning
sub/superclasses.
--
___
Python
Stefan Behnel sco...@users.sourceforge.net added the comment:
The problem with having that information internally is that it's currently
stored in local variables in the call chain from the dynamic library loader.
Passing that information on into a callable function, without passing it as an
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
grp.getgrgid() now calls .decode('utf8', errors=surrogateescape).
Even if cygwin does not correctly copy strings from the Windows registry,
tarinfo.gname should now contain a string that will at least round trip and
give the same value
Stefan Behnel sco...@users.sourceforge.net added the comment:
As MvL noted in his response to issue 13431, simply adding a parameter to the
module init function cannot safely be done before Python 4. So we are back to
the idea of passing the information through to the module creation function,
Jesús Cea Avión j...@jcea.es added the comment:
+1 to c.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10318
___
___
Python-bugs-list mailing
sbt shibt...@gmail.com added the comment:
Here is an updated patch (pipe_poll_fix.patch) which should be applied on top
of sigint_event.patch.
It fixes the problems with PipeConnection.poll() and Queue.empty() and makes
PipeListener.accept() use overlapped I/O. This should make all the pipe
Jeff McNeil j...@jmcneil.net added the comment:
Added everything to one file. Updated tests to also include a logdir argument
as that is required to trigger the original bug. Weeded out a spurious write
that occurred when format was set to text.
--
Added file:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13437
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13438
___
___
Python-bugs-list
Petri Lehtinen pe...@digip.org added the comment:
Attached a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file23738/issue13402.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13402
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Here is a patch for the bad error message (PyBytes_AS_BYTES after
PyObject_Repr, bah)
--
keywords: +patch
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file23739/issue13436.patch
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13436
___
___
Changes by Boštjan Mejak bostjan.me...@gmail.com:
--
status: closed - open
versions: +Python 2.6 -Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12277
___
Boštjan Mejak bostjan.me...@gmail.com added the comment:
http://docs.python.org/release/2.6.7/library/os.html?highlight=os.walk#os.walk
Please fix Python 2.6 branch of docs as well. Thanks.
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
Python interpreter already have that information internally. The
initial proposal was to pass it to the init as an additional
parameter. My suggestion is to export it as a new function that the
init can call if VERSION =3.3.
Jesus:
Boštjan Mejak bostjan.me...@gmail.com added the comment:
What's up with that now? Any interests in changing the imaginary unit from j
to i ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
Changes by Boštjan Mejak bostjan.me...@gmail.com:
--
resolution: wont fix - remind
status: closed - open
versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
Changes by Boštjan Mejak bostjan.me...@gmail.com:
--
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
Changes by Boštjan Mejak bostjan.me...@gmail.com:
--
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10621
___
___
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Come on, let's do this.
--
resolution: wont fix - remind
status: closed - open
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
Eric V. Smith e...@trueblade.com added the comment:
I'm not sure why this is being reopened. Unless there's been a discussion I'm
not aware of, the change is still not worth the disruption it would cause.
And in any event, it can only be addressed in new (as yet unreleased) versions
of
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
title: Pass context information into the extension module init function -
Pass context information into the extension module init function
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ba3da86d1c5d by Victor Stinner in branch '3.2':
Close #13401: Skip TestFileTypeW of test_argparse if the current user is root
http://hg.python.org/cpython/rev/ba3da86d1c5d
New changeset 50e788691eda by Victor
Changes by Eli Collins e...@assurancetechnologies.com:
Added file: http://bugs.python.org/file23740/4e67e7205aba.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12242
___
Eli Collins e...@assurancetechnologies.com added the comment:
Attached is a sixth revision (4e67e7205aba.diff) of my patch. This revision
makes a couple of minor changes requested by Éric Araujo.
--
___
Python tracker rep...@bugs.python.org
Nick Coghlan ncogh...@gmail.com added the comment:
While this thread was amusing to read, *changing* Python from the engineering
notation to mathematical notation for imaginary numbers is not going to happen.
'i' has ambiguity problems relative to '1' and 'l' in too many fonts - 'j', on
the
New submission from Nick Coghlan ncogh...@gmail.com:
I've linked
http://www.boredomandlaziness.org/2011/02/status-quo-wins-stalemate.html in
response to enough tracker issues and python-ideas threads now, that I'm
convinced it (or at least something along those lines) belongs in the devguide.
New submission from STINNER Victor victor.stin...@haypocalc.com:
I added a test in _PyUnicode_CheckConsistency() (in debug mode) to ensure that
all characters of a string are in the range U+-U+10. Locale tests are
now failing on Solaris:
---
[ 28/361]
Nick Coghlan ncogh...@gmail.com added the comment:
+1 to 'c', but it should come with an update to PEP 8 to say don't do that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10318
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 31baf1363ba1 by Victor Stinner in branch 'default':
Issue #13441: Disable temporary strxfrm() tests on Solaris
http://hg.python.org/cpython/rev/31baf1363ba1
--
nosy: +python-dev
Benjamin Peterson benja...@python.org added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13436
___
___
Python-bugs-list
Changes by Benjamin Peterson benja...@python.org:
--
assignee: docs@python -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13436
___
___
Julian Berman julian+python@grayvines.com added the comment:
Here's first a quick list from one pass over the docs. I've attempted to limit
myself to a few like you've suggested, though I'll wait for confirmation that
Raymond is not willing to simply add them to everything once we're at it
New submission from Nick Coghlan ncogh...@gmail.com:
Currently, pipes in the subprocess module work strictly with bytes I/O,
*unless* you set universal newlines=True. In that case, it assumes an output
encoding of UTF-8 for stdout and stderr and applies universal newlines process.
When
STINNER Victor victor.stin...@haypocalc.com added the comment:
This issue looks as a duplicate of #6135.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13442
___
Nick Coghlan ncogh...@gmail.com added the comment:
Indeed, I'll add my suggestions over there.
--
assignee: docs@python -
resolution: - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder: - subprocess seems to use local 8-bit encoding and gives no
Nick Coghlan ncogh...@gmail.com added the comment:
I discovered this same problem recently when updating the subprocess docs, and
also in working on the improved shell invocation support I am proposing for 3.3
(#13238).
I initially posted an earlier variant this suggestion as a new issue
STINNER Victor victor.stin...@haypocalc.com added the comment:
Is Python supposed to support characters outside U+-U+10 range?
If not, PyUnicode_FromUnicode(), PyUnicode_FromWideChar() and
PyUnicode_FromKindAndData() should be patched to raise an error if a bigger
character is
STINNER Victor victor.stin...@haypocalc.com added the comment:
strxfrm(buffer, a\0, 100) returns 21 (bytes) but only 2 bytes
are written (\x01\x00). The next bytes are unchanged.
Woops, it was a bug in my program. I attached the fixed version. The correct
program writes:
strxfrm: len=21
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file23741/strxfrm.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13441
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 78123afb3ea4 by Victor Stinner in branch 'default':
Issue #13441: Disable temporary localeconv() tests on Solaris
http://hg.python.org/cpython/rev/78123afb3ea4
--
___
Eli Bendersky eli...@gmail.com added the comment:
LGTM
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13402
___
___
New submission from Eli Bendersky eli...@gmail.com:
Michał Chałupczak reported in this docs@ list that the links to IBM
developerworks articles are wrong.
From some additional observation, the code samples on the 3.x page use the
external `functional` module, which was not ported to Python 3
Changes by Georg Brandl ge...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12277
___
___
Python-bugs-list
Petri Lehtinen pe...@digip.org added the comment:
Please fix Python 2.6 branch of docs as well. Thanks.
2.6 only receives security fixes any more.
--
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6
___
Python tracker
71 matches
Mail list logo