Daniel Urban added the comment:
As John Hampton have explained it, the documentation is actually correct.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16607
___
Andras Szalai added the comment:
What mislead me is:
The current code uses `is` and opposed to `==` which I assume is for the very
specific reason to match identity and not value.
The sentinel starts with a _, which to a casual reader (me) suggests that it's
a private implementation detail
Vinay Sajip added the comment:
The sentinel starts with a _, which to a casual reader (me) suggests
that it's a private implementation detail that I should not have to
touch. (am I right on this?)
Python is a language for consenting adults, so nothing is off-limits, except
that you need to
New submission from Raninho Fernandes:
Community, I realized that there are libraries that do not follow the standard
PEP8, in order to start to contribute, I am providing the OS patch.
I do not know if has community interest in the corrections (PEP8).
thank you
--
files:
Ezio Melotti added the comment:
Thanks for your contribution, but we don't usually apply this kind of
refactoring unless we are already making changes to the a specific part of the
code. The reason is that even if they are trivial changes, there's an
(admittedly small) chance of introducing
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16607
___
Changes by Aaron Iles aaron.i...@gmail.com:
--
nosy: +aliles
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5289
___
___
Python-bugs-list mailing
R. David Murray added the comment:
That is indeed our standard policy. And yes, thank you for trying, Raninho. A
good way to make an initial contribution is to look for modules that don't yet
have full test coverage (there are a lot) and add tests. The devguide
Raninho Fernandes added the comment:
I will follow the suggestion of Murray.
Thanks Ezio and Murray.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16673
___
Andrew Svetlov added the comment:
LGTM
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16049
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Berker Peksag berker.pek...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file28301/issue16667.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16667
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16667
___
___
Andrew Svetlov added the comment:
I've reworded patch a bit and made it based on 3.2 for easier merging.
--
nosy: +asvetlov
Added file: http://bugs.python.org/file28302/issue16667_v2.diff
___
Python tracker rep...@bugs.python.org
Changes by Maximiliano Curia m...@debian.org:
--
nosy: +m...@debian.org
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4955
___
___
Maximiliano Curia added the comment:
Hi,
There are two issues commented in this bug, both are part of libexpat.
The one related the code inconsistency is due the design of Xml_Parser.
Reading Modules/expat/xmlparse.c:5036
else if (!entity) {
/* Cannot report skipped entity
Roundup Robot added the comment:
New changeset ce85fe971e0a by Ross Lagerwall in branch '3.3':
Issue #16661: Fix the os.getgrouplist() test by not assuming that it
http://hg.python.org/cpython/rev/ce85fe971e0a
New changeset 05a37954a30c by Ross Lagerwall in branch 'default':
Merge with 3.3 for
Nurhusien Hasen added the comment:
On 12/14/12, Berker Peksag rep...@bugs.python.org wrote:
Changes by Berker Peksag berker.pek...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file28301/issue16667.diff
___
Python tracker
Ross Lagerwall added the comment:
Is that fixed now? I simplified the test to check for a non-empty list being
returned.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16661
___
Éric Araujo added the comment:
Feel free to commit the patch Andrew. You may want to document the new ABC
class before the ABCMeta, as we expect that subclassing will become the
preferred way.
--
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg177410
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16667
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16667
___
Éric Araujo added the comment:
Second patch has a stray slash character, and the versionadded directive does
not seem to be in the same place as the first patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16667
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
title: [docs] class Point in collections.namedtuples may be not that good
example - Point class may be not be a good example for namedtuple
versions: +Python 3.4 -Python 2.6, Python 3.1
myreallycoolname added the comment:
Ok, but perhaps in order to aviod confusion the documentation could be changed
so that the examples are complete or have an additional new line as needed.
--
___
Python tracker rep...@bugs.python.org
Andrew Svetlov added the comment:
+1 for leaving the doc as is
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16670
___
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16665
___
___
Python-bugs-list
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1
___
___
Éric Araujo added the comment:
Anatoly
b'Русское имя' is not a valid syntax construct in Python 3 even though I have
correct 'coding: utf-8' header and expect characters to be utf-8 bytes.
David
The byte string vs the coding cookie is an interesting observation, but is a
separate
issue
John Hampton added the comment:
Ok, but perhaps in order to aviod confusion the documentation could be changed
so that the examples are complete or have an additional new line as needed.
Well, they are complete. And it's only an issue with the interpreter. If you
were to copy and paste the
Eric Snow added the comment:
What is wrong with the following?
class Point(namedtuple('Point', 'x y')):
A 2-dimensional coordinate
x - the abscissa
y - the ordinate
This seems more clear to me. namedtuple is in some ways a quick-and-dirty
type, essentially a more true
Éric Araujo added the comment:
Should itertools be in the list, as its stated purpose is to provide highly
efficient functions?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16651
Roundup Robot added the comment:
New changeset 9347869d1066 by Andrew Svetlov in branch 'default':
Issue #16049: add abc.ABC helper class.
http://hg.python.org/cpython/rev/9347869d1066
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Éric Araujo added the comment:
Hm, unix shells have different rules about matching a leading dot or not. Are
the docs clear about Python's glob's rules?
--
nosy: +eric.araujo
versions: -Python 3.5
___
Python tracker rep...@bugs.python.org
Éric Araujo added the comment:
There are two or three issues on this tracker where we discuss the parameters
notation conventions. I think I remember a proposal to add text explaining
that the keyword notation does not imply that the function accepts keyword
argument, only that there is a
Andrew Svetlov added the comment:
Done. I prefer to leave existing class order in documentation.
In general I agree with Eric that ABC should be before ABCMeta in the doc but
now it has formalized as helper for metaclass with very short documentation.
To put ABC first we need to transplate
Andrew Svetlov added the comment:
Thanks, Bruno.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16049
___
Éric Araujo added the comment:
Yes, let’s keep the pydoc/pyvenv/etc convention for pyunit. The audience is
developers, whom we expect to be able to set up their environment correctly,
and the -m fallback still works.
--
nosy: +eric.araujo
___
Chris Jerdonek added the comment:
Is issue 13386 one of the issues you had in mind, Éric? I don't know the
current best practices for all of the signature edge cases, but Ezio might.
Personally, I think explicitly stating in the text that the parameters are
positional-only can't hurt,
Sebastian Kreft added the comment:
The docs don't say anything about it. However the code is there (docs bug
probably).
See the following lines in glob.py:
57 if pattern[0] != '.':
58 names = [x for x in names if x[0] != '.']
59 return fnmatch.filter(names,
rurpy added the comment:
An ammendment to my proposed doc change.
Replace the text (which is unchanged from the current doc),
...the result is a valid Python expression
with,
...the result is a valid Python hexinteger literal (see link:[Python Lang
Ref, sec 2.4.4. Integer literals])
Ezio Melotti added the comment:
Personally, I think explicitly stating in the text that the parameters
are positional-only can't hurt, especially since that's the rarer case,
no?
OTOH it's an implementation detail that might be changed at some point.
The other option is to use [] in the
Brett Cannon added the comment:
Eric, I know you didn't just mean to suggest Python != efficient. =)
Yes, it should be in the list because other VMs might not want to re-implement
that code in some native language to the VM. And I assume all code in the
stdlib tries to be efficient, so that
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file28296/random_pure_python_4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16659
___
Serhiy Storchaka added the comment:
Patch updated. One bug fixed.
Also I made some benchmarks. The pure Python random() about 100 times slower
and getrandbits(32) about 13 times slower than the C implementation.
--
Added file:
Chris Jerdonek added the comment:
This issue only applies to 2.7. Keyword arguments are accepted in 3.x. See
the interactive example here, for example:
http://docs.python.org/3.2/library/socket.html#socket.getaddrinfo
--
versions: -Python 2.6
Serhiy Storchaka added the comment:
Yes, we can use inheritance trick/idiom to specify a class docstring. But there
are no way to specify attribute docstrings.
I encountered this when rewriting some C implemented code to Python.
PyStructSequence allows you to specify docstrings for a class
Ezio Melotti added the comment:
In that case I think it's OK to use the [] and mention the default values in
the text.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1
___
New submission from Serhiy Storchaka:
The proposed patch adds a fast patch for generating small integers (the most
common use case).
Microbenchmark:
$ ./python -m timeit -s import random; r=random.getrandbits; n=30
r(n);r(n);r(n);r(n);r(n);r(n);r(n);r(n);r(n);r(n)
Non patched: 4.27 usec per
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16674
___
___
Python-bugs-list mailing list
New submission from Matt Hickford:
Python should ship with a full-featured package manager. Why?
1. Most programmers would rather use a reliable maintained library for a common
task than roll their own code. Then the programmer can get on with solving
their unique problems. This assumes the
anatoly techtonik added the comment:
There is one more problem - when I redirect the output with:
py test_unicode_fname.py test.log 21
In Python 2.7 the traceback is at the end of file, in Python 3.3 it is at the
beginning. Therefore I just copied data from the screen, where it appears in
Changes by anatoly techtonik techto...@gmail.com:
Added file: http://bugs.python.org/file28305/py27fname.log
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16656
___
Changes by anatoly techtonik techto...@gmail.com:
Added file: http://bugs.python.org/file28306/py33fname.log
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16656
___
Amaury Forgeot d'Arc added the comment:
Anatoly, please file another issue for the 21 mess.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16656
___
Eric V. Smith added the comment:
Because this is a new feature, it could only be added to Python 3.4. Changing
versions.
--
components: +Installation
nosy: +eric.smith
type: behavior - enhancement
versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python
3.5
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16357
___
___
Python-bugs-list mailing list
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16651
___
___
Python-bugs-list
New submission from Tres Seaver:
A test of the 'persistent' package C extension segfaults under 3.3,
but completes successfully under 3.2. The C function being tested
is a wrapper around PyType_GenericNew:
static PyObject *
simple_new(PyObject *self, PyObject *type_object)
{
if
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16478
___
___
Python-bugs-list mailing list
R. David Murray added the comment:
Matt, thanks for your interest. This possibility has been discussed, so you
aren't the only one who thinks it should happen.
However, I don't think this is an appropriate issue for the tracker. This is
part of an ongoing discussion and process on
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1818
___
___
Python-bugs-list
Trent Nelson added the comment:
I spent a little time on this yesterday. Here's what I came up with. The idea
is to have a standalone block in configure.ac that kicks in when --without-gcc
is specified (or if $CC != gcc) *IFF* CFLAGS/CPPFLAGS haven't been provided
by the user.
If they
New submission from rurpy:
Python Language Reference, chapter 6 Expressions.
The last section (6.15) of this is titled, Summary. That title is misleading
-- it is not really a summary of the Expressions chapter but rather, as the
first sentence makes clear, a table of operator precedences.
Ned Deily added the comment:
Without having reviewed the proposed change in detail, a couple of comments.
On current OS X systems and others, the compiler could be clang which perhaps
should be treated as gcc for most autoconf purposes. Also, why are we putting
any effort into supporting
Larry Hastings added the comment:
I don't think we can solve the problem of the output being too long for your
liking. Personally I like the output; I find it eminently readable, and making
it shorter would impair that. I think in the majority of uses Clinic will be a
win for readability.
65 matches
Mail list logo