python financial data cleaning

2015-06-15 Thread Sebastian M Cheung via Python-list
How to do financial data cleaning ? Say I assume a list of 1000 finance series data in myList = Open, High, Low and Close. For missing Close Price data, What is best practice to clean data in Python -- https://mail.python.org/mailman/listinfo/python-list

Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
Dear Group, I am trying to learn how to create .exe file for Python. I tried to work around http://www.py2exe.org/index.cgi/Tutorial of Py2exe. The sample program went nice. But if I try to make exe for larger programs with methods and classes I am getting error. If any one of the esteemed

[issue24449] Please add async write method to asyncio.StreamWriter

2015-06-15 Thread Paul Sokolovsky
Paul Sokolovsky added the comment: Thanks for the response. and an API with more choices is not necessarily better. I certainly agree, and that's why I try to implement MicroPython's uasyncio solely in terms of coroutines, without Futures and Transports. But I of course can't argue for

Re: python financial data cleaning

2015-06-15 Thread Sebastian M Cheung via Python-list
On Monday, June 15, 2015 at 11:13:07 AM UTC+1, Sebastian M Cheung wrote: How to do financial data cleaning ? Say I assume a list of 1000 finance series data in myList = Open, High, Low and Close. For missing Close Price data, What is best practice to clean data in Python Thanks Mark just

Re: Keypress Input

2015-06-15 Thread Oscar Benjamin
On 15 June 2015 at 06:23, John McKenzie dav...@bellaliant.net wrote: Thank to the others who joined in and posted replies. Michael, your assumption is correct. To quote my original post, and I want this working on a Raspberry Pi. Doing a superficial look at curses and getch it looks

Re: python financial data cleaning

2015-06-15 Thread Laura Creighton
I don't know anything about this program, and in particular how complete it is, but worth a look https://github.com/benjaminmgross/clean-fin-data Laura -- https://mail.python.org/mailman/listinfo/python-list

[issue24451] Add metrics to future objects (concurrent or asyncio?)

2015-06-15 Thread Guido van Rossum
Guido van Rossum added the comment: I'm not sure about concurrent.futures, but for asyncio I think this would cost too much overhead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24451

Re: python financial data cleaning

2015-06-15 Thread Mark Lawrence
On 15/06/2015 11:12, Sebastian M Cheung via Python-list wrote: How to do financial data cleaning ? Say I assume a list of 1000 finance series data in myList = Open, High, Low and Close. For missing Close Price data, What is best practice to clean data in Python http://pandas.pydata.org/ --

[issue24454] Improve the usability of the match object named group API

2015-06-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24454 ___ ___ Python-bugs-list mailing

Re: Creating .exe file in Python

2015-06-15 Thread Mark Lawrence
On 15/06/2015 12:42, subhabrata.bane...@gmail.com wrote: Dear Group, I am trying to learn how to create .exe file for Python. I tried to work around http://www.py2exe.org/index.cgi/Tutorial of Py2exe. The sample program went nice. But if I try to make exe for larger programs with methods and

[issue24454] Improve the usability of the match object named group API

2015-06-15 Thread Matthew Barnett
Matthew Barnett added the comment: I agree that it would be nice if len(mo) == len(mo.groups()), but Serhiy has explained why that's not the case in the regex module. The regex module does support mo[name], so: print('Located coordinate at (%(row)s, %(col)s)' % mo) print('Located

Re: Creating .exe file in Python

2015-06-15 Thread Laura Creighton
In a message of Mon, 15 Jun 2015 04:42:09 -0700, subhabrata.bane...@gmail.com w rites: Dear Group, I am trying to learn how to create .exe file for Python. I tried to work around http://www.py2exe.org/index.cgi/Tutorial of Py2exe. The sample program went nice. But if I try to make exe for

Re: python financial data cleaning

2015-06-15 Thread Sebastian M Cheung via Python-list
On Monday, June 15, 2015 at 12:35:18 PM UTC+1, Laura Creighton wrote: I don't know anything about this program, and in particular how complete it is, but worth a look https://github.com/benjaminmgross/clean-fin-data Laura Thanks Laura, I will check it out, but basically it is to clean

Pandas SQL Update

