Re: error with pillow: decoder not avaliable

2015-07-02 Thread Mark Lawrence
On 02/07/2015 08:29, telmo bacile wrote: Hi list, im new in this list. Im trying to run a python code that was made originally with pil using pillow, The problem is that i get this error: IOError: decoder jpeg not available Any idea why this code is not working with pillow? import math

[issue24546] sequence index bug in random.choice

2015-07-02 Thread Serge Anuchin
Serge Anuchin added the comment: Which platform Python is that? Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) [GCC 4.4.5] on linux2 Linux li307-195 2.6.39.1-x86_64-linode19 #1 SMP Tue Jun 21 10:04:20 EDT 2011 x86_64 GNU/Linux -- ___ Python

Re: how to fix TypeError: format requires a mapping

2015-07-02 Thread Hina Imran
you are right the data is a list of dictionaries. When I try your solution I get an error Traceback (most recent call last): File data.py, line 45, in module col['x'] = row['timestamp'] TypeError: 'OldSample' object has no attribute '__getitem__' On Wednesday, July 1, 2015 at

[issue24546] sequence index bug in random.choice

2015-07-02 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24546 ___ ___

error with pillow: decoder not avaliable

2015-07-02 Thread telmo bacile
Hi list, im new in this list. Im trying to run a python code that was made originally with pil using pillow, The problem is that i get this error: IOError: decoder jpeg not available Any idea why this code is not working with pillow? import math from PIL import Image imageFile =

Re: Javascript website scraping using WebKit and Selenium tools

2015-07-02 Thread Veek M
dieter wrote: Once the problems to get the final HTML code solved, I would use lxml and its xpath support to locate any relevant HTML information. Hello Dieter, yes - you are correct. (though I don't think there's any auth to browse - nice that you actually tried) He's using jsonP and

Re: TypeError: 'OldSample' object has no attribute '__getitem__'

2015-07-02 Thread Peter Otten
Hina Imran wrote: The data set looks something like this, The data is from openstack ceilometer python API [ OldSample { counter_name': cpu_util', user_id': 7b', resource_id': ef', timestamp': 2015-07-02T08:13:55',

Pylint bug in python35 b2

2015-07-02 Thread Florent Quesselaire
i installed python35 b2 and tested to pip install / easy install pylint plgin but i got an : AttributeError : 'Call' object has no attribute starargs. i feel this error more python side than pylint side because it is the same version who works fine in 3.4.3 The exe installer is amazing.

[issue24407] Use after free in PyDict_merge

2015-07-02 Thread paul
paul added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24407 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24097] Use after free in PyObject_GetState

2015-07-02 Thread paul
paul added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24097 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24103] Use after free in xmlparser_setevents (1)

2015-07-02 Thread paul
paul added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24103 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24104] Use after free in xmlparser_setevents (2)

2015-07-02 Thread paul
paul added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24104 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24098] Multiple use after frees in obj2ast_* methods

2015-07-02 Thread paul
paul added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24098 ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-02 Thread Saran Ahluwalia
So what did you do to resolve this? Please provide your fix. This is an excellent case study for others. Sent from my iPhone On Jul 2, 2015, at 5:34 AM, Veek M vek.m1...@gmail.com wrote: never mind fixed.. it's returning a list so whatever[0].text and relative-path for the xpath

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-02 Thread Veek M
never mind fixed.. it's returning a list so whatever[0].text and relative-path for the xpath -- https://mail.python.org/mailman/listinfo/python-list

TypeError: 'OldSample' object has no attribute '__getitem__'

