R. David Murray added the comment:
Thanks. Looks good to me. I'll give Senthil a little time to comment, in case
he disagrees with my proposal, before committing it.
We could conceivably apply this as a bug fix to 3.2, since I don't think there
is any backward compatibi
New submission from R. David Murray :
These appear from the source to be public methods (and I certainly want to be
able to use get_header), but they aren't documented.
--
assignee: docs@python
components: Documentation
messages: 156953
nosy: docs@python, r.david.murray
pri
R. David Murray added the comment:
Your presumption is probably correct, however if that is the premise of the
patch it is incorrect in detail, since we've already fixed test_queue
specifically to be runnable with -m unittest without adding a load_tests. I
haven't looked at
R. David Murray added the comment:
The test_main functions can be converted to use unittest discovery, though.
That's what I did for test_email.
--
___
Python tracker
<http://bugs.python.org/is
R. David Murray added the comment:
Right. What I meant to say was "test_main can be converted to use normal
unittest test loading". test_email is not an example of that, since it does
use test discovery, but is a good example of a test collection that works with
both regrtest an
Changes by R. David Murray :
--
keywords: +needs review
nosy: +belopolsky
stage: -> patch review
versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4
___
Python tracker
<http://bugs.python.org/issu
R. David Murray added the comment:
To make this a little clearer, here's an even simpler example:
>>> import os
>>> os.fdopen(0)
<_io.TextIOWrapper name=0 mode='r' encoding='UTF-8'>
>>> 1
__main__:1: ResourceWarning: unclosed file
R. David Murray added the comment:
Hmm. And D isn't how you shut down the interpreter on Windows, is it? So
maybe there is a Windows-specific bug here after all. Or do you get that same
dialog if you do the Windows equivalent of D in a shell window (is that
different from a CMD windo
R. David Murray added the comment:
It sounds like we just need to fix the TestCase inheritance, like we did in
test_queue.
We should also look more carefully at the threading setup/cleanup. At some
point I think we changed the best-practice idiom to be independent of regrtest,
but we
R. David Murray added the comment:
OK, let's reopen this for someone to investigate that Windows crash.
--
resolution: invalid ->
stage: committed/rejected -> needs patch
status: closed -> open
title: Python 3 interpreter crash with memoryview and os.fdopen -> Pyth
Changes by R. David Murray :
--
title: Python 3 interpreter crash on windows when stdin closed -> Python 3
interpreter crash on windows when stdin closed in Python shell
___
Python tracker
<http://bugs.python.org/issu
R. David Murray added the comment:
It should be easy enough to patch this to use
http://docs.python.org/./tutorial
I think that is probably a good idea, but the doc folks should sign off on it.
--
keywords: +easy
nosy: +r.david.murray
title: Tutorial link in "help()"
R. David Murray added the comment:
Thanks for the patch.
However, the RFC is one thing, but what happens in the real world? Cookies are
very messy in the real world, and we cannot just assume that the RFC version
works.
--
nosy: +r.david.murray
R. David Murray added the comment:
Thanks, Federico, and welcome to the ACKS file.
It looks like you are planning to contribute more, so if you haven't already
done so could you please submit a contributor agreement?
http://www.python.org/psf/contrib/contrib-form/
--
resol
Changes by R. David Murray :
--
nosy: +vinay.sajip
___
Python tracker
<http://bugs.python.org/issue14436>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
Not particularly elegant? Why not? I find marking tests that should be
executed by having them (and only them) inherit from TestCase to fit my sense
of what is Pythonic, while having a hidden please-ignore-me attribute doesn
R. David Murray added the comment:
Hmm. OK, I guess we can just disagree on what looks straightforward, and since
you are the maintainer of unittest you win :) But unless somebody pronounces,
I'll probably keep using the mixin pattern for my own mo
R. David Murray added the comment:
I guess I'm not really done talking about this, though my bow to you as
maintainer still stands.
The mixin tests *can't* be run in isolation, that's the whole point. Otherwise
you could just let unittest run them, and wouldn't need
R. David Murray added the comment:
The convention in the stdlib is to name the mixin classes TestXXXBase.
Granted, a lot of those inherit from TestCase. I have no objection to calling
them Mixin instead, I'm just pointing out that there is an existing convention.
(As an aside, when I
R. David Murray added the comment:
We pretty much follow the posix standard on strftime. I doubt that we would
introduce non-standard specifiers. Are there any in widespread use for your
use case?
--
nosy: +belopolsky, r.david.murray
___
Python
R. David Murray added the comment:
I'm asking if there are specific % codes commonly used for this case. (Even if
there are there is no guarantee we are going to add them, but it makes it
possible to make a case for it.)
--
___
Python tr
R. David Murray added the comment:
It turns out that there is standard way to do this (well, a de-facto standard,
anyway). glibc (and apparently others) support 'modifiers', of which the '-'
modifier will suppress 0 padding. Furthermore, since we pass the format stri
R. David Murray added the comment:
Thanks Ross. I don't think this is worth a news item, even though the bug was
shipped in an alpha. If someone disagrees please add one.
--
stage: needs patch -> committed/rejected
status: open -> closed
type:
R. David Murray added the comment:
Ah, woops, I *thought* I'd looked at the diff, but obviously I didn't. Sigh.
--
___
Python tracker
<http://bugs.python.o
R. David Murray added the comment:
I think there may even be an issue for that, but with the currently broken
issue search I'm not sure. Issue 3173 *might* be what I'm thinking of (thanks,
google).
And yes, the fact that stuff like this is not cross-platform is why it isn't
R. David Murray added the comment:
Raymond is suggesting removal in 3.4, and given that we are doing it I don't
see any reason to wait for 3.5, either, so you probably want to update the
warning messages to say 3.4 instead of 3.5. Otherwise it looks good to me.
Ezio suggested adding a
Changes by R. David Murray :
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue1>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
At the very least the docs should be clarified to say that you have to call
shutdown from a separate thread. (The one example of using it does do that.)
I don't have a strong opinion about the proposed new method, not having used
socketserver excep
R. David Murray added the comment:
This is a duplicate of issue 12291. 3.1 is in security-fix only mode.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
superseder: -> file written using marshal in 3.2 can be read
R. David Murray added the comment:
If I understand correctly, this would be a backward incompatible change, so I
doubt it will be accepted. Maybe there's some other way to achieve the same
end?
--
nosy: +bethard, r.david.murray
___
Python tr
Changes by R. David Murray :
--
nosy: +vinay.sajip
___
Python tracker
<http://bugs.python.org/issue14452>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker
<http://bugs.python.org/issue14452>
___
___
Python-bugs-list m
R. David Murray added the comment:
The current behavior is how we want the functions to work. If you want to
debate the design, the best forum would probably be python-ideas.
--
nosy: +r.david.murray
resolution: -> rejected
stage: -> committed/rejected
status: open -&g
R. David Murray added the comment:
It is, yes.
Can you do some debugging and see why it is failing? It should be simple
enough to add a print to see what magic number Python is seeing.
--
nosy: +r.david.murray
___
Python tracker
<h
R. David Murray added the comment:
Oh, actually...are you sure you are running 3.2.3 against the 3.2.3 stdlib? It
looks like you might be running against the Apple default installed library,
but I don't know enough about OSX to be
R. David Murray added the comment:
Oh, I meant sticking a print statement into the stdlib code.
But I really think your problem is that you aren't running the 3.2.3 stdlib
code.
Try opening up the file
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/dbm/__init__.py
in
R. David Murray added the comment:
Well, that's the correct line. So if that is what is in your
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/dbm/__init__.py,
then there is a problem. If so, please put the line:
print(magic)
just before that if statement, and l
Changes by R. David Murray :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue14446>
___
___
Python-bugs-list mailing list
Unsubscri
R. David Murray added the comment:
Looks like this should be closed rejected?
--
nosy: +r.david.murray
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issu
Changes by R. David Murray :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue14386>
___
___
Python-bugs-list mailing list
Unsubscri
R. David Murray added the comment:
Duplicate of issue 11231.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
superseder: -> bytes() constructor is not correctly documented
___
Py
Changes by R. David Murray :
--
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
R. David Murray added the comment:
Thanks for the patch. Could you upload it as a context diff?
--
nosy: +r.david.murray
stage: -> patch review
versions: +Python 3.3 -Python 2.7
___
Python tracker
<http://bugs.python.org/issu
R. David Murray added the comment:
Hmm. Apparently what I meant was -u instead of -c (unified diff). I just use
the 'hg diff' command myself, which does the right thing :) Of course, to do
that you need to have a checkout. (We can probably use the co
R. David Murray added the comment:
Ned: that shouldn't prevent whichdb from figuring out the type of the db file,
though, if I understand correctly.
Niklas: that's unexpected, so I suspect something is not right about how you
inserted the print. You did say you were a Python newbie
R. David Murray added the comment:
It sounds like manolo69 is just confused about what the append operation
returns (which is None). Since this is a carefully considered part of the
design of Python (operations that mutate objects rather than creating a new
object return None), I'm cl
Changes by R. David Murray :
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.org/issue14458>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
Fixed. Thanks for the report, Bill.
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
R. David Murray added the comment:
Thanks, Nick, this is much better than speculation.
--
___
Python tracker
<http://bugs.python.org/issue14417>
___
___
Pytho
R. David Murray added the comment:
Yes, Nick's library looks good, but that should be a separate issue, it isn't
really relevant to this one.
--
___
Python tracker
<http://bugs.python.
R. David Murray added the comment:
Which just goes to show that using Popen correctly is not obvious, I suppose.
Given that adding these errors *would* break backward compatibility, there
would have to be a deprecation if it was done.
Personally I don't see the point in adding new
R. David Murray added the comment:
Antoine: I don't think the point of this code is to come up with a unit (or
other) test for the behavior, but to try to determine empirically whether or
not this error is likely to be an issue in naive production code (whether it is
existing 3.x co
Changes by R. David Murray :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue14465>
___
___
Python-bugs-list mailing list
Unsubscri
R. David Murray added the comment:
The FAQ link (and removing the new style class link, but I think there is
already an issue for that) is the only one I see that should be pointing to 3.x
that isn't.
python.org/doc and docs.python.org is intentionally the 2.7 docs for now. We
ha
R. David Murray added the comment:
See also http://www.gratisoft.us/bugzilla/show_bug.cgi?id=464, which lists
versions. Sounds like the same bug Amaury linked to.
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue14
R. David Murray added the comment:
I'm going to close this. If it turns out not to be a bug in sudo, please
reopen.
--
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http:
Changes by R. David Murray :
--
nosy: +skrah
___
Python tracker
<http://bugs.python.org/issue14478>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
One person that I helped at the PyCon sprints was using it, because the
devguide said to. But I think she was more confused by it than she would have
been by 'hg diff', at least to start out. Or maybe not...but I wasn't able to
help
R. David Murray added the comment:
LGTM.
--
___
Python tracker
<http://bugs.python.org/issue14466>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
nosy: +brian.curtin
stage: -> needs patch
type: behavior -> enhancement
___
Python tracker
<http://bugs.python.org/i
R. David Murray added the comment:
Thanks.
--
nosy: +r.david.murray
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
R. David Murray added the comment:
Hmm. I would think it would be a good idea to have os.kill do posix emulation
where that makes sense, it makes cross-platform usage easier. That's what
'kill' with no signal does, right (kills the process, just like the posix
default)?
R. David Murray added the comment:
I would think that if Windows doesn't support a specific signal, os.kill should
raise a ValueError. But I'm an outsider here, I know nothing about how Windows
works for this except what I'm reading here.
To answer your question: there are
R. David Murray added the comment:
I made some time to work on this today. Attached is a new patch. I've
incorporated the tests from the existing patches (though I'm doing the
infrastructure a bit differently). PLAIN seems to be a specific case of the
general authenticate, so I
R. David Murray added the comment:
Well, it turns out that this design is intentional, because actually using the
global socket timeout is deprecated (see issue 2451). (That is, the non-None
default value of the timeout parameter is a backward compatibility hack.)
So I'm closing th
R. David Murray added the comment:
If gvfs is preferred, should its if block come second, or perhaps those two
should be an if/elif block?
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue14
R. David Murray added the comment:
This is only a problem in the 2.7 docs.
I tried adding a .. py:currentmodule:: builtins directive to the page, hoping
that would make all unqualified links local, but it didn't work. I think the
fix will require someone with more Sphinx-foo than I
R. David Murray added the comment:
Thanks for the patch.
Do you have an interest in trying your hand at writing a test for this to go
into Lib/test/test_tools.py?
--
nosy: +r.david.murray
stage: -> test needed
___
Python tracker
&l
Changes by R. David Murray :
--
stage: -> test needed
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue14492>
___
___
Python-bugs-list
Changes by R. David Murray :
--
stage: -> test needed
___
Python tracker
<http://bugs.python.org/issue14491>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by R. David Murray :
--
stage: -> patch review
versions: -Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue14494>
___
___
Py
R. David Murray added the comment:
Nevermind, it occurred to me that what we really need is a 'test_sundry' style
test for the tools. Here's a patch that adds that. I'll apply it after I fix
the other bugs it reveals (which include the other two you poin
R. David Murray added the comment:
OK, sounds fine. Shall we close this as fixed then?
--
___
Python tracker
<http://bugs.python.org/issue14493>
___
___
Pytho
R. David Murray added the comment:
Some of these at least are intentional. There are test files (especially in
2to3!) that use python2 syntax, and test files that have specially crated
syntax errors in them. Sphinx at one point was using Python2, I'm not sure if
it has been upgraded
R. David Murray added the comment:
Yes, that's why its status is still "open" :)
As far as I know no one is actively working on it (email issues are all
assigned to me so I can keep track of them, not because I'm actively working on
all of them).
At this point I haven
R. David Murray added the comment:
Serhiy: I'm not sure what you are talking about. Does it relate to this
specific issue (abitype.py)?
--
___
Python tracker
<http://bugs.python.org/is
R. David Murray added the comment:
Thanks for the patch.
--
resolution: -> fixed
stage: test needed -> committed/rejected
___
Python tracker
<http://bugs.python.org/i
R. David Murray added the comment:
Fixed in 62dde5dd475e and 696cb524322a. Thanks for the patch.
--
resolution: -> fixed
stage: test needed -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by R. David Murray :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue14491>
___
___
Python-bugs-list mailing list
Unsubscri
R. David Murray added the comment:
This one is not a syntax error, so the new 'sundry' tests don't catch it. Want
to write a test for this one?
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.pyt
R. David Murray added the comment:
Here's a run of your script against Python3.3
I see nothing on this list that is a problem (after the recent fixes in
Tools/scripts). The Doc stuff can be ignored, that's a Python2 based toolchain
checked out by the Doc 'make' file.
Changes by R. David Murray :
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by R. David Murray :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue14428>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by R. David Murray :
--
nosy: +r.david.murray
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue13238>
___
___
Python-bugs-list mai
R. David Murray added the comment:
Thanks for the report.
I'm not familiar with multiprocessing, so I'll have to leave it to someone else
to judge the fix.
We use 'crash' to indicate a segfault in the Python interpreter, so I'm
changing the type to 'be
R. David Murray added the comment:
I'm not seeing any unhighlighted examples in that section.
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/is
Changes by R. David Murray :
--
nosy: +bethard
versions: +Python 3.3 -Python 2.7
___
Python tracker
<http://bugs.python.org/issue14504>
___
___
Python-bugs-list m
R. David Murray added the comment:
Which version of python did you test with? There have been several
improvements html parsing recently.
--
nosy: +ezio.melotti, r.david.murray
___
Python tracker
<http://bugs.python.org/issue14
R. David Murray added the comment:
I just tested your script on 3.2.3a2+, and it raises an error. Ezio made the
other parsing changes, I'll leave it to him to evaluate what if anything should
be done here.
--
versions: +Python 3.3
___
P
R. David Murray added the comment:
Berker: you can reproduce the bug, or the fact that they are highlighted? The
png looks like they are highlighted, so I assume the latter.
--
___
Python tracker
<http://bugs.python.org/issue14
R. David Murray added the comment:
Ah, you mean they are not *syntax* highlighted. Now I understand. Sorry for
missing that.
My understanding is that Sphinx does not use Python directly to parse the code
and highlight it, it uses pygments, which uses regexes. So this basically
amounts to
R. David Murray added the comment:
Huh. Well, in another issue Georg said it was now possible to upgrade the doc
build toolchain to Python3.
--
___
Python tracker
<http://bugs.python.org/issue14
R. David Murray added the comment:
No, you need to be able to pass bytes to Popen, just like you do to the
os.exec[xx] functions. When the OS doesn't fully support unicode, that is
sometimes the only option. As for filenames; again, as long as the underlying
systems use bytes filenam
R. David Murray added the comment:
I'm getting 'malformed patch at line 30' when I try to apply your patch.
Also, while it's not wrong, I don't think there's much point in catching the
NameError and doing a fail. The second Exception clause is definitely wrong
New submission from R. David Murray :
A common pattern (especially in writing tests) is to create a named temporary
file, operate on it with tools that take the filename, and then delete the
file. This pattern would be facilitated by a version of NamedTemporaryFile
that deleted the named
New submission from R. David Murray :
The title pretty much says it all. I believe the behavior is correct (more
useful than returning an object that is only useful for obtaining the name)
even though it is unusual for context managers. In any case there is plenty of
code using the existing
R. David Murray added the comment:
Grr. I did a search first, and even used google because I know search is
currently broken, and I did not find that issue.
--
___
Python tracker
<http://bugs.python.org/issue14
R. David Murray added the comment:
See issue 14514 for an alternate proposal to solve this. I did search before I
opened that issue, but search is currently somewhat broken and I did not find
this issue. I'm not marking it as a dup because my proposal is really a new
fe
R. David Murray added the comment:
Thanks, Popa. I made some style changes to the tests, but otherwise used your
patch. One small note: your might want to see about setting your editor to
show whitespace at the ends of lines, or use the 'make patchcheck' command to
check for
R. David Murray added the comment:
If one changes the stacklevel in the DeprecationWarnings in the library to '2'
instead of '1' (I believe it should be '2'), then an interesting array of
deprecation warnings are issued...including from cookiejar code.
Most of
4801 - 4900 of 12944 matches
Mail list logo