[issue26630] Windows EXE extension installers not finding 32bit Python 3.5 installation

2016-03-23 Thread Eryk Sun
Changes by Eryk Sun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> bdist_wininst created binaries fail to start and find 32bit Pythons

[issue26616] A bug in datetime.astimezone() method

2016-03-23 Thread Brian Guo
Brian Guo added the comment: >From the datetime documentation of astimezone(): https://docs.python.org/3.5/library/datetime.html#datetime.datetime.astimezone : 'If called without arguments (or with tz=None) the system local timezone is assumed. The tzinfo attribute of the converted datetime

[issue26634] recursive_repr forgets to override __qualname__ of wrapper

2016-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, qualname was invented *after* recursive_repr, so it would be more accurate to say that qualname forgot recursive_repr :-) If you don't mind, please add a test to your patch. -- assignee: -> rhettinger nosy: +rhettinger

Re: crash while using PyCharm / Python3

2016-03-23 Thread Adam
"Adam" wrote in message news:ncikss$tks$1...@news.albasani.net... > > Host OS:Ubuntu Desktop 14.04 LTS / Unity > > System crashed while using PyCharm / Python3. > Booting takes forever and stuck at the purple screen with > the Ubuntu logo and the five dots cycling. > How

[issue26634] recursive_repr forgets to override __qualname__ of wrapper

2016-03-23 Thread Xiang Zhang
New submission from Xiang Zhang: In reprlib.recursive_repr, it seems __qualname__ is forgotten. Giving the example in reprlib document, it gives a strange result 'recursive_repr..decorating_function..wrapper' of Mylist.__repr__.__qualname__. I simply add the assignment of __qualname__. But I

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Rustom Mody
On Thursday, March 24, 2016 at 8:54:49 AM UTC+5:30, Chris Angelico wrote: > On Thu, Mar 24, 2016 at 12:41 AM, BartC wrote: > > To extend this analogy better, executing byte-code to directly perform a > > task itself might be equivalent to travelling on foot, while everyone is > > suggesting

[issue26631] Unable to install Python 3.5.1 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2016-03-23 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Chris Angelico
On Thu, Mar 24, 2016 at 12:41 AM, BartC wrote: > To extend this analogy better, executing byte-code to directly perform a > task itself might be equivalent to travelling on foot, while everyone is > suggesting taking the bus, tube or taxi. > > But when you are on foot, it might

[issue26633] multiprocessing behavior combining daemon with non-daemon children inconsistent with threading

