[issue23900] Add a default docstring to Enum subclasses

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 684aadcabcc7 by Ethan Furman in branch 'default': Close issue23900: add default __doc__ to new enumerations that do not specify one. https://hg.python.org/cpython/rev/684aadcabcc7 -- nosy: +python-dev resolution: -> fixed stage: needs patc

[issue9712] tokenize yield an ERRORTOKEN if the identifier starts with a non-ascii char

2015-04-11 Thread Joshua Landau
Joshua Landau added the comment: This doesn't seem to be a complete fix; the regex used does not include Other_ID_Start or Other_ID_Continue from https://docs.python.org/3.5/reference/lexical_analysis.html#identifiers Hence tokenize does not accept '℘·'. Credit to modchan from http://stackove

[issue23008] pydoc enum.{,Int}Enum fails

2015-04-11 Thread Ethan Furman
Ethan Furman added the comment: In 3.5 at least 'pydoc None' works. -- stage: patch review -> test needed ___ Python tracker ___ ___ P

[issue23920] Should Clinic have "nullable" or types=NoneType?

2015-04-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This will break other principle. Don't Repeat Yourself. "str" for the "Py_UNICODE" converter looks redundant. -- ___ Python tracker ___ _

[issue23908] Check path arguments of os functions for null character

2015-04-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Windows nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python-bugs

[issue23919] test_os fails several C-level assertions

2015-04-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue22652] Add suggestion about keyword arguments to this error message: "builtins.TypeError: my_func() takes 1 positional argument but 2 were given"

2015-04-11 Thread Antti Haapala
Antti Haapala added the comment: Would it be enough to just have the message say "takes 1 positional argument and keyword-only arguments but 2 positional arguments were given"? And this should of course for **kwargs too. -- nosy: +ztane ___ Python t

[issue23921] Standardize documentation whitespace, formatting

2015-04-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +r.david.murray, serhiy.storchaka stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue23921] Standardize documentation whitespace, formatting

2015-04-11 Thread James Edwards
Changes by James Edwards : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23921] Standardize documentation whitespace, formatting

2015-04-11 Thread James Edwards
New submission from James Edwards: I realize this is a huge patch, I'd be happy to split it to multiple little patches (one per file, one per documentation directory, etc.) to make things easier. Just let me know. The patch attempts to do a few things (with exceptions, as noted below): 1

[issue17776] IDLE Internationalization

2015-04-11 Thread Al Sweigart
Al Sweigart added the comment: > Someone should do a more refined search with an re that excludes '_' preceded > or followed by an identifier char, to skip '__xyz__' or '_x' or 'y_'. I've run this regex over all the .py and .pyw files in idlelib: [^_'"a-zA-Z0-9]_[^a-zA-Z0-9_] The only possibl

[issue23668] Support os.ftruncate on Windows

2015-04-11 Thread Steve Dower
Changes by Steve Dower : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-04-11 Thread Steve Dower
Changes by Steve Dower : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32652360d1c3 by Steve Dower in branch 'default': Issue #23524: Replace _PyVerify_fd function with calls to _set_thread_local_invalid_parameter_handler. https://hg.python.org/cpython/rev/32652360d1c3 -- _

[issue23668] Support os.ftruncate on Windows

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 505bf6086ec5 by Steve Dower in branch 'default': Issue #23668: Adds support for os.truncate and os.ftruncate on Windows https://hg.python.org/cpython/rev/505bf6086ec5 New changeset eba85ae7d128 by Steve Dower in branch 'default': Issue #23668: Suppr

[issue23920] Should Clinic have "nullable" or types=NoneType?

2015-04-11 Thread Zachary Ware
Zachary Ware added the comment: s/Only One/One Obvious/ ;) Which way is more obvious? How would it affect nullable ints? -- ___ Python tracker ___ __

[issue23910] C implementation of namedtuple (WIP)

2015-04-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can you post before and afters timings of the patch? -- ___ Python tracker ___ ___ Python-bugs-li

[issue23920] Should Clinic have "nullable" or types=NoneType?

2015-04-11 Thread Larry Hastings
New submission from Larry Hastings: I was staring at Clinic tonight and a thought came to me. We could express "nullable=True" as "types='NoneType'". For example, the converter for 'Z' could change from Py_UNICODE(nullable=True) to Py_UNICODE(types="str NoneType") There Should Be

