[issue16801] Preserve original representation for integers / floats in docstrings

2014-04-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21314] Bizarre help

2014-04-20 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21319] WindowsRegistryFinder never added to sys.meta_path

2014-04-20 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue21319] WindowsRegistryFinder never added to sys.meta_path

2014-04-20 Thread Eric Snow
New submission from Eric Snow: For #14578 we added WindowsRegistryFinder to importlib and try adding it to sys.meta_path during bootstrap (see bd58c421057c). I happened to notice that in _install() in Lib/importlib/_bootstrap.py we check os.__name__. Shouldn't it be os.name? os.__name__ is a

[issue19771] runpy should check ImportError.name before wrapping it

2014-04-20 Thread Luiz Poleto
Luiz Poleto added the comment: As suggested by Nick, the fix is done be verifying the name attribute of the raised ImportError exception; the exception is then re-raised with the appropriate description. -- Added file: http://bugs.python.org/file34989/issue_19771.patch ___

[issue19771] runpy should check ImportError.name before wrapping it

2014-04-20 Thread Luiz Poleto
Luiz Poleto added the comment: The attached patch provide test cases to validate this error. As noted by R. David Murray in a discussion in the Core-Mentorship list, this error in fact happens then __init__.py throws an ImportError. -- keywords: +patch nosy: +poleto Added file: http://

[issue21231] Issue a python 3 warning when old style classes are defined.

2014-04-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: As I said on irc, I predict this will be extremely spammy not only on the stdlib but also on dependencies which people have no control over. -- ___ Python tracker _

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: For the recommendation actually put in the devguide, change 'random position' to 'position near but not at the top'. https://docs.python.org/devguide/committing.html#news-entries ends with "A nice trick to make Mercurial’s automatic file merge work more smoothly

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 4/20/2014 7:59 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> This is already not a rule because the devguide mentions inserting new >> items at random positions to avoid conflicts due to another commit. > > Really? > > """New NEWS entrie

[issue21318] sdist fails with symbolic links do non-existing files

2014-04-20 Thread Jan Gosmann
New submission from Jan Gosmann: If there is a symbolic link to a non-existing file anywhere in the source tree "python setup.py sdist" fails with an output like the following: running sdist running check warning: check: missing required meta-data: url error: abc: No such file

[issue21317] Home page certificate troubles

2014-04-20 Thread Alex Gaynor
Alex Gaynor added the comment: The infra team is looking into this, and I believe it should be fixed by now. (None of the infra people really are on this issue tracker, so I'm closing this, sorry :-/) -- nosy: +alex resolution: -> fixed status: open -> closed

[issue21317] Home page certificate troubles

2014-04-20 Thread Dolda2000
New submission from Dolda2000: This is misfiled under "Documentation" since it affects the documentation peripherally and I couldn't find any better component to file it under. To get to the point, the website seems to have certificate troubles for some URLs affecting the older versions of doc

[issue20962] Rather modest chunk size in gzip.GzipFile

2014-04-20 Thread Skip Montanaro
Skip Montanaro added the comment: Here's a straightforward patch. I didn't want to change the public API of the module, so just defined the chunk size with a leading underscore. Gzip tests continue to pass. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.

[issue21231] Issue a python 3 warning when old style classes are defined.

2014-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your changes in ceval.c introduce a bug (missing braces). Besides, I'm not sure it's a good idea. What if you're extending a class provided by a third-party library? (just because it's an old-style class doesn't mean it won't work fine under 3.x) -- no

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This is already not a rule because the devguide mentions inserting new > items at random positions to avoid conflicts due to another commit. Really? """New NEWS entries are customarily added at or near the top of their respective sections, so that entries w

