Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12961>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Is format() really the best choice here, considering that {}s already have a
meaning in the shell?
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue10364>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13535>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13658>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12857>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12760>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue9922>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Scouting around the CPython codebase a bit, I speculate that the cause of this
behavior is that PyErr_GivenExceptionMatches() in errors.c uses
PyType_IsSubtype() [which simply walks a class's __mro__ checking for pointer
equality] rather
Chris Rebert added the comment:
Slight tangent: Regarding os.popen()'s [documentation] status, there's a bug
for that: http://bugs.python.org/issue9382
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.o
Chris Rebert added the comment:
Surveying the docs, the current behavior *is* /technically/ correct (in a
suspiciously precise way) according to the Language Reference:
http://docs.python.org/dev/reference/compound_stmts.html#grammar-token-try_stmt
:
"For an except clause with an expre
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12192>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Per msg129958, attached is my stab at a patch to replace most uses of
os.popen() with the subprocess module. The test suite passes on my Mac, but the
patch does touch some specific-to-other-platform code, so further testing is
obviously needed.
This is my
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue3177>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: -cvrebert
___
Python tracker
<http://bugs.python.org/issue1170>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Adjusted patch per R. David's comment.
I obviously think it should be a full red warning box (that's how it is in my
patch), but my opinion clearly isn't an outside one.
Also, Ping/Bump on finally getting this applied.
--
A
Chris Rebert added the comment:
"the above Note" mentioned in those last two lines demonstrates shlex.split()
and correct tokenization.
--
___
Python tracker
<http://bugs.python.
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue11926>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12029>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue12067>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Working on a more concise new draft...
--
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bugs-list mailin
Chris Rebert added the comment:
Okay; new, hopefully better, draft. Feedback?
--
versions: -Python 3.1
Added file: http://bugs.python.org/file16094/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6
Chris Rebert added the comment:
Gonna have to disagree about the raw_input(), because the escaping involved
would complicate the example and could be distracting/confusing.
Rest of Brian's suggestions taken into account.
--
Added file: http://bugs.python.org/file
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file14770/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bug
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file16094/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bug
Chris Rebert added the comment:
Well, the same basic example is used for cohesiveness, but the issue/pitfall
being highlighted in each note is distinct. But you have a point about shlex
being pointed out twice, so here's a version with that redundancy excised.
--
Added file:
Chris Rebert added the comment:
Counterpatch incorporating R. David Murray's succinctness improvements while
retaining correct positioning of the first note, managing to incorporate the
3rd note not present in Mr. Murray's, and including more precise wording to
address the problem
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file15033/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bug
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file16095/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bug
Chris Rebert added the comment:
This version takes Murray's most recent draft, applies some minor tweaks from
my prior patch, and has the "python -c" etc. changed to "echo '$MONEY'" so the
sh -c comment is completely unambiguous (and it's a
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file16101/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bug
Changes by Chris Rebert :
Added file: http://bugs.python.org/file16109/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bug
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file16108/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bug
Chris Rebert added the comment:
Okay, now if this could just get dev review...
--
Added file: http://bugs.python.org/file16128/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file16109/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bug
Chris Rebert added the comment:
Thanks to all for the copious feedback & suggestions, and R. David Murray for
his superior docs writing skills!
--
___
Python tracker
<http://bugs.python.org/is
Chris Rebert added the comment:
One problem with the 3.x versions: the raw_input() should be input().
--
___
Python tracker
<http://bugs.python.org/issue6
Changes by Chris Rebert :
--
nosy: +cvrebert
versions: +Python 2.6, Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/issue5250>
___
___
Python-bug
Chris Rebert added the comment:
Here's a draft of an updated version of the "Data model" docs reflecting the
changes in the PEP.
--
keywords: +patch
type: -> feature request
Added file: http://bugs.python.org/file16891/
Changes by Chris Rebert :
Added file: http://bugs.python.org/file16893/datamodel.rst.diff
___
Python tracker
<http://bugs.python.org/issue5250>
___
___
Python-bugs-list m
Chris Rebert added the comment:
This might need to be reopened.
There's a verb missing from he following sentence of the patch:
"This is consistent with the lookup of special methods that called on
instances, only that in this case the instance is itself a class."
Sec
Chris Rebert added the comment:
One last triviality: Could the mention of __subclasscheck__() in
http://docs.python.org/dev/library/abc.html#abc.ABCMeta.__subclasshook__ get
linked to the newly-added docs?
--
___
Python tracker
<h
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13997>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
@Bendersky:
Unlike open()'s other arguments, that one wouldn't be orthogonal though. It
would be possible to write e.g.:
f = open(fname, encoding="big5", errors="replace", ascii_only=True)
which seems disturbing, IMO. It w
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14015>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13866>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13703>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Chris Rebert :
The part of the Language Reference concerning the `def` statement
(http://docs.python.org/dev/reference/compound_stmts.htm#function-definitions )
should include a See Also link to PEP 3107 "Function Annotations".
--
assignee: docs@python
New submission from Chris Rebert :
The Glossary should include an entry for "annotation" and/or "function
annotation" regarding the language feature introduced by PEP 3107.
--
assignee: docs@python
components: Documentation
messages: 154852
nosy: cvrebert, docs@pyt
Chris Rebert added the comment:
The Design and History FAQ (will) need a minor corresponding update:
http://docs.python.org/dev/faq/design.html#how-are-dictionaries-implemented
--
___
Python tracker
<http://bugs.python.org/issue13
Chris Rebert added the comment:
My suggestion was a seealso to parallel those in the "The with Statement" and
"Class definitions" sections of the same page.
--
___
Python tracker
<http://bug
Chris Rebert added the comment:
Well, I thought the Glossary was a somewhat useful document in and of itself
("What's conceptual term 'X' mean? Hmm... I'll check the Glossary!") and so
should include all terms which aren't module-specific.
But I won'
Chris Rebert added the comment:
Also, it would be a nice place to point out for those coming from Java or
similar that the Java-esque concept of annotations has little to do with
Python's function annotations, and that in Python their uses are typically
served using decorators in
Chris Rebert added the comment:
Strawman entry wording:
An annotation is an arbitrary metadata value associated with a function
parameter or return value. The syntax for function annotations is explained in
[Function
definitions][http://docs.python.org/dev/reference/compound_stmts.html
New submission from Chris Rebert :
The entry for "dictionary" reads in part:
[...] The keys can be any object with __hash__() function and __eq__()
methods. [...]
__hash__() is a method, not a function (well, it's a "hash function" in the
computer science sense,
Chris Rebert added the comment:
I regret to inform you that those changes made the sentence in question
ungrammatical. Removing the word "method" will make it grammatical again (as
originally suggested).
--
resolution: fixed ->
status: c
New submission from Chris Rebert :
The randomization introduced by the fix for issue 13703 means that the example
string hash values given in
http://docs.python.org/dev/faq/design.html#how-are-dictionaries-implemented are
liable to become more difficult to reproduce (in fact, the example
Chris Rebert added the comment:
Links to the "rambling Unicode thread"s for posterity and convenience:
Gets into several issues, among them, Unicode:
http://mail.python.org/pipermail/python-ideas/2012-February/013665.html
Unicode-specific offshoot of the above:
http://mail.
Chris Rebert added the comment:
> The alternative is to call Popen(['xdg-open', etc.]) and check if we get
> ENOENT, but I don’t know if this would be non-ambiguous (for example, do we
> get ENOENT if xdg-open exists but not the file?).
It's unambiguous. Python itsel
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue7839>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
>> (2) Target file doesn't exist
>> (4) No application is associated with the file type in question
> I think that instead of mapping error codes to custom exceptions, which is
> fragile and not trivial to maintain, we should just
Chris Rebert added the comment:
> The reason I'm not a fan is the fact that, with "shell=True", you can use the
> *executable* argument to Popen to select a non-default shell. At that point,
> passing a list can make sense, even if it isn't useful for the defau
New submission from Chris Rebert :
The final line under "17.1.4.2. Replacing shell pipeline"
(http://docs.python.org/dev/library/subprocess.html#replacing-shell-pipeline )
isn't formatted as code (e.g. monospaced); it should be.
--
assignee: docs@python
components
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14544>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<https://bugs.python.org/issue22674>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue10581>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18163>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18166>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18162>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18170>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18335>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18406>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18369>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18264>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue18436>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Here's a quick stab at 2/3rds of an implementation, and some docs.
--
Added file: http://bugs.python.org/file25310/shutil_open.py
___
Python tracker
<http://bugs.python.org/i
Chris Rebert added the comment:
> # or os.name == 'mac' ???
Nope, that refers to retro Mac OS 9 (and probably lower). Mac OS X is 'posix'
for os.name purposes.
--
___
Python tracker
<http:/
Chris Rebert added the comment:
`operation` seems questionable. IMO, the verbs seem stronger / more important
than mere optional suggestions (particularly "open" vs. "edit" for files with
read-only viewers), and only Windows supports them (so anyone requiring that
featur
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14616>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
No, it isn't. Changing the `IOError(errno.ENOENT, "...`s to
`FileNotFoundError("...`s would half fix it.
The other half, the `OSError(errno.ENOSYS)`s, has a FIXME for what's the right
error to raise in that case ("no application asso
Chris Rebert added the comment:
>> ENOSYS was the closest approximation I could find. Thoughts? Custom
>> error class? Different errno? Something else?
>
> Why not ValueError?
Because the value they provided was perfectly valid (the file/directory *did*
exist), so the ca
Chris Rebert added the comment:
Hobs, why is exit code 4 of xdg-open (which the manpage describes as the
extremely generic "The action failed.") interpreted as FileNotFoundError in
your new version?
--
___
Python tracker
<http://bu
Chris Rebert added the comment:
Also:
The FileNotFoundErrors quote the path twice:
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
>>> path = "/foo/bar"
>>> print "Path '%s' may not exist" % repr(path)
Path ''/f
Chris Rebert added the comment:
The xdg-open source code
(http://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-open ) shows that
exit code 4 is used whenever an invocation of another opener script (e.g.
kde-open, gnome-open) fails for any reason besides said script not being
installed
Chris Rebert added the comment:
>> The semantics of "associated application" change considerably from
>> operating system to operating system. As an example,
>> ``os.startfile("a.py")`` will usually run `a.py` in the Python
>> interpreter, whil
Changes by Chris Rebert :
Added file: http://bugs.python.org/file25332/shutil_open.patch
___
Python tracker
<http://bugs.python.org/issue3177>
___
___
Python-bugs-list m
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue9530>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13968>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue10427>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Rebert added the comment:
Any reactions to the strawman wording for the entry?
--
___
Python tracker
<http://bugs.python.org/issue14187>
___
___
Python-bug
Chris Rebert added the comment:
Here's an actual patch.
--
keywords: +patch
Added file: http://bugs.python.org/file25544/func_annotation.patch
___
Python tracker
<http://bugs.python.org/is
Chris Rebert added the comment:
Right, I can see how the 3rd paragraph has become tangential given the refined
scope of the entry.
What do people think about a separate entry:
"annotation"
Can refer to either a `function annotation` or some uses of
`d
Changes by Chris Rebert :
Added file: http://bugs.python.org/file25568/function_annotation_v2.patch
___
Python tracker
<http://bugs.python.org/issue14187>
___
___
Pytho
Chris Rebert added the comment:
Patch to mention shlex.quote() in the `subprocess` module's "Frequently Used
Arguments" Warning box. Could perhaps be a separate Note, but that could be
clutter-y.
--
keywords: +patch
Added file: http://bugs.pytho
Chris Rebert added the comment:
Re: Nick's comments:
Besides `close_fds`, what other Popen parameters currently have suboptimal
defaults?
--
___
Python tracker
<http://bugs.python.org/i
Chris Rebert added the comment:
Draft docs patch. More cross-referencing. Analysis of deviations from RFC based
on previous docs & the RFC.
Don't know if there are relevant, more precise implementation limitations that
need to be mentioned.
If backported to 2.x, will need to cover
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14805>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue14757>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
Added file: http://bugs.python.org/file25592/json.rst.patch
___
Python tracker
<http://bugs.python.org/issue14674>
___
___
Python-bugs-list m
Chris Rebert added the comment:
New revision per Éric's Rietveld feedback.
Sidenote: Is there any way to get notified of these reviews? I only saw it
because I happened to click the "review" link on a lark.
--
Added file: http://bugs.python.org/file25594
1 - 100 of 289 matches
Mail list logo