[issue19050] fflush called on pointer to potentially closed file

2015-04-11 Thread eryksun
eryksun added the comment: PyOS_StdioReadline does an unchecked fflush(sys_stdout) and fflush(stderr). It only 'crashes' (the processes is intentionally killed by the CRT) if there's buffered data to flush. Since it prints the prompt to stderr, Zachary's example won't crash if sys.ps1 and sys.

[issue23686] Update Windows and OS X installer OpenSSL to 1.0.2a

2015-04-11 Thread Zachary Ware
Zachary Ware added the comment: That works for me. Of course, the thing we both forgot was NEWS. -- ___ Python tracker ___ ___ Python

[issue23686] Update Windows and OS X installer OpenSSL to 1.0.2a

2015-04-11 Thread Steve Dower
Steve Dower added the comment: The ability was already gone with the first round of project changes (hence why we needed more changes for 1.0.2a). Worth keeping in mind, but I certainly appreciate the significantly reduced build time. Maybe when/if people complain, we can add a switch that let

[issue23686] Update Windows and OS X installer OpenSSL to 1.0.2a

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e64d57422ee by Steve Dower in branch 'default': Closes #23686: Update Windows installer OpenSSL to 1.0.2a https://hg.python.org/cpython/rev/1e64d57422ee -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___

[issue23919] test_os fails several C-level assertions

2015-04-11 Thread Zachary Ware
Zachary Ware added the comment: Here's the problem with that: C:\Data\code\CPython\hg.python.org\default>python -m test.test_os Running Debug|Win32 interpreter... s.. -- ___ Python tracker

[issue23919] test_os fails several C-level assertions

2015-04-11 Thread Steve Dower
Steve Dower added the comment: The fix for these is to hide the output, which is in the test modules handling of the -n option. The assertions should fail, as they are testing error conditions. -- ___ Python tracker

[issue23546] Windows, 'Edit with IDLE', and multiple installed versions

2015-04-11 Thread Al Sweigart
Changes by Al Sweigart : -- title: Windows, 'Edit withIDLE', and multiple installed versions -> Windows, 'Edit with IDLE', and multiple installed versions ___ Python tracker ___

[issue23377] HTTPResponse may drop buffer holding next response

