Eli Bendersky added the comment:
> What do you suggest? Replace it by class threading._Condition?
-1 on this
IMHO just documenting the situation as it is would make more sense
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.pyth
New submission from Eli Bendersky :
Regarding the sample code in:
http://docs.python.org/library/itertools#itertools.izip_longest
If an IndexError is raised inside an iterator in the "equivalent" code
from the docs, the generator stops and the error is swallowed.
If an IndexError
Eli Bendersky added the comment:
What about at least documenting it? Since a real user ran into this and
reported it as a problem, I think it would make sense to make the discrepancy
explicit.
Alternatively a generalized note can be added to the documentation of itertools
stating that the
New submission from Eli Bendersky :
Report from Joao Carneiro in the docs@ maillist:
I would like to report that I found a mistake in the document of "help(set)".
In the document all the __i*__ methods are described exactly like the same
methods withou
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue13191>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Eli Bendersky :
Operator <> was removed in Python 3, but still appears in Grammar/Grammar (and
hence in Doc/reference/grammar.rst)
Reported by Alexander Ivanyuta on the docs mailing list
--
assignee: docs@python
components: Documentation, Interpreter Core
me
Eli Bendersky added the comment:
The relevant code in Parser/parsetok.c is:
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
if (type == NOTEQUAL) {
if (!(ps->p_flags & CO_FUTURE_BARRY_AS_BDFL) &&
strcmp(str, "!=")) {
Changes by Eli Bendersky :
--
nosy: +barry, brett.cannon, fdrake, ncoghlan
___
Python tracker
<http://bugs.python.org/issue13239>
___
___
Python-bugs-list mailin
New submission from Eli Bendersky :
User report on the docs@ list:
-
http://docs.python.org/tutorial/classes.html#instance-objects
I think the "counter" attribute is mentioned for the first time in the
example code, not "in Instance of MyClass created above", i.e. cl
New submission from Eli Bendersky :
User (Yoann Roman) report on docs@ maillist:
The docs for logging.handlers.TimedRotatingFileHandler in Python 2.7 say that
the "utc" keyword argument was added in 2.7:
http://docs.python.org/library/logging.handlers.html#timedrotatingfilehan
Eli Bendersky added the comment:
Yep, I agree, Ori.
The paragraph immediately preceding the code sample says:
"Data attributes need not be declared; like local variables, they spring
into existence when they are first assigned to [...] the following piece of
code will print the val
Changes by Eli Bendersky :
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue13352>
___
___
Python-bugs-list
Eli Bendersky added the comment:
While we're at it, wouldn't it be clearer to say "... where each tab character
is replaced by..."?
--
nosy: +eli.bendersky
___
Python tracker
<http://bug
Eli Bendersky added the comment:
Other than that, the patch looks good.
--
___
Python tracker
<http://bugs.python.org/issue13365>
___
___
Python-bugs-list mailin
New submission from Eli Bendersky :
docs@ list report by Daniel Dieterle:
in the documentation
(http://docs.python.org/library/subprocess.html#subprocess.Popen.send_signal)
is a bug.
CTRL_C_EVENT can not be sent to processes started with a creationflags
parameter which includes
Eli Bendersky added the comment:
Committed. Thanks for contributing.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue13365>
___
_
Changes by Eli Bendersky :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue13191>
___
___
Python-bugs-list mailing list
Unsubscri
Eli Bendersky added the comment:
Attaching a patch with a clarifying comment in Grammar/Grammar. Should be
enough for now?
--
keywords: +patch
Added file: http://bugs.python.org/file23656/issue13239.patch
___
Python tracker
<http://bugs.python.
Eli Bendersky added the comment:
Brian, I see this text (along with the implementation) was added by you in
60197:0ab89e8bdedc
Could you state your opinion on this issue?
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.
Changes by Eli Bendersky :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue13161>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Eli Bendersky :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12875>
___
___
Python-bugs-list mailing list
Unsubscri
New submission from Eli Bendersky :
The flags 're' accept are numeric underneath, and the current value of "no
flags" is just 0, which is also specified in the documentation as the default
value. However, using raw numeric values is not a good programming practice.
The su
Eli Bendersky added the comment:
Antoine, what's the outcome of people wondering about the difference? I don't
see what's bad about it, it's not as if people are writing (or supposed to
write) code that does arithmetic on these flag values. Their only usage is to:
1
Eli Bendersky added the comment:
Amaury & Georg,
Grepping through the docs disagrees with your claims ;-) Try to grep for
"\=None\]" to see what I mean. There are tons of places where default values
are placed inside the brackets. For example in
http://docs.python.org/li
Eli Bendersky added the comment:
Ezio, what do you suggest to do regarding *this* issue?
--
___
Python tracker
<http://bugs.python.org/issue12875>
___
___
Pytho
Eli Bendersky added the comment:
I propose the attached patch for the documentation. Any objections?
--
keywords: +patch
Added file: http://bugs.python.org/file23657/issue12767.1.patch
___
Python tracker
<http://bugs.python.org/issue12
Eli Bendersky added the comment:
Graeme, any news on this?
If you re-do the patch for current tip and address the review comments, I think
we can commit it.
--
___
Python tracker
<http://bugs.python.org/issue12
Changes by Eli Bendersky :
--
nosy: -eli.bendersky
___
Python tracker
<http://bugs.python.org/issue12188>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eli Bendersky :
--
nosy: -eli.bendersky
___
Python tracker
<http://bugs.python.org/issue11173>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eli Bendersky :
--
nosy: -eli.bendersky
___
Python tracker
<http://bugs.python.org/issue3849>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eli Bendersky :
--
nosy: -eli.bendersky
___
Python tracker
<http://bugs.python.org/issue10838>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eli Bendersky :
--
nosy: -eli.bendersky
___
Python tracker
<http://bugs.python.org/issue5088>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eli Bendersky :
--
nosy: -eli.bendersky
___
Python tracker
<http://bugs.python.org/issue10501>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eli Bendersky added the comment:
Hmm, I've just notice that this [default=val] pattern already exists in the
're' docs in 2.7, for example:
subn(repl, string[, count=0])
So my change was consistent within the documentation of this module.
No doubt, the conventions are c
Eli Bendersky added the comment:
Ezio, thanks for the catch. I missed that one. Attaching a new, fixed patch.
--
Added file: http://bugs.python.org/file23658/issue12767.2.patch
___
Python tracker
<http://bugs.python.org/issue12
Eli Bendersky added the comment:
I think we have enough < 0 to reject the issue. Closing.
--
resolution: -> rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Eli Bendersky added the comment:
I have converted the Doc/library/re.rst doc of 2.7 to follow the new convention
of 3.x, patch attached.
--
keywords: +patch
Added file: http://bugs.python.org/file23668/issue12875.1.patch
___
Python tracker
<h
Eli Bendersky added the comment:
Éric, do you feel strongly about the wording, or can I just go ahead and commit
my version if I like it more :) ?
--
___
Python tracker
<http://bugs.python.org/issue13
New submission from Eli Bendersky :
Our Hg repo has some useful hooks on commit messages that allow to
specify which issue to notify for commits, and which issue to close.
AFAIU, it's currently documented only in the code of the hook
(http://hg.python.org/hooks/file/tip/hgroundup.py
Eli Bendersky added the comment:
You should also explicitly specify what happens in several optional but not
keyword args are needed. AFAIU the convention is:
func(arg1, arg2[, opt1, opt2])
--
___
Python tracker
<http://bugs.python.
Eli Bendersky added the comment:
Attaching a patch with the suggested change. Based on the doc-string in the
implementation of the hook.
--
keywords: +patch
Added file: http://bugs.python.org/file23669/issue13388.1.patch
___
Python tracker
<h
Eli Bendersky added the comment:
Petri, I have actually tried to stay consistent within the same document, and
it uses ' for this level of heading. Perhaps it's just not following the Sphinx
guide?
IIRC the restructured text parser will also shout at you if these are
in
Eli Bendersky added the comment:
Nice, I didn't know about issue #2771 ;-)
Will update the patch!
--
___
Python tracker
<http://bugs.python.org/is
Changes by Eli Bendersky :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12875>
___
___
Python-bugs-list mailing list
Unsubscri
Eli Bendersky added the comment:
An updated patch attached, explaining that several issues can be mentioned in a
single commit message
--
Added file: http://bugs.python.org/file23683/issue13388.2.patch
___
Python tracker
<http://bugs.python.
Eli Bendersky added the comment:
Ezio, regarding your latest message:
"The problem is when the default placeholder is some unique object() or some
_internal value (we had something similar with a socket timeout once)."
I hope this should be rare enough not to present a significa
Eli Bendersky added the comment:
Sandro - yep, the sentinels arg is also undocumented in
multiprocessing.PipeConnection.recv() and further down the road...
--
___
Python tracker
<http://bugs.python.org/issue11
Eli Bendersky added the comment:
However, sentinels *are* mentioned in the multiprocessing doc, below
multiprocessing.Process:
"
sentinel
A numeric handle of a system object which will become “ready” when the
process ends.
On Windows, this is an OS handle usable wit
Eli Bendersky added the comment:
What you say makes sense, now I just have to dig up where I saw instances of [,
opt1, opt2]
If anything, this is another proof that such conventions must be agreed upon
and meticulously documented.
--
___
Python
Eli Bendersky added the comment:
""So would it be worth the effort to identify each such place in the
built-ins/stdlib and eventually change them all? I've seen support for doing
so in other tracker issues and think it's a good idea personally.""
Probably,
Eli Bendersky added the comment:
Then it appears to me that Sandro's patch is good and can be committed.
--
___
Python tracker
<http://bugs.python.org/is
Eli Bendersky added the comment:
Committed, with the fix suggested by Éric
--
resolution: fixed ->
stage: committed/rejected ->
status: closed -> open
___
Python tracker
<http://bugs.python.or
Eli Bendersky added the comment:
Eric,
Spot on :-)
This is *exactly* the reason that led me to open issue 12875, which eventually
led to this one.
--
___
Python tracker
<http://bugs.python.org/issue13
Eli Bendersky added the comment:
Éric, feel free to fix it to your heart's desire ;-) I think that having it
documented is far more important than nuances in nomenclature, so I'm -0 on
this.
--
___
Python tracker
<http://bu
Eli Bendersky added the comment:
LGTM
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue13402>
___
___
Python-bugs-list mailing list
Unsub
New submission from Eli Bendersky :
Michał Chałupczak reported in this docs@ list that the links to IBM
developerworks articles are wrong.
>From some additional observation, the code samples on the 3.x page use the
>external `functional` module, which was not ported to Python 3 at a
Eli Bendersky added the comment:
Andrew, thanks, but I still think it's a bigger problem that the page discusses
a module which is not available on Python 3.x - this means that a user
following the page can't just type in the code and make it run.
The links can be fixed and kept
Eli Bendersky added the comment:
> Before doing that, would you have the time to contact its author and inquire
> about porting plans?
I hope to find the time. I was also thinking about an alternative - since the
HOWTO probably uses just a handful of functions from that module perhap
Eli Bendersky added the comment:
'bool' is just one of many conversion functions that convert their argument to
the type they designate. Does this doc problem only exist for 'bool' or also
for 'int', 'float' and
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue1040439>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eli Bendersky added the comment:
Éric, this is for embedding a Python interpreter in a C/C++ application. I tend
to agree that the official doc page
(http://docs.python.org/extending/embedding.html) on this topic is somewhat
lacking in the area of the configuration/compilation procedure
Eli Bendersky added the comment:
Antoine, this is a big improvement - LGTM.
--
___
Python tracker
<http://bugs.python.org/issue1040439>
___
___
Python-bugs-list m
Eli Bendersky added the comment:
Yep, it appears that Raymond has fixed this in changeset b0065b9087ef
--
resolution: wont fix -> fixed
___
Python tracker
<http://bugs.python.org/issu
Eli Bendersky added the comment:
+1
--
keywords: +easy
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue13527>
___
___
Python-bugs-list mailin
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue13530>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue13574>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Eli Bendersky :
I've decided to study the multiprocessing module a bit, and carefully went over
the docs (for 2.7). Some small fixes I will commit myself, but a few issues
came up on which I'd like some opinion from others. In rough order of
appearance in the d
Eli Bendersky added the comment:
10. Unless I'm missing something entirely obvious, except in the examples it
says that Value has a "value" attribute for actual data access. One is expected
to look in the docs of ctypes to find that?
--
___
Eli Bendersky added the comment:
And while we're at it, I would consider revising both sentences in a more
fundamental way, since they're too chatty for the official docs.
--
nosy: +eli.bendersky
___
Python tracker
<http://bu
Eli Bendersky added the comment:
Éric, I'm not sure that the note is necessary at all, but once it's there, it
should value *correctness* over conciseness and readability.
--
___
Python tracker
<http://bugs.python.o
Eli Bendersky added the comment:
Agreed.
Fix committed & issue closed.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12003>
___
_
Eli Bendersky added the comment:
Closing this issue, since it specifically refers to the select error which was
fixed. Tracking the removal of the sockets howto document can be done elsewhere.
--
resolution: -> fixed
status: open ->
Eli Bendersky added the comment:
Ezio, you're right, there are still a lot of undocumented symbols (functions,
classes, globals). I compiled a list of those I could not find in the .rst
docs, excluding ones that are only used in regrtest.py i
Eli Bendersky added the comment:
os.popen() is certainly deprecated. Its documentation in both 2.6 and 2.7 notes:
Deprecated since version 2.6: This function is obsolete. Use the subprocess
module.
Indeed, the Python 3.x library/os.rst doc mentions it several times, but the
documentation
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue12188>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue12223>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eli Bendersky added the comment:
Brian - great, thanks.
--
___
Python tracker
<http://bugs.python.org/issue11583>
___
___
Python-bugs-list mailing list
Unsub
Eli Bendersky added the comment:
>From a cursory look at reference/datamodel and library/operator, I see no
>other instances of this error. I didn't read every word, however (just grepped
>for possible operator/operand mismatches).
Also, AFAICS this error is only in 2.7 - the
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue12380>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eli Bendersky :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12223>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue12043>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eli Bendersky added the comment:
In my opinion, it's the error messages and docstrings that should be changed,
not the documentation. This module was introduced in 2.6 and moves on to 2.7,
and there's no reason to have it throw confusing errors for the sake of easier
back-patchin
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue12531>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eli Bendersky added the comment:
The difference between 2.6 and 2.7 stems from the rewrite of the IO library in
C that was made for 2.7
The error Terry sees gets thrown here (in Modules/_io/stringio.c):
if (!PyUnicode_Check(obj)) {
PyErr_Format(PyExc_TypeError, "string arg
Eli Bendersky added the comment:
Peter, doesn't your patch also refer to the meaning of * and ** in function
definitions?
I would argue that the missing reference is to a paragraph further down:
[...] If the syntax *expression appears in the function call, expression
must evaluate
Eli Bendersky added the comment:
On one hand, I agree that the situation isn't intuitive. Why should some
methods of bytearray accept bytearrays, and some shouldn't?
On the other hand, this actually has rather deep implementation reasons.
Methods like 'translate' are im
Eli Bendersky added the comment:
> The documentation for Queue in all versions of Python 2.7 and 2.6 (see
> http://docs.python.org/release/2.6.7/library/queue.html#module-Queue for
> the 2.7 docs) has the title "queue -- A synchronized queue class." The
> module, howeve
Changes by Eli Bendersky :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12574>
___
___
Python-bugs-list
Eli Bendersky added the comment:
> > Therefore, I propose to change this error message to:
> > "unicode argument expected, got '%s'"
> > as Terry suggested.
> >
>
> Sounds good to me.
>
Terry, what are your thoughts?
Can I commit th
Changes by Eli Bendersky :
Removed file: http://bugs.python.org/file22687/unnamed
___
Python tracker
<http://bugs.python.org/issue12434>
___
___
Python-bugs-list mailin
Changes by Eli Bendersky :
Removed file: http://bugs.python.org/file22694/unnamed
___
Python tracker
<http://bugs.python.org/issue12434>
___
___
Python-bugs-list mailin
Eli Bendersky added the comment:
Peter, would you like to submit a corrected patch?
--
___
Python tracker
<http://bugs.python.org/issue12531>
___
___
Python-bug
Changes by Eli Bendersky :
--
nosy: +eli.bendersky
___
Python tracker
<http://bugs.python.org/issue12540>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eli Bendersky :
--
resolution: -> fixed
status: open -> closed
versions: -Python 2.7
___
Python tracker
<http://bugs.python.org/issue12434>
___
__
Eli Bendersky added the comment:
Is the problem happening only on 64-bit Windows, or 32-bit as well?
--
___
Python tracker
<http://bugs.python.org/issue12
Eli Bendersky added the comment:
Alright, since *some* tests are better than no tests at all, I will try to
combine the patches currently attached to the issue, port them to the Hg repo
and commit.
--
___
Python tracker
<http://bugs.python.
Eli Bendersky added the comment:
Brett, what do you mean by "listed as an essential test in regrtest". The
regrtest.STDTESTS list?
--
___
Python tracker
<http://bugs.python.o
Eli Bendersky added the comment:
This changeset incorporates Giampaolo's patch with a minor fix in
`test.support.python_is_optimized` (which returned '' for False sometimes).
--
___
Python tracker
<http://bugs.pyt
Eli Bendersky added the comment:
OK, I can reproduce the problem on a clean virtual machine running a pristine
XP home SP2. No Python was previously installed.
Steps to reproduce:
1. Install Python 3.2.1 MSI from http://www.python.org/download/releases/3.2.1/
2. Run IDLE from start menu
3
Eli Bendersky added the comment:
Am I missing something, or is there no explicit command to kill the subprocess
on Windows in PyShell.py
The kill_subprocess method (which does get invoked) of ModifiedInterpreter is:
def kill_subprocess(self):
try:
self.rpcclt.close
1 - 100 of 1229 matches
Mail list logo