[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

2014-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you want to backport, go ahead. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-04-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: A file per news entry seems a bit much, but an optional file per developer would solve most of the problem for those who have a problem with the status quo. Add a directory named, for instance, news.3.4.1. Put in a template with the allowed section headings. C

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-04-20 Thread R. David Murray
R. David Murray added the comment: Yes, after thinking about this this weekend, it is clear to me that in the future we will *need* a scheme where by the NEWS entry can be safely included in the patch in some form. I think the commit message is also going to be in the patch, which will be in

[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-04-20 Thread Ezio Melotti
Ezio Melotti added the comment: Do you want to propose a patch? -- components: +Tests nosy: +ezio.melotti type: -> behavior ___ Python tracker ___ __

[issue21232] Use of '1' instead of 'True' as 'splitlines' argument in difflib documentation

2014-04-20 Thread Ezio Melotti
Ezio Melotti added the comment: I think that the general consensus is that changing the value of True and False is not supported, and the result of doing it is undefined, so I think Ned request is reasonable. -- nosy: +ezio.melotti ___ Python tracke

[issue21231] Issue a python 3 warning when old style classes are defined.

2014-04-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Interpreter Core nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Pyth

[issue21213] Memory bomb by incorrect custom serializer to json.dumps

2014-04-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, pitrou, rhettinger type: -> behavior versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker ___ _

[issue21221] Minor struct_time documentation bug

2014-04-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue20997] Wrong URL fragment identifier in search result

2014-04-20 Thread Ezio Melotti
Ezio Melotti added the comment: It might be a bug in the older Sphinx version used to build the 2.x docs. If this is the case, it's probably not worth fixing. Georg? -- nosy: +ezio.melotti, georg.brandl resolution: -> wont fix status: open -> pending

[issue20977] pyflakes: undefined "ctype" in 2 except blocks in the email module

2014-04-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mai

[issue20969] Author of EPUB version of Python docs is set to Unknown instead of PSF

2014-04-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti stage: -> needs patch versions: +Python 3.5 ___ Python tracker ___ _

[issue20962] Rather modest chunk size in gzip.GzipFile

2014-04-20 Thread Ezio Melotti
Ezio Melotti added the comment: You should try with different chunk and file sizes and see what is the best compromise. Tagging as "easy" in case someone wants to put together a small script to benchmark this (maybe it could even be added to http://hg.python.org/benchmarks/), or even a patch.

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 462 is months away from going anywhere, and I personally find the current NEWS handling a major barrier to feeling inclined to work on bug fixes. The status quo will *definitely* be PEP 462 incompatible, though, since it would typically prevent applying the sa

[issue837046] pyport.h redeclares gethostname() if SOLARIS is defined

2014-04-20 Thread James Bostock
James Bostock added the comment: I have not compiled Python from source code for many years and no longer have access to Solaris machines so I cannot say whether or not this is still a problem. -- ___ Python tracker

[issue17552] socket.sendfile()

2014-04-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17552] socket.sendfile()

2014-04-20 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New patch in attachment. Changes: - docs - replaced select() / poll() with the new selectors module - file position is always updated both on return and on error; this means file.tell() is the designated way to know how many bytes were sent - replaced sen

[issue20585] urllib2 unrelease KQUEUE on Mac OSX 10.9+

2014-04-20 Thread Lita Cho
Lita Cho added the comment: Going to try working on this. -- nosy: +Lita.Cho ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21316] mark test_devpoll to be meaningfull only for Solaris

2014-04-20 Thread Aapo Rantalainen
New submission from Aapo Rantalainen: [ 96/389/2] test_devpoll Actual happened: test_devpoll skipped -- select.devpoll not defined Excepted: test works only on Solaris Took me a while until I read documentation: select.devpoll() -> (Only supported on Solaris and derivatives.) Even te

[issue20760] test_compileall test getting failed on 3.4 RC

2014-04-20 Thread Aapo Rantalainen
Aapo Rantalainen added the comment: I got exactly same trace with Python-3.4.0. == CPython 3.4.0 (default, Apr 19 2014, 16:37:49) [GCC 4.2.1] == Linux-2.6.28.10-power52-armv7l-with-debian-testing-unstable little-endian Btw: My test-directory is writable. (This seems to be duplicate, but is

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in 3.4 and 3.5. I will backport to 2.7 ( I think, it is worth it). -- resolution: -> fixed stage: patch review -> resolved ___ Python tracker __

[issue15002] urllib2 does not download 4 MB file completely using ftp

2014-04-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb71b71322a3 by Senthil Kumaran in branch '3.4': urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser) http://hg.python.org/cpython/rev/bb71b71322a3 New changeset 72fe23edfec6 by Senthil Kumaran in branch '3.4': NEWS entry f