2015-06-15 Thread chrismeek4542
I have an app that basically compares a old foxpro database to a MySQL database. If the time-stamp does not match up then it updates the MySQL. My question is, is there a more officiant way of doing the MySQL update. I am using pandas itterrows() then doing an update query on each iteration.

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Steve Dower
Steve Dower added the comment: If it existed in 3.4 then we can only alias it now and not fix it. 3.5 and 3.6 can have the fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8232 ___

Re: Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
On Monday, June 15, 2015 at 5:12:24 PM UTC+5:30, subhabrat...@gmail.com wrote: Dear Group, I am trying to learn how to create .exe file for Python. I tried to work around http://www.py2exe.org/index.cgi/Tutorial of Py2exe. The sample program went nice. But if I try to make exe for

[issue24454] Improve the usability of the match object named group API

2015-06-15 Thread Eric V. Smith
Eric V. Smith added the comment: I'd definitely be for mo['col']. I can't say I've ever used len(mo.groups()). I do have lots of code like: return mo.group('col'), mo.group('row'), mo.group('foo') Using groupdict there is doable but not great. But: return mo['col'], mo['row'], mo['foo'] would

[issue9939] Add a pipe type (FIFO) to the io module

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

Re: Get classes from self.MyClass to improve subclassability

2015-06-15 Thread Thomas Güttler
Hi, crazy. I develop python since several years. I was not aware, that you can change the defaults of kwargs. I am amazed, but won't use it :-) Am Samstag, 13. Juni 2015 01:09:47 UTC+2 schrieb Terry Reedy: On 6/12/2015 7:12 AM, Thomas Güttler wrote: Here is a snippet from the argparse

Re: Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
On Monday, June 15, 2015 at 6:32:33 PM UTC+5:30, Laura Creighton wrote: In a message of Mon, 15 Jun 2015 04:42:09 -0700, w rites: Dear Group, I am trying to learn how to create .exe file for Python. I tried to work around http://www.py2exe.org/index.cgi/Tutorial of Py2exe. The sample

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

2015-06-15 Thread Andrew Stormont
Andrew Stormont added the comment: Bump. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23895 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24455] IDLE debugger causes crash if not quitted properly before next run

2015-06-15 Thread irdb
New submission from irdb: # Open a module using IDLE # Run the module (Press F5) # Activate the debugger ([DEBUG ON]) # Set a breakpoint in the module # Run the module again # Run the module for the third time # Hit the Quit button in Debug Control window (twice, as the first click appears to

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Steve Dower
Steve Dower added the comment: That's what I thought, but I wasn't 100% sure it wasn't moved/rewritten in the patch and was on my phone so I didn't check :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8232

Re: Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
On Monday, June 15, 2015 at 8:02:21 PM UTC+5:30, Thierry Chappuis wrote: Hi, The question is why to you want to create an exe from your python project? Setuptools is capable to create small .exe launchers in the Scripts dir of your python install. These launchers start a python script

Re: Creating .exe file in Python

2015-06-15 Thread Thierry Chappuis
Hi, The question is why to you want to create an exe from your python project? Setuptools is capable to create small .exe launchers in the Scripts dir of your python install. These launchers start a python script and use the python interpreter registered on your platform. That's pretty light

[issue24454] Improve the usability of the match object named group API

2015-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: but may be implementing access via attributes would be even better? mo.groupnamespace().col or mo.ns.col? The whole point is to eliminate the unnecessary extra level. Contrast using DOM with using ElementTree. The difference in usability and readability

Re: Keypress Input

2015-06-15 Thread Grant Edwards
On 2015-06-15, Oscar Benjamin oscar.j.benja...@gmail.com wrote: Note that going into raw mode has other implications such as not being able to exit your program with ctrl-c or suspend with ctrl-z etc. You can explicitly process those kinds of contrl keys with something like: while True:

[issue24451] Add metrics to future objects (concurrent or asyncio?)

