[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

2015-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset ac1995b01028 by Victor Stinner in branch '3.5': Issue #24993: Handle import error in namereplace error handler https://hg.python.org/cpython/rev/ac1995b01028 -- nosy: +python-dev ___ Python tracker

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > We only give the reference to the caller when the newly created OrderedDict > is fully initialized (consistent). See msg246573. PyDict_New() can trigger garbage collecting and traversing , and GC have a reference to underinitialized OrderedDict and can

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-03 Thread Tim Tisdall
Tim Tisdall added the comment: I'm not really sure how to add a `versionadded` tag to specify that only the BSD-specific support was added in 3.2 (as general support was there prior to that). If I just add the plain tag below that bullet point it would imply that the whole protocol was added

[issue24990] Foreign language support in turtle module

2015-09-03 Thread R. David Murray
R. David Murray added the comment: There is a discussion elsewhere about whether it is time to start formalizing translation efforts for the python docs (Sphinx supports it). Unfortunately I don't remember where I saw it (probably another issue in the tracker. I can see your argument about

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread kbtyo
On Thursday, September 3, 2015 at 11:27:58 AM UTC-4, Chris Angelico wrote: > On Fri, Sep 4, 2015 at 1:05 AM, kbtyo wrote: > > However, I am uncertain as to how this executes in a context like this: > > > > import glob > > import csv > > from collections import

[issue24994] Python 3.4.2 64-bit Installer error (Please insert the disk:)

2015-09-03 Thread Cameron Walker
Cameron Walker added the comment: Never mind. I just had to click repair... -- ___ Python tracker ___ ___

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 1:05 AM, kbtyo wrote: > However, I am uncertain as to how this executes in a context like this: > > import glob > import csv > from collections import OrderedDict > > interesting_files = glob.glob("*.csv") > > header_saved = False > with

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Joel Goldstick
On Thu, Sep 3, 2015 at 10:32 AM, Heli Nix wrote: > Dear all, > > I have my python scripts that use several python libraries such as h5py, > pyside, numpy > > In Windows I have an installer that will install python locally on user > machine and so my program gets access to

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread kbtyo
On Thursday, September 3, 2015 at 11:27:58 AM UTC-4, Chris Angelico wrote: > On Fri, Sep 4, 2015 at 1:05 AM, kbtyo wrote: > > However, I am uncertain as to how this executes in a context like this: > > > > import glob > > import csv > > from collections import OrderedDict > > > > interesting_files

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef1f5aebe1a6 by Victor Stinner in branch '3.5': Issue #24992: Fix error handling and a race condition (related to garbage https://hg.python.org/cpython/rev/ef1f5aebe1a6 -- nosy: +python-dev ___ Python

[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your review and your cool error handler. -- ___ Python tracker ___

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: > It looks to me as an ordinal bug and that is encountered only in special > circumstances with small probability. I think it can wait for 3.5.1. Ok, I agree. What about the second patch, does it look ok? -- ___

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-03 Thread Tim Tisdall
Tim Tisdall added the comment: I added a note to BTPROTO_SCO that it doesn't work in FreeBSD (I forgot to mention that). -- Added file: http://bugs.python.org/file40341/bluetooth_socket_docs_3.patch ___ Python tracker

[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: > The purpose was to make the dependence of unicodedata optional. In which case the unicodedata module is missing? It's always part of CPython no? > (...) but now I think that probably your approach is more preferable because > it makes the code simpler and

Re: Python handles globals badly.

2015-09-03 Thread Chris Angelico
On Thu, Sep 3, 2015 at 11:22 PM, wrote: > Sample "Good": > module A >_x = 0 > >def y(): > _x=1 > > > why - this I have tried and try to explain in my and your posts > in the hope a PEP will arise which frees me and hopefully > a lot other developers

[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

2015-09-03 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: > See msg246573. PyDict_New() can trigger garbage collecting and traversing and > GC have a reference to underinitialized OrderedDict and can call > odict_traverse() for it. Oooh ok, I understand. I updated my patch to implement your idea. -- Added

Porting Python Application to a new linux machine

2015-09-03 Thread Heli Nix
Dear all, I have my python scripts that use several python libraries such as h5py, pyside, numpy In Windows I have an installer that will install python locally on user machine and so my program gets access to this local python and runs successfully. How can I do this in Linux ? ( I

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me as an ordinal bug and that is encountered only in special circumstances with small probability. I think it can wait for 3.5.1. -- ___ Python tracker

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 1:31 AM, Luca Menegotto wrote: > Il 03/09/2015 16:32, Heli Nix ha scritto: > >> How can I do this in Linux ? > > > As far as I know, in general a Linux distro comes with Python already > installed. > All you have to do is check if the installed

Re: Reading \n unescaped from a file

2015-09-03 Thread Friedrich Rentsch
On 09/03/2015 11:24 AM, Peter Otten wrote: Friedrich Rentsch wrote: On 09/02/2015 04:03 AM, Rob Hills wrote: Hi, I am developing code (Python 3.4) that transforms text data from one format to another. As part of the process, I had a set of hard-coded str.replace(...) functions that I

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-03 Thread Tim Tisdall
Tim Tisdall added the comment: I'm not sure the proper way to update the patch... I can't seem to edit the existing one or replace it. I'm uploading an updated one, but should I simply "unlink" (aka delete) the old one? -- Added file:

[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: > It was optional in Python 2 (at least in Unicode-disabled build). Yeah, even if I don't think that anyone is really using python without unicode in the wild. I guess that too many libraries don't work without unicode. Well, anyway this issue is for Python

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-03 Thread Tim Tisdall
Tim Tisdall added the comment: Martin, the odd thing with the SCO protocol is it's expecting an bluetooth address as a byte string (ex b'12:23:34:45:56:67' [note the `b`]) where the other 3 are expecting a regular string (ex '12:23:34:45:56:67'). I think it may have been a case of someone

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-03 Thread R. David Murray
R. David Murray added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23630] support multiple hosts in create_server/start_server

2015-09-03 Thread Yann Sionneau
Yann Sionneau added the comment: Here is a new patch without any dependency on netifaces. Thanks Victor for the great deal of help for all the mock() stuff! -- Added file: http://bugs.python.org/file40342/multibind6.patch ___ Python tracker

Re: Python handles globals badly.

2015-09-03 Thread tdev
Before responding (later) I have to add something additional first: About the OO comments (Note again for this 2nd main topic of this thread: the term "globals" - it is meant only as the vars of a module outside functions and not sharing vars throughout the app

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If don't initialize fields, then they will be not initialized in odict_dealloc, odict_tp_clear and odict_traverse. But _odict_FIRST(od) and od->od_weakreflist are used in these functions. I would allocate a dict for od_inst_dict before calling

Re: Reading \n unescaped from a file

2015-09-03 Thread Peter Otten
Friedrich Rentsch wrote: > On 09/03/2015 11:24 AM, Peter Otten wrote: >> Friedrich Rentsch wrote: > I appreciate your identifying two mistakes. I am curious to know what > they are. Sorry for not being explicit. >>> substitutes = [self.table [item] for item in hits if item >>> in

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: @Serhiy: Python 3.5 is impacted. Do you consider this bug serious enough to request a pull request in Larry's branch for Python 3.5.0? -- nosy: +larry versions: +Python 3.5 ___ Python tracker

Re: Strange location for a comma

2015-09-03 Thread Tim Chase
On 2015-09-03 14:48, Peter Otten wrote: > The only reason I see to add an extra comma are smaller and easier > to read diffs when you make a change: While that's the primary reason I do it, it's also helpful if you have a bunch of named keyword arguments and want sort/rearrange them (usually for

continue vs. pass in this IO reading and writing

2015-09-03 Thread kbtyo
Good Morning: I am experimenting with many exception handling and utilizing continue vs pass. After pouring over a lot of material on SO and other forums I am still unclear as to the difference when setting variables and applying functions within multiple "for" loops. Specifically, I

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-03 Thread Tim Tisdall
Tim Tisdall added the comment: changed "This protocol does not work under FreeBSD." to the more accurate "This protocol is not supported under FreeBSD." -- Added file: http://bugs.python.org/file40343/bluetooth_socket_docs_4.patch ___ Python tracker

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Luca Menegotto
Il 03/09/2015 16:32, Heli Nix ha scritto: How can I do this in Linux ? As far as I know, in general a Linux distro comes with Python already installed. All you have to do is check if the installed version matches your needs. Tipically, you'll find Python 2.7; however, I know there are

[issue24994] Python 3.4.2 64-bit Installer error (Please insert the disk:)

2015-09-03 Thread Cameron Walker
New submission from Cameron Walker: I had attempted to uninstall python 3.4.2 from the start menu in Windows 7, but it was still visible in my Programs and features. I tried to uninstall it from there but it said it was missing some files. So I re-downloaded the installer, but when it tried

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: > If don't initialize fields, then they will be not initialized in odict_dealloc Old code initialized all fields to zero (or NULL), like "_odict_FIRST(od) = NULL;". The type allocator fills the newly allocated with zeros. So setting fields again to zero is

[issue23375] test_py3kwarn fails on Windows

2015-09-03 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___

[issue24993] The C function PyCodec_NameReplaceErrors doesn't handle PyCapsule_Import() failure

2015-09-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > In which case the unicodedata module is missing? It's always part of CPython > no? It was optional in Python 2 (at least in Unicode-disabled build). Perhaps it can be exclude from custom build in Python 3 too. > Yeah, it's not a good practice to *hide*

Re: Strange location for a comma

2015-09-03 Thread Nick Sarbicki
Tim, Doesn't work for the first column in SQL, but we tend to put the comma and a space before the column name. It makes it easier to move things around and (debateably) more readable. It is also very obvious when you have missed a comma this way. - Nick On Thu, 3 Sep 2015 16:14 Tim Chase

Re: sending push notifications

2015-09-03 Thread Larry Martell
On Thu, Sep 3, 2015 at 8:54 AM, Laura Creighton wrote: > In a message of Thu, 03 Sep 2015 08:30:35 -0400, Larry Martell writes: >>I'm looking for people's experiences with the different ways to send >>push notifications to mobile devices. I have an app that will be >>running on

[issue24974] ICC on Windows 8.1: _decimal fails to compile with default fp model

2015-09-03 Thread Zachary Ware
Zachary Ware added the comment: Committed! Thank you Steve for the suggestion and Stefan for the approval. -- ___ Python tracker ___

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 3:29 AM, Luca Menegotto wrote: > Il 03/09/2015 18:49, Chris Angelico ha scritto: > >> If you mean that typing "python" runs 2.7, then that's PEP 394 at >> work. For compatibility reasons, 'python' doesn't ever run Python 3. > > > Please forgive

[issue24305] The new import system makes it inconvenient to correctly issue a deprecation warning for a module

2015-09-03 Thread Zachary Ware
Zachary Ware added the comment: Just to note, there's an easier way to run a custom build on multiple bots: go to http://buildbot.python.org/all/builders/ and scroll (way) down to the section for forcing a build on custom builders (you can search for 'Repo path:' (with the colon)), check the

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Brett Kugler
On Thu, Sep 3, 2015 at 10:39 AM, Chris Angelico wrote: > On Fri, Sep 4, 2015 at 1:31 AM, Luca Menegotto > wrote: > > Il 03/09/2015 16:32, Heli Nix ha scritto: > > > >> How can I do this in Linux ? > > > > > > As far as I know, in general a Linux

[issue24974] ICC on Windows 8.1: _decimal fails to compile with default fp model

2015-09-03 Thread Zachary Ware
Zachary Ware added the comment: There's not a 32-bit ICC buildbot, though I could force one. But since you say commit it, I'll commit it ;) -- ___ Python tracker

[issue24974] ICC on Windows 8.1: _decimal fails to compile with default fp model

2015-09-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 863407e80370 by Zachary Ware in branch '3.5': Issue #24974: Force fp-model precice in mpdecimal.c on Windows https://hg.python.org/cpython/rev/863407e80370 New changeset 88c28d29afe4 by Zachary Ware in branch 'default': Closes #24974: Merge with

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Luca Menegotto
Il 03/09/2015 18:49, Chris Angelico ha scritto: If you mean that typing "python" runs 2.7, then that's PEP 394 at work. For compatibility reasons, 'python' doesn't ever run Python 3. Please forgive me, Il make it clearer. I'm pretty shure that Ubuntu 15.04 comes with Python 2.7. I don't

Re: Python handles globals badly.

2015-09-03 Thread MRAB
On 2015-09-03 17:43, Michael Torrie wrote: On 09/03/2015 10:15 AM, Ian Kelly wrote: The only person whom I see talking about this in this thread is you disclaiming that you're not talking about it. (And I guess Skybuck is talking about it, but I don't see those.) I have a vague memory of

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: Yury wrote: > Is this something that we should ship in 3.5.0rc3? I don't think so. I agree with Serhiy who wrote: > It looks to me as an ordinal bug and that is encountered only in special > circumstances with small probability. I think it can wait for 3.5.1.

Re: Python handles globals badly.

2015-09-03 Thread tdev
Now I want reflecting the latest answers: I have the position of a high-level view (cause of lack of Python knowledge internals and compiler stuff, but also cause I think a language should be as far as possible user-friendly without knowing too much internals, and yes clearly cause of

[issue24988] IDLE: debugger context menus not working on Mac

2015-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just found #24801 which addressed the editor issue. -- ___ Python tracker ___

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread kbtyo
On Thursday, September 3, 2015 at 11:52:16 AM UTC-4, Chris Angelico wrote: > On Fri, Sep 4, 2015 at 1:38 AM, kbtyo wrote: > > Thank you for the elaboration. So, what I hear you saying is that (citing, > > "In this case, there's no further body, so it's going to be the same as > > "pass" (which >

Re: Python handles globals badly.

2015-09-03 Thread Ian Kelly
On Thu, Sep 3, 2015 at 7:22 AM, wrote: > I think this has lead to some confusing. I don't think so. > First topic: > "sharing globals between modules" > Where globals is meant as vars used throughout the app. > > This is the topic why Skybuck starts the thread. > And yes I

How do I real a SSL certs serial number using Python?

2015-09-03 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I'm writing a simple tool that needs to read the serial number of a remote SSL certificate. I've poked around Google for a bit but can't find anything that fits the bill. Is this possible in Python? If so, would someone point me in the general

Re: Reading \n unescaped from a file

2015-09-03 Thread Rob Hills
Hi Chris, On 03/09/15 06:10, Chris Angelico wrote: > On Wed, Sep 2, 2015 at 12:03 PM, Rob Hills > wrote: >> My mapping file contents look like this: >> >> \r = \\n >> “ = > Oh, lovely. Code page 1252 when you're expecting UTF-8. Sadly, you're > likely to have to

Re: Reading \n unescaped from a file

2015-09-03 Thread Rob Hills
Hi, On 03/09/15 06:31, MRAB wrote: > On 2015-09-02 03:03, Rob Hills wrote: >> I am developing code (Python 3.4) that transforms text data from one >> format to another. >> >> As part of the process, I had a set of hard-coded str.replace(...) >> functions that I used to clean up the incoming text

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Nick Sarbicki
Is 3.x the default on ubuntu now? My 14.10 is still 2.7. Although it does have python3 installed. On Thu, 3 Sep 2015 16:40 Chris Angelico wrote: > On Fri, Sep 4, 2015 at 1:31 AM, Luca Menegotto > wrote: > > Il 03/09/2015 16:32, Heli Nix ha

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 1:57 AM, kbtyo wrote: > I have used CSV and collections. For some reason when I apply this algorithm, > all of my files are not added (the output is ridiculously small considering > how much goes in - think KB output vs MB input): > > from

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread kbtyo
On Thursday, September 3, 2015 at 12:12:04 PM UTC-4, Chris Angelico wrote: > On Fri, Sep 4, 2015 at 1:57 AM, kbtyo wrote: > > I have used CSV and collections. For some reason when I apply this > > algorithm, all of my files are not added (the output is ridiculously

XML Binding

2015-09-03 Thread Palpandi
Hi All, Is there any module available in python standard library for XML binding? If not, any other suggestions. Which is good for parsing large file? 1. XML binding 2. Creating our own classes Thanks, Palpandi -- https://mail.python.org/mailman/listinfo/python-list

[issue24979] Allow timezone offsets greater than 24 hours

2015-09-03 Thread TJ
TJ added the comment: Thanks for the pointer to #5288. Happy to consolidate there. In my reading of #5094 (from which I pulled your RFC 2822 reference), the justification I found was "For the allowable range, follow the datetime docs as someone might be relying on that specification already".

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Nick Sarbicki
I run ubuntu everywhere at home and python3 has come preinstalled since at least ubuntu 12.10. This article kind of covers it: https://wiki.ubuntu.com/Python Looks like they're suggesting that it's not been fully transitioned although definitely moving that way. On Thu, 3 Sep 2015 18:34 Chris

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 1:53 AM, Nick Sarbicki wrote: > Is 3.x the default on ubuntu now? My 14.10 is still 2.7. Although it does > have python3 installed. I'm not sure. I think I read somewhere that the newest Ubuntus would ship with python3 preinstalled, but python2

Re: Reading \n unescaped from a file

2015-09-03 Thread Rob Hills
Hi Friedrich, On 03/09/15 16:40, Friedrich Rentsch wrote: > > On 09/02/2015 04:03 AM, Rob Hills wrote: >> Hi, >> >> I am developing code (Python 3.4) that transforms text data from one >> format to another. >> >> As part of the process, I had a set of hard-coded str.replace(...) >> functions that

[issue24974] ICC on Windows 8.1: _decimal fails to compile with default fp model

2015-09-03 Thread Stefan Krah
Stefan Krah added the comment: Hmm, I don't see a 32-bit ICC buildbot. This problem can only occur on 32-bit with -DPPRO defined. Please go ahead and commit the patch. The inline asm miscompilation problem I mentioned earlier was solved in 12.0 (I think), so let's just assume it's gone

Re: Python handles globals badly.

2015-09-03 Thread Michael Torrie
On 09/03/2015 10:15 AM, Ian Kelly wrote: > The only person whom I see talking about this in this thread is you > disclaiming that you're not talking about it. (And I guess Skybuck is > talking about it, but I don't see those.) I have a vague memory of Skybuck talking about globals over a year

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread Terry Reedy
On 9/3/2015 11:05 AM, kbtyo wrote: I am experimenting with many exception handling and utilizing continue vs pass. 'pass' is a do-nothing place holder. 'continue' and 'break' are jump statements [snip] However, I am uncertain as to how this executes in a context like this: import glob

Nikola v7.7.0 is out!

2015-09-03 Thread Roberto Alsina
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v7.7.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 Mako and Jinja2 templates, and input in many

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread Luca Menegotto
Il 03/09/2015 17:05, kbtyo ha scritto: I am experimenting with many exception handling and utilizing > continue vs pass. After pouring over a lot of material on SO > and other forums I am still unclear as to the difference when > setting variables and applying functions within multiple "for" >

[issue24974] ICC on Windows 8.1: _decimal fails to compile with default fp model

2015-09-03 Thread Stefan Krah
Stefan Krah added the comment: We can always blame any fallout on ICC. ;) -- ___ Python tracker ___ ___

[issue24913] deque.index() overruns deque boundary

2015-09-03 Thread Brett Cannon
Brett Cannon added the comment: PR created, Larry. -- assignee: brett.cannon -> larry stage: -> resolved ___ Python tracker ___

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 1:38 AM, kbtyo wrote: > Thank you for the elaboration. So, what I hear you saying is that (citing, > "In this case, there's no further body, so it's going to be the same as > "pass" (which > means "do nothing")") that the else block is not

Re: Python handles globals badly.

2015-09-03 Thread Michael Torrie
On 09/03/2015 07:22 AM, t...@freenet.de wrote: > First topic: > "sharing globals between modules" > Where globals is meant as vars used throughout the app. > > This is the topic why Skybuck starts the thread. The answer to this is simple and elegant. Use a third module to store globals. Each

[issue24974] ICC on Windows 8.1: _decimal fails to compile with default fp model

2015-09-03 Thread Zachary Ware
Zachary Ware added the comment: I tested both 32 and 64 bit, with MSVC 14 (VS 2015) and ICC 15.0 (backed by VS 2015). I can go ahead and commit this to a sandbox for buildbot testing if it would help. -- ___ Python tracker

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Chris Angelico
On Fri, Sep 4, 2015 at 2:23 AM, Luca Menegotto wrote: > Il 03/09/2015 17:53, Nick Sarbicki ha scritto: >> >> Is 3.x the default on ubuntu now? My 14.10 is still 2.7. Although it >> does have python3 installed. > > > I've checked my Ubuntu 15.04, and the default is

[issue24994] Python 3.4.2 64-bit Installer error (Please insert the disk:)

2015-09-03 Thread Zachary Ware
Zachary Ware added the comment: Glad you solved it for yourself :) -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: > I left a nitpick. In any case the patch LGTM. Ok, fixed. I pushed my fix. Thanks for the review Serhiy. -- resolution: -> fixed status: open -> closed ___ Python tracker

Re: Strange location for a comma

2015-09-03 Thread Martin Komoň
In this case those are not tuples but rather arguments in a function call. The extra comma does not change the evaluation, my guess is that it is there for easier adding/removing arguments without having to care about trailing commas. Martin On 03/09/15 14:28, ast wrote: > > "ast"

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Luca Menegotto
Il 03/09/2015 17:53, Nick Sarbicki ha scritto: Is 3.x the default on ubuntu now? My 14.10 is still 2.7. Although it does have python3 installed. I've checked my Ubuntu 15.04, and the default is 2.7.9. There is also Python3 (3.4.3), but sorry, I can't remember if I've manually installed it or

[issue24988] IDLE: debugger context menus not working on Mac

2015-09-03 Thread Mark Roseman
Mark Roseman added the comment: Terry, the new code I've proposed includes a "tkextras" module that is a good place for these sort of little convenience functions. -- ___ Python tracker

[issue24979] Allow timezone offsets greater than 24 hours

2015-09-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I always thought that restriction came from ISO 8601, but at the moment I don't have it to check. -- ___ Python tracker

[issue24988] IDLE: debugger context menus not working on Mac

2015-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The standard on Windows is to bring up a context menu on right-button-release, not on r-b-press. What about linux and mac? Thunderbird and Notepad++ move the insertion cursor on rb-press, That is the paste position even if the mouse is moved before

[issue24995] better exception message when an unsupported object is passed to `async for` (pep 492)

2015-09-03 Thread Yury Selivanov
New submission from Yury Selivanov: Should we raise something like "'int' object is not an asynchronous iterable", instead of "'async for' requires an object with __aiter__ method, got int"? >>> foo().send(None) Traceback (most recent call last): File "", line 1, in File "", line 2, in

[issue24996] IDLE: debugger local/global vars should not be editable

2015-09-03 Thread Mark Roseman
New submission from Mark Roseman: In the debugger, the values for the variables shown in the locals/globals panes are editable (i.e. using Entry widget) but I don't see any mechanism to have those changes affect anything. If I'm not missing something, why Entry and not Label? --

Re: Reading \n unescaped from a file

2015-09-03 Thread Friedrich Rentsch
On 09/03/2015 06:12 PM, Rob Hills wrote: Hi Friedrich, On 03/09/15 16:40, Friedrich Rentsch wrote: On 09/02/2015 04:03 AM, Rob Hills wrote: Hi, I am developing code (Python 3.4) that transforms text data from one format to another. As part of the process, I had a set of hard-coded

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2015-09-03 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___

[issue15347] IDLE - does not close if the debugger was active

2015-09-03 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___

[issue24996] IDLE: debugger local/global vars should not be editable

2015-09-03 Thread Mark Roseman
Mark Roseman added the comment: Thanks Terry, sorry I missed your previous mention of this. From what I recall the treeview doesn't allow editable items, but what I've done in similar circumstances before (editing text items on a canvas in drawing type programs) was 'place' an entry widget on

[issue24912] The type of cached objects is mutable

2015-09-03 Thread Mark Shannon
Mark Shannon added the comment: Larry, of the two choices, I prefer rolling back the change entirely. I would like to see the bug fixes for typeobject.c applied, but I see no reason why making the __class__ of module objects assignable should be included. --

[issue24305] The new import system makes it inconvenient to correctly issue a deprecation warning for a module

2015-09-03 Thread Larry Hastings
Larry Hastings added the comment: That *is* easier, thanks. Though the UI for that is baffling. Protip: search for the section where all the "custom" builders are listed all in one section, three-quarters of the way down the page. -- ___ Python

[issue24990] Foreign language support in turtle module

2015-09-03 Thread Al Sweigart
Al Sweigart added the comment: Good idea. I'll bring it up on the python-ideas list. -- ___ Python tracker ___

[issue24995] better exception message when an unsupported object is passed to `async for` (pep 492)

2015-09-03 Thread STINNER Victor
STINNER Victor added the comment: IMHO the current message is clear enough. -- ___ Python tracker ___ ___

[issue24995] better exception message when an unsupported object is passed to `async for` (pep 492)

2015-09-03 Thread Yury Selivanov
Yury Selivanov added the comment: I saw this reddit thread: https://www.reddit.com/r/Python/comments/3ewnwq/async_function_as_generator_for_async_for/ where people are struggling with understanding how 'async for' works. Which led me to check what error messages we raise when we pass a wrong

Re: Python handles globals badly.

2015-09-03 Thread Ian Kelly
On Thu, Sep 3, 2015 at 1:47 PM, Ian Kelly wrote: > On Thu, Sep 3, 2015 at 1:05 PM, wrote: > >> But then I ask you from high-level point of view >> (if my high level view is correct at all): >> Would you remove this keyword if it would be technically

[issue21192] Idle: Print filename when running a file from editor

2015-09-03 Thread Larry Hastings
Larry Hastings added the comment: On the other hand, I do not hold with marking a minor cosmetic change like this as "release blocker". I'm willing to accept the change, given PEP 434, but I'm not going to delay any releases for it. -- priority: release blocker -> normal

[issue24987] subprocess.Popen with shell=True doesn't create socket

2015-09-03 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> works for me ___ Python tracker ___ ___

[issue24995] better exception message when an unsupported object is passed to `async for` (pep 492)

2015-09-03 Thread Guido van Rossum
Guido van Rossum added the comment: Did you get multiple complaints about this? The existing error doesn't seem so bad. -- ___ Python tracker ___

[issue24996] IDLE: debugger local/global vars should not be editable

2015-09-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I already brought this up as part of one of the StackViewer/Debugger/merge issues. Replacing the list with a tree would automatically change this unless the tree was changed to have a entry. Why? My speculation is an intention never carried out. Labels

Re: Python handles globals badly.

2015-09-03 Thread Ian Kelly
On Thu, Sep 3, 2015 at 1:05 PM, wrote: > If this would be under the developer responsibility than this > is simply achieved by giving well-written var names. So, adopt a rule whereby you prefix all your global variable names with "global" or "g_"? How is this superior

Re: XML Binding

2015-09-03 Thread Burak Arslan
Hello, On 09/03/15 19:54, Palpandi wrote: > Hi All, > > Is there any module available in python standard library for XML binding? If > not, any other suggestions. lxml is the right xml library to use. You can use lxml's objectify or Spyne. Here are some examples:

  1   2   3   >