R. David Murray added the comment:
It was merged to py3k in r73623, 3.1 in r73625, but not, as far as I can see,
to 2.6.
--
nosy: +r.david.murray
stage: patch review -> commit review
versions: -Python 2.5, Python 2.7, Python 3.0, Python
R. David Murray added the comment:
Since he hasn't proposed a patch, we close it :)
Skip can always reopen it if he wants.
--
nosy: +r.david.murray
status: open -> closed
___
Python tracker
<http://bugs.python.or
R. David Murray added the comment:
This looks like it would be a worthwhile cleanup, and the issue contains useful
info to that end, so I'm marking it languishing rather than closing it, in the
hopes that someone will pick it up some day. I also think this could be a nice
bug day tas
R. David Murray added the comment:
No, because my code is a backward compatibility hack. Currently if someone is
passing a default successfully they must be doing it by passing in a list or
tuple consisting of one or more strings. So your code would result in
something like
Changes by R. David Murray :
--
nosy: +giampaolo.rodola, josiahcarlson
type: crash -> behavior
___
Python tracker
<http://bugs.python.org/issue8573>
___
___
Py
R. David Murray added the comment:
@senthil: I'm not quite sure what your sentence referencing couchdb is getting
at, but the headers that are being queried are in an email.Message object, and
contain only string values unless some code is misusing the API and setting new
non-string v
R. David Murray added the comment:
I seem to have been missing some context here. I now understand that this is a
regression relative to Python 2.x. It seems to me that the translation from
rfc822.Message to email.Message was done incorrectly. In the 2.x code
getheader returns only the
R. David Murray added the comment:
Well, it seems I was mistaken when I thought I knew how this worked :)
Checking the os.exec documentation linked from the subprocess page, I see that
when an environment is supplied PATH is indeed checked in it. The
documentation for CreateProcess, however
R. David Murray added the comment:
The bug tracker is for bugs in Python itself, and isn't a good place to look
for help on getting an application program to work. You should try the python
email list/newsgroup. (You can find links to the newsgroup and other resources
under the '
R. David Murray added the comment:
The fact that our docs don't mention it is a clue that it is platform dependent
:)
Theoretically it shouldn't be, since it is in Posix:
http://www.opengroup.org/onlinepubs/009695399/functions/strftime.html
but practically speaking it is, sin
Changes by R. David Murray :
--
stage: -> unit test needed
type: crash -> behavior
versions: +Python 2.6, Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.org/
R. David Murray added the comment:
Could you special case the test_socket test by checking for the error that
Windows sometimes throws and retrying (in a loop for say a second)? Not ideal,
but probably better than adding a sleep or throwing away the test :)
--
nosy: +r.david.murray
Changes by R. David Murray :
--
assignee: barry ->
nosy: +ezio.melotti, flox
___
Python tracker
<http://bugs.python.org/issue8586>
___
___
Python-bugs-list mai
R. David Murray added the comment:
Victor has proposed a patch for the traceback problem for regrtest, I think. I
haven't looked at it, but I wonder if there is something that can instead be
done to make unittest work in cases like this when run in an ascii terminal.
See issue
Changes by R. David Murray :
--
assignee: -> barry
___
Python tracker
<http://bugs.python.org/issue8586>
___
___
Python-bugs-list mailing list
Unsubscri
R. David Murray added the comment:
I didn't run the script. I have now, but I'm not clear from its output what
each test is actually doing, and don't really have the time to figure it out
from the code right now.
I think it is probably more efficient to just ask you what you
R. David Murray added the comment:
issue 8238 notes the problem with autoraise and new on windows. I believe when
I looked at that issue that I confirmed that the syntax webbrowser uses on
Linux to support those options works on windows with the current firefox, even
though I couldn't
R. David Murray added the comment:
The python functions are thin wrappers around the system calls, and are
reporting the result of calling the corresponding system call. The fact that
the shell chooses to catch both errors and report a single one would be
equivalent to, say, the cmd module
R. David Murray added the comment:
All of my Gentoo systems except one have localhost on the ::1 line. The one
that doesn't hasn't been updated in several years. That one has the same entry
for ::1 as your Ubuntu.
The FreeBSD 6.3 box I have access to has localhost on the ::1 lin
R. David Murray added the comment:
Indeed, and it was considered a feature request and thus is not appropriate for
backport. If you wish to see that decision changed I think you will need to
appeal to python-dev.
--
nosy: +r.david.murray
resolution: -> out of date
stage: ne
R. David Murray added the comment:
FWIW on my cisco firewalls the logs contain a lot of 'deny, no connection'
messages for RST packets, probably coming from similar scenarios.
--
nosy: +r.david.murray
resolution: -> invalid
stage: -> committed/rejected
status
R. David Murray added the comment:
Sorry for my Windows ignorance, but if CreateProcess ignores the PATH, how does
updating the PATH fix the problem?
--
___
Python tracker
<http://bugs.python.org/issue8
R. David Murray added the comment:
This is a duplicate of issue 8366.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
superseder: -> OS X universal builds fail on 2.7b1 and py3k with "Don't know
m
R. David Murray added the comment:
Well, it wouldn't be the first time the microsoft docs were wrong.
There are two questions here: (1) is this behavior consistent across all
microsoft platforms we support? (2) is this *change* in behavior of Popen
acceptable?
For (1) we need a unit
R. David Murray added the comment:
If it would provide clearer error message in cases of failure, it sounds like a
reasonable thing to add whether or not the failure in this issue is still
happening.
--
nosy: +r.david.murray
___
Python tracker
R. David Murray added the comment:
Fair enough. Thank you for your detective work, and hopefully someone will be
interested enough to pick this up again later.
--
status: open -> languishing
___
Python tracker
<http://bugs.python.org/iss
R. David Murray added the comment:
Thanks, but this is a duplicate of issue 8553, which has already been fixed.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
superseder: -> 2to3 breaks rela
R. David Murray added the comment:
FWIW I agree with Antoine.
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue5753>
___
___
Python-bug
R. David Murray added the comment:
Comments on patch:
We prefer patches to be generated from the top level directory of the checkout,
so that it can be applied by doing 'patch -p0
<http://bugs.python.org/i
R. David Murray added the comment:
These are references to environment variables. The markup marks them as such,
but this does not translate into HTML in a visible way. Without a text
description it is also left to guesswork as to how they function. The 2.7 docs
are even more confusing
R. David Murray added the comment:
Why do we have a public API that begins with an '_'?
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.
Changes by R. David Murray :
--
assignee: -> r.david.murray
versions: +Python 3.2 -Python 2.7
___
Python tracker
<http://bugs.python.org/issue3244>
___
___
Py
Changes by R. David Murray :
--
assignee: -> r.david.murray
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue740495>
___
___
Python-
Changes by R. David Murray :
--
nosy: +mark.dickinson
___
Python tracker
<http://bugs.python.org/issue8628>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
Given what we've learned, I think that Walter's first patch is the best fix.
No one should be relying on the current actual behavior of the default
argument, and the fix makes it work as documented.
As for backporting to 2.7, I don't think
R. David Murray added the comment:
Committed to trunk in r80800.
However, when I ported it to py3k, it turns out the test fails there, but
passes if the original fix from this issue has been applied. More
investigation is needed, but clearly something changed in the payload encoding
logic
R. David Murray added the comment:
Mainly I'm saying that I don't think a public API should have a name starting
with an '_'. Sets a bad precedent :)
Looking at the functionality more closely, though, it does make me nervous that
we are recommending changing the global
Changes by R. David Murray :
--
nosy: +lemburg
___
Python tracker
<http://bugs.python.org/issue8630>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
I tried your suggestion, but it seemed to me that it made the first paragraph
of that section be all about tabs, and get even farther away from its original
focus, which was introducing the example.
I've attached a patch that instead moves the e
R. David Murray added the comment:
It turns out that email5 (py3k), because it is using unicode for the payload,
doesn't do the encoding to the output character set until later in the process.
Specifically, charset.body_encode no longer does the input-to-output charset
conversion. T
R. David Murray added the comment:
Adding MvL because he wrote the ABI PEP, and MAL because he cares about the
Unicode interface.
--
nosy: +lemburg, loewis, r.david.murray
___
Python tracker
<http://bugs.python.org/issue8
R. David Murray added the comment:
I think Daniel's suggestion of having an option to control this is the best way
to handle the different use cases. And I think the default should be -00:00,
as he suggested.
Removing 2.7 and 3.1 since 3.2 is the only branch open to new features at
R. David Murray added the comment:
Victor, you've been dealing with Python's default encoding lately, care to
render an opinion on the correct fix for this bug?
@Filip: the patch will need a unit test, which will also help with assessing
the validity of the fix.
--
no
R. David Murray added the comment:
zsh's completion system is completely programmable. I looks like it would be
pretty easy to add generic 'python script' support widgets(*) using this hidden
option, and probably other neat tricks as well. Something that would make it
even
R. David Murray added the comment:
The answer is almost certainly "no".
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue8425>
___
__
Changes by R. David Murray :
--
priority: high -> critical
___
Python tracker
<http://bugs.python.org/issue4768>
___
___
Python-bugs-list mailing list
Unsubscri
R. David Murray added the comment:
Rather than a raise_on_bad option, it seems to me it would be better to code a
try/except clause in cases where you want the default even if there is an error
converting the data in the file. I would expect such cases to be rare, except
for cases where you
R. David Murray added the comment:
There is a reason, and that is that it may break existing code in the field
relying on the current behavior. This is (unfortunately) true regardless of
whether the function is public or private, though the fact that it is
ostensibly private is likely to
R. David Murray added the comment:
Hmm. I didn't read your comment carefully enough before I replied. I think
you are saying that the bug fix is confined to the routine in question and
doesn't change even its API, in which case the nature of the function doesn't
come in to
R. David Murray added the comment:
Unfortunately that wouldn't be correct English, as far as I know.
How about "This isn't defined other than that..." I think that reads a bit
more clearly than "beyond that" even to a native speaker, even though be
Changes by R. David Murray :
--
versions: +Python 3.1 -Python 3.3
___
Python tracker
<http://bugs.python.org/issue8686>
___
___
Python-bugs-list mailing list
Unsub
Changes by R. David Murray :
--
dependencies: +sched.py module doesn't have a test suite
superseder: sched.py module doesn't have a test suite ->
___
Python tracker
<http://bugs.pyth
R. David Murray added the comment:
I don't expect anything; I had written that it looked OK to me but apparently I
accidentally deleted that text before posting. But I'm not someone who has
ever programmed using cookielib so I wouldn't expect my opinion to coun
Changes by R. David Murray :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue2620>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
The argument to strip is a set of characters to remove, not a substring.
--
nosy: +r.david.murray
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
___
Python track
Changes by R. David Murray :
--
keywords: +easy
type: -> behavior
versions: -Python 3.3
___
Python tracker
<http://bugs.python.org/issue8702>
___
___
Python-
Changes by R. David Murray :
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
superseder: -> difflib should separate filename from timestamp with tab
___
Python tracker
<http://bugs.pytho
Changes by R. David Murray :
--
nosy: +tarek
___
Python tracker
<http://bugs.python.org/issue8705>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
The patches look good, so yes, please apply them. As for closing the
issue...if the failures are no longer happening on the buildbots, then yes :)
--
___
Python tracker
<http://bugs.python.org/issue8
New submission from David W. Lambert:
Please generalize math.hypot. While I don't have a survey of python
codes, it seems to me unlikely for this change to break existing
programs.
import math
def hypot(*args):
'''
Return the Euclidean vector length.
New submission from David W. Lambert:
# proposed syntax:
# object.property = *args,**kwargs
# python 3k could accept property setter with multiple arguments
class c:
def f(self,a,b,c):
print a,b,c
F=property(None,f)
c().F=*'hi',**{'c':
New submission from David Albert Torpey:
Add a factorial method. Everybody understands what it means before
they are out of high school and it comes up all the time in statistics
and combinatorics. Ruby has a factorial method and heck even basic
calculators have a factorial key.
print
David Albert Torpey added the comment:
Mr. Dickinson thank you for doing this. I do not know how to help with
a patch. If it helps, here is the code I use in python:
def factorial(n, _known=[1]):
assert isinstance(n, int), "Need an integer. This isn't a gamma"
assert
New submission from David W. Lambert <[EMAIL PROTECTED]>:
http://docs.python.org/dev/3.0/library/reprlib.html#module-reprlib
names the module reprlib.
However, the example at bottom of page uses:
http://docs.python.org/dev/3.0/library/reprlib.html#subclassing-repr-
objects
impor
New submission from David W. Lambert <[EMAIL PROTECTED]>:
I ran doctests on the interactive session scripts from the tutorial.
Aside from finding a doctest enhancement---but there are already so
many doctest issues tracked---I found these discrepancies using online
tutorial and Python
New submission from David W. Lambert <[EMAIL PROTECTED]>:
http://docs.python.org/dev/3.0/extending/extending.html
Given that the following paragraph tells us that there should be just
one non-static item in the module file,
struct PyModuleDef spammodule =
should be
static struct PyMod
New submission from David W. Lambert <[EMAIL PROTECTED]>:
I created in the python module gsl_fft a __del__ method to release
workspace when the data size changes. It is called upon exiting
python, and gave errors without traceback. So I registered it with
atexit. This caused cor
David W. Lambert <[EMAIL PROTECTED]> added the comment:
I rebuilt python3k from "today's snapshot". No more core dump. Problem
solved, close case. IMH'edO.
___
Python tracker <[EMAIL PROTECTED]>
&
New submission from David W. Lambert <[EMAIL PROTECTED]>:
http://docs.python.org/dev/3.0/library/multiprocessing.html
I'm sure the examples have been thoughtfully contrived. Still, this
seems instructive without adding much complexity. I'd change the
first &quo
New submission from David W. Lambert <[EMAIL PROTECTED]>:
4 problems noted here.
Thanks, Dave.
1,2---problems 1 & 2 concern py<3k references:
http://docs.python.org/dev/3.0/library/multiprocessing.html
1) "apply(func[, args[, kwds]])
Equivalent of the apply() builtin f
David W. Lambert <[EMAIL PROTECTED]> added the comment:
cygwin Python 2.5.1 (similar)
time with os.popen : 0.43818802
time with subprocess.Popen : 0.36161035
linux python 2.4.2 (similar)
time with os.popen : 0.0344939231873
time with subprocess
New submission from David W. Lambert <[EMAIL PROTECTED]>:
http://docs.python.org/dev/3.0/library/multiprocessing.html
"map(func, iterable[, chunksize])
A parallel equivalent of the map() builtin function. It blocks till the
result is ready."
Not really, __builtins__.map r
New submission from David W. Lambert <[EMAIL PROTECTED]>:
class c(file):
pass
2to3 says no changes required.
Might it possibly suggest a replacement for file class?
Thanks, Dave.
--
messages: 75310
nosy: LambertDW
severity: normal
status: open
title: Should 2to3 know tha
Changes by David W. Lambert <[EMAIL PROTECTED]>:
--
components: +2to3 (2.x to 3.0 conversion tool)
type: -> feature request
versions: +Python 3.0
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.py
David W. Lambert <[EMAIL PROTECTED]> added the comment:
python3k and I are having difficulty with File class, which in a version
2 python release extended the file type with methods to read through a
file until some condition is found.
--
type: feature request -> crash
A
New submission from David W. Lambert <[EMAIL PROTECTED]>:
http://docs.python.org/dev/3.0/reference/datamodel.html
>>> class Meta(type):
...def __getattribute__(*args):
... print "Metaclass getattribute invoked"
xxx
... print "Class getattribute i
David W. Lambert <[EMAIL PROTECTED]> added the comment:
While trying to find a "file" replacement in the io library I managed to
get py3k to crash. Please look at the file associated with the issue.
Thanks,
Dave.
--
title: Should 2to3 know that file type is gone? -&g
Changes by David W. Lambert <[EMAIL PROTECTED]>:
--
nosy: +LambertDW
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4237>
___
__
David W. Lambert <[EMAIL PROTECTED]> added the comment:
>>> print(io.read.__doc__)
...
The default mode is 'rt' (open for reading text).
...
___
Python tracker <[EMAIL PROTECTED]>
&l
David W. Lambert <[EMAIL PROTECTED]> added the comment:
The D'Arcy J.M. Cain wording is clearer.
"dict.has_key(key) is deprecated. Use "key in dict" instead." would
improve python.
--
nosy: +LambertDW
___
Python tr
David W. Lambert <[EMAIL PROTECTED]> added the comment:
I'd change the exceptions, replace comment with string.
Instead of
raise NotImplementedError # Set up dummy log back-end
write
raise NotImplementedError('Set up dummy log back-end')
--
New submission from David W. Lambert <[EMAIL PROTECTED]>:
http://docs.python.org/dev/3.0/library/ctypes.html#callback-functions
ctypes.xFUNCTYPE are another opportunity to advertise decorators.
Please consider inserting yet another qsort example written as a
decorator, perhaps as f
Changes by David W. Lambert <[EMAIL PROTECTED]>:
--
nosy: +LambertDW
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4279>
___
__
David W. Lambert <[EMAIL PROTECTED]> added the comment:
This problem was repaired by the python3.0 rc1+ of November 5 trunk
snapshot. I suggest retirement of Issue4226.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
New submission from David W. Lambert <[EMAIL PROTECTED]>:
'''
http://docs.python.org/dev/3.0/library/ctypes.html
Where web page says
>>> printf("An int %d, a double %f\n", 1234, c_double(3.14))
Integer 1234, double 3.141049
David W. Lambert <[EMAIL PROTECTED]> added the comment:
Guido gets to choose. Read
PEP:318
Title: Decorators for Functions and Methods
and "gut feeling"
http://mail.python.org/pipermail/python-dev/2004-August/046711.html
--
David W. Lambert <[EMAIL PROTECTED]> added the comment:
Conversely, if the documentation is correct then my ctypes is flawed.
"None, integers, byte strings and unicode strings are the only native
Python objects that can directly be used as parameters in these function
calls. None i
David W. Lambert <[EMAIL PROTECTED]> added the comment:
Changing the string to type byte
'Works'
from ctypes import *
libc = CDLL('libc.so.6')
libc.printf(b'hello')
___
Python tracker <[EMAIL PROTEC
David W. Lambert <[EMAIL PROTECTED]> added the comment:
When patching py3k/Doc/library/ctypes.rst or ctypes module tree please
consider
u"World!" produces a syntax error.
These wide character formats produce unintelligible output:
for n in range(3,6):
code
New submission from David M. Beazley <[EMAIL PROTECTED]>:
The FileIO object defined in the new io library has "name" and "mode"
properties. However, attempts to access either value result in an
AttributeError exception. The C source code in _fileio.c doesn't e
David M. Beazley <[EMAIL PROTECTED]> added the comment:
Just a quick comment from the Python training universe--this bug makes it
impossible to use Python 2.6 in any kind of Python teaching environment
where IDLE tends to be used a lot. I'm having to tell students to stick
with P
New submission from David W. Lambert <[EMAIL PROTECTED]>:
http://docs.python.org/dev/3.0/glossary.html
Scanning the glossary reveals...
coercion
The glossary needs rewritten to eliminate "coerce builtin".
__future__
Uses example import division, I'd replac
Changes by David W. Lambert <[EMAIL PROTECTED]>:
--
assignee: -> georg.brandl
components: +Documentation
nosy: +georg.brandl
versions: +Python 3.0
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.py
New submission from David W. Lambert <[EMAIL PROTECTED]>:
http://docs.python.org/dev/3.0/howto/functional.html
Gone:
itertools.ifilter
itertools.imap
itertools.izip
changed:
itertools.ifilterfalse --> itertools.filterfalse
strange?
functools.reduce is described, but
David W. Lambert <[EMAIL PROTECTED]> added the comment:
And while at it, replace "usage" with "Use".
"Usage" isn't a word.
--
nosy: +LambertDW
___
Python tracker <[EMAIL P
New submission from David W. Lambert <[EMAIL PROTECTED]>:
http://docs.python.org/dev/3.0/library/ctypes.html
insert "e" into "shard".
Errors have dissimilar importance. The manual is so good that this is
the worst I can find today.
--
assignee: georg.brandl
Scott David Daniels <[EMAIL PROTECTED]> added the comment:
Attached parts.zip -- a zip of updates for Python 2.6 and Python 3.0
against the current source [zip has two
For Python 2.6:
py26/diff_py26.txt -- differ against python26-maint tree
py26/PyShell.py -- Replacement file for .
New submission from David M. Beazley <[EMAIL PROTECTED]>:
The Buffered I/O interface in the io module has the user specify buffer
limits such as size and max_buffer_size. The first limit (size) is
easy to understand as a buffering threshold at which writes will occur.
However, no ap
New submission from David M. Beazley <[EMAIL PROTECTED]>:
Is the following code valid Python 3 or not?
def foo():
x = 1
exec("x = 42")
print(x)# Prints 1 (exec has no effect)
I know there are a variety of issues surrounding exec(), function
bodies, and other
David M. Beazley <[EMAIL PROTECTED]> added the comment:
For what it's worth, I hope this behavior gets well-documented. Thanks.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
4301 - 4400 of 12943 matches
Mail list logo