2015-07-02 Thread Hina Imran
The data set looks something like this, The data is from openstack ceilometer python API [ OldSample { counter_name': cpu_util', user_id': 7b', resource_id': ef', timestamp': 2015-07-02T08:13:55',

[issue24097] Use after free in PyObject_GetState

2015-07-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +patch Added file: http://bugs.python.org/file39842/getstate_borrowed_ref.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24097 ___

[issue24097] Use after free in PyObject_GetState

2015-07-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the report. Here is a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24097 ___ ___

[issue24097] Use after free in PyObject_GetState

2015-07-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24097 ___

[issue24097] Use after free in PyObject_GetState

2015-07-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24097 ___ ___

[issue24537] Py_Initialize unable to load the file system codec

2015-07-02 Thread Tim Golden
Tim Golden added the comment: I'm not sure why you expect this to work: the Python C API relies on the presence of a Python installation to work. It's not, in itself, a means of bundling Python. I assume you must have at least had the python .dll present or the program wouldn't even have had

lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-02 Thread Veek M
I travel to 'item-name', how do i quickly travel to c-price and then print both values of text. I tried: for anchor in element.xpath('//a[@class=item-name]'): #Travel to item-name but when i getparent and then call xpath I get a whole bunch of span elements as a list - why? Shouldn't xpath

[issue24546] sequence index bug in random.choice

2015-07-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24546 ___ ___

Re: Pylint bug in python35 b2

2015-07-02 Thread Peter Otten
Florent Quesselaire wrote: i installed python35 b2 and tested to pip install / easy install pylint plgin but i got an : AttributeError : 'Call' object has no attribute starargs. i feel this error more python side than pylint side because it is the same version who works fine in 3.4.3

[issue24534] disable executing code in .pth files

2015-07-02 Thread Paul Moore
Paul Moore added the comment: On 30 June 2015 at 23:30, M.-A. Lemburg m...@egenix.com wrote: I don't remember the details of why this feature was added, but can imagine that it was supposed to enable installation of new importers via .pth files. I don't know for certain if this feature was

[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-02 Thread Stefan Krah
Stefan Krah added the comment: Okay, I'll have a look then (I first assumed this was mc68881 specific). -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24543 ___

[issue24120] pathlib.(r)glob stops on PermissionDenied exception

2015-07-02 Thread Ulrich Petri
Ulrich Petri added the comment: Antoine, thanks for the review. I didn't realise that `tree` outputs non-ASCII by default. I've updated the patch with a pure ASCII file tree. Unfortunately I don't have a Windows dev environment available at the moment, so I can't easily test for that.

[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-02 Thread marxin
marxin added the comment: As I wrote, starting from GCC 4.9.0, the compiler does not emit any assembly with -flto and -c option. I would suggest to remove '-c' option that will force to create an executable. -- ___ Python tracker

[issue22126] mc68881 fpcr inline asm breaks clang -flto build

2015-07-02 Thread Stefan Krah
Changes by Stefan Krah ste...@bytereef.org: -- resolution: - duplicate status: open - closed superseder: - Configure script wrongly detects x64/x87/mc68881 with -flto option passed ___ Python tracker rep...@bugs.python.org

[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-02 Thread Stefan Krah
Changes by Stefan Krah ste...@bytereef.org: -- nosy: +ivank ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24543 ___ ___ Python-bugs-list mailing

Nikola v7.6.0 is out!

2015-07-02 Thread Chris Warrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.6.0. It fixes some bugs and adds new features. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use

[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-02 Thread Stefan Krah
Stefan Krah added the comment: In what way are the x64/x87 tests broken? ./configure runs smoothly here (gcc 4.8.2) with and without -flto. Can you try =m and m for the asm output operands? -- ___ Python tracker rep...@bugs.python.org

[issue23517] datetime.utcfromtimestamp parses timestamps incorrectly

2015-07-02 Thread R. David Murray
R. David Murray added the comment: Because this seems to be a regression, I'm marking this as a release blocker. The RM can decide is isn't, of course. -- nosy: +larry priority: normal - release blocker versions: +Python 3.5, Python 3.6 ___ Python

Re: Bug in floating point multiplication

2015-07-02 Thread Todd
The loop runs to completion for me on openSUSE Tumbleweed and both Python 2.7 64bits and Python 3.4 64bits. On Thu, Jul 2, 2015 at 4:52 PM, Steven D'Aprano st...@pearwood.info wrote: Despite the title, this is not one of the usual Why can't Python do maths? bug reports. Can anyone reproduce

Re: Bug in floating point multiplication

2015-07-02 Thread Robin Becker
On 02/07/2015 15:52, Steven D'Aprano wrote: Despite the title, this is not one of the usual Why can't Python do maths? bug reports. Can anyone reproduce this behaviour? If so, please reply with the version of Python and your operating system. Printing sys.version will probably do. x = 1 -

Re: Bug in floating point multiplication

2015-07-02 Thread Paul Rubin
Steven D'Aprano st...@pearwood.info writes: x = 1 - 1/2**53 assert x == 0. In Python 2.x I don't see how that assert can possibly succeed, since x is the integer 1. But I tested it anyway on 2.7.5 under Fedora 19 and it threw an assertion error. I changed it to say 1 -

[issue24546] sequence index bug in random.choice

2015-07-02 Thread Stefan Krah
Stefan Krah added the comment: Very surprising! Which platform Python is that? I'm unable to reproduce this using Linux-amd64, Python 2.7.6, gcc 4.8.2. -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24546

Bug in floating point multiplication

2015-07-02 Thread Steven D'Aprano
Despite the title, this is not one of the usual Why can't Python do maths? bug reports. Can anyone reproduce this behaviour? If so, please reply with the version of Python and your operating system. Printing sys.version will probably do. x = 1 - 1/2**53 assert x == 0. for i in

[issue24412] setUpClass equivalent for addCleanup

2015-07-02 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch. -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file39844/addCleanupClass.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24412

Re: Bug in floating point multiplication

2015-07-02 Thread Chris Angelico
On Fri, Jul 3, 2015 at 1:26 AM, Paul Rubin no.email@nospam.invalid wrote: Steven D'Aprano st...@pearwood.info writes: x = 1 - 1/2**53 assert x == 0. In Python 2.x I don't see how that assert can possibly succeed, since x is the integer 1. But I tested it anyway on 2.7.5

Re: normalizing a value

2015-07-02 Thread Skip Montanaro
This looks like a straightforward linear transformation issue to me (like Fahrenheit to Celsius). Add 50 to all input values, giving you values in the range 0 to 100. Then scale them into your 0 to 12 range by multiplying them by 12/100: for n in range(-50, 50, 3): ... print n, n + 50, (n +

Re: Bug in floating point multiplication

2015-07-02 Thread Ian Kelly
On Thu, Jul 2, 2015 at 9:26 AM, Paul Rubin no.email@nospam.invalid wrote: Steven D'Aprano st...@pearwood.info writes: x = 1 - 1/2**53 assert x == 0. In Python 2.x I don't see how that assert can possibly succeed, since x is the integer 1. But I tested it anyway on 2.7.5

Re: Bug in floating point multiplication

2015-07-02 Thread Todd
On Thu, Jul 2, 2015 at 5:29 PM, Robin Becker ro...@reportlab.com wrote: $ uname -a Linux everest 4.0.6-1-ARCH #1 SMP PREEMPT Tue Jun 23 14:40:31 CEST 2015 i686 GNU/Linux I am wondering if this is a 32bit vs. 64bit thing. Has anyone gotten this problem to work on a 64bit python? --

[issue24120] pathlib.(r)glob stops on PermissionDenied exception

2015-07-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, thanks. The tests are running ok on my Windows VM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24120 ___

Re: Bug in floating point multiplication

2015-07-02 Thread Robin Becker
$ uname -a Linux everest 4.0.6-1-ARCH #1 SMP PREEMPT Tue Jun 23 14:40:31 CEST 2015 i686 GNU/Linux robin@everest:~ $ python2 Python 2.7.10 (default, May 26 2015, 04:28:58) [GCC 5.1.0] on linux2 Type help, copyright, credits or license for more information. x = 1.0 - 1.0/2**53 assert x ==

Re: Bug in floating point multiplication

2015-07-02 Thread Ian Kelly
On my Chromebook, using Python 2.7.6 from the Ubuntu Trusty distribution, I get AssertionError, and x == 1. In Python 3.4.0 on the same system, the code runs to completion. Both Pythons appear to be 64-bit builds. On my Mint 17.1 desktop (which should be using the same packages), I get the same

Re: Bug in floating point multiplication

2015-07-02 Thread Steven D'Aprano
On Fri, 3 Jul 2015 01:34 am, Chris Angelico wrote: From previous discussions I happen to know that Steven normally runs everything with from __future__ import division active (and possibly others? not sure), so just assume he means to work with floats here. Steven, I think this is one of the

[issue24546] sequence index bug in random.choice

2015-07-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Thu, Jul 02, 2015 at 04:05:45AM +, Tim Peters wrote: Very surprising! Which platform Python is that? Python 2.7.2 (default, May 18 2012, 18:25:10) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 I get the same result on Python 2.6 and 3.3, but

[issue24546] sequence index bug in random.choice

2015-07-02 Thread STINNER Victor
STINNER Victor added the comment: Your example of int(0.5) returning 1 is misleading On my setup, this number is rounded 1.0: float('0.5').hex() '0x1.0p+0' CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz OS: Fedora release 22 Python 2.7.10 or 3.4.2

[issue24534] disable executing code in .pth files

2015-07-02 Thread Eric Snow
Eric Snow added the comment: Note that the idea of replacing .pth files came up a couple years ago: https://mail.python.org/pipermail/import-sig/2013-July/000645.html That proposal didn't go anywhere basically because there were more important things to work on. :) --

[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-02 Thread Andreas Schwab
Andreas Schwab added the comment: Please use AC_LINK_IFELSE. No need for a runtime test that breaks cross compilation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24543 ___

Re: Bug in floating point multiplication

2015-07-02 Thread Michael Poeltl
hi Steven, I'm running python-3.4.2 on a linuxmint16 box and CANNOT reproduce it is just that int(i*x) == i is never True! hope that helps regards Michael * Steven D'Aprano st...@pearwood.info [2015-07-02 16:56]: Despite the title, this is not one of the usual Why can't Python do maths? bug

Re: Bug in floating point multiplication

2015-07-02 Thread Chris Angelico
On Fri, Jul 3, 2015 at 12:52 AM, Steven D'Aprano st...@pearwood.info wrote: Can anyone reproduce this behaviour? If so, please reply with the version of Python and your operating system. Printing sys.version will probably do. x = 1 - 1/2**53 assert x == 0. for i in range(1,

Re: Bug in floating point multiplication

2015-07-02 Thread Steven D'Aprano
On Fri, 3 Jul 2015 12:52 am, Steven D'Aprano wrote: x = 1 - 1/2**53 Ooops, sorry I forgot that I had already run from __future__ import division. Otherwise that line needs to be: x = 1 - 1.0/2**53 -- Steven -- https://mail.python.org/mailman/listinfo/python-list

[issue24543] Configure script wrongly detects x64/x87/mc68881 with -flto option passed

2015-07-02 Thread Stefan Krah
Stefan Krah added the comment: -c is apparently generated by AC_COMPILE_IFELSE, which uses ac_compile. The alternative is using AC_RUN_IFELSE, which uses ac_link. Do you see any other possibility of dropping the -c during ./configure? -- ___

Re: Bug in floating point multiplication

2015-07-02 Thread Vincent Vande Vyvre
Le 02/07/2015 16:52, Steven D'Aprano a écrit : Despite the title, this is not one of the usual Why can't Python do maths? bug reports. Can anyone reproduce this behaviour? If so, please reply with the version of Python and your operating system. Printing sys.version will probably do. x = 1 -

Re: Bug in floating point multiplication

2015-07-02 Thread Ian Kelly
On Thu, Jul 2, 2015 at 9:28 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On my Chromebook, using Python 2.7.6 from the Ubuntu Trusty distribution, I get AssertionError, and x == 1. In Python 3.4.0 on the same system, the code runs to completion. Both Pythons appear to be 64-bit builds. On my

[issue24546] sequence index bug in random.choice

2015-07-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Thu, Jul 02, 2015 at 05:35:53PM +, Tim Peters wrote: Steven, there's something wrong with the arithmetic on your machine, but I can't guess what from here (perhaps you have a non-standard rounding mode enabled, perhaps your CPU is broken, ...).

[issue24325] Speedup types.coroutine()

2015-07-02 Thread Larry Hastings
Larry Hastings added the comment: Oh, wait, I was confusing myself. This is that new module you guys created for type hints, and this is a new object with no installed base. (Right?) Yeah, you can check it in for 3.5. -- ___ Python tracker

[issue18543] urllib.parse.urlopen shouldn't ignore installed opener when called with any ca* argument

2015-07-02 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: perhaps an HTTPSHandler() should only merged into the handler chain if an https URI is found and no existing handler is found that has an https_open() defined -- ___ Python tracker

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event 1

2015-07-02 Thread Ben Elam
On Thursday, July 2, 2015 at 6:42:22 PM UTC-5, MRAB wrote: On 2015-07-02 23:33, Ben Elam wrote: I've stripped things down to the least amount of code necessary to reproduce the error. I can make tk.Button handle event '3' but not event '1'. That is, the function the event is passed to

[issue24097] Use after free in PyObject_GetState

2015-07-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The fix LGTM. It would be nice to add a test. -- assignee: serhiy.storchaka - pitrou stage: patch review - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24097

Creating JSON from iostat lines ; Adding timezone information to naive datetimes?

2015-07-02 Thread Victor Hooi
I just want to run some things past you guys, to make sure I'm doing it right. I'm using Python to parse disk metrics out of iostat output. The device lines look like this: Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util sda

[issue24325] Speedup types.coroutine()

2015-07-02 Thread Yury Selivanov
Yury Selivanov added the comment: Oh, wait, I was confusing myself. This is that new module you guys created for type hints, and this is a new object with no installed base. (Right?) No, you were right in your previous comment... Help me to understand here. You want to check in a patch

[issue18543] urllib.parse.urlopen shouldn't ignore installed opener when called with any ca* argument

2015-07-02 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: Unfortunately more breakage exists within urllib.request. A context supplied to urlopen() is useless in the following pseudo code: build_some_openers() context = ssl.foo() urlopen('foo.com', context=context) test against foo.com -- foo.com ssl

[issue18543] urllib.parse.urlopen shouldn't ignore installed opener when called with any ca* argument

2015-07-02 Thread R. David Murray
R. David Murray added the comment: See also issue 23166. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18543 ___ ___ Python-bugs-list mailing

[issue24553] improve test coverage for subinterpreters

2015-07-02 Thread Eric Snow
New submission from Eric Snow: We do very little testing of subinterpreters in CPython. About all I'm aware of is in test_tracemalloc. I'll be working on improving test coverage as a precursor to fixing some existing bugs. -- components: Tests messages: 246107 nosy: eric.snow,

[issue24450] Add cr_await calculated property to coroutine object

2015-07-02 Thread Larry Hastings
Larry Hastings added the comment: I'll accept it for 3.5. Can it go in for beta 3, tagged in 48 hours? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24450 ___

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event 1

2015-07-02 Thread MRAB
On 2015-07-02 23:33, Ben Elam wrote: I've stripped things down to the least amount of code necessary to reproduce the error. I can make tk.Button handle event '3' but not event '1'. That is, the function the event is passed to receives the event and can even print the address of the event

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event 1

2015-07-02 Thread Ben Elam
On Thursday, July 2, 2015 at 5:54:50 PM UTC-5, Terry Reedy wrote: On 7/2/2015 6:33 PM, Ben Elam wrote: I've stripped things down to the least amount of code necessary to reproduce the error. I can make tk.Button handle event '3' but not event '1'. That is, the function the event is passed

[issue24468] Expose C level compiler flag constants to Python code

2015-07-02 Thread Larry Hastings
Larry Hastings added the comment: opcode.patch is okay for 3.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24468 ___ ___ Python-bugs-list

[issue24432] Upgrade windows builds to use OpenSSL 1.0.2b

2015-07-02 Thread Larry Hastings
Larry Hastings added the comment: Steve? -- assignee: - steve.dower ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24432 ___ ___ Python-bugs-list

[issue24546] sequence index bug in random.choice

2015-07-02 Thread Tim Peters
Tim Peters added the comment: Thanks for the legwork, Steven! So far it looks like a gcc bug when using -m32 (whether ints, longs and/or pointers are 4 or 8 bytes _should_ make no difference to anything in Jason Swails's C example). But it may be a red herring anyway: there's only one

[issue19235] Add a dedicated subclass for recursion errors

2015-07-02 Thread Larry Hastings
Larry Hastings added the comment: This is fine for 3.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19235 ___ ___ Python-bugs-list mailing

[issue24450] Add cr_await calculated property to coroutine object

2015-07-02 Thread Yury Selivanov
Yury Selivanov added the comment: Benno, thanks for coming up with the idea and for the patches. Larry, thanks for approving this for 3.5! -- resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 3.6 ___ Python

[issue24450] Add cr_await calculated property to coroutine object

2015-07-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84eb9a020011 by Yury Selivanov in branch '3.5': Issue #24450: Add gi_yieldfrom to generators; cr_await to coroutines. https://hg.python.org/cpython/rev/84eb9a020011 New changeset f4058528ab8c by Yury Selivanov in branch 'default': Merge 3.5 (Issue

[issue18543] urllib.parse.urlopen shouldn't ignore installed opener when called with any ca* argument

2015-07-02 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: Third version of this patch and a short test suite specifically for this problem. per awareness of :issue:`23166` I rewrote my patch to handle subclassed HTTPS handlers. There are also exceptions raised if an attempt to install more than one

[issue24432] Upgrade windows builds to use OpenSSL 1.0.2b

2015-07-02 Thread Zachary Ware
Zachary Ware added the comment: Yes, you'll need Perl, NASM, and svn on PATH. I tried to send you an email about this a week or two ago, did I not get it sent or did it go awry? -- ___ Python tracker rep...@bugs.python.org

[issue23166] urllib2 ignores opener configuration under certain circumstances

2015-07-02 Thread David Ford (FirefighterBlu3)
David Ford (FirefighterBlu3) added the comment: I've made a patch for 3.4 that addresses this issue. See issue 18543, latest patch, and test file -- nosy: +David Ford (FirefighterBlu3) ___ Python tracker rep...@bugs.python.org

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-07-02 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, Ben, Stefan, Nick, I want to re-open this issue. I'm still not satisfied with the current state of things, mainly with the __instancecheck__ hack for Awaitable Coroutine ABCs (as Ben initially suggested). I think we should remove the

[issue23517] datetime.utcfromtimestamp parses timestamps incorrectly

2015-07-02 Thread STINNER Victor
STINNER Victor added the comment: I'm concerned by this example: dt = datetime(2015, 2, 24, 22, 34, 28, 274000) dt - datetime.fromtimestamp(dt.timestamp()) datetime.timedelta(0, 0, 1) I don't know yet if it should be fixed or not. If we modify .fromtimestamp(), should we use the same

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event 1

2015-07-02 Thread Terry Reedy
On 7/2/2015 6:33 PM, Ben Elam wrote: I've stripped things down to the least amount of code necessary to reproduce the error. I can make tk.Button handle event '3' but not event '1'. That is, the function the event is passed to receives the event and can even print the address of the event

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2015-07-02 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- versions: +Python 3.5, Python 3.6 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6531 ___

[issue10915] Make the PyGILState API compatible with multiple interpreters

2015-07-02 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow versions: +Python 3.5, Python 3.6 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10915 ___

[issue15751] Support subinterpreters in the GIL state API

2015-07-02 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- versions: +Python 3.6 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15751 ___ ___

[issue4202] Multiple interpreters and readline module hook functions.

2015-07-02 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow versions: +Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4202 ___

[issue24554] GC should happen when a subinterpreter is destroyed

2015-07-02 Thread Eric Snow
New submission from Eric Snow: Per A. Jesse Jiryu Davis: === # mod.py class C(object): pass class Pool(object): def __del__(self): print('del') list() C.pool = Pool() === === int main() {

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-07-02 Thread Larry Hastings
Larry Hastings added the comment: This is a) marked as release blocker, and b) is assigned to nobody. This is not tenable. While I want this fixed, I'm not going to hold up beta 3 for it. -- priority: release blocker - deferred blocker ___

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-07-02 Thread Larry Hastings
Larry Hastings added the comment: This can go in for 3.5 beta 3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24483 ___ ___ Python-bugs-list

[issue24325] Speedup types.coroutine()

2015-07-02 Thread Larry Hastings
Larry Hastings added the comment: Help me to understand here. You want to check in a patch adding 300 new lines of C code to the types module during beta, for a speed optimization, after we've already hit beta? While I like speedups as much as the next guy, I would be happier if this waited

[issue24546] sequence index bug in random.choice

2015-07-02 Thread Tim Peters
Tim Peters added the comment: I'm guessing this is a double rounding problem due to gcc not restricting an Intel FPU to using 53 bits of precison: In binary, (2**53-1)/2**53 * 2049 is: 0.1 times 1001.0 which is exactly:

[issue23517] datetime.utcfromtimestamp parses timestamps incorrectly

2015-07-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor I don't know yet if it should be fixed or not. It is my understanding that datetime - timestamp - datetime round-tripping was exact in 3.3 for datetimes not too far in the future (as of 2015), but now it breaks for datetime(2015, 2, 24, 22, 34,

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event 1

2015-07-02 Thread Ben Elam
On Thursday, July 2, 2015 at 5:34:19 PM UTC-5, Ben Elam wrote: I've stripped things down to the least amount of code necessary to reproduce the error. I can make tk.Button handle event '3' but not event '1'. That is, the function the event is passed to receives the event and can even print

[issue24450] Add cr_await calculated property to coroutine object

2015-07-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34460219c0e0 by Yury Selivanov in branch '3.4': Issue #24450: Proxy gi_yieldfrom cr_await in asyncio.CoroWrapper https://hg.python.org/cpython/rev/34460219c0e0 New changeset 3555f7b5eac6 by Yury Selivanov in branch '3.5': Merge 3.4 (Issue #24450)

[issue23974] random.randrange() biased output

2015-07-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I choose option 3, close as won't fix. The ship for 2.7 sailed a long time ago. The code for randrange() was designed by Tim Peters and has been in-place for a decade and half without causing suffering in the world. Also, changing the type to behavior

Re: Bug in floating point multiplication

2015-07-02 Thread Ned Deily
In article 559579bb$0$2921$e4fe5...@news.xs4all.nl, Irmen de Jong irmen.nos...@xs4all.nl wrote: Tested on Mac OSX 10.10.4, with a 64-bit core2duo processor. Below are all 64-bit python implementations: 2.6.9 (apple supplied), 2.7.6 (apple supplied), 3.4.3 (homebrew), and pypy-2.6.0

[issue24546] sequence index bug in random.choice

2015-07-02 Thread Tim Peters
Tim Peters added the comment: Should also note that double rounding cannot account for the _original_ symptom here. Double rounding surprises on Intel chips require an exact product at least 65 bits wide, but the OP's sequence is far too short to create such a product. (Steven's 2049 just

[issue24432] Upgrade windows builds to use OpenSSL 1.0.2b

2015-07-02 Thread Steve Dower
Steve Dower added the comment: I'll give it a shot tomorrow. Haven't done it before (not even sure I have the svn.p.o permissions). Do I still need Perl for this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24432

[issue19235] Add a dedicated subclass for recursion errors

2015-07-02 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks Larry and Georg! -- resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19235

[issue24450] Add cr_await calculated property to coroutine object

2015-07-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9bae275e99b3 by Yury Selivanov in branch '3.5': Issue #24450: Proxy cr_await and gi_yieldfrom in @types.coroutine https://hg.python.org/cpython/rev/9bae275e99b3 New changeset 4d3bd9b82a62 by Yury Selivanov in branch 'default': Merge 3.5 (Issue

  1   2   >