Hello,
I am trying to accomplish the following:
Say I have a group of 4 lists as follows:
l1 = ['a1', 'a2', 'a3', 'a4']
l2 = ['b1', 'b2', 'b3', 'b4']
l3 = ['c1', 'c2', 'c3', 'c4']
l4 = ['d1', 'd2', 'd3', 'd4']
I would like to cycle through these lists "diagonally" in groups of
len(list) (in thi
Pretty nice example code...
https://ggulati.wordpress.com/2016/02/24/coding-jarvis-in-python-3-in-2016/
--
https://mail.python.org/mailman/listinfo/python-list
On 2/25/2016 7:31 AM, Oscar Benjamin wrote:
On 25 February 2016 at 01:01, Feagans, Mandy wrote:
Hi! I am a student interested in conducting computational analysis of
protein-ligand binding for drug development analysis. Recently, I read of an
individual using a python program for their studie
Steven D'Aprano writes:
> On Fri, 26 Feb 2016 10:38 am, Ben Finney wrote:
>
> > Gregory Ewing writes:
> >
> >> sohcahto...@gmail.com wrote:
> >> > Now, I've noticed people talking about importing os.path. Is there any
> >> > reason to use "import os.path" rather than "import os"? Both of them
On Fri, Feb 26, 2016 at 2:56 PM, Ian Kelly wrote:
> On Thu, Feb 25, 2016 at 5:40 PM, Steven D'Aprano wrote:
>> If you take "Special cases are not special enough" seriously, you will not
>> use `import os.path` since os is not a package:
>>
>> py> os.__package__
>> ''
>>
>> and os.path is not part
On Thu, Feb 25, 2016 at 5:40 PM, Steven D'Aprano wrote:
> If you take "Special cases are not special enough" seriously, you will not
> use `import os.path` since os is not a package:
>
> py> os.__package__
> ''
>
> and os.path is not part of os, it's just a publicly exposed attribute which
> merel
On Fri, 26 Feb 2016 10:38 am, Ben Finney wrote:
> Gregory Ewing writes:
>
>> sohcahto...@gmail.com wrote:
>> > Now, I've noticed people talking about importing os.path. Is there any
>> > reason to use "import os.path" rather than "import os"? Both of them
>> > will still put the "os" module in
Gregory Ewing writes:
> sohcahto...@gmail.com wrote:
> > Now, I've noticed people talking about importing os.path. Is there any
> > reason to use "import os.path" rather than "import os"? Both of them will
> > still put the "os" module into the global namespace.
>
> In the case of os.path it do
On Thu, Feb 18, 2016 at 1:45 AM, Ervin Hegedüs wrote:
> Hi Adam,
>
> On Thu, Feb 18, 2016 at 09:26:58AM +, Adam Funk wrote:
>> I'd like to test (inside a python 3 program) whether the VPN is
>> running or not. The only thing I can think of so far is to use
>> subprocess to run the 'ifconfig'
sohcahto...@gmail.com wrote:
Now, I've noticed people talking about importing os.path. Is there any
reason to use "import os.path" rather than "import os"? Both of them will
still put the "os" module into the global namespace.
In the case of os.path it doesn't matter, because the
os module im
Hello:
I have an aiohttp project that starts in the usual way:
app = web.Application()
app.router.add_route(‘POST”, ‘/‘, handler)
web.run_app(app)
My question is, how do I work with an aiopg.pool with aiohttp?
There only seems to be async interfaces into aiopg — but I don’t want to
create the po
Rohit Koul writes:
> Title: Senior Python Developer
> Location: Morrisville, NC, United States
Please do not use the Python discussion forum for recruitment.
Instead, use the Python Job Board which is explicitly for this purpose
https://www.python.org/jobs/>.
--
\ “One of the most impo
On Wednesday, February 24, 2016 at 5:07:57 PM UTC-8, Dan Stromberg wrote:
> Could people please compare and contrast the two ways of doing imports
> in the Subject line?
>
> I've long favored the latter, but I'm working in a code base that
> prefers the former.
>
> Is it fair to say that the form
On Thursday, February 25, 2016 at 1:56:21 PM UTC-5, Martin A. Brown wrote:
> Hello again Ray,
>
> >> >I'm new to python networking. I am waiting TCP server/client app by
> >> >using python built-in SocketServer. My problem is if client get
> >> >killed, then the tcp port will never get released,
Hello again Ray,
>> >I'm new to python networking. I am waiting TCP server/client app by
>> >using python built-in SocketServer. My problem is if client get
>> >killed, then the tcp port will never get released, in CLOSE_WAIT
>>
>> I did not thoroughly review your code (other than to see that
On Thursday, February 25, 2016 at 12:56:10 PM UTC-5, Ray wrote:
> hi,
>
> I'm new to python networking. I am waiting TCP server/client app by using
> python built-in SocketServer. My problem is if client get killed, then the
> tcp port will never get released, in CLOSE_WAIT
>
> maybe I didn't d
On Thursday, February 25, 2016 at 1:18:05 PM UTC-5, Martin A. Brown wrote:
> >I'm new to python networking. I am waiting TCP server/client app by
> >using python built-in SocketServer. My problem is if client get
> >killed, then the tcp port will never get released, in CLOSE_WAIT
>
> I did not t
>I'm new to python networking. I am waiting TCP server/client app by
>using python built-in SocketServer. My problem is if client get
>killed, then the tcp port will never get released, in CLOSE_WAIT
I did not thoroughly review your code (other than to see that you
are not using SO_REUSEADDR).
Title: Senior Python Developer
Location: Morrisville, NC, United States
Contract : 6+ months
Description:
Qualifications:
The Senior Python Developer will lead and serve as part of a team supporting
established projects and creating products from the ground up. The ideal
candidate is leader, a
Hi all -
As part of my work as a Computer Science Masters student at UC Berkeley I've
been working with Prof. George Necula to develop a new testing library, called
Bond, which introduces a new style of test assertions that we refer to as
spy-based testing. Essentially, rather than explicitly c
hi,
I'm new to python networking. I am waiting TCP server/client app by using
python built-in SocketServer. My problem is if client get killed, then the tcp
port will never get released, in CLOSE_WAIT
maybe I didn't do the handler right? or anyway I can catch the client get
killed?
I wrote fo
In article ,
best_...@yahoo.com says...
[snip]
> Anyway, I am happy with the outcome even though I have
> not found a way to detect when the program is force
> killed. It is unlikely that would ever occur as long
When your peogram starts, have it create
a small file. As part of your graceful
s
I am pleased to announce the release of the new beta release of
pytest-nodev (was pytest-wish) a test-driven code search plugin for pytest:
https://pytest-nodev.readthedocs.org/en/stable/quickstart.html
Changes:
- renamed the package to pytest-nodev from pytest-wish (sorry!)
- refuse to run poten
On 02/25/2016 08:20 AM, Dan Stromberg wrote:
My intuition is telling me that "module.data; module.data.mutate()"
would be easier to monkey patch in a way that all modules will see.
Is that fair to say?
It is fair to say that if you need to monkey-patch a module, you should
import the module.
On 02/24/2016 07:39 PM, Steven D'Aprano wrote:
(2) import module
(a) Mutation is no different from (1)(a) above. No change.
(b) Rebinding `module.data = []` affects the imported module, and therefore
everything that relies on it.
More accurate: and therefore everything that has not already d
On Thu, Feb 25, 2016 at 8:15 AM, Dan Stromberg wrote:
> On Wed, Feb 24, 2016 at 7:39 PM, Steven D'Aprano
> wrote:
>> On Thursday 25 February 2016 12:07, Dan Stromberg wrote:
>>
>>> Could people please compare and contrast the two ways of doing imports
>>> in the Subject line?
>>
>> from module im
On Fri, 26 Feb 2016 01:37 am, Sapna Mishra wrote:
> Dear Sir/Mam,
>
> I am using python for my astronomy purpose, for that I want to use PyRaf,
> but strange thing is occurring that pyraf is getting open as a root but
I am sorry, I don't understand what "getting open as a root" means.
> out s
On Wed, Feb 24, 2016 at 7:39 PM, Steven D'Aprano
wrote:
> On Thursday 25 February 2016 12:07, Dan Stromberg wrote:
>
>> Could people please compare and contrast the two ways of doing imports
>> in the Subject line?
>
> from module import data; print(data)
>
> import module; print(module.data)
>>
On 25 February 2016 at 01:01, Feagans, Mandy wrote:
> Hi! I am a student interested in conducting computational analysis of
> protein-ligand binding for drug development analysis. Recently, I read of an
> individual using a python program for their studies of protein-ligand
> binding. As I have
On Wednesday, February 24, 2016 at 4:10:13 PM UTC-5, Gregory Ewing wrote:
> pyfreek wrote:
> > The following snippet alone is taking 1 minute to execute. is there any
> > best way to find 'No such file' other than using child.before
> >
> > if not scrutinFile.startswith('/') :
> >
On Wednesday, February 24, 2016 at 3:59:01 PM UTC-5, Emile van Sebille wrote:
> On 2/24/2016 7:42 AM, pyfreek wrote:
> > The following snippet alone is taking 1 minute to execute. is there any
> > best way to find 'No such file' other than using child.before
> >
> > if not scrutin
On Tue, Feb 23, 2016, at 03:22, Paul Rubin wrote:
> Thanks. It would be nice if those were gatewayed to usenet like this
> group is. I can't bring myself to subscribe to mailing lists.
Have you tried gmane?
--
https://mail.python.org/mailman/listinfo/python-list
Dear Sir/Mam,
I am using python for my astronomy purpose, for that I want to use PyRaf, but
strange thing is occurring that pyraf is getting open as a root but out side my
root user directory when I am typing pyraf I am getting like;
No graphics/display possible for this session.
Tkinter impo
On 2016-02-23, Cameron Simpson wrote:
> On 18Feb2016 10:03, Adam Funk wrote:
>>On 2016-02-18, Ervin Hegedüs wrote:
>>> I think that the psutil modul could be better for you for this
>>> task:
>>> https://pypi.python.org/pypi/psutil/
>>>
>>> and see the "Network" section.
>>
>>if 'tun0' in psutil.
On 25/02/2016 01:01, Feagans, Mandy wrote:
Dear Python,
Hi! I am a student interested in conducting computational analysis of
protein-ligand binding for drug development analysis. Recently, I read of an
individual using a python program for their studies of protein-ligand binding.
As I have b
Dear Python,
Hi! I am a student interested in conducting computational analysis of
protein-ligand binding for drug development analysis. Recently, I read of an
individual using a python program for their studies of protein-ligand binding.
As I have been reading about Python programs, however,
On Thu, Feb 25, 2016 at 3:54 AM, ast wrote:
> So we can conclude that inspect.isclass(x) is equivalent
> to isinstance(x, type)
>
> lets have a look at the source code of isclass:
>
> def isclass(object):
>"""Return true if the object is a class.
>
>Class objects provide these attributes:
On 2016-02-25, Steven D'Aprano wrote:
> The links already provided go through the evidence. For example, they
> explain that /dev/random and /dev/urandom both use the exact same CSPRNG. If
> you don't believe that, you can actually read the source to Linux, FreeBSD,
> OpenBSD and NetBSD. (But n
"Ian Kelly" a écrit dans le message de
news:mailman.85.1456303651.20994.python-l...@python.org...
On Wed, Feb 24, 2016 at 1:08 AM, ast wrote:
All metaclasses are subclasses of type, so all classes are instances of type.
Ah ! I didn't know that if an object Obj is an instance of Myclass
> Yes.
> I recommend you to use motor [1].
>
>
> * [1] https://github.com/mongodb/motor
Thanks. I have checked motor, and here are some problems with it:
* I cannot install it with "pip3 install motor", because it is trying to
downgrade (!!!) pymongo to version 2.8, but it fails to do so. There
m
On Thursday 25 February 2016 17:54, Marko Rauhamaa wrote:
> Steven D'Aprano :
>
>> On Wednesday 24 February 2016 18:20, Marko Rauhamaa wrote:
>>> Steven D'Aprano :
And that is where you repeat something which is rank superstition.
>>>
>>> Can you find info to back that up.
>>
>> The links a
ayncmongo requirements are "pymongo" and "tornado".
I have a fresh installation of Python 3.5, pymongo 3.2 and tornado 4.3,
but I cannot import asyncmongo.
Tracelog below.
P:\WinPython-64bit-3.5.1.2\python-3.5.1.amd64>python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900
>
>
> Does it mean that asyncmongo does not work with Python 3?
>
>
Yes.
I recommend you to use motor [1].
* [1] https://github.com/mongodb/motor
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
2016.02.25. 9:08 keltezéssel, Nagy László Zsolt írta:
> ayncmongo requirements are "pymongo" and "tornado".
>
> I have a fresh installation of Python 3.5, pymongo 3.2 and tornado 4.3,
> but I cannot import asyncmongo.
This seems to be the exact same bug report:
https://github.com/bitly/asyncmong
44 matches
Mail list logo