[issue23986] Inaccuracy about "in" keyword for list and tuple

2015-04-17 Thread wim glenn
New submission from wim glenn: The comparisons section of the python 2 docs says: --- https://docs.python.org/2/reference/expressions.html#comparisons For the list and tuple types, x in y is true if and only if there exists an index i such that x == y[i] is true. --- But it's not strictly

[issue23980] Documentation for format units starting with 'e' is inconsistent

2015-04-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.04.2015 06:42, Larry Hastings wrote: > > Larry Hastings added the comment: > > One more idea. We annotate with an & when you pass in a pointer to a > variable. So format unit 'i' would get [& int], 's' would get [& char *], > and 'es#' would get [

[issue23980] Documentation for format units starting with 'e' is inconsistent

2015-04-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.04.2015 05:50, Larry Hastings wrote: > > Larry Hastings added the comment: > >> The "e" variants (typically) allocate a buffer for you, since it's pretty >> much unknown how long the encoded data will be. > > All four will do it if you pass in a NULL

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-17 Thread Ethan Furman
New submission from Ethan Furman: https://docs.python.org/3/reference/expressions.html#comparisons: The operators 'in' and 'not in' test for membership. 'x in s' evaluates to true if x is a member of s, and false otherwise. 'x not

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Ned Deily
Ned Deily added the comment: Reproduced with top of trunk default branch on OS X (so, not Windows-specific). With debug enabled: $ ./bin/python3.5 /tmp/b/bytearray_bug.py buf2: 13 5 bytearray(b'1234567890123') buf1: 13 3 bytearray(b'1234567890123') buf2: 21 2 bytearray(b'678901231234567890123'

[issue23974] random.randrange() biased output

2015-04-17 Thread Mark Dickinson
Mark Dickinson added the comment: In the #9025 discussion, reproducibility was a key concern. Though I note that despite the comments there, we *still* have no documented guarantees of reproducibility, so maybe it's safe to go ahead and change this. Raymond? IMO, the fix from #9025 should be

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Ned Deily
Ned Deily added the comment: Above was in 64-bit mode (x86_64). Same run in 32-bit (i386): $ ./bin/python3.5-32 /tmp/b/bytearray_bug.py buf2: 13 2 bytearray(b'1234567890123') buf1: 13 11 bytearray(b'1234567890123') buf2: 24 16 bytearray(b'345678901231234567890123') buf1: 15 4 bytearray(b'231234

[issue23970] Update distutils.msvccompiler for VC14

2015-04-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.04.2015 00:06, Steve Dower wrote: > > So it looks like what I should do is use the include_dirs and library_dirs > members from CCompiler so they can be set through other properties. I see that you're basically reading the include and lib dirs from t

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Wolfgang Maier
Wolfgang Maier added the comment: Also happening with Python 3.4.0 on Ubuntu 14.04 (after ~ half a minute and A LOT of output): [skipping lots of lines] buf2: 29 13 bytearray(b'12312345678901231234567890123') buf1: 25 9 bytearray(b'2345678901231234567890123') buf2: 29 2 bytearray(b'123123456789

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-17 Thread Jonathan Sharpe
Changes by Jonathan Sharpe : -- assignee: -> docs@python components: +Documentation nosy: +docs@python, jonrsharpe ___ Python tracker ___ ___

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-17 Thread Jonathan Sharpe
Jonathan Sharpe added the comment: I don't think it's as simple as linking to the hashable definition. The "equivalent expression" is simply wrong for dict/set/frozenset, as those types check hash equality, not identity. -- ___ Python tracker

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Wolfgang Maier
Wolfgang Maier added the comment: Surprisingly, a much simpler version with just one bytearray seems to run stably (for several minutes at least), but when you wait a while then hit Ctrl-C, you are getting a Segmentation fault: Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linu

[issue17120] Mishandled _POSIX_C_SOURCE and _XOPEN_SOURCE in pyconfig.h

2015-04-17 Thread koobs
koobs added the comment: @RAW, can you attach a patch against the default branch please so we can move this forward? -- ___ Python tracker ___ __

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou, serhiy.storchaka priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list

[issue22829] Add --prompt option to venv

2015-04-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ok, I will propose an update with the comments of the review. -- ___ Python tracker ___ ___ Python-

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Alexei Romanov
Alexei Romanov added the comment: No problem with python 2.7.6 on Ubuntu 14.04.2 LTS amd64. Attached script was working about 2 hours - no crash. -- nosy: +alexei.romanov ___ Python tracker ___

[issue23882] unittest discovery and namespaced packages

2015-04-17 Thread Claudiu Popa
Claudiu Popa added the comment: Isn't this already supported by the patch added in issue17457? -- nosy: +Claudiu.Popa ___ Python tracker ___ _

[issue23970] Update distutils.msvccompiler for VC14

2015-04-17 Thread Steve Dower
Steve Dower added the comment: Yeah, the basic functionality is no different, since there isn't really a better way to handle future versions of VS automatically. I'd rather not officially expose this stuff though. Maybe you could override the compiler creation code and return an alternative

[issue23970] Update distutils.msvccompiler for VC14

2015-04-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.04.2015 16:04, Steve Dower wrote: > > Yeah, the basic functionality is no different, since there isn't really a > better way to handle future versions of VS automatically. I'd rather not > officially expose this stuff though. > > Maybe you could ove

[issue23882] unittest discovery and namespaced packages

2015-04-17 Thread Alex Shkop
Alex Shkop added the comment: Not fully. Patch for issue17457 fixed discovery when you explicitly specified namespace package as a target for discovery. I.e. when you run python -m unittest namespace_pkg But it didn't recurse into any namespace packages inside namespace_pkg. So when you run

[issue23988] keyworded argument count is wrong

2015-04-17 Thread Albert Zeyer
New submission from Albert Zeyer: Code: class C(object): def __init__(self, a, b=2, c=3): pass class D(C): def __init__(self, d, **kwargs): super(D, self).__init__(**kwargs) class E(D): def __init__(self, **kwargs): super(

[issue23899] HTTP regression in distutils uploads to chishop

2015-04-17 Thread Jason R. Coombs
Jason R. Coombs added the comment: There's nothing logged in the chishop logs except the POST request. I suspect dstufft is right. I'll try backing out that change and see what effect that has. -- ___ Python tracker

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-17 Thread Ethan Furman
Ethan Furman added the comment: It's not quite that simple -- those containers use the hash to find the objects that will be first checked by identity, and then equality* -- otherwise they would have to do a complete scan from first key to last, and that would kill performance. ... Okay, I s

[issue23988] keyworded argument count is wrong

2015-04-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is a well-known shortcoming of 2.x function signature errors. The situation is much improved in 3.x: TypeError: __init__() missing 1 required positional argument: 'a' -- nosy: +benjamin.peterson resolution: -> wont fix status: open -> closed

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-17 Thread R. David Murray
R. David Murray added the comment: Could we add "For dictionaries and sets this equivalence expression is modified by the addition of 'if hash(x) == hash(e)'? -- nosy: +r.david.murray ___ Python tracker __

[issue23975] numbers.Rational implements __float__ incorrectly

2015-04-17 Thread Mark Dickinson
Mark Dickinson added the comment: What happens if `self.numerator / self.denominator` returns another `Rational` instance? If I create `MyRational` and `MyInteger` classes, such that the quotient of two `MyInteger` instances is a `MyRational` instance and the numerator and denominator of a `M

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-17 Thread Ethan Furman
Ethan Furman added the comment: I think I like that better than my suggestion. :) -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue22198] Odd floor-division corner case

2015-04-17 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the ping, and sorry for forgetting about this. I'm -1 on applying this patch. I agree that floor division has some corner case issues (of which this is only one). But there's no clear agreement on what the right answer is, and I don't think making

[issue22198] Odd floor-division corner case

2015-04-17 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: mark.dickinson -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23955] Add python.ini file for embedded/applocal installs

2015-04-17 Thread Éric Araujo
Éric Araujo added the comment: Hm, could you reuse the venv config file with use-site-packages=true? -- nosy: +eric.araujo ___ Python tracker ___

[issue23930] SimpleCookie doesn't parse comma-only separated cookies correctly

2015-04-17 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue17123] Add OCSP support to ssl module

2015-04-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23986] Inaccuracy about "in" keyword for list and tuple

2015-04-17 Thread James Edwards
James Edwards added the comment: What about: For the list and tuple types, ``x in y`` is true if and only if there exists an -index *i* such that ``x == y[i]`` is true. +index *i* such that either ``x == y[i]`` or ``x is y[i]`` is true. Seems to address your issue, and match the semantics of t

[issue23971] dict(list) and dict.fromkeys() doesn't account for 2/3 fill ratio

2015-04-17 Thread Matt Mackall
Matt Mackall added the comment: We already presize the output dict and have for ages. The question here is what size to use. In the current state, we use twice as much memory and CPU as necessary quite often because we end up spilling and growing... even though we apparently intentionally size

[issue6818] remove/delete method for zipfile/tarfile objects

2015-04-17 Thread Dave Sawyer
Dave Sawyer added the comment: Maybe it takes a little longer than a week. I have a final signed agreement from Ewa (https://secure.echosign.com/public/viewAgreement?aid=X88L4EVP5IXC289&eid=X88M6DGQ93J5K38&;) signed on 04/17/2014 6:48 PM Wow, exactly one year ago! --

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2015-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 49910ff21ba5 by Serhiy Storchaka in branch 'default': Issue #20184: Converted _dbm and _gdbm modules to Argument Clinic. https://hg.python.org/cpython/rev/49910ff21ba5 -- ___ Python tracker

[issue20181] Derby #12: Convert 50 sites to Argument Clinic across 4 files

2015-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6d468e0ecc6 by Serhiy Storchaka in branch 'default': Issue #20181: Converted the unicodedata module to Argument Clinic. https://hg.python.org/cpython/rev/c6d468e0ecc6 -- nosy: +python-dev ___ Python trac

[issue23989] Add recommendation to use requests to the documentation, per summit

2015-04-17 Thread VanL
New submission from VanL: Attached is a basic patch to add a recommendation to use requests to the http.client documentation for 3.5. It is implemented as a seealso at the top of the file: See Also: The Requests package is recommended for a higher-level http client interface. If people are

[issue23899] HTTP regression in distutils uploads to chishop

2015-04-17 Thread Jason R. Coombs
Jason R. Coombs added the comment: Confirmed. Backing out that change restores the behavior. If I trust the commit description (and it looks reasonable), the issue really does lie with chishop, though for compatibility, I may look to patch it. Thanks dstufft for the reference. -- ___

[issue23882] unittest discovery and namespaced packages

2015-04-17 Thread Robert Collins
Robert Collins added the comment: Hi. I'd be happy enough to use pkgutil helpers if they (like walkdirs) allowed trimming the output: part of the definition of discovery is that one can control it, to stop it importing or processing part of the tree that one doesn't want processed. Alex: can

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Maries Ionel Cristian
New submission from Maries Ionel Cristian: It appears that callable doesn't really care for the descriptor protocol, so it return True even if __call__ is actually an descriptor that raise AttributeError (clearly not callable at all). Eg: Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Maries Ionel Cristian
Maries Ionel Cristian added the comment: For context this respects the descriptor protocol: >>> a() Traceback (most recent call last): File "", line 1, in File "", line 4, in __call__ AttributeError: go away Mind you, this is legal use: >>> class B: ... @property ... def __call__(self):

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Christian Heimes
Christian Heimes added the comment: callable() just checks that an object can be called. It doesn't check if the actual call or even the access to the __call__() member succeeds. Magic methods are resolved on the class or type of an object, not the object itself. Therefore the descriptor proto

[issue23989] Add recommendation to use requests to the documentation, per summit

2015-04-17 Thread Ian Cordasco
Changes by Ian Cordasco : -- nosy: +icordasc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: Christian, it's not clear why you're closing this. You basically just described the current broken behaviour. That by itself is not a reason enough (it's a sort of circular argument ;-). Can you please explain what prevents this to be fixed or how we go

[issue23989] Add recommendation to use requests to the documentation, per summit

2015-04-17 Thread Cory Benfield
Changes by Cory Benfield : -- nosy: +Lukasa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue16125] open accepts arbitrary mode strings as long as they contain U

2015-04-17 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Still reproducible with Python 2.7.10rc0 on GNU/Linux: >>> open('/tmp/a', 'az') >>> open('/tmp/a', 'rz') >>> open('/tmp/a', 'wz') >>> open('/tmp/a', 'zU') -- ___ Python tracker

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Joe Jevnik
Changes by Joe Jevnik : -- nosy: +ll ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated to the tip. Converted methods getint, getdouble, getboolean, splitlist, split. -- Added file: http://bugs.python.org/file39089/tkinter_4.patch ___ Python tracker ___

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Joe Jevnik
Joe Jevnik added the comment: I am also confused by this; I would imagine that callable(obj) would respect the descriptor protocol. I have a proposed patch that would make this work with descriptors. -- keywords: +patch Added file: http://bugs.python.org/file39090/callable.diff __

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-04-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file39089/tkinter_4.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-04-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file39091/tkinter_4.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated to the tip. -- Added file: http://bugs.python.org/file39092/sre_clinic_5.patch ___ Python tracker ___

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Christian Heimes
Christian Heimes added the comment: I have closed the issue because the code behaves according to the language specs and the language design. It is not broken at all. The callable test just checks for the attribute __call__ on the *type* of an object. The check is not performed on the *object*

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Ethan Furman
Ethan Furman added the comment: As Christian Heimes explained, this is not a bug. Please do not reopen it. -- nosy: +ethan.furman resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: The docs do not explain that the check is performed against type(a). Nor that makes any sense - it's not very explicit. AFAIK Python doesn't have any specification, the behaviour is defined by cpython implementation, and I hope that you realise that an

[issue23986] Inaccuracy about "in" keyword for list and tuple

2015-04-17 Thread R. David Murray
R. David Murray added the comment: Those two should be in the reverse order, though. Identity is checked before equality. But why not backport the python3 wording? (Note that there is an open issue for slightly improving that wording). -- nosy: +r.david.murray _

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Ethan Furman
Ethan Furman added the comment: See: https://docs.python.org/3/reference/datamodel.html#special-method-names and https://docs.python.org/3/reference/datamodel.html#object.__getattribute__ and https://docs.python.org/3/reference/datamodel.html#special-lookup -- ___

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: Ethan, those sections you have linked to have nothing to do with special methods that are descriptors, or behaviour regarding descriptors. As seen in this example, descriptors are working even for special methods: >>> class B: ... @property ... def __

[issue23937] IDLE start maximized

2015-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: With a large, wide monitor, I run very few things maximized other that a browser and full screen games. A much smaller notebook screen would be very different. For Idle, I want Shell and Editor side-by-side. I would however, like windows vertically maximize

[issue23969] please set a SOABI for MacOSX

2015-04-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23966] More clearly expose/explain native and cross-build target information

2015-04-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23954] Idle autocomplete: enter or clicking does not select the option

2015-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have noticed ;-). TAB TAB is required to select, which is slightly obnoxious. Click within the box closes it, which is useless and annoying. Scrollwheel moves the entries but not the selection highlight, making it mostly useless These behaviors are most

[issue15786] IDLE code completion window can hang or misbehave with mouse

2015-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #23954 in favor of this one. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15786] IDLE code completion window can hang or misbehave with mouse

2015-04-17 Thread Al Sweigart
Changes by Al Sweigart : -- nosy: +Al.Sweigart ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue23961] IDLE autocomplete window does not automatically close when selection is made

2015-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe Tab is working as designed. If so, you are requesting that the design be reviewed and possible changed. As noted in #15786, Click and Enter are not working as intended, so I think fixing the bugs is a higher priority. -- nosy: +terry.reedy

[issue23972] Asyncio reuseport

2015-04-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23978] ttk.Style.element_create using incorrect tk.call syntax

2015-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reproduced on Win7, 3.4.3, with updated import: "from tkinter import ttk". The example should serve as a test. -- nosy: +terry.reedy stage: -> needs patch type: -> behavior versions: +Python 3.4, Python 3.5 ___ Py

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: Some more discussions happened here: https://mail.python.org/pipermail/python-ideas/2015-April/033027.html So for Christian or Ethan, can you reconsider this issue? Joe has already kindly provided a patch for this that just does one extra check. It st

[issue23979] Multiprocessing Pool.map pickles arguments passed to workers

2015-04-17 Thread Luis
Luis added the comment: Thanks for answer, although I still think I haven't made myself fully understood here, allow me to paraphrase: "...You need some means of transferring objects between processes, and pickling is the Python standard serialization method" Yes, but the question that stands

[issue23978] ttk.Style.element_create using incorrect tk.call syntax

2015-04-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Joe Jevnik
Joe Jevnik added the comment: Oops, I messed up the test case; here is a fixed version (the class name was wrong). Just a note: all the existing test cases passed AND the one proposed in this thread. I understand that it is currently working as intended; however, the argument is that the inte

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Joe Jevnik
Changes by Joe Jevnik : Removed file: http://bugs.python.org/file39090/callable.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23982] Tkinter in Python 3.4 for Windows incorrectly renders certain colors using non-TclTk RGB values

2015-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran colortest on Win7 with 2.7.9, 3.3.5, 3.4.3, and 3.5.0a3. The first two are the same, the last two are also the same, but with the muted colors noted. The obvious difference is that for Windows, we changed from tcl/tk 8.5 to 8.6 in 3.4.0. The same chan

[issue18262] ZipInfo.external_attr are not documented

2015-04-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: docs@python -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: >From : >>> GvR << I think you've found an unintended and undocumented backdoor. I admit I don't understand how this works in CPython. Overloaded operators like __add__ or

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > But somehow defining them with @property works (I guess because @property is > in the class). IMO, this is the bug and not the callable() behavior. -- ___ Python tracker

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Win7, 64 bit, 3.5.0a3: crash in about 10 seconds. -- nosy: +terry.reedy ___ Python tracker ___ ___ P

[issue23982] Tkinter in Python 3.4 for Windows incorrectly renders certain colors using non-TclTk RGB values

2015-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >From Tcl/Tk 8.6 on, Tk uses Web colours instead of X11 ones, where they >conflict. http://www.tcl.tk/cgi-bin/tct/tip/403.html -- resolution: -> not a bug stage: test needed -> resolved status: open -> closed ___

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Joe Jevnik
Joe Jevnik added the comment: I don't think that using a property to define a callable in the class is a bug; while it seems less ideal, I don't understand why it would be unsupported with callable when it executes correctly. -- ___ Python tracker

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: > > But somehow defining them with @property works (I guess because @property > > is in the class). > IMO, this is the bug and not the callable() behavior. By the same reasoning we shouldn't be able to use staticmethod or classmethod for special method

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread James Edwards
James Edwards added the comment: It seems like this issue has morphed over time. At the beginning, it looked like you expected perfectly reasonable (but odd) definitions of __call__ attributes, where the logic inside raised an Exception, to be somehow determined to be "uncallable". This doe

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: Actually it does address it, as AttributeError is very special: >>> a.__call__ Traceback (most recent call last): File "", line 1, in File "", line 4, in __call__ AttributeError: go away >>> hasattr(a, '__call__') False -- _

[issue23985] Crash when deleting slices from duplicated bytearray

2015-04-17 Thread Martin Panter
Martin Panter added the comment: Here is a reduced version without using random numbers that reliably crashes for me on 64-bit Linux. Hopefully it also crashes for others, and they can investigate further. Crashes for me with the standard Arch Linux binary: Python 3.4.3 (default, Feb 26 2015,

[issue23989] Add recommendation to use requests to the documentation, per summit

2015-04-17 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Joe Jevnik
Joe Jevnik added the comment: As ionelmc mentioned, it does address the issue proposed originally and in the patch this is added as another test case for the callable function -- ___ Python tracker ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-17 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, Here's the output from addr2line bld/python/cpython-master/cpython $ addr2line -C -f -e /lib/libpython3.5m.so.1.0 0008f42c _PyMem_RawStrdup /bld/python/cpython-master/cpython/Objects/obmalloc.c:358 -- ___ Python

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: __call__ is a reserved name defined to be an instance method. I view wrapping *any* reserved-name instance method with @property to be a bug in that it redefines the name as a data attribute implemented with a 'hidden' get method. A function wrapped with @st

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Joe Jevnik
Joe Jevnik added the comment: I don't see how it is a bug that you can make __call__ an arbitrary descriptor as long as it returns a valid callable. if n.__call__ is a valid callable, why should it matter that it was looked up as a descriptor or as an instancemethod? -- type: enhanceme

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Ethan Furman
Ethan Furman added the comment: The purpose of callable is to report whether an instance is callable or not, and that information is available on the instance's class, via the presence of __call__. It is not up to callable() nor iter() nor ... to figure out that, even though the special metho

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Joe Jevnik
Joe Jevnik added the comment: "The purpose of callable is to report whether an instance is callable or not" I am totally with you so far until you get to: "and that information is available on the instance's class, via the presence of __call__". I don't understand why this assumption must be m

[issue23979] Multiprocessing Pool.map pickles arguments passed to workers

2015-04-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: The Pool workers are created eagerly, not lazily. That is, the fork occurs before map is called, and Python can't know that the objects passed as arguments were inherited in the first place (since they could be created after the Pool was created). If you creat

[issue23982] Tkinter in Python 3.4 for Windows incorrectly renders certain colors using non-TclTk RGB values

2015-04-17 Thread Martin Falatic
Martin Falatic added the comment: This change wasn't in their documentation anywhere: http://www.tcl.tk/man/tcl8.5/TkCmd/colors.htm http://www.tcl.tk/man/tcl8.6/TkCmd/colors.htm It would be of value to call this out in the Python documentation (as far as I can find, there's nothing specifying w

[issue12978] Figure out extended attributes on BSDs

2015-04-17 Thread William Orr
William Orr added the comment: Here's an initial attempt at implementing extended attribute support. Let me know if there's any interest. There's currently one deficiency, which is that the namespace isn't prepended to the attribute name when calling lsxattr. Let me know if my approach is goo

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-17 Thread William Orr
Changes by William Orr : Removed file: http://bugs.python.org/file38990/recvmsg_trunc_emsgsize_cmsg_obsd_skip.patch ___ Python tracker ___ __

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-17 Thread William Orr
Changes by William Orr : Removed file: http://bugs.python.org/file39028/recvmsg_trunc_emsgsize_cmsg_linux_only.patch ___ Python tracker ___ _

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-17 Thread William Orr
William Orr added the comment: Double checked on a FreeBSD box and confirmed. I missed the loop in the kernel source. I've attached a new patch, without the emsgsize change. -- Added file: http://bugs.python.org/file39096/recvmsg_linux_freebsd_only.patch __

[issue23852] Wrong computation of max_fd on OpenBSD

2015-04-17 Thread William Orr
William Orr added the comment: I've updated Cédric's patch to only run that portion on OpenBSD. -- Added file: http://bugs.python.org/file39097/max_fd.patch ___ Python tracker __

[issue23982] Tkinter in Python 3.4 for Windows incorrectly renders certain colors using non-TclTk RGB values

2015-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Aha. http://www.tcl.tk/man/tcl8.6/TkCmd/colors.htm should be changed. Not an issue for this tracker though. -- ___ Python tracker ___

  1   2   >