2016-03-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: Oops, left the info log in my replacement code for the non-daemon case outside the if not daemon: block; it should be inside (since it's not joining the daemon threads). -- ___ Python tracker

[issue26633] multiprocessing behavior combining daemon with non-daemon children inconsistent with threading

2016-03-23 Thread Josh Rosenberg
New submission from Josh Rosenberg: Unclear if this is just unclear docs, or incorrect behavior. Per this Stack Overflow question ( https://stackoverflow.com/questions/36191447/why-doesnt-the-daemon-program-exit-without-join ), you get some rather odd behavior when you have both daemon and

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread BartC
On 23/03/2016 10:48, Chris Angelico wrote: On Wed, Mar 23, 2016 at 9:34 PM, BartC wrote: Someone could be interested in cars, mechanics and performance without wanting to know the most Pythonic way to get from Kings Cross to Heathrow. But if I complain that the trek across

Re: numpy arrays

2016-03-23 Thread Nobody
> What you want is called *transposing* the array: > > http://docs.scipy.org/doc/numpy/reference/generated/numpy.transpose.html > > That should be a sufficiently fast operation. Transposing itself is fast, as it just swaps the strides and dimensions without touching the data (i.e. it returns a

[issue9694] argparse required arguments displayed under "optional arguments"

2016-03-23 Thread paul j3
paul j3 added the comment: I can see changing the group title from 'optional arguments' to 'options' or 'optionals' parser._optionals.title 'optional arguments' But I don't think there's a need to change references in the code or its comments from 'optionals' to 'options'. I like

[issue26627] IDLE incorrectly labeling error as internal

2016-03-23 Thread Tadhg McDonald-Jensen
Tadhg McDonald-Jensen added the comment: other then bdb.py all of the excluded modules are imported into idlelib.run so that line could be replaced with: import bdb exclude = (__file__, rpc.__file__, threading.__file__, queue.__file__, RemoteDebugger.__file__, bdb.__file__)

[issue26632] __all__ decorator

2016-03-23 Thread Ethan Furman
Ethan Furman added the comment: def public(thing, value=None): if isinstance(thing, str): mdict = sys._getframe(1).f_globals name = thing mdict[name] = thing # no need for retyping! ;) else: mdict = sys.modules[thing.__module__].__dict__ name =

[issue26632] __all__ decorator

2016-03-23 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___

[issue26632] __all__ decorator

2016-03-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Oh, and it should be a built-in -- ___ Python tracker ___ ___

[issue26632] __all__ decorator

2016-03-23 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: This is probably terrible, but given how difficult it is to keep __all__'s up to date, maybe something like this can be useful. I literally whipped this up in about 5 minutes, so sit back and watch the bikeshedding! import sys def public(thing): if

Re: Key Binding Problem

2016-03-23 Thread Wildman via Python-list
On Wed, 23 Mar 2016 20:34:08 -0400, Dennis Lee Bieber wrote: > On Wed, 23 Mar 2016 10:58:09 -0500, Wildman via Python-list > declaimed the following: > >>On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote: >> >>> def load_image(self, _): >>> # load image

Re: Not downloading

2016-03-23 Thread eryk sun
On Wed, Mar 23, 2016 at 12:31 PM, louis anderson wrote: > After a workshop in my school today regarding python, i have downloaded it on > my laptop > however when i go to launch it, it either tells me to modify python, repair > python or uninstall > python. It will

[issue22401] argparse: 'resolve' conflict handler damages the actions of the parent parser

2016-03-23 Thread paul j3
paul j3 added the comment: Is this the kind of scenario that you have problems with? parser = argparse.ArgumentParser() sp = parser.add_subparsers(dest='cmd') p1 = sp.add_parser('cmd1') p1.add_argument('-f') p2 = sp.add_parser('cmd2') p2.add_argument('-b') p3 =

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Mark Lawrence
On 23/03/2016 23:55, Steven D'Aprano wrote: On Thu, 24 Mar 2016 03:24 am, Random832 wrote: On Wed, Mar 23, 2016, at 12:08, Mark Lawrence wrote: And doing it 'Pythonically' can lead to suggestions such as the following the other day: c, psource = psource[0], psource[1:] (where psource is

[issue26612] test_ssl: use context manager (with) to fix ResourceWarning

2016-03-23 Thread Martin Panter
Martin Panter added the comment: My point about Python 2 was that this might add an annoying difference between the two branches. Even if you don’t apply this to Py 2, the next person adding or updating a test might be inclined to do it. Looking closer at your patch I admit that addCleanup()

[issue26620] Fix ResourceWarning warnings in test_urllib2_localnet

2016-03-23 Thread Martin Panter
Martin Panter added the comment: This patch looks okay to me. I left one review suggestion. Focussing on test_sending_headers(), the ResourceWarning seems to be only shown since revision 46329eec5515 (Issue 26590). In simpler cases, the warning would be bypassed due to Issue 19829. But in

[issue9694] argparse required arguments displayed under "optional arguments"

2016-03-23 Thread Martin Panter
Martin Panter added the comment: Still applicable to Python 3 AFAIK -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Chris Angelico
On Thu, Mar 24, 2016 at 11:12 AM, Random832 wrote: > I guess the question is, what do you _actually_ need the tail string > for? If you're using it in a loop, to pop further characters from (the > scenario that would cause it to be copying the string over lots of > times),

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Random832
On Wed, Mar 23, 2016, at 19:55, Steven D'Aprano wrote: > while psource: > c, psource = psource[0], psource[1:] > lxsymbol = disptable[min(ord(c), 256)](c, psource) > > > But one positive: this conclusively proves that "Pythonic" is in the eye > of > the

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Steven D'Aprano
On Thu, 24 Mar 2016 03:24 am, Random832 wrote: > On Wed, Mar 23, 2016, at 12:08, Mark Lawrence wrote: >> > And doing it 'Pythonically' can lead to suggestions such as the >> > following the other day: >> > >> > c, psource = psource[0], psource[1:] >> > >> > (where psource is a very long

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Mark Lawrence
On 23/03/2016 16:24, Random832 wrote: On Wed, Mar 23, 2016, at 12:08, Mark Lawrence wrote: And doing it 'Pythonically' can lead to suggestions such as the following the other day: c, psource = psource[0], psource[1:] (where psource is a very long string), which even I could tell, from

[issue22401] argparse: 'resolve' conflict handler damages the actions of the parent parser

2016-03-23 Thread Jared Deckard
Jared Deckard added the comment: This behavior is preventing me from using more than one parent parser. My use case is a convenience subcommand that performs two existing subcommands, therefore logically its subparser is required to support the arguments of both subparsers. The only conflict

[issue26631] Unable to install Python 3.5.1 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2016-03-23 Thread J Osell
New submission from J Osell: Unable to install Python 3.5.1 on Windows 10 - Error 0x80070643: Failed to install MSI package. -- components: Installation files: Python 3.5.1 (64-bit)_20160323181333.log messages: 262313 nosy: oselljr priority: normal severity: normal status: open title:

Re: [Not actually OT] Trouble in node.js land

2016-03-23 Thread Ben Finney
Random832 writes: > B) His software costs no money, so no harm has been done even if > someone looking for the phone app finds it and "buys" it by mistake. That statement assumes that only the loss of money is harm. Do you recognise damage to public reputation as harm?

[issue26630] Windows EXE extension installers not finding 32bit Python 3.5 installation

2016-03-23 Thread Jason Erickson
New submission from Jason Erickson: On both 64 and 32 bit Windows OSes, the 32bit version of Python 3.5 is unable to install extensions created with the command: setup.py bdist_wininst To reproduce, install the 32bit version of Python 3.5 and run the .exe installation for an extension, such

Re: monkey patching __code__

2016-03-23 Thread Sven R. Kunze
On 23.03.2016 09:24, dieter wrote: But you have observed that you cannot do everything with a code substitution: a function call does not only depend on the code but also on other properties of the function object: e.g. the parameter processing. Yep, that's because Python is very flexible and

[issue26602] argparse doc introduction is inappropriately targeted

2016-03-23 Thread paul j3
paul j3 added the comment: By text and location the sidebar does not apply specifically to this example. It applies to the whole page, 'This page contains the API reference information.' Documentation for argparse is indeed a problem - both because of its complexity and how it is used.

[issue26628] Segfault in cffi with ctypes.union argument

2016-03-23 Thread Thomas
Thomas added the comment: Note [http://www.atmark-techno.com/~yashi/libffi.html] > Although ‘libffi’ has no special support for unions or bit-fields, it is > perfectly happy passing structures back and forth. You must first describe > the structure to ‘libffi’ by creating a new ffi_type

[issue26588] _tracemalloc: add support for multiple address spaces (domains)

2016-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06552275fa30 by Victor Stinner in branch 'default': _tracemalloc: use compact key for traces https://hg.python.org/cpython/rev/06552275fa30 -- ___ Python tracker

[issue26628] Segfault in cffi with ctypes.union argument

2016-03-23 Thread SilentGhost
Changes by SilentGhost : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___

[issue26629] Need an ability to build standard DLLs with distutils

2016-03-23 Thread Buraddin Ibn-Karlo
New submission from Buraddin Ibn-Karlo: I want to make a a dynamic library to run its function with ctypes. Also I want to build the library from sources with distutils (the C++ sources are distributed with my Python code). But alas! Our distutils fails, if the library doesn't have

[issue26628] Segfault in cffi with ctypes.union argument

2016-03-23 Thread Thomas
New submission from Thomas: Passing ctypes.Union types as arguments crashes python. Attached is a minimal example to reproduce. Due to undefined behavior, you may have to increase the union _fields_ to reproduce. I tested with 3.5.1 and 2.7.11. It seems that cffi treats the union as a normal

[issue26626] test_dbm_gnu

2016-03-23 Thread SilentGhost
Changes by SilentGhost : -- nosy: +georg.brandl versions: -Python 3.4 ___ Python tracker ___

Re: Python to do CDC on XML files

2016-03-23 Thread Bob Gailer
On Mar 23, 2016 4:20 PM, "Bruce Kirk" wrote: > > Does anyone know of any existing projects on how to generate a change data capture on 2 very large xml files. > > The xml structures are the same, it is the data within the files that may differ. > It should not be too

[issue26391] Specialized sub-classes of Generic never call __init__

2016-03-23 Thread Guido van Rossum
Guido van Rossum added the comment: You've hit a type where PEP 484 and mypy disagree. The PEP shows a few examples of this: https://www.python.org/dev/peps/pep-0484/#instantiating-generic-classes-and-type-erasure However when I feed the examples from the PEP to mypy I get an error on each of

[issue20012] Re: Allow Path.relative_to() to accept non-ancestor paths

2016-03-23 Thread Antony Lee
Antony Lee added the comment: Kindly bumping the issue. I'd suggest overriding `PurePath.relative_to` in the `Path` class, to something like `PurePath.relative_to(self, other, *, allow_ancestor=False): ...`, which would resolve each ancestor of `self` successively to check whether it is also

Re: Not downloading

2016-03-23 Thread John Gordon
In louis anderson writes: > After a workshop in my school today regarding python i have downloaded > it on my laptop Since you were in fact able to download it, your message title of "Not downloading" is somewhat

[issue26621] test_decimal fails with libmpdecimal 2.4.2

2016-03-23 Thread Stefan Krah
Changes by Stefan Krah : -- status: open -> closed ___ Python tracker ___ ___

Python to do CDC on XML files

2016-03-23 Thread Bruce Kirk
Does anyone know of any existing projects on how to generate a change data capture on 2 very large xml files. The xml structures are the same, it is the data within the files that may differ. I need to take a XML file from yesterday and compare it to the XML file produced today and not which

[issue26621] test_decimal fails with libmpdecimal 2.4.2

2016-03-23 Thread Stefan Krah
Stefan Krah added the comment: The roundup timeline is a lie. :) I pushed the 3.5 patch shortly after the 3.6 one and well before msg262302. -- ___ Python tracker

[issue26621] test_decimal fails with libmpdecimal 2.4.2

2016-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ec98f352053 by Stefan Krah in branch '3.5': Issue #26621: Remove unnecessary test. https://hg.python.org/cpython/rev/3ec98f352053 -- ___ Python tracker

[issue18787] Misleading error from getspnam function of spwd module

2016-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset c1677c8f92e1 by Victor Stinner in branch 'default': Fix test_spwd on OpenIndiana https://hg.python.org/cpython/rev/c1677c8f92e1 -- ___ Python tracker

[issue26621] test_decimal fails with libmpdecimal 2.4.2

2016-03-23 Thread Matthias Klose
Matthias Klose added the comment: please apply this to the 3.5 branch as well -- status: closed -> open ___ Python tracker ___

[issue26621] test_decimal fails with libmpdecimal 2.4.2

2016-03-23 Thread Stefan Krah
Stefan Krah added the comment: I did: Somehow roundup failed to catch it. -- ___ Python tracker ___ ___

[issue26621] test_decimal fails with libmpdecimal 2.4.2

2016-03-23 Thread Stefan Krah
Changes by Stefan Krah : -- assignee: -> skrah resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue26621] test_decimal fails with libmpdecimal 2.4.2

2016-03-23 Thread Stefan Krah
Stefan Krah added the comment: Thanks, the test was not needed: It was more of a reminder to sync the version numbers. -- ___ Python tracker ___

[issue26621] test_decimal fails with libmpdecimal 2.4.2

2016-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 24c8bb9421f4 by Stefan Krah in branch 'default': Issue #26621: Update libmpdec version and remove unnecessary test case. https://hg.python.org/cpython/rev/24c8bb9421f4 -- nosy: +python-dev ___ Python

[issue25729] update pure python datetime.timedelta creation

2016-03-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky stage: patch review -> commit review ___ Python tracker ___

[issue26591] datetime datetime.time to datetime.time comparison does nothing

2016-03-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___

[issue9694] argparse required arguments displayed under "optional arguments"

2016-03-23 Thread paul j3
paul j3 added the comment: This ArgumentDefaultHelpFormatter issue should probably be raised in its own issue. It applies to 'required' optionals, but any patch would be independent of the issues discussed here. This class defines a method that adds the '%(default)' string to the help in

Re: Not downloading

2016-03-23 Thread Igor Korot
Hi, On Wed, Mar 23, 2016 at 1:31 PM, louis anderson wrote: > Dear Python, After a workshop in my school today > regarding python, i have downloaded it on my laptop however when i go to > launch it, it either tells me to modify python, repair

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2016-03-23 Thread Zbynek Winkler
Changes by Zbynek Winkler : -- nosy: +Zbynek.Winkler ___ Python tracker ___ ___

Not downloading

2016-03-23 Thread louis anderson
Dear Python, After a workshop in my school today regarding python, i have downloaded it on my laptop however when i go to launch it, it either tells me to modify python, repair python or uninstall python. It will not let me go onto python at all. I do not know what is

[issue26616] A bug in datetime.astimezone() method

2016-03-23 Thread Berker Peksag
Berker Peksag added the comment: 3.3 and 3.4 are in security-fix-only mode: https://docs.python.org/devguide/devcycle.html#summary So this can be fixed in 3.5 and default branches. -- nosy: +berker.peksag ___ Python tracker

[issue26616] A bug in datetime.astimezone() method

2016-03-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This bug affects versions starting at 3.3. Can someone advise to what versions the patch should be applied? -- versions: +Python 3.3, Python 3.4 ___ Python tracker

Re:

2016-03-23 Thread Ethan Furman
On 03/22/2016 08:17 PM, Nick Eubank wrote: Relatedly, if this is a desired behavior, any advice one how best to work with dictionaries when one wants "True" and 1 to be different? I'm working on a function that accepts arguments that may be "True" or 1 (meaning very different things) and am

[issue26616] A bug in datetime.astimezone() method

2016-03-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky keywords: +patch nosy: +haypo, tim.peters stage: needs patch -> patch review Added file: http://bugs.python.org/file42262/issue26616.diff ___ Python tracker

Re: [Not actually OT] Trouble in node.js land

2016-03-23 Thread Ethan Furman
On 03/23/2016 11:08 AM, Terry Reedy wrote: On 3/23/2016 5:03 AM, Steven D'Aprano wrote: One developer just broke most of the Node.js ecosystem by removing an eleven line package from npm (the node.js package manager, somewhat similar to Python's pip only even more critical): Does PyPI

