Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time?

2015-07-09 Thread Michael Torrie
On 07/09/2015 02:42 PM, Marko Rauhamaa wrote: > Skip Montanaro : > >> It makes perfect sense to me that TAB and Ctrl-TAB would generate the >> same keycode, as TAB is itself a control character (Ctrl-I). As the >> Ctrl modifier bit is effectively already set, I don't think you can >> really set it

Re: (side-)effects and ...

2015-07-09 Thread Michael Torrie
On 07/09/2015 08:05 PM, Chris Angelico wrote: >> I thought so at first add well. It looks like the Mailman system handles the >> X-No-Archive and/or Archive headers. I couldn't find his name in this >> month's archive. > > Even if it respects that, there's no way that Mailman can know to > respect

Re: (side-)effects and ...

2015-07-09 Thread Chris Angelico
On Fri, Jul 10, 2015 at 9:27 AM, Skip Montanaro wrote: >> Also, he should not post here, because all articles posted here are >> automatically put on a mailing list and that list's web-accessible >> archive. > > I thought so at first add well. It looks like the Mailman system handles the > X-No-Ar

Re: Evaluation order

2015-07-09 Thread Chris Angelico
On Fri, Jul 10, 2015 at 10:10 AM, candide wrote: > The official doc explains that : > > Python evaluates expressions from left to right. > > cf. https://docs.python.org/3.3/reference/expressions.html#evaluation-order > > > But consider the following snippet : > > t=[2020, 42, 2015] t*(1+

Re: Evaluation order

2015-07-09 Thread Terry Reedy
On 7/9/2015 8:10 PM, candide wrote: The official doc explains that : Python evaluates expressions from left to right. cf. https://docs.python.org/3.3/reference/expressions.html#evaluation-order But consider the following snippet : t=[2020, 42, 2015] t*(1+int(bool(t.sort( [42, 2015, 202

Re: module dependencies issues

2015-07-09 Thread Mark Lawrence
On 10/07/2015 01:04, Marko Rauhamaa wrote: Chris Angelico : Your descriptions conflict. A safe binary replacement usually cannot even add new features, in case this breaks something. New functions in C libraries do not cause runtime breakage. It's good to know that there's never been a cra

Evaluation order

2015-07-09 Thread candide
The official doc explains that : Python evaluates expressions from left to right. cf. https://docs.python.org/3.3/reference/expressions.html#evaluation-order But consider the following snippet : >>> t=[2020, 42, 2015] >>> t*(1+int(bool(t.sort( [42, 2015, 2020] >>> Is there not some cont

Python dashboard tutorials/frameworks for interactive, D3.js graphs in IPython Notebooks

2015-07-09 Thread Matt Sundquist
Hi all, I'm part of Plotly, and we've just finished a few releases I thought I'd pass along. These tools make it easy to craft interactive graphs and dashboards with D3.js using Python. We're especially drawn towards matplotlib, pandas, and IPython. We're still early in building, so any and a

Re: module dependencies issues

2015-07-09 Thread Marko Rauhamaa
Chris Angelico : > Your descriptions conflict. A safe binary replacement usually cannot > even add new features, in case this breaks something. Linus Torvalds is adamant about maintaining ABI compatibility across Linux versions. That hasn't prevented him from accepting numerous new system calls.

Re: (side-)effects and ...

2015-07-09 Thread Skip Montanaro
> Also, he should not post here, because all articles posted here are > automatically put on a mailing list and that list's web-accessible > archive. I thought so at first add well. It looks like the Mailman system handles the X-No-Archive and/or Archive headers. I couldn't find his name in this m

Re: (side-)effects and ...

2015-07-09 Thread random832
On Thu, Jul 9, 2015, at 15:36, Tony the Tiger wrote: > On Sun, 05 Jul 2015 20:29:11 +, Stefan Ram wrote: > > > X-Copyright: (C) Copyright 2015 Stefan Ram. All rights reserved. > > Distribution through any means other than regular usenet channels is > > forbidden. It is forbidden to publish thi

Re: module dependencies issues

2015-07-09 Thread Chris Angelico
On Fri, Jul 10, 2015 at 7:33 AM, Marko Rauhamaa wrote: >> And just how compatible does it have to be to get a tick? > > It must be a safe binary replacement of the earlier version. Bug fixes > and new features are ok, but none of the old functionality can be > obsoleted. Your descriptions conflic

Re: module dependencies issues

2015-07-09 Thread Marko Rauhamaa
Chris Angelico : > On Fri, Jul 10, 2015 at 7:11 AM, Marko Rauhamaa wrote: >> Whoever creates B-1.1 ought to make it backward-compatible, but he >> should also say so. The majority of developers are careless about >> backward-compatibility; having the component system make wishful >> assumptions wi

Re: module dependencies issues

2015-07-09 Thread Chris Angelico
On Fri, Jul 10, 2015 at 7:11 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> In general, I would expect that B 1.1 is backward-compatible with B >> 1.0, unless otherwise stated. Why must it be declared in any way other >> than the version number? > > To make it explicit. The generic component sy

Re: module dependencies issues

2015-07-09 Thread Marko Rauhamaa
Chris Angelico : > In general, I would expect that B 1.1 is backward-compatible with B > 1.0, unless otherwise stated. Why must it be declared in any way other > than the version number? To make it explicit. The generic component system shouldn't impose (m)any assumptions on version numbering. Ve

