Raymond Hettinger [EMAIL PROTECTED] added the comment:
Applied in r64438
--
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3008
___
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
For me, a 'function' is written in Python, a 'builtin' is written in C.
The fact that it is defined in an extension module is irrelevant, and
depends on the implementation: zlib is an extension module on Unix, but
is linked inside
Helmut Jarausch [EMAIL PROTECTED] added the comment:
This patch seems to work, but
when invoked it tries to write to /usr/local/lib/python3.0/lib2to3
( I get
root: Writing failed:[Errno 13] Permission denied: '/usr/local/lib/
python3.0/lib2to3/PatternGrammar3.0.0.beta.1.pickle'
)
I hope this
New submission from Aristotelis Mikropoulos [EMAIL PROTECTED]:
Simplified some of the code, improving performance and readability.
--
components: Library (Lib)
files: glob.py.patch
keywords: patch
messages: 68493
nosy: Indy
severity: normal
status: open
title: glob.py improvements
type:
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
when invoked it tries to write to /usr/local/lib/python3.0/lib2to3
2to3 always worked like this. I always had to run it as root. Seems
weird for me too.
Furthermore, as a test, I copied refactor.py to xxx.py
and ran 2to3 on xxx.py
It
Changes by Giampaolo Rodola' [EMAIL PROTECTED]:
--
nosy: +giampaolo.rodola
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3131
___
___
Python-bugs-list
Ricardo Quesada [EMAIL PROTECTED] added the comment:
This seems to be fixed in r62348
http://svn.python.org/view?rev=62348view=rev
--
nosy: +riq
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3101
Manuel Kaufmann [EMAIL PROTECTED] added the comment:
I fixed this error, I attach the patch.
--
keywords: +patch
nosy: +humitos
Added file: http://bugs.python.org/file10681/libsubprocess.diff
___
Python tracker [EMAIL PROTECTED]
Facundo Batista [EMAIL PROTECTED] added the comment:
Two weeks passed, closing it manually (see
http://mail.python.org/pipermail/python-dev/2008-February/076992.html).
--
nosy: +facundobatista
status: pending - closed
___
Python tracker [EMAIL
Ricardo Quesada [EMAIL PROTECTED] added the comment:
turtle.py was replaced by a new module in r63929 .
I can't reproduce this bug with this revision, so it seems to be fixed.
using: os/x 10.5.3 intel.
--
nosy: +riq
___
Python tracker [EMAIL
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Ok, so it's fixed for the trunk, but not Py3k. The trunk fix doesn't
port to 3k, since the functions are called inside memoryobject.c (so
making them static would break that module).
--
versions: -Python 2.6
New submission from Viktor Ferenczi [EMAIL PROTECTED]:
Python 3.0b1, official MSI installer.
Checkout source code of this project:
http://code.google.com/p/anntools/
Enter into the root of your working copy and try to build a Win32 installer:
C:\Python30\python.exe setup.py bdist_wininst
Viktor Ferenczi [EMAIL PROTECTED] added the comment:
Fixed by appending the b (bytes) prefix to three string literals
concatenated to cfgdata in
C:\python30\lib\distutils\command\bdist_wininst.py:
Line #262:
# Append the pre-install script
cfgdata = cfgdata + b\0
if
Facundo Batista [EMAIL PROTECTED] added the comment:
Skip is right, this is working ok.
--
nosy: +facundobatista
resolution: - invalid
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2701
Anthony Lenton [EMAIL PROTECTED] added the comment:
This doesn't happen to me with 2.6 compiled from HEAD, or with 2.5.2
shipped with Ubuntu Hardy.
In both cases the output is:
Contents of text box: '123456789\n123456789\n'
--
nosy: +elachuni
___
New submission from Simon Cross [EMAIL PROTECTED]:
The _hash method of the Set ABC uses sys.maxsize but doesn't import sys.
The attached patch (against trunk) imports sys and adds a test to show
the problem. There are also still some other _abcoll.py cleanups waiting
in issue 2226.
--
Nubis [EMAIL PROTECTED] added the comment:
This was pretty much done when I got here. It broked the other cgi_test
(which tests some other corner cases).
Patch includes modifications to Lib/cgi.py and adds
Lib/test/test_cgi_post_qs.py to test the new features.
This should be closed by now, but
Simon Cross [EMAIL PROTECTED] added the comment:
One could also make a case for simply removing the _hash method since it
doesn't look like anything is using it? And anything that was using it
would already be broken?
___
Python tracker [EMAIL PROTECTED]
Jean Brouwers [EMAIL PROTECTED] added the comment:
If the struct changes are made, add also 2 formats for C types ssize_t and
size_t, perhaps 'z' resp. 'Z'. In particular since on platforms
sizeof(size_t) != sizeof(long).
--
nosy: +MrJean1
___
Manuel Muradás [EMAIL PROTECTED] added the comment:
This looks fixed to me. The current documentation is much more clear.
Look:
http://docs.python.org/api/unicodeObjects.html
--
nosy: +dieresys
___
Python tracker [EMAIL PROTECTED]
Ricardo Quesada [EMAIL PROTECTED] added the comment:
Do you expect to have support for float, double and long double ?
Also, do you expect to have support for precision-modifiers ?
--
nosy: +riq
___
Python tracker [EMAIL PROTECTED]
Manuel Muradás [EMAIL PROTECTED] added the comment:
This is the link to the current py_unicode documentation:
http://docs.python.org/dev/c-api/unicode.html
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1044479
sebastian serrano [EMAIL PROTECTED] added the comment:
Running with python -O the timing gets a little closer between Lock and
RLock. This code won't be easy to improve in performance.
The heaviest call is current_thread(), used at lines:
117:me = current_thread()
137:if self.__owner is
Guido van Rossum [EMAIL PROTECTED] added the comment:
Thanks for your contribution!
To get this commmitted, please draw the attention of someone else on
python-dev (or if you're an IRC person try #python-dev at freenote,
IIRC). I'd recommend moving the tests into the existing test_cgi.py.
Neil Muller [EMAIL PROTECTED] added the comment:
The attached patch is against recent svn (r64442), and adds samwyse's
refactoring of the class. The test for server responses is made less
restrictive when the request isn't HTTP/1.1.
--
nosy: +Neil Muller
Added file:
Rodolpho Eckhardt [EMAIL PROTECTED] added the comment:
Verified Werneck's patch and it also works on 2.6 and 3.0.
However, the previous code used to present a friendly message about
non-numeric ports: socket.error: nonnumeric port and now it raises
ValueError: invalid literal for int() with
Adrianna Pinska [EMAIL PROTECTED] added the comment:
I have written a test to go with my patch.
Added file: http://bugs.python.org/file10685/doubleslash_test.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2776
Changes by Martin v. Löwis [EMAIL PROTECTED]:
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
___
___
Python-bugs-list mailing list
Unsubscribe:
admin [EMAIL PROTECTED] added the comment:
What is wrong? Documentation or method?
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2683
___
___
Python-bugs-list
New submission from Simon Cross [EMAIL PROTECTED]:
It appears that ssl.SSLSocket attempts to override some of the methods
socket.socket delegates to the underlying _socket.socket methods.
However, this overriding fails because socket.socket.__init__ replaces
all the methods mentioned in
Changes by Adam Olsen [EMAIL PROTECTED]:
--
nosy: +Rhamphoryncus
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3155
___
___
Python-bugs-list mailing
Facundo Batista [EMAIL PROTECTED] added the comment:
Thanks Thomas and Manuel!
--
nosy: +facundobatista
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1044479
Facundo Batista [EMAIL PROTECTED] added the comment:
Reviewed and updated it, in the trunk and 3.0.
Thank you!
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3017
Anthony Lenton [EMAIL PROTECTED] added the comment:
In http://bugs.python.org/issue754016 there's already a discussion about
this.
The RFC that urlparse is following (rfc 1808) requires the net_loc
component to start with // even if the scheme component is missing,
which is why
Martín Conte Mac Donell [EMAIL PROTECTED] added the comment:
I don't think this is bearly needed. This error messages (IndexError:
list index out of range) comes from so long ago that those kind of
changes makes me feel worried.
--
nosy: +Reflejo
___
Changes by Anthony Lenton [EMAIL PROTECTED]:
--
nosy: +facundobatista
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2569
___
___
Python-bugs-list
Facundo Batista [EMAIL PROTECTED] added the comment:
Thanks (pk) and Anthony!
--
resolution: - duplicate
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2569
___
duane Bailey [EMAIL PROTECTED] added the comment:
Well, precision modifiers would be nice, but I don't think that they're
necessarily needed. General floating point support, however, is needed.
___
Python tracker [EMAIL PROTECTED]
Facundo Batista [EMAIL PROTECTED] added the comment:
Commited in 64446, thank you all!
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2888
___
Fernando Pérez [EMAIL PROTECTED] added the comment:
I think there are two issues that need to be separated:
1. The doctest bug. I'm happy with any resolution for it, and I'm not
claiming that my patch is the best approach. isroutine() indeed works
in my case, and if that approach works well
Facundo Batista [EMAIL PROTECTED] added the comment:
Senthil, your patch is wrong, see:
import urlparse
urlparse.urlparse('1.2.3.4:80','http')
ParseResult(scheme='http', netloc='', path='1.2.3.4:80', params='',
query='', fragment='')
The netloc should be 1.2.3.4:80, note the composition of
New submission from Jean Brouwers [EMAIL PROTECTED]:
Attached is a (simplistic) patch for the struct module to support C types
ssize_t and size_t with format characters 'z' resp. 'Z'.
The patch updates Python 2.6b1 files Modules/_struct.c and
Doc/library/struct.rst.
Note, format character
David Kwast [EMAIL PROTECTED] added the comment:
I wrote a small python program to test turtle speed in OSX. I tested
with trunk and py3k branch.
The string input works differently with 2.5, 2.6 and 3.0. The turtle is
slower in 2.5 and almost the same speed in 2.6 and 3.0.
Here are my test
Nubis [EMAIL PROTECTED] added the comment:
I moved the test into the current test_cgi.py, and also added the docs
and NEWS.
This patch also includes all the previous changes and is the only one
that needs to be merged.
Now I think it def should be closed :)
Added file:
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Now that Python 2.6 is in beta, new features should be deferred to 2.7.
--
nosy: +loewis
versions: +Python 2.7 -Python 2.6
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3163
Jean Brouwers [EMAIL PROTECTED] added the comment:
Please ignore the first patch. Use the rev2 patch which includes an
update for test file Lib/test/test_struct.py as well.
Added file: http://bugs.python.org/file10690/struct_size_t.rev2.patch
___
Python
Changes by Jean Brouwers [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file10687/struct_size_t.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3163
___
Anthony Lenton [EMAIL PROTECTED] added the comment:
I agree with facundobatista that the patch is bad, but for a different
reason: it now breaks with:
import urlparse
urlparse.urlparse ('http:')
Traceback (most recent call last):
File stdin, line 1, in module
File
Facundo Batista [EMAIL PROTECTED] added the comment:
Commited the final Nubis' version in r64447. Fixed, :). Thank you all!
--
nosy: +facundobatista
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
Changes by Facundo Batista [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file10686/test_urlparse.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue754016
___
Facundo Batista [EMAIL PROTECTED] added the comment:
I agree with Anthony here, because if you let people write without the
// at the beginning, you'll never know if they're entering a net
location or a relative path.
So, the better behaviour to be as explicit as possible should be:
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Le samedi 21 juin 2008 à 16:40 +, sebastian serrano a écrit :
sebastian serrano [EMAIL PROTECTED] added the comment:
Running with python -O the timing gets a little closer between Lock and
RLock. This code won't be easy to improve in
Facundo Batista [EMAIL PROTECTED] added the comment:
The best is to leave that section where it is, because it'll remain
there in the Py3 docs, but to point to this section from the other places.
So, in the deprecated functions I added an alert to review specially a
section of the subprocess
Bruno Gola [EMAIL PROTECTED] added the comment:
The following patch fixes the behavior, .append and .insert will accept
only integer as parameters.
Is this really the desired behavior? I mean, why not to accept a
character for both methods?
There are two tests in Lib/test/test_io.py that uses
Facundo Batista [EMAIL PROTECTED] added the comment:
Can we close this? The OP didn't answer for almost three years... and
the 2.4 to download is now 2.4.5...
--
nosy: +facundobatista
___
Python tracker [EMAIL PROTECTED]
Changes by Martin v. Löwis [EMAIL PROTECTED]:
--
resolution: - wont fix
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1199808
___
Facundo Batista [EMAIL PROTECTED] added the comment:
Does this still happen with newer Python versions? Could you provide an
example code?
Thanks!
--
nosy: +facundobatista
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1159425
New submission from Angel Freire [EMAIL PROTECTED]:
If Python trunk is compiled using Py_USING_UNICODE it'll call both,
save_str and save_unicode for an string object.
The patch adds a break to the case statment in case it encounters a
unicode or str.
--
components: Library (Lib)
Anthony Lenton [EMAIL PROTECTED] added the comment:
I don't really think the MIMEBase class is supposed to be used like
this, or at all: it behaves more like a Multipart message in that it
expects to carry a list of MIMEBase objects as a payload (not a string!)
though it doesn't define a
Facundo Batista [EMAIL PROTECTED] added the comment:
This is a standard behaviour, and you shouldn't document it in *all* the
modules.
BTW, now in the POP3 lib you already have a timeout, :)
--
nosy: +facundobatista
resolution: - invalid
status: open - closed
New submission from Angel Freire [EMAIL PROTECTED]:
A single Picklerobject-nesting++ will not take into consideration the
stack overhead caused by calls from
save-save_{list,dict}-batch{list,dict}.
--
components: Library (Lib)
files: cpickle-r64448.diff
keywords: patch
messages: 68544
New submission from Mark Dickinson [EMAIL PROTECTED]:
If n is a Python long, then one might expect float(n) to return the
closest float to n. Currently it doesn't do this. For example (with
Python 2.6, on OS X 10.5.2/Intel):
n = 295147905179352891391L
The closest float to n is equal to
Facundo Batista [EMAIL PROTECTED] added the comment:
I agree with Anthony. If you have any further questions regarding how to
use this library feel free to ask them in python-list.
--
nosy: +facundobatista
resolution: - invalid
status: open - closed
Manuel Muradás [EMAIL PROTECTED] added the comment:
Here is a new patch against 2.6.
--
nosy: +dieresys
Added file: http://bugs.python.org/file10695/rlcompleter2.6.diff
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue449227
Changes by Giampaolo Rodola' [EMAIL PROTECTED]:
--
nosy: +giampaolo.rodola
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3162
___
___
Python-bugs-list
New submission from Jean Brouwers [EMAIL PROTECTED]:
There are 2 math test failures with 32-bit Python 2.6b1 and 3.0b1 on
Solaris 10 both built with Sun's C compiler. The failures do *not*
occur for the 64-bit builds. The same compiler options are used for all
these builds (except
New submission from Jean Brouwers [EMAIL PROTECTED]:
There is on cmath test failure with 64-bit Python 2.6b1 and 3.0b1 on
Solaris 10. The failure does not occur in the 32-bit builds.
All builds are compiled with Sun's C compiler using the same options
(except -xtarget=native vs
Humberto Diogenes [EMAIL PROTECTED] added the comment:
The patch is not applying cleanly.
BTW, urlparse has been renamed to urllib.parse, but the old docs are still
there (urlparse.rst).
--
nosy: +hdiogenes
___
Python tracker [EMAIL PROTECTED]
Jean Brouwers [EMAIL PROTECTED] added the comment:
Attached is a patch attempting to provide support for %f with precision in
PyString_FromFormat* based on file Objects/stringobject.c of Python 2.6b1.
Note, only %f is support but %lf is not and silently ignored.
--
keywords: +patch
Changes by Jean Brouwers [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file10696/stringobject_format_f.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
Changes by Jean Brouwers [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file10697/stringobject_format_f.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2813
___
New submission from Jason Williams [EMAIL PROTECTED]:
email/header.py:decode_header() Line 95: dec =
email.base64mime.decode(encoded)
Headers that contain Subject or From headers which are Base64 encoded
and are insufficiently padded raise a HeaderParseError. The actual
padding error is
alejandro david weil [EMAIL PROTECTED] added the comment:
Shorter trigger code..
--
nosy: +tenuki
Added file: http://bugs.python.org/file10698/test_broken3.py
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2378
alejandro david weil [EMAIL PROTECTED] added the comment:
Some debugging helper code and my conclutions of one work day:
debughelper.tgZ:
-test_broken1/2.py
one does triggers the bug, the other doesn't)
-rtest.sh
executes boths and compares its outputs
-frameobject.c.diff
New submission from Brett Cannon [EMAIL PROTECTED]:
test_pydoc relies on pristine data to verify that the tests pass.
Unfortunately there is no automated way to regenerate that pristine
data, making the test easily fail if something global (e.g., __loader__
attributes on all modules) is
Humberto Diogenes [EMAIL PROTECTED] added the comment:
Correction: the patch does apply cleanly to 2.6, without breaking tests.
It just needs to be ported to 3.0 (new urllib package).
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue600362
New submission from Stefan Behnel [EMAIL PROTECTED]:
operator.delslice() and friends were removed in Python 3.0, as the
underlying object methods no longer exist. In the same way that the
slicing special methods were deprecated in favour of the item methods
should the functions in the operator
77 matches
Mail list logo