Chris Rebert pyb...@rebertia.com 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 default shell.
Modulo
Chris Rebert pyb...@rebertia.com added the comment:
Links to the rambling Unicode threads 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
Chris Rebert pyb...@rebertia.com 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 itself never
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7839
___
___
Python-bugs-list
New submission from Chris Rebert pyb...@rebertia.com:
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
Chris Rebert pyb...@rebertia.com 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: closed - open
Chris Rebert pyb...@rebertia.com 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't push hard if no one
Chris Rebert pyb...@rebertia.com 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
Chris Rebert pyb...@rebertia.com 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
New submission from Chris Rebert pyb...@rebertia.com:
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, but it's
Chris Rebert pyb...@rebertia.com 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 rep...@bugs.python.org
http://bugs.python.org
New submission from Chris Rebert pyb...@rebertia.com:
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
New submission from Chris Rebert pyb...@rebertia.com:
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@python
Chris Rebert pyb...@rebertia.com 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 rep...@bugs.python.org
http
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13866
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13703
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14015
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13997
___
___
Python-bugs-list
Chris Rebert pyb...@rebertia.com 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 would be nicer to rule
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12857
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12760
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9922
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13658
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13535
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10364
___
___
Python-bugs-list
Chris Rebert pyb...@rebertia.com added the comment:
Is format() really the best choice here, considering that {}s already have a
meaning in the shell?
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13238
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12961
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: -cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1170
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3177
___
___
Python-bugs-list
Chris Rebert pyb...@rebertia.com 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
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12192
___
___
Python-bugs-list
Chris Rebert pyb...@rebertia.com 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 pyb...@rebertia.com 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 rep...@bugs.python.org
http
Chris Rebert pyb...@rebertia.com 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
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12067
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11926
___
___
Python-bugs-list
Chris Rebert pyb...@rebertia.com added the comment:
the above Note mentioned in those last two lines demonstrates shlex.split()
and correct tokenization.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7950
Chris Rebert pyb...@rebertia.com 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.
--
Added file
New submission from Chris Rebert pyb...@rebertia.com:
See http://docs.python.org/py3k/c-api/unicode.html#file-system-encoding
Note the literal and unhyperlinked :func:PyUnicode_FSConverter in the last
sentence of the first paragraph. I suspect there's a trivial syntax error in
the ReST source
New submission from Chris Rebert pyb...@rebertia.com:
http://docs.python.org/py3k/library/os.html currently mentions os.popen() in
several places. The docs for os.popen() itself say:
'These functions are described in section File Object Creation'
However, unlike the 2.x version
Changes by Chris Rebert pyb...@rebertia.com:
Added file: http://bugs.python.org/file18209/subprocess.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7950
Chris Rebert pyb...@rebertia.com added the comment:
My apologies for the extra email...
--
Added file: http://bugs.python.org/file18210/subprocess.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7950
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file18209/subprocess.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7950
Chris Rebert pyb...@rebertia.com added the comment:
I found some extra time. Here's an initial suggested patch against py3k head.
Disclaimer: I have no special expertise in computer security beyond having read
Secure Coding: Principles and Practices a while back.
--
keywords: +patch
Chris Rebert pyb...@rebertia.com added the comment:
I'm busy with finding an apartment and taking exams for the next week-or-so,
but after that I'll try and suggest a patch. If anyone wants to have a crack at
it between now and then, don't let me stop you
Chris Rebert pyb...@rebertia.com 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
Chris Rebert pyb...@rebertia.com 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.
Secondly
Chris Rebert pyb...@rebertia.com 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/datamodel.rst.diff
Changes by Chris Rebert pyb...@rebertia.com:
Added file: http://bugs.python.org/file16893/datamodel.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5250
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
versions: +Python 2.6, Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5250
Chris Rebert pyb...@rebertia.com added the comment:
One problem with the 3.x versions: the raw_input() should be input().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Chris Rebert pyb...@rebertia.com added the comment:
Okay, now if this could just get dev review...
--
Added file: http://bugs.python.org/file16128/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file16109/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Chris Rebert pyb...@rebertia.com added the comment:
Thanks to all for the copious feedback suggestions, and R. David Murray for
his superior docs writing skills!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Chris Rebert pyb...@rebertia.com 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
Chris Rebert pyb...@rebertia.com 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
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file15033/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file16095/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Chris Rebert pyb...@rebertia.com 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 simpler example generally).
Whether
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file16101/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Changes by Chris Rebert pyb...@rebertia.com:
Added file: http://bugs.python.org/file16109/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file16108/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Chris Rebert pyb...@rebertia.com added the comment:
Working on a more concise new draft...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Chris Rebert pyb...@rebertia.com 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 rep...@bugs.python.org
http
Chris Rebert pyb...@rebertia.com 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
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file14770/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file16094/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7159
___
___
Python-bugs-list
Chris Rebert pyb...@rebertia.com added the comment:
Ok, changed to note directives instead of warnings. Anything else
that keeps this from being applied?
--
Added file: http://bugs.python.org/file15033/subprocess.rst.patch
___
Python tracker rep
Changes by Chris Rebert pyb...@rebertia.com:
Removed file: http://bugs.python.org/file14817/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6108
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6858
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
versions: +Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14817/subprocess.rst.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6783
___
___
Python-bugs-list
New submission from Chris Rebert pyb...@rebertia.com:
From what I've seen on several c.l.p threads, some people have a tough
time figuring the correct 'args' argument to subprocess.Popen's
constructor. In an effort to cut down on such discussions in the future,
I've written the attached docs
Chris Rebert pyb...@rebertia.com added the comment:
Added string conversions to table for good measure.
--
status: closed - open
Added file: http://bugs.python.org/file14771/table.rst
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Changes by Chris Rebert pyb...@rebertia.com:
--
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6760
___
___
Python-bugs
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1170
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6712
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4395
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4947
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6301
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6021
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5434
___
___
Python-bugs-list
New submission from Chris Rebert pyb...@rebertia.com:
Prompted by
http://mail.python.org/pipermail/python-ideas/2009-April/004048.html
The current error message issued when trying to use the get item ([])
operator on an object that does not define __getitem__ can be hard to
understand:
class
New submission from Chris Rebert pyb...@rebertia.com:
I would like the offer the table in the attached file for addition to
the 'time' module documentation so as to provide a quick overview of how
to convert between the various time representations. As it currently
stands (at least
201 - 287 of 287 matches
Mail list logo