[issue16607] Bad examples in documentation

2012-12-13 Thread Daniel Urban
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 ___

[issue16671] logging.handlers.QueueListener sentinel should not be None

2012-12-13 Thread Andras Szalai
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

[issue16671] logging.handlers.QueueListener sentinel should not be None

2012-12-13 Thread Vinay Sajip
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

[issue16673] Corrections in the library OS (PEP8)

2012-12-13 Thread Raninho Fernandes
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:

[issue16673] Corrections in the library OS (PEP8)

2012-12-13 Thread Ezio Melotti
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

[issue16607] Bad examples in documentation

2012-12-13 Thread Ezio Melotti
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 ___

[issue5289] ctypes.util.find_library does not work under Solaris

2012-12-13 Thread Aaron Iles
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

[issue16673] Corrections in the library OS (PEP8)

2012-12-13 Thread R. David Murray
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

[issue16673] Corrections in the library OS (PEP8)

2012-12-13 Thread Raninho Fernandes
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 ___

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-12-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16049 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16667] timezone docs need versionadded: 3.2

2012-12-13 Thread Berker Peksag
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 ___

[issue16667] timezone docs need versionadded: 3.2

2012-12-13 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16667 ___ ___

[issue16667] timezone docs need versionadded: 3.2

2012-12-13 Thread Andrew Svetlov
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

[issue4955] xml.sax.expatreader.ExpatParser incorrectly silently skips external character entities in attribute values

2012-12-13 Thread Maximiliano Curia
Changes by Maximiliano Curia m...@debian.org: -- nosy: +m...@debian.org ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4955 ___ ___

[issue4955] xml.sax.expatreader.ExpatParser incorrectly silently skips external character entities in attribute values

2012-12-13 Thread Maximiliano Curia
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

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-13 Thread Roundup Robot
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

[issue16667] timezone docs need versionadded: 3.2

2012-12-13 Thread Nurhusien Hasen
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

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-13 Thread Ross Lagerwall
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 ___

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-12-13 Thread Éric Araujo
É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

[issue16667] timezone docs need versionadded: 3.2

2012-12-13 Thread Éric Araujo
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 ___

[issue16667] timezone docs need versionadded: 3.2

2012-12-13 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16667 ___

[issue16667] timezone docs need versionadded: 3.2

2012-12-13 Thread Éric Araujo
É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

[issue16670] Point class may be not be a good example for namedtuple

2012-12-13 Thread Éric Araujo
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

[issue16607] Bad examples in documentation

2012-12-13 Thread myreallycoolname
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

[issue16670] Point class may be not be a good example for namedtuple

2012-12-13 Thread Andrew Svetlov
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 ___ ___

[issue16665] doc for builtin hex() is poor

2012-12-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16665 ___ ___ Python-bugs-list

[issue16666] docs wrongly imply socket.getaddrinfo takes keyword arguments in 2.x

2012-12-13 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1 ___ ___

[issue16656] os.walk ignores international dirs on Windows

2012-12-13 Thread Éric Araujo
É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

[issue16607] Bad examples in documentation

2012-12-13 Thread John Hampton
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

[issue16669] Docstrings for namedtuple

2012-12-13 Thread Eric Snow
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

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-13 Thread Éric Araujo
É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

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-12-13 Thread Roundup Robot
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

[issue16664] [PATCH] Test Glob: files starting with .

2012-12-13 Thread Éric Araujo
É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

[issue16666] docs wrongly imply socket.getaddrinfo takes keyword arguments in 2.x

2012-12-13 Thread Éric Araujo
É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

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-12-13 Thread Andrew Svetlov
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

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-12-13 Thread Andrew Svetlov
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 ___

[issue14266] pyunit script as shorthand for python -m unittest

2012-12-13 Thread Éric Araujo
É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 ___

[issue16666] docs wrongly imply socket.getaddrinfo takes keyword arguments in 2.x

2012-12-13 Thread Chris Jerdonek
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,

[issue16664] [PATCH] Test Glob: files starting with .

2012-12-13 Thread Sebastian Kreft
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,

[issue16665] doc for builtin hex() is poor

2012-12-13 Thread rurpy
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])

[issue16666] docs wrongly imply socket.getaddrinfo takes keyword arguments in 2.x

2012-12-13 Thread Ezio Melotti
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

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-13 Thread Brett Cannon
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

[issue16659] Pure Python implementation of random

2012-12-13 Thread Serhiy Storchaka
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 ___

[issue16659] Pure Python implementation of random

2012-12-13 Thread Serhiy Storchaka
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:

[issue16666] docs wrongly imply socket.getaddrinfo takes keyword arguments in 2.x

2012-12-13 Thread Chris Jerdonek
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

[issue16669] Docstrings for namedtuple

2012-12-13 Thread Serhiy Storchaka
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

[issue16666] docs wrongly imply socket.getaddrinfo takes keyword arguments in 2.x

2012-12-13 Thread Ezio Melotti
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 ___

[issue16674] Faster getrandbits() for small integers

2012-12-13 Thread Serhiy Storchaka
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

[issue16674] Faster getrandbits() for small integers

2012-12-13 Thread Jesús Cea Avión
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

[issue16675] Ship Python with a package manager

2012-12-13 Thread Matt Hickford
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

[issue16656] os.walk ignores international dirs on Windows

2012-12-13 Thread anatoly techtonik
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

[issue16656] os.walk ignores international dirs on Windows

2012-12-13 Thread anatoly techtonik
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 ___

[issue16656] os.walk ignores international dirs on Windows

2012-12-13 Thread anatoly techtonik
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 ___

[issue16656] os.walk ignores international dirs on Windows

2012-12-13 Thread Amaury Forgeot d'Arc
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 ___

[issue16675] Ship Python with a package manager

2012-12-13 Thread Eric V. Smith
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

[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile

2012-12-13 Thread Jesús Cea Avión
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

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-13 Thread Zachary Ware
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

[issue16676] Segfault under Python 3.3 after PyType_GenericNew

2012-12-13 Thread Tres Seaver
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

[issue16478] Fix division in tabnanny

2012-12-13 Thread Jesús Cea Avión
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

[issue16675] Ship Python with a package manager

2012-12-13 Thread R. David Murray
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

[issue1818] Add named tuple reader to CSV module

2012-12-13 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1818 ___ ___ Python-bugs-list

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-12-13 Thread Trent Nelson
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

[issue16677] Hard to find operator precedence in Lang Ref.

2012-12-13 Thread rurpy
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.

[issue15963] Improve ./configure's support for 32/64-bit debug|release|profiled builds w/ vendor (non-gcc) compilers on proprietary UNIX systems (Solaris/HP-UX/AIX et al).

2012-12-13 Thread Ned Deily
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

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2012-12-13 Thread Larry Hastings
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.