[issue8387] use universal newline mode in csv module examples

2014-04-20 Thread Jessica McKellar
Jessica McKellar added the comment: I realized that I typo'd 2 instead of 3 in http://bugs.python.org/issue8387#msg216888 which makes that message confusing. Here's a restatement of my findings: * All of the Python 3 csv examples work in Python 3 on all platforms. * The Python 2 binary-mode cs

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2014-04-20 Thread Merlijn van Deen
Changes by Merlijn van Deen : -- keywords: +patch type: -> behavior Added file: http://bugs.python.org/file34985/unstructured_ew_without_whitespace.diff ___ Python tracker ___

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2014-04-20 Thread Merlijn van Deen
New submission from Merlijn van Deen: Bugzilla sends e-mail in a format where =?UTF-8 is not preceded by whitespace. This makes email.headerregistry.UnstructuredHeader (and email._header_value_parser on the background) not recognise the structure. >>> import email.headerregistry, pprint >>> x

[issue21297] csv.skipinitialspace only skips spaces, not "whitespace" in general

2014-04-20 Thread Daniel Andersson
Daniel Andersson added the comment: No, multiple spaces are ignored as advertised (according to actual tests; not just reading the code), but only spaces (U+0020) and not e.g. tabs (U+0009), which are also included in the term "whitespace", along with several other characters. In light of you

[issue18967] Find a less conflict prone approach to Misc/NEWS

2014-04-20 Thread Ezio Melotti
Ezio Melotti added the comment: Have you considered how this is going to change if/when PEP 462 will be implemented? AFAIU PEP 462 suggests that commits happen directly from the bug tracker (or something equivalent), so we will likely start to add the NEWS entry there as well. Assuming this

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-20 Thread Guido van Rossum
Guido van Rossum added the comment: IMO the comment is too aggressive. I want the workaround to stay in the codebase so CPython asyncio ans Tulip asyncio (== upstream) don't diverge. -- ___ Python tracker

[issue21296] smtplib Sends Commands in Lower-Case

2014-04-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: normal -> low type: behavior -> enhancement versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue8387] use universal newline mode in csv module examples

2014-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that 'U' is a no-op under Python 3, it's just there for compatibility reasons; i.e. 'rU' is the same as 'r'. Also, from a quick glance, the CSV parser in _csv.c looks newline-agnostic. @sfinnie: can you explain which problems you encountered running the e

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2014-04-20 Thread Tim Golden
Tim Golden added the comment: Another version of the patch: this one, in addition to removing the unnecessary encodes, also does the check for extensions before attempting to open the registry key, and narrows down the try-catch block to just the attempt to read the "Content Type" value. This

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2014-04-20 Thread Tim Golden
Changes by Tim Golden : Removed file: http://bugs.python.org/file34925/issue9291.7.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-20 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The added comment contains "This workaround should be removed in 3.5.0.". Since default branch now contains Python 3.5, maybe it is time to remove workaround on default branch? -- nosy: +Arfrever __

[issue21314] Bizarre help

2014-04-20 Thread Zachary Ware
Zachary Ware added the comment: 1) This was due to a typo. The release of Python 3.4 saw the introduction of new introspection information on many C-implemented functions thanks to Argument Clinic (see PEP 436, I think it is). As part of that (still ongoing) transition, the default doctrings f

[issue21314] Bizarre help

2014-04-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: I don't know about the other bits, but that trailing '/' is how Argument Clinic (which makes full featured inspection available to built-in functions) notes that the parameters are positional only, and cannot be passed by keyword. See PEP436. -- nosy:

[issue21314] Bizarre help

2014-04-20 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: docs@python -> larry nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10614] ZipFile: add a filename_encoding argument

2014-04-20 Thread INADA Naoki
Changes by INADA Naoki : -- nosy: +naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue21314] Bizarre help

2014-04-20 Thread Vedran Čačić
New submission from Vedran Čačić: Please look at the output of help(object.__ge__). 1. What's that $ in front of self? lt and gt don't have it. 2. What's that / as a third argument? Many wrapper functions have it (for example, see help(tuple.__len__). 3. What's that -- as the first line of do