Re: module dependencies issues

2015-07-09 Thread Chris Angelico
On Fri, Jul 10, 2015 at 6:36 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> How do you expect the end result to work? Will it be that your code >> imports one version of a module, but other code imports another? You >> would have to rename one of them or something. > > At work, we have created

Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time?

2015-07-09 Thread Marko Rauhamaa
Skip Montanaro : > It makes perfect sense to me that TAB and Ctrl-TAB would generate the > same keycode, as TAB is itself a control character (Ctrl-I). As the > Ctrl modifier bit is effectively already set, I don't think you can > really set it a second time and be able to detect it. If you input

Re: module dependencies issues

2015-07-09 Thread Marko Rauhamaa
Chris Angelico : > How do you expect the end result to work? Will it be that your code > imports one version of a module, but other code imports another? You > would have to rename one of them or something. At work, we have created an analogous component system that has solved this issue the way

PyCon PL 2015 - Call for Proposal is waiting for you

2015-07-09 Thread piotr
Python Hackers, PyCon PL 2015 is pleased to announce that its Call for Proposals will be closed soon! We encourage you all to come and share experience with a varied audience of ethusiastic Pythonistas that the conference attracts each year. Talks and workshops from all Python-related areas ar

PyCon PL 2015 - Został niecały tydzień dla Call for Proposals

2015-07-09 Thread piotr
Cześć Polska Społeczności Pythona! Jakiś czas temu uruchomiono PyCon PL 2015 - Call for Proposals, czyli nabór na propozycje prelekcji, warsztatów, paneli dyskusyjnych oraz innych aktywności konferencyjnych. Zaakceptowani prowadzący, którzy spełnią warunki Call for Proposals, otrzymają darmowy

Re: Readline -- cannot bind to both Ctrl-tab and tab at the same time?

2015-07-09 Thread Skip Montanaro
I thought this thread had died down. I guess not quite... It makes perfect sense to me that TAB and Ctrl-TAB would generate the same keycode, as TAB is itself a control character (Ctrl-I). As the Ctrl modifier bit is effectively already set, I don't think you can really set it a second time and be

Re: module dependencies issues

2015-07-09 Thread Chris Angelico
On Fri, Jul 10, 2015 at 5:55 AM, Cyril Scetbon wrote: > It's just a sample. I'd like to get a general answer. So think about the > worst case. (Please don't top-post on this list.) The worst case is virtually impossible to handle. Somewhere along the way, you need to say "import B" and Python h

Re: module dependencies issues

2015-07-09 Thread Cyril Scetbon
It's just a sample. I'd like to get a general answer. So think about the worst case. > On Jul 9, 2015, at 21:50, Chris Angelico wrote: > > On Fri, Jul 10, 2015 at 5:08 AM, Cyril Scetbon wrote: >> Forcing my-module to use B=1.1 fixes the issue. However it's just a sample >> and my code is using

Re: module dependencies issues

2015-07-09 Thread Chris Angelico
On Fri, Jul 10, 2015 at 5:08 AM, Cyril Scetbon wrote: > Forcing my-module to use B=1.1 fixes the issue. However it's just a sample > and my code is using a lot of modules that use other shared modules too. Is > there a way to let dependencies use their own version of the modules they > need whi

module dependencies issues

2015-07-09 Thread Cyril Scetbon
Hi, I use pip to install modules and setuptools to install dependencies, and generate a console_script using the entry_point parameter of setup. Here is the issue : my current sources depend on modules, let's say A=1.0, B=1.0, C=2.0. And C depends on B=1.1 I have no problem with using pip to in

Re: Good python news sites

2015-07-09 Thread Irmen de Jong
On 9-7-2015 11:28, Benj wrote: > Hello, > could you please recommend some python news sites: sites that post news, code > samples, good practices, new libraries... things like that, to follow daily. > > Thanks, > Benj > There's a lot of stuff appearing on the Python subReddit; https://www.reddi

Re: Good python news sites

2015-07-09 Thread Joel Goldstick
On Thu, Jul 9, 2015 at 5:28 AM, Benj wrote: > Hello, > could you please recommend some python news sites: sites that post news, code > samples, good practices, new libraries... things like that, to follow daily. > > Thanks, > Benj > -- > https://mail.python.org/mailman/listinfo/python-list I lik

Re: requests.Session() how do you set 'replace' on the encoding?

2015-07-09 Thread Veek M
dieter wrote: > > It looks strange that you can set "s.encoding" after you have > called "s.get" - but, as you apparently get an error related to > the "gbk" encoding, it seems to work. Ooo! Sorry, typo - that was outside the function but before the call. Unfortunately whilst improving my functi

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

2015-07-09 Thread Veek M
Mark Lawrence wrote: > > If it's provided why have you snipped it this time around? May I most > humbly suggest that the next time you ask, please ensure that you tell > us what you've googled for prior to putting your question. > umm.. I can't determine what you mean by 'snipped it'. 1. I post

Good python news sites

2015-07-09 Thread Benj
Hello, could you please recommend some python news sites: sites that post news, code samples, good practices, new libraries... things like that, to follow daily. Thanks, Benj -- https://mail.python.org/mailman/listinfo/python-list