[issue26627] IDLE incorrectly labeling error as internal

2016-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +kbk, roger.serwy, terry.reedy versions: +Python 3.6 ___ Python tracker ___

Re: [Not actually OT] Trouble in node.js land

2016-03-23 Thread Terry Reedy
On 3/23/2016 5:03 AM, Steven D'Aprano wrote: One developer just broke most of the Node.js ecosystem by removing an eleven line package from npm (the node.js package manager, somewhat similar to Python's pip only even more critical): Does PyPI actually delete packages, as opposed to making

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Martin. -- ___ Python tracker ___ ___ Python-bugs-list mailing

Re: 0 equals False, was Re: (unknown)

2016-03-23 Thread Terry Reedy
On 3/23/2016 4:51 AM, Peter Otten wrote: The pythonic solution is "don't do this". The == operator cannot discriminate between 0, 0.0, and False, and 0j and Fraction(0, 1) and Decimal(0) or 1, 1.0, and True and 1+0j, Fraction(1, 1) and Decimal(1) Sets and dicts are based both based on

[issue26627] IDLE incorrectly labeling error as internal

2016-03-23 Thread Tadhg McDonald-Jensen
New submission from Tadhg McDonald-Jensen: (I apologize if I'm doing something wrong) When using a file named run.py in idle, any errors raised from the module makes IDLE show a traceback like this: Traceback (most recent call last): ** IDLE Internal Exception: File

Re: Settig some environment variables from within python.

2016-03-23 Thread Terry Reedy
On 3/23/2016 5:33 AM, Hongyi Zhao wrote: Hi all, I want to submit a qsub job to my hpc cluster from within python. In this case, I must set some environment variables specific for this qsub job and then invoking a bash script from within python. What python code should be used for this job?

[issue18787] Misleading error from getspnam function of spwd module

2016-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 430af393d8f1 by Victor Stinner in branch 'default': Try to fix test_spwd on OpenIndiana https://hg.python.org/cpython/rev/430af393d8f1 -- ___ Python tracker

[issue26525] Documentation of ord(c) easy to misread

2016-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Agreed. Good catch. -- status: open -> closed ___ Python tracker ___ ___

[issue26525] Documentation of ord(c) easy to misread

2016-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset f3bd94c57cd8 by Terry Jan Reedy in branch '3.5': Issue #26525: Change chr example to match change in ord example. https://hg.python.org/cpython/rev/f3bd94c57cd8 -- ___ Python tracker

[issue23848] faulthandler: setup an exception handler on Windows

2016-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3247f8df5514 by Victor Stinner in branch 'default': Issue #23848: Fix usage of _Py_DumpDecimal() https://hg.python.org/cpython/rev/3247f8df5514 -- ___ Python tracker

[issue26625] SELECT-initiated transactions can cause "database is locked" in sqlite

2016-03-23 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> resolved superseder: -> sqlite3 SELECT does not BEGIN a transaction, but should according to spec ___ Python tracker

[issue26626] test_dbm_gnu

2016-03-23 Thread ink
New submission from ink: Hello, I was running post-build tests after building 3.5.1 when test_dbm_gnu hanged on an error. The same happens with 3.4.4 so it's not version relevant. Furthermore, this happens on an NFS mounted storage but not on our Lustre volume. Most of the time it just hangs

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread Jeremy Kloth
Jeremy Kloth added the comment: >From the UCRT sources: // Deadlock Avoidance: When a new thread is created in the process, we // create a new PTD for the thread. The PTD initialization function is // called under the loader lock. This initialization function will also //

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upendra and Eric: I look through and successfully ran both your files as they are, without change. You both show a basic ability to write a simple tkinter app. Upendra's is more complete as a demo because a) it has two tabs that I can switch between, even

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread STINNER Victor
STINNER Victor added the comment: Random links from Google: * http://stackoverflow.com/questions/35572792/setlocale-stuck-on-windows "Sometimes it works but sometimes it never returns from it. I can not identify the reason. I use Visual Studio 2015 and Windows 7." *

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-03-23 Thread Rian Hunter
Changes by Rian Hunter : -- nosy: -rhunter ___ Python tracker ___ ___ Python-bugs-list

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2016-03-23 Thread Rian Hunter
Rian Hunter added the comment: This bug can also lead to subtle and unintuitive "database is locked" bugs, even when a large timeout is set on the connection. Many, many people are affected by this bug (search the web for "python sqlite database is locked"). I've attached code that

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2016-03-23 Thread Rian Hunter
Changes by Rian Hunter : -- versions: +Python 3.2, Python 3.5, Python 3.6 ___ Python tracker ___

[issue26625] SELECT-initiated transactions can cause "database is locked" in sqlite

2016-03-23 Thread Rian Hunter
Rian Hunter added the comment: duplicate of #9924 -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue26625] SELECT-initiated transactions can cause "database is locked" in sqlite

2016-03-23 Thread Rian Hunter
New submission from Rian Hunter: When a transaction starts with a SELECT statement this can invoke a "database is locked" error if the SELECT statement is not exhausted or explicitly closed. This can lead to subtle "database is locked" bugs, even when a large timeout is set on the connection.

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-03-23 Thread mike bayer
mike bayer added the comment: @rian - your issue for this is http://bugs.python.org/issue9924. The implicit BEGIN in all cases will probably never be the default but we do need an option for this to be the case, in order to support SERIALIZABLE isolation. --

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Random832
On Wed, Mar 23, 2016, at 12:08, Mark Lawrence wrote: > > And doing it 'Pythonically' can lead to suggestions such as the > > following the other day: > > > > c, psource = psource[0], psource[1:] > > > > (where psource is a very long string), which even I could tell, from > > knowing what goes

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-03-23 Thread Rian Hunter
Rian Hunter added the comment: @mike Yes you're right, This bug report is different, my mistake. DB-API may require implicit transactions but pysqlite should open a transaction before *any* non-DDL statement, including "SELECT", not just DML statements. Currently one must issue a dummy DML

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Mark Lawrence
On 23/03/2016 06:09, Ben Finney wrote: Steven D'Aprano writes: On Mon, 21 Mar 2016 06:47 pm, Ben Finney wrote: Bart can show good faith by *learning* idiomatic Python, with the humility of a beginner. And also by refraining from rhetoric about how bad Python's

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread STINNER Victor
STINNER Victor added the comment: The bug occurs in test_strptime and test__locale according to Jeremy. > - Tests run using '-j4' With this option, each test file is run in a new fresh process, so it's more likely a race condition which depends on the system load (on exact timing) than the

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Mark Lawrence
On 23/03/2016 10:34, BartC wrote: On 23/03/2016 06:09, Ben Finney wrote: The problem is that Bart simultaneously is a beginner at Python, and expresses astonishment that everyone shrugs when Bart's dreadfully-written code performs so badly. My interests differ from most people here writing

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread Jeremy Kloth
Jeremy Kloth added the comment: Oh, yes. It even occasionally happens on 2.7. The oldest occurrence I can dig up is May/June of 2013 (for 2.7). -- ___ Python tracker

Re: Key Binding Problem

2016-03-23 Thread Wildman via Python-list
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote: > def load_image(self, _): > # load image file > > You must pass the bound method, as you did, and not the function itself > (which has two parameters). I meant to ask a followup question in my previous post but it slipped my

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread Steve Dower
Steve Dower added the comment: Have you actually seen this occurring back to 3.3? I'd expect something like this to either be pre-3.5 or post-3.5, but not both. -- ___ Python tracker

Re: Key Binding Problem

2016-03-23 Thread Wildman via Python-list
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote: > On 3/23/2016 12:28 AM, Wildman via Python-list wrote: >> On Wed, 23 Mar 2016 03:02:51 +, MRAB wrote: >> >>> On 2016-03-23 02:46, Wildman via Python-list wrote: My question is how do I coax bind into executing the button

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-23 Thread Ned Batchelder
On Wednesday, March 23, 2016 at 6:35:12 AM UTC-4, BartC wrote: > On 23/03/2016 06:09, Ben Finney wrote: > > > The problem is that Bart simultaneously is a beginner at Python, and > > expresses astonishment that everyone shrugs when Bart's > > dreadfully-written code performs so badly. > > My

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread Jeremy Kloth
New submission from Jeremy Kloth: My Windows BuildBot (http://buildbot.python.org/all/buildslaves/kloth-win64) is hanging in calls to the CRT function setlocale() as determined by attaching to the hung test process in Visual Studio. This has been happening occasionally (every tenth+ build)

Re: [Not actually OT] Trouble in node.js land

2016-03-23 Thread Random832
On Wed, Mar 23, 2016, at 10:52, Steven D'Aprano wrote: > - He didn't bother to check to see whether the name was in use when he > picked it. Someone not making a commercial product shouldn't have to worry about a name collision with something they've never heard of. > - The lawyers were polite

  1   2   >