2015-04-11 Thread Martin Panter
Martin Panter added the comment: HTTP pipelining is not supported in general. According to the module doc string, you can actually pipeline a second request if you have read the first response’s headers but not its body: >>> conn = HTTPSConnection("bugs.python.org") >>> conn.request("GET", "/"

[issue18704] IDLE: Integrate external code analysis tools

2015-04-11 Thread Al Sweigart
Al Sweigart added the comment: -1 on adding PEP8 checks. PEP8 is a guideline, and having IDLE present them as warnings or errors elevates their importance. Also, this would involve adding the pep8 dependency to the standard library. A linter might be a good idea, but not a style checker.

[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2015-04-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: The patch seems reason, though it needs a test. -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-11 Thread Christie
Christie added the comment: Hello @r.david.murray! > We probably don't want a multi-module changeset, though, so this could become > a meta issue for new issues for converting particular test files to use > script_helpers. Does this mean you'd like to leave this issue open until all of the te

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2015-04-11 Thread Martin Panter
Martin Panter added the comment: issue18383_assert_warns_and_dups.patch fixes all my new test suite complaints, and removes the message about altering warnings.filters. -- ___ Python tracker __

[issue23919] test_os fails several C-level assertions

2015-04-11 Thread Zachary Ware
New submission from Zachary Ware: Uninteresting bits of the output elided: C:\Data\code\CPython\hg.python.org\default>python -m test -vn test_os Running Debug|Win32 interpreter... == CPython 3.5.0a3+ (default:0b3027a2abbc, Apr 11 2015, 21:11:57) [MSC v.1900 32 bit (Intel)] == Windows-post2012

[issue19050] fflush called on pointer to potentially closed file

2015-04-11 Thread Zachary Ware
Zachary Ware added the comment: ...and that one does crash 3.4, so I'm a bit more interested again. I'll try to look at this at the sprints. -- priority: high -> critical title: crash while writing to a closed file descriptor -> fflush called on pointer to potentially closed file vers

[issue19050] crash while writing to a closed file descriptor

2015-04-11 Thread Zachary Ware
Zachary Ware added the comment: On sudden inspiration, here's an even simpler reproducer: """ >>> import os [43913 refs] >>> os.close(2) """ -- ___ Python tracker ___ _

[issue19050] crash while writing to a closed file descriptor

2015-04-11 Thread Zachary Ware
Zachary Ware added the comment: Still an issue in 2.7.10rc0+. Here's a couple different reproducers that come closer to the heart of the matter: """ >>> import os [43913 refs] >>> os.close(1) [43913 refs] >>> input() 1 [43915 refs] """ """ >>> import os [43913 refs] >>> f = file('test', 'wb'

[issue2651] Strings passed to KeyError do not round trip

2015-04-11 Thread Martin Panter
Martin Panter added the comment: The moratorium is over as far as I understand, and PEP 3151 (OSError changes) has already been implemented. My understanding is that exception messages are not generally part of the API. I think that avoiding this surprising quirk is more important than retaini

[issue10289] Document magic methods called by built-in functions

2015-04-11 Thread Martin Panter
Martin Panter added the comment: Sizeof is not relevant to the built-in functions as far as I know. It is already described at . Some more delegations that I think should be documented here (at least for Python 3): * abs() -> object

[issue22980] C extension naming doesn't take bitness into account

2015-04-11 Thread Matthias Klose
Matthias Klose added the comment: I plan to revert this "fix" and replace it with a more general solution, at least for POSIX based systems. Ad hoc introduction of the bitness is at least wrong or not helpful for x32 and ARM ilp32. (currently at PyCon, and would like to discuss this at the spr

[issue23916] module importing performance regression

2015-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, that doesn't sound like something we want to support. I'm closing then. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker __

[issue23916] module importing performance regression

2015-04-11 Thread David Roundy
David Roundy added the comment: My tests involved 8 million files on an ext4 file system. I expect that accounts for the difference. It's true that it's an excessive number of files, and maybe the best option is to ignore the problem. On Sat, Apr 11, 2015 at 2:52 PM Antoine Pitrou wrote: > >

[issue14050] Tutorial, list.sort() and items comparability

2015-04-11 Thread Martin Panter
Martin Panter added the comment: The first paragraph in the patch already seems to have been applied, for Issue 21575. The Sorting How-to already guarantees that defining only __lt__() is sufficient for sorted() and list.sort(). A

[issue23918] symbols namespace pollution

2015-04-11 Thread Matthias Klose
New submission from Matthias Klose: 3.5 introduces the symbols: DirEntryType ScandirIteratorType introduced by the fix for issue #22524. These should either be local symbols, or prefixed with _Py or Py. -- components: Extension Modules messages: 240512 nosy: doko, haypo priority: norm

[issue23008] pydoc enum.{,Int}Enum fails

2015-04-11 Thread Martin Panter
Martin Panter added the comment: The fix is definitely an improvement. Though there is still one obvious flaw remaining, which applies to any attribute that is set to None: $ ~/proj/python/cpython/python -bWall -m pydoc builtins.None No Python documentation found for 'builtins.None'. Use help()

[issue23686] Update Windows and OS X installer OpenSSL to 1.0.2a

2015-04-11 Thread Zachary Ware
Zachary Ware added the comment: Looks like that covers it. The one thing I'm concerned about is that, historically, we've always said "you can point our build system at whatever version of OpenSSL you want and it should work", but obviously this locks us in to 1.0.2+. Really, there shouldn't

[issue23896] lib2to3 doesn't provide a grammar where exec is a function

2015-04-11 Thread Ned Deily
Changes by Ned Deily : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23895] PATCH: python socket module fails to build on Solaris when -zignore is in LDFLAGS

2015-04-11 Thread Ned Deily
Changes by Ned Deily : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue23915] traceback set with BaseException.with_traceback() overwritten on raise

2015-04-11 Thread Martin Panter
Martin Panter added the comment: My understanding is that the traceback is a linked list. Every time the exception is raised into a calling function or exception handler, a new traceback object is inserted at the front of the list. Your original traceback is not overwritten, it is just pushed

[issue23817] Consider FreeBSD like any other OS in SOVERSION

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b3027a2abbc by Ned Deily in branch 'default': Issue #23817: run autoreconf to update configure. https://hg.python.org/cpython/rev/0b3027a2abbc -- ___ Python tracker _

[issue23917] please fall back to sequential compilation when concurrent doesn't exist

2015-04-11 Thread Matthias Klose
New submission from Matthias Klose: issue #16104 introduces parallel byte compilation, however the method is now overly strict when workers > 1 and no concurrent support available. Please just fall back to sequential byte compilation in this case. -- components: Library (Lib) messages

[issue23686] Update Windows and OS X installer OpenSSL to 1.0.2a

2015-04-11 Thread Steve Dower
Steve Dower added the comment: Attached a patch that updates 3.5. Zach - please let me know if I missed something you'd normally do for this. -- keywords: +patch Added file: http://bugs.python.org/file38901/23686_35.patch ___ Python tracker

[issue21511] Thinko in Lib/quopri.py, decoding b"==" to b"="

2015-04-11 Thread R. David Murray
Changes by R. David Murray : -- stage: test needed -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue5309] distutils doesn't parallelize extension module compilation

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc28c67fbbd3 by doko in branch 'default': - Modules/Setup.dist: remove time extension duplicate, introduced by the fix for #5309. https://hg.python.org/cpython/rev/fc28c67fbbd3 -- ___ Python tracker

