On Sun, Jul 2, 2017 at 1:38 PM, Ho Yeung Lee wrote:
> Is there library to convert AST to DAG tree?
Given that a syntax tree IS a form of directed acyclic graph, I think
your question is either trivially true or insufficiently clear.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
breamore...@gmail.com on Sat, 1 Jul 2017 14:19:22 -0700 (PDT) typed in
comp.lang.python the following:
>Yes I know it's daft that it's where I'm posting from, but I'm still banned
>from using the main mailing list. I've reported over 80 posts today alone,
>meaning that it's less than useless fo
Is there library to convert AST to DAG tree?
--
https://mail.python.org/mailman/listinfo/python-list
On Saturday, July 1, 2017 at 4:19:47 PM UTC-5, bream...@gmail.com wrote:
> Yes I know it's daft that it's where I'm posting from, but
> I'm still banned from using the main mailing list.
Why are you banned from Python-list? What did you do? And is
that why you have moved to the "Bream" nym?
> I'v
A few questions: It looks to me you have a problem that looks a lot like
plant
processes where a process' output is another process' input.
Q1: Am I correct in describing your problem as follows?
input ---> |process a|---> |process b| ---> |process c| ---> output
Q2: Does every process change t
[comp.lang.python]
Score: =-1
Path: netfront\.net
--
https://mail.python.org/mailman/listinfo/python-list
My situation is a dictionary with tuple key
I think dictionary.values()[index]
Is correct
On Sun, 2 Jul 2017 at 12:48 AM, Pavol Lisy wrote:
> On 7/1/17, Ho Yeung Lee wrote:
> > just want to compare tuples like index (0,1), (0,2), (1,2) without
> > duplicate
> > such as (2,0), (1,0) etc
> >
>
On 07/01/2017 02:55 AM, Ho Yeung Lee wrote:
> expect result as this first case
>
> ii = 0
> jj = 0
> for ii in range(0,3):
> for jj in range(0,3):
> if ii < jj:
> print (ii, jj)
>
>
> but below is different
> as sometimes the situation is not range(0,3), but it a a list o
On 7/1/17, Ho Yeung Lee wrote:
> just want to compare tuples like index (0,1), (0,2), (1,2) without
> duplicate
> such as (2,0), (1,0) etc
>
>
> On Saturday, July 1, 2017 at 7:00:17 PM UTC+8, Peter Otten wrote:
>> Ho Yeung Lee wrote:
>>
>> > finally i searched dict.values()[index] solved this
>>
On 7/1/17, Thomas Jollans wrote:
> On 30/06/17 13:32, Pavol Lisy wrote:
>> [snip]
>>
>> python 3.6.1 works as I expected
>>
> import logging as operator
> from operator import _compare_digest as compare_digest
>> Traceback (most recent call last):
>> File "", line 1, in
>> ImportError:
On Sat, Jul 1, 2017 at 5:45 AM, Ho Yeung Lee wrote:
> just want to compare tuples like index (0,1), (0,2), (1,2) without
> duplicate
> such as (2,0), (1,0) etc
>
>
I'm going to assume that the order of values in the tuple is important to
you.
If so, you can simply use the `==` operator to com
Thanks a lot.
1 июля 2017 г. 0:16 пользователь "eryk sun" написал:
> On Fri, Jun 30, 2017 at 8:30 PM, Debiller 777
> wrote:
> > I just get error that there is no module name 'encodings'
>
> First make sure that neither PYTHONHOME nor PYTHONPATH are defined in
> your environment. To check this t
On Saturday, July 1, 2017 at 1:46:21 PM UTC+1, Ho Yeung Lee wrote:
> just want to compare tuples like index (0,1), (0,2), (1,2) without duplicate
> such as (2,0), (1,0) etc
>
I'm still not entirely sure what you're asking, but can't you just generate
what you want with itertools combinations, s
Thanks Albert!
I have successfully completed the project. Thanks all for your support.
On Sat, Jul 1, 2017 at 1:59 PM, Albert-Jan Roskam
wrote:
> Hi,
>
> Does your code run on a sample of the data?
> Does your code have categorical data in it? If so:
> https://pandas.pydata.org/pandas-docs/stabl
Ho Yeung Lee wrote:
> just want to compare tuples like index (0,1), (0,2), (1,2) without
> duplicate
> such as (2,0), (1,0) etc
Consider (frozen)sets:
>>> {1, 2} == {2, 1}
True
>>> unique_items = {frozenset((a, b)) for a in range(3) for b in range(3)}
>>> unique_items
set([frozenset([0]), froz
just want to compare tuples like index (0,1), (0,2), (1,2) without duplicate
such as (2,0), (1,0) etc
On Saturday, July 1, 2017 at 7:00:17 PM UTC+8, Peter Otten wrote:
> Ho Yeung Lee wrote:
>
> > finally i searched dict.values()[index] solved this
>
> That doesn't look like a good solution to
суббота, 1 июля 2017 г., 0:25:19 UTC+3 пользователь eryk sun написал:
> On Fri, Jun 30, 2017 at 8:30 PM, Debiller 777
> wrote:
> > I just get error that there is no module name 'encodings'
>
> First make sure that neither PYTHONHOME nor PYTHONPATH are defined in
> your environment. To check this
d
--
https://mail.python.org/mailman/listinfo/python-list
Ho Yeung Lee wrote:
> finally i searched dict.values()[index] solved this
That doesn't look like a good solution to anything -- including "this",
whatever it may be ;)
If you make an effort to better explain your problem in plain english rather
than with code examples you are likely tho get be
On 30/06/17 13:32, Pavol Lisy wrote:
> [snip]
>
> python 3.6.1 works as I expected
>
import logging as operator
from operator import _compare_digest as compare_digest
> Traceback (most recent call last):
> File "", line 1, in
> ImportError: cannot import name '_compare_digest'
>
All
finally i searched dict.values()[index] solved this
On Saturday, July 1, 2017 at 6:00:41 PM UTC+8, Peter Otten wrote:
> Ho Yeung Lee wrote:
>
> > expect result as this first case
> >
> > ii = 0
> > jj = 0
> > for ii in range(0,3):
> > for jj in range(0,3):
> > if ii < jj:
> >
Ho Yeung Lee wrote:
> expect result as this first case
>
> ii = 0
> jj = 0
> for ii in range(0,3):
> for jj in range(0,3):
> if ii < jj:
> print (ii, jj)
>
>
> but below is different
> as sometimes the situation is not range(0,3), but it a a list of tuple
>
> = 0
i got an idea with below, but it can not compile
for ii, yy in range(2,5), range(0,3):
for jj, zz in range(2,5), range(0,3):
if yy < zz:
print (ii, jj)
real situation
groupkey
{(0, 1): [[0, 1], [0, 2], [0, 8]], (1, 2): [[1, 5], [1, 9], [2, 6], [2, 10],
[8, 9], [8, 10]],
sorry for typo,
= 0
= 0
for ii in range(0,3):
for jj in range(0,3):
if < :
print (ii, jj) <- correct here
= + 1
= + 1
On Saturday, July 1, 2017 at 4:55:59 PM UTC+8, Ho Yeung Lee wrote:
> expect result as this first
expect result as this first case
ii = 0
jj = 0
for ii in range(0,3):
for jj in range(0,3):
if ii < jj:
print (ii, jj)
but below is different
as sometimes the situation is not range(0,3), but it a a list of tuple
= 0
= 0
for ii in range(0,3):
for jj in rang
Hi,
Does your code run on a sample of the data?
Does your code have categorical data in it? If so:
https://pandas.pydata.org/pandas-docs/stable/categorical.html. Also, check out
http://www.pytables.org.
Albert-Jan
From: Python-list on
behalf of Bhaskar Dhariya
26 matches
Mail list logo