2015-06-15 Thread Joshua Harlow
Joshua Harlow added the comment: I like the pluggable/hookable idea, that would be nice (I'm siding on the side of hookable, since I think that would be more 'elegant'). If these are just callbacks that can be hooked in for these specific 'events' that would allow me to gather the timing

Re: Creating .exe file in Python

2015-06-15 Thread Laura Creighton
In a message of Mon, 15 Jun 2015 06:42:48 -0700, subhabrata.bane...@gmail.com w I wrote a script as NLQ3. py the code is written as, import nltk import itertools def nlq3(n): inp=raw_input(Print Your Query:) tag=nltk.pos_tag(nltk.wordpunct_tokenize(inp)) print The Tagged Value

[issue24454] Improve the usability of the match object named group API

2015-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The disadvantage of supporting len() is its ambiguousness. Supporting indexing with group name also has disadvantages (benefits already was mentioned above). 1. Indexing with string keys is a part of mapping protocol, and it would be expected that other

[issue24087] Documentation doesn't explain the term coroutine (PEP 342)

2015-06-15 Thread Paul Moore
Paul Moore added the comment: Personally, I'm OK with the wording in the 3.5.0b2 docs, as far as basic terminology and glossary-style information goes. I think coroutines, async, and event loops are badly under-documented in the broader context, though - there is very little in the docs

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Steve Dower: Maybe thou hast already forgotten, but WinFireFox class was added by thee (only in 3.5 and 3.6) just 7 days ago :) . -- ___ Python tracker rep...@bugs.python.org

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-15 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24400 ___ ___ Python-bugs-list

Re: Set a flag on the function or a global?

2015-06-15 Thread Ethan Furman
On 06/15/2015 05:37 PM, Paul Rubin wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Thoughts and feedback? Please vote: a module global, or a flag on the object? Please give reasons, and remember that the function is intended for interactive use. Both are bad. More state

Re: Set a flag on the function or a global?

2015-06-15 Thread MRAB
On 2015-06-16 01:53, Ethan Furman wrote: On 06/15/2015 05:37 PM, Paul Rubin wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Thoughts and feedback? Please vote: a module global, or a flag on the object? Please give reasons, and remember that the function is intended for

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-15 Thread Martin Panter
Martin Panter added the comment: The trouble with Serhiy’s suggestion is that it would still try to iterate the argument: i = iter(lambda: print(ITERATION), infinity) i in dict() # No iteration False i in ItemsView(dict()) ITERATION ITERATION ITERATION False --