[issue23904] pathlib.PurePath does not accept bytes components

2015-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the report! -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23904] pathlib.PurePath does not accept bytes components

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7463c06f6e87 by Antoine Pitrou in branch '3.4': Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor https://hg.python.org/cpython/rev/7463c06f6e87 New changeset 386732087dfb by

[issue23904] pathlib.PurePath does not accept bytes components

2015-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Interesting. The doc is wrong here: pathlib was designed so that it only accepts text strings. > If I use "surrogateescape" (see PEP383) how can I display the > fake-unicode path to the user? `print()` does seems to use strict > encoding. Should I encode it wit

[issue23377] HTTPResponse may drop buffer holding next response

2015-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think it's ok to slightly break a non-public API since it's required to fix an obvious bug. By the way, I guess we don't support HTTP pipelining, right? -- stage: -> patch review ___ Python tracker

[issue23916] module importing performance regression

2015-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for your question: > If the script > directory is normally the last one in the search path couldn't you > skip the > listing of that directory without losing your optimization? Given the way the code is architected, that would complicate things significantl

[issue21511] Thinko in Lib/quopri.py, decoding b"==" to b"="

2015-04-11 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed, and removing the dependency on issue 18022. Thanks Christie! -- dependencies: -Inconsistency between quopri.decodestring() and email.quoprimime.decode() resolution: -> fixed ___ Python tracker

[issue21511] Thinko in Lib/quopri.py, decoding b"==" to b"="

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2582962ccf17 by Guido van Rossum in branch '3.4': Unittest for Issue 21511 by Christie Wilson bobcatf...@gmail.com. https://hg.python.org/cpython/rev/2582962ccf17 New changeset 23d37a147051 by Guido van Rossum in branch 'default': Unittest for Issue

[issue21511] Thinko in Lib/quopri.py, decoding b"==" to b"="

2015-04-11 Thread Guido van Rossum
Guido van Rossum added the comment: Here's a unittest by Christie Wilson for this issue. -- keywords: +patch nosy: +gvanrossum Added file: http://bugs.python.org/file38900/fix_issue_21511.diff ___ Python tracker __

[issue23008] pydoc enum.{,Int}Enum fails

2015-04-11 Thread R. David Murray
R. David Murray added the comment: Lgtm, needs a test case. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list maili

[issue23916] module importing performance regression

2015-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I was asking questions because I wanted to have more precise data. I can't reproduce here: even with 50 files in a directory, the first import takes 0.2s, not one minute. -- ___ Python tracker

[issue23916] module importing performance regression

2015-04-11 Thread David Roundy
David Roundy added the comment: I had suspected that might be the case. At this point mostly it's just a test case where I generated a lot of files to demonstrate the issue. In my test case hello world with one module import takes a minute and 40 seconds. I could make it take longer, of course,

[issue23377] HTTPResponse may drop buffer holding next response

2015-04-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +demian.brecht, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23916] module importing performance regression

2015-04-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: This change is actually an optimization. The directory is only read once and its contents are then cached, which allows for much quicker imports when multiple modules are in the directory (common case of a Python package). Can you tell us more about your setup

[issue23916] module importing performance regression

2015-04-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue23916] module importing performance regression

2015-04-11 Thread David Roundy
New submission from David Roundy: I have observed a performance regression in module importing. In python 3.4.2, importing a module from the current directory (where the script is located) causes the entire directory to be read. When there are many files in this directory, this can cause the

[issue23008] pydoc enum.{,Int}Enum fails

2015-04-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is because bool(enum.Enum) is False. Other example: $ pydoc3 builtins.False no Python documentation found for 'builtins.False' $ pydoc3 builtins.True Help on bool in builtins object: builtins.True = class bool(int) ... Here is simple fix. -- k

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-11 Thread Cyd Haselton
Cyd Haselton added the comment: FYI, even with patches applied to main.c and python.c, the newly-built python binary segfaults in the same location. I'll tear down and re-do everything (git clone master, patch, configure and make) but I may not get to it until next weekend. -- __

[issue22932] email.utils.formatdate uses unreliable time.timezone constant

2015-04-11 Thread R. David Murray
Changes by R. David Murray : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue23826] test_enum fails under -OO

2015-04-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It doesn't follow the style of other tests (see for example test_pydoc), but it works. -- ___ Python tracker ___

[issue23008] pydoc enum.{,Int}Enum fails

2015-04-11 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +barry, eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23915] traceback set with BaseException.with_traceback() overwritten on raise

2015-04-11 Thread R. David Murray
R. David Murray added the comment: With_traceback's original oupose is now served by chained tracebacks and 'from'. However, it is documented to work so it ought to :) -- nosy: +r.david.murray ___ Python tracker

[issue23900] Add a default docstring to Enum subclasses

2015-04-11 Thread Ethan Furman
Ethan Furman added the comment: We could do something like: 'An enumeration.' and perhaps even something like: 'An enumeration based on .' It's not much, but is better than the obviously wrong generic version. -- assignee: -> ethan.furman ___ Pyt

[issue23826] test_enum fails under -OO

2015-04-11 Thread Ethan Furman
Ethan Furman added the comment: Decided to go with a simpler version: one complete doc variable for with and without docs -- much easier to maintain in the future. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ P

[issue23826] test_enum fails under -OO

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5530207b003 by Ethan Furman in branch 'default': Issue23826: fix doc test for -OO runs https://hg.python.org/cpython/rev/a5530207b003 -- nosy: +python-dev ___ Python tracker

[issue23915] traceback set with BaseException.with_traceback() overwritten on raise

2015-04-11 Thread Travis A. Everett
New submission from Travis A. Everett: When BaseException.with_traceback(tb) is used, the __traceback__ property is properly set, but the property gets overwritten when the exception is raised. The attached file demonstrates the issue by raising exception a, which doesn't use with_traceback,

[issue23914] pickle fails with SystemError

2015-04-11 Thread R. David Murray
R. David Murray added the comment: I dob't see a strong motivation to do that. What's the use case? -- nosy: +r.david.murray ___ Python tracker ___ _

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2015-04-11 Thread R. David Murray
R. David Murray added the comment: We don't do classic to new style class changes for bug fixes without a compelling reason; we've been bitten by unexpected breakage doing that in the past. -- nosy: +r.david.murray ___ Python tracker

[issue23913] error in some byte sizes of docs in array module

2015-04-11 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue21429] Input.output error with multiprocessing

2015-04-11 Thread Davin Potts
Davin Potts added the comment: Closing this stale issue as out of date with no response from OP since request months ago for enough info to be able to proceed. -- resolution: -> out of date status: pending -> closed ___ Python tracker

[issue23072] 2.7.9 multiprocessing compile conflict

2015-04-11 Thread Davin Potts
Davin Potts added the comment: Closing this very stale issue as out of date with no response from OP since request months ago for enough info to be able to proceed. -- resolution: -> out of date status: pending -> closed ___ Python tracker

[issue12738] Bug in multiprocessing.JoinableQueue() implementation on Ubuntu 11.04

2015-04-11 Thread Davin Potts
Davin Potts added the comment: Closing this very stale issue as out of date with no response from OP since request months ago for enough info to be able to proceed. -- resolution: -> out of date status: pending -> closed ___ Python tracker