Re: Struggling with os.path.join and fileinput (was 'Path, strings, and lines'

2015-06-15 Thread MRAB
On 2015-06-16 03:00, Malik Rumi wrote: On Saturday, June 13, 2015 at 1:25:52 PM UTC-5, MRAB wrote: On 2015-06-13 05:48, Malik Rumi wrote: On Friday, June 12, 2015 at 3:31:36 PM UTC-5, Ian wrote: On Fri, Jun 12, 2015 at 1:39 PM, Malik Rumi wrote: I am trying to find a list of strings in a

Re: Trying to configure Apache and Python 2.7 on Red Hat I get 403 Forbidden

2015-06-15 Thread Néstor Boscán
Tried it and I keep having the same error. Isn't there a log file where I can check what is causing this? Regards, Néstor On Sat, Jun 13, 2015 at 8:47 AM, zhou weitao zhouwtl...@gmail.com wrote: selinux is causing this, I guess. Please try run *setenforce 1* to bypass it firstly. If it works

Re: Set a flag on the function or a global?

2015-06-15 Thread Paul Rubin
Ethan Furman et...@stoneleaf.us writes: edir_(obj) = dunders. `edir_` ? What a horrible name. I hate trailing underscores. Too easy to miss. They've worked ok for me at various times. edir_u (for unfiltered) is another idea. -- https://mail.python.org/mailman/listinfo/python-list

Struggling with os.path.join and fileinput (was 'Path, strings, and lines'

2015-06-15 Thread Malik Rumi
On Saturday, June 13, 2015 at 1:25:52 PM UTC-5, MRAB wrote: On 2015-06-13 05:48, Malik Rumi wrote: On Friday, June 12, 2015 at 3:31:36 PM UTC-5, Ian wrote: On Fri, Jun 12, 2015 at 1:39 PM, Malik Rumi wrote: I am trying to find a list of strings in a directory of files. Here is my

Re: Creating .exe file in Python

2015-06-15 Thread sohcahtoa82
On Monday, June 15, 2015 at 5:08:58 AM UTC-7, Mark Lawrence wrote: On 15/06/2015 12:42, subhabrata.bane...@gmail.com wrote: Dear Group, I am trying to learn how to create .exe file for Python. I tried to work around http://www.py2exe.org/index.cgi/Tutorial of Py2exe. The sample program

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2015-06-15 Thread Ed Maste
Ed Maste added the comment: Actually, in msg245395 I should claim the issue is with libedit / GNU readline compatibility and/or the workarounds in Python's readline module, not that it's specifically Issue24388. -- ___ Python tracker

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Boštjan Mejak
Boštjan Mejak added the comment: Steve, I know. But it's a hassle for a newcomer to fix Python first before he/she uses it. I'm not a newcomer, but even I don't know how to fix webbrowser.py, more specifically the webbrowser.get() method, to be able to use it. Maybe I should copy

[issue24451] Add metrics to future objects (concurrent or asyncio?)

2015-06-15 Thread Joshua Harlow
Joshua Harlow added the comment: A prototype (WIP) of how this could work, initial thoughts welcome :-) -- keywords: +patch Added file: http://bugs.python.org/file39711/prototype.patch ___ Python tracker rep...@bugs.python.org

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Boštjan Mejak
Boštjan Mejak added the comment: Now that this bug is completely fixed, can you backport this to the '3.4' branch, so that we'll be able to use webbrowser. get() in Python 3.4.4 when it becomes available? -- ___ Python tracker

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Larry Hastings
Larry Hastings added the comment: Rules like this are there for a reason. People rely on Python being consistent. We've added harmless new features to point releases in the past and broken people's code. So, we don't do it anymore. It's not because we don't care, it's because stability is

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Larry Hastings
Larry Hastings added the comment: Yes, which is why I permitted a feature freeze exception for it for 3.5. But it's simply far, far too late to add a feature like this to 3.4. -- ___ Python tracker rep...@bugs.python.org

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Larry Hastings
Larry Hastings added the comment: This is not a bugfix to existing code. This is new code to implement a missing feature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8232 ___

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Boštjan Mejak
Boštjan Mejak added the comment: I understand. I know that Python 3.4 is way past feature freeze. But if we document the new stuff in the documentation, saying Added to Python 3.4.4, people would know about and be able to use the new stuff. And we won't break people's code. In fact, people

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2015-06-15 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13501 ___ ___ Python-bugs-list mailing

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d54a78861cf by Steve Dower in branch '3.5': Issue #8232: Renamed WinFireFox to WinFirefox https://hg.python.org/cpython/rev/0d54a78861cf New changeset 8667c26e2bec by Steve Dower in branch 'default': Issue #8232: Renamed WinFireFox to WinFirefox

Re: Creating .exe file in Python

2015-06-15 Thread subhabrata . banerji
On Monday, June 15, 2015 at 5:12:24 PM UTC+5:30, subhabrat...@gmail.com wrote: Dear Group, I am trying to learn how to create .exe file for Python. I tried to work around http://www.py2exe.org/index.cgi/Tutorial of Py2exe. The sample program went nice. But if I try to make exe for

[issue24455] IDLE debugger causes crash if not quitted properly before next run

2015-06-15 Thread irdb
Changes by irdb electro@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24455 ___ ___ Python-bugs-list mailing list

Re: Creating .exe file in Python

2015-06-15 Thread Laura Creighton
I don't have a windows system, so my knowledge of such things is minimal. But looks like this person had the same problem you have, and got some suggestions on how to fix it. http://stackoverflow.com/questions/12127869/error-msvcp90-dll-no-such-file-or-directory-even-though-microsoft-visual-c

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Boštjan Mejak
Boštjan Mejak added the comment: No, Larry, this is not a new feature. The feature, as it stands, is broken in Python 3.4, so we need to fix it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8232

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Boštjan Mejak
Boštjan Mejak added the comment: Sure, let's have a broken feature in Python 3.4, who cares. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8232 ___

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Steve Dower
Steve Dower added the comment: I'll close this as fixed, but feel free to speak up if you spot anything else that needs fixing. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2015-06-15 Thread Ed Maste
Ed Maste added the comment: It looks like rust developers hit the issue in Issue24388 with lldb on Ubuntu 15.04 as well: https://github.com/rust-lang/rust/issues/26297 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13501

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Boštjan Mejak
Boštjan Mejak added the comment: No need to answer. Python used the webbrowser module that was located in the directory of my application and not the one from the interpreter's directory. That's great! -- ___ Python tracker rep...@bugs.python.org

[issue8232] webbrowser.open incomplete on Windows

2015-06-15 Thread Boštjan Mejak
Boštjan Mejak added the comment: Ah, interesting! But which webbrowser module would Python import if I have one webbrowser.py in my interpreter's directory and one webbrowser.py in the directory of my application? -- ___ Python tracker

[issue24449] Please add async write method to asyncio.StreamWriter

2015-06-15 Thread Guido van Rossum
Guido van Rossum added the comment: Good pontificating, Paul. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24449 ___ ___ Python-bugs-list

[issue24429] msvcrt error when embedded

2015-06-15 Thread Carl Kleffner
Carl Kleffner added the comment: Windows itself is the primary user of msvcrt.dll. A Windows 7 installation has over 1500 DLLs and over 350 executables in System32 that depend on msvcrt.dll. Windows developers such as Raymond Chen get a bit annoyed when projects link directly with

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-15 Thread Martin Panter
Martin Panter added the comment: One problem with 2015-06-10’s patch (x86-64 Linux): async def f(): ... pass ... c = f() w = c.__await__() w coroutine_wrapper object at 0x7f1013130b88 dir(w) TypeError: object does not provide __dir__ type(w) Segmentation fault (core dumped) [Exit

Re: Struggling with os.path.join and fileinput (was 'Path, strings, and lines'

2015-06-15 Thread Ian Kelly
On Mon, Jun 15, 2015 at 8:00 PM, Malik Rumi malik.a.r...@gmail.com wrote: I have struggled with this for several hours and not made much progress. I was not sure if your 'names' variable was supposed to be the same as 'filenames'. Also, it should be 'os.path.join', not os.join. Anyway, I

[issue24439] Feedback for awaitable coroutine documentation

2015-06-15 Thread Martin Panter
Martin Panter added the comment: It seems that Issue 24400 may implement __await__() for native coroutine instances, making points 1, 2 and 4 mainly redundant. This would also bypass a fifth problem: the need for the mandatory yet largely useless send(None) argument. I am posting

[issue24456] audioop.adpcm2lin Buffer Over-read

2015-06-15 Thread JohnLeitch
New submission from JohnLeitch: The audioop.adpcm2lin function suffers from a buffer over-read caused by unchecked access to stepsizeTable at line 1545 of Modules\audioop.c: } else if ( !PyArg_ParseTuple(state, ii, valpred, index) ) return 0; step = stepsizeTable[index];

[issue24429] msvcrt error when embedded

2015-06-15 Thread Steve Dower
Steve Dower added the comment: python-3.5b2 is linked against the newly introduced 'universal CRT', that is without any doubt a SYSTEM LIBRARY. However, heap memory managment functions and other functions are linked against VCRUNTIME140.dll instead of the ucrtbase.dll. Is this the

Re: python financial data cleaning

2015-06-15 Thread Sebastian M Cheung via Python-list
On Monday, June 15, 2015 at 11:19:48 AM UTC+1, Mark Lawrence wrote: On 15/06/2015 11:12, Sebastian M Cheung via Python-list wrote: How to do financial data cleaning ? Say I assume a list of 1000 finance series data in myList = Open, High, Low and Close. For missing Close Price data, What

[issue24457] audioop.lin2adpcm Buffer Over-read

2015-06-15 Thread JohnLeitch
New submission from JohnLeitch: The audioop.lin2adpcm function suffers from a buffer over-read caused by unchecked access to stepsizeTable at line 1436 of Modules\audioop.c: } else if ( !PyArg_ParseTuple(state, ii, valpred, index) ) return 0; step = stepsizeTable[index];

[issue24127] Fatal error in launcher: Job information querying failed

2015-06-15 Thread Dan Bjorge
Dan Bjorge added the comment: No, it just takes a long time between us making a fix in early internal builds and the fix propagating to public builds. I think 10135 is the first build number expected to have the fix. -- ___ Python tracker

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2015-06-15 Thread Martin Panter
Martin Panter added the comment: Maybe I am missing something, but is it possible to use a newer version of Editline (libedit) that fixes the compatibility bug, as mentioned in Issue 18458? -- ___ Python tracker rep...@bugs.python.org

[issue24087] Documentation doesn't explain the term coroutine (PEP 342)

2015-06-15 Thread Martin Panter
Martin Panter added the comment: Okay. The biggest thing that concerns me at the moment to do with the term is that there are too many related but different, specific meanings, that I suspect could be confusing, including: 1. Generators (and presumably also the new “async” native coroutines),

[issue22625] When cross-compiling, don’t try to execute binaries

2015-06-15 Thread koobs
koobs added the comment: Incorrect recursive use of make will be fixed in default, 3.5, 3.4 (?), 2.7 in issue 22359, reflect the versions correctly here so they're not forgotten. -- nosy: +koobs versions: +Python 2.7, Python 3.4, Python 3.6 ___

[issue7352] pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir

2015-06-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___

[issue24442] Readline Bindings Don't Report Any Error On Completer Function Exception

2015-06-15 Thread Perry Randall
Perry Randall added the comment: Decided to update the documentation instead -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24442 ___

Set a flag on the function or a global?

2015-06-15 Thread Steven D'Aprano
I have a function in a module which is intended to be used by importing that name alone, then used interactively: from module import edir edir(args) edir is an enhanced version of dir, and one of the enhancements is that you can filter out dunder methods. I have reason to believe that

Re: Set a flag on the function or a global?

2015-06-15 Thread Chris Angelico
On Tue, Jun 16, 2015 at 9:57 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I have two ideas for this, a module-level global, or a flag set on the function object itself. Remember that the usual way of using this will be from module import edir, there are two obvious ways to

Re: Set a flag on the function or a global?

2015-06-15 Thread Ethan Furman
On 06/15/2015 04:57 PM, Steven D'Aprano wrote: Thoughts and feedback? Please vote: a module global, or a flag on the object? Please give reasons, and remember that the function is intended for interactive use. Function attribute. Setting a global on the module (which I may not have, and

Re: Set a flag on the function or a global?

2015-06-15 Thread Ben Finney
Chris Angelico ros...@gmail.com writes: On Tue, Jun 16, 2015 at 9:57 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I can use a flag set on the function object itself: edir.dunders = False For most situations, the last one is extremely surprising - attributes on

Re: Set a flag on the function or a global?

2015-06-15 Thread Ethan Furman
On 06/15/2015 05:07 PM, Chris Angelico wrote: On Tue, Jun 16, 2015 at 9:57 AM, Steven D'Aprano wrote: I have two ideas for this, a module-level global, or a flag set on the function object itself. Remember that the usual way of using this will be from module import edir, there are two obvious

Re: Set a flag on the function or a global?

2015-06-15 Thread sohcahtoa82
On Monday, June 15, 2015 at 4:57:53 PM UTC-7, Steven D'Aprano wrote: I have a function in a module which is intended to be used by importing that name alone, then used interactively: from module import edir edir(args) edir is an enhanced version of dir, and one of the

Re: Set a flag on the function or a global?

2015-06-15 Thread Ron Adam
On 06/15/2015 08:07 PM, Chris Angelico wrote: On Tue, Jun 16, 2015 at 9:57 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I have two ideas for this, a module-level global, or a flag set on the function object itself. Remember that the usual way of using this will be from

Re: Set a flag on the function or a global?

2015-06-15 Thread Chris Angelico
On Tue, Jun 16, 2015 at 10:20 AM, Ben Finney ben+pyt...@benfinney.id.au wrote: Chris Angelico ros...@gmail.com writes: On Tue, Jun 16, 2015 at 9:57 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I can use a flag set on the function object itself: edir.dunders = False

Re: Set a flag on the function or a global?

2015-06-15 Thread MRAB
On 2015-06-16 01:24, sohcahto...@gmail.com wrote: On Monday, June 15, 2015 at 4:57:53 PM UTC-7, Steven D'Aprano wrote: I have a function in a module which is intended to be used by importing that name alone, then used interactively: from module import edir edir(args) edir is an enhanced

Re: Set a flag on the function or a global?

2015-06-15 Thread Paul Rubin
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Thoughts and feedback? Please vote: a module global, or a flag on the object? Please give reasons, and remember that the function is intended for interactive use. Both are bad. More state to remember, ugh. Instead have separate