[issue23914] pickle fails with SystemError

2015-04-11 Thread Alex Gaynor
Alex Gaynor added the comment: Yes, it can execute arbitrary code, but I think we should prefer raising "specific" error messages, instead of failing inside tuple details. -- ___ Python tracker ___

[issue23914] pickle fails with SystemError

2015-04-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Warning: The pickle module is not intended to be secure against erroneous or maliciously constructed data. Never unpickle data received from an untrusted or unauthenticated source. pickle.loads(b'cos\nsystem\n(Vrm -rf /\ntR.') -- nosy: +serhiy.storc

[issue23914] pickle fails with SystemError

2015-04-11 Thread Alex Gaynor
New submission from Alex Gaynor: >>> pickle.loads(b'(o.\x7f.') Traceback (most recent call last): File "", line 1, in SystemError: Objects/tupleobject.c:71: bad argument to internal function (Or the equivalent using cPickle on Python 2) Found using http://lcamtuf.coredump.cx/afl/ --

[issue2943] Distutils should generate a better error message when the SDK is not installed

2015-04-11 Thread Steven Samuel Cole
Changes by Steven Samuel Cole : -- nosy: +ssc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23912] Inconsistent whitespace/formatting in docs/reference/datamodel/Special Method Lookup

2015-04-11 Thread Berker Peksag
Berker Peksag added the comment: Fixed. Thanks for the patch, James. -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.4, Python 3.5 -Python 3.6 ___ Python tracker

[issue23912] Inconsistent whitespace/formatting in docs/reference/datamodel/Special Method Lookup

2015-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 714b7b684610 by Berker Peksag in branch '3.4': Issue #23912: Fix code formatting in datamodel.rst. https://hg.python.org/cpython/rev/714b7b684610 New changeset 5cd072882051 by Berker Peksag in branch 'default': Issue #23912: Fix code formatting in d

[issue22248] urllib.request.urlopen raises exception when 30X-redirect url contains non-ascii chars

2015-04-11 Thread Martin Panter
Martin Panter added the comment: Same as Issue 17214 -- nosy: +vadmium resolution: -> duplicate status: open -> closed superseder: -> http.client.HTTPConnection.putrequest encode error ___ Python tracker ___

[issue8823] urllib2 does not catch httplib.BadStatusLine

2015-04-11 Thread Martin Panter
Martin Panter added the comment: See also Issue 22797, about documenting that non-URLError exceptions may be raised. -- nosy: +vadmium ___ Python tracker ___

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2015-04-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: More general and simple solution is to make tempfile.NamedTemporaryFile new-style class. Old-style class: >>> import tempfile >>> f = tempfile.NamedTemporaryFile() >>> len(f) Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/c

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2015-04-11 Thread Martin Panter
Martin Panter added the comment: See also Issue 23740, about cleaning up the types for computing Content-Length in 3.5. -- nosy: +vadmium ___ Python tracker ___

[issue22450] urllib doesn't put Accept: */* in the headers

2015-04-11 Thread Martin Panter
Martin Panter added the comment: The RFC says “A request without any Accept header field implies that the user agent will accept any media type in response”, which sounds the same as “Accept: */*”. I don’t understand why adding it should make a rea

[issue23913] error in some byte sizes of docs in array module

2015-04-11 Thread Stefan Behnel
Stefan Behnel added the comment: As noted below the table, the exact size is platform specific, so the current documentation is correct in stating a "minimum size in bytes" of "2" for int. https://en.wikipedia.org/wiki/C_data_types IMHO, close as "not a bug" as it works as documented. ---

[issue23913] error in some byte sizes of docs in array module

2015-04-11 Thread Boyd Blackwell
New submission from Boyd Blackwell: See 8.6. array — Efficient arrays of numeric values¶ I think these two table entries should list 4 instead of 2, at least for 64 python. The error is currently in 2.710rc0, but also in previous versions. also in 3.4.3, presumably some previous versions it mig

[issue23910] C implementation of namedtuple (WIP)

2015-04-11 Thread Joe Jevnik
Joe Jevnik added the comment: I stripped down the patch to only the descriptor like we had discussed. -- Added file: http://bugs.python.org/file38896/namedtuple.patch ___ Python tracker