Data Sceptic has a couple podcast and some of the code is open source.
https://dataskeptic.com/blog/episodes/2018/algorithmic-detection-of-fake-news
Thanks
Vincent Davis
720-301-3003
*Want to get a hold of me?*
*SMS: awesome.phone: ok...*
*email: bad!*
On Fri, Jul 17, 2020 at 11:39 PM Mike
ray([8.83911760e-05, 6.31347765e-05, 3.89486842e-05, 2.13775583e-05,
2.10950231e-05, 4.10487515e-05, 6.7000e-05, 9.10878697e-05,
7.61183289e-05, 9.90050504e-05, 7.88162420e-05, 5.90931468e-05,
4.50111097e-05, 4.97393205e-05, 6.78969808e-05, 8.52115016e-05,
...
Thanks
Vincent Davis
Dennis,
Thanks for your ideas. The researcher I am working with just told me the
data is wrong and needs to send me new data and there are other problems
with exactly what their research questions is. So this goes nowhere for now.
Thanks
Vincent Davis
720-301-3003
*Want to get a hold of me
o keep it in that color format? I think yes.
3. How can I visualize this data as a 6x6 color image and visualize each
color on a gray scale.
4. General hints or link of how to proceed would be helpful.
Thanks
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
Why not start with a histogram.
Vincent
On Sat, Dec 15, 2018 at 6:46 PM Marc Lucke wrote:
> hey guys,
>
> I have a hobby project that sorts my email automatically for me & I want
> to improve it. There's data science and statistical info that I'm
> missing, & I always enjoy reading about the
On Tue, Jan 23, 2018 at 4:15 PM Dennis Lee Bieber <wlfr...@ix.netcom.com>
wrote:
> On Tue, 23 Jan 2018 13:51:55 -0700, Vincent Davis
> <vinc...@vincentdavis.net> declaimed the following:
>
> >Looking for suggestions. I have an ordered list of names these names will
&g
example code for this on the net an am not
finding a clean example.
Thanks
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
t and loop over it. In my case a dict
was better.
See the example here.
https://github.com/vincentdavis/USAC_data/blob/master/tools.py#L24
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
New submission from Vincent Davis:
>From the documentation pages for python 2.7 and 3.4, 3.5, 3.6 it is possible
>to select another python version in the breadcrumb at the top left of the
>page. This is not available for python 2.6, 3.2 and 3.3.
See related issue which is clos
)))[945:965]
>>> u
'ԡԢԣԤԥԦԧԨԩԪԫԬԭԮԯԱԲԳԴԵ'
Python 3.4
>>>
import unicodedata
>>>
u = ''.join(chr(i) for i in range(65536) if (unicodedata.category(chr(i))
in ('Lu', 'Ll')))[945:965]
>>> u
'ԢԣԤԥԦԧԱԲԳԴԵԶԷԸԹԺԻԼԽԾ'
As you can see they are not the same
.
'ԡԢԣԤԥԦԧԨ
h for "xy39mGWbosjY" there is one
result as of now,
which
is an archive of this tread. If you search for any given word or even the
phrase
, for example
"baby lions at play
" you get a much larger set of results
~500
. I assue there are many was to search google with
rite
except AttributeError:
raise
try:
name = handel.name
write("# Report_file: %s\n" % name)
except AttributeError:
pass
write("\n")
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Dec 14, 2015 at 4:53 PM, Ian Kelly wrote:
>
> Except that catching an exception just to immediately re-raise it is
> silly. This would be better:
>
> try:
> name = handle.name
> except AttributeError:
> pass
> else:
> handle.write("# Report_file: %s\n"
except AttributeError:
pass
handle.write("\n")
The specific use case I noticed this was
https://github.com/biopython/biopython/blob/master/Bio/AlignIO/EmbossIO.py#L38
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
to stick this into a test. doctest seemed the simplest
but maybe there is a better way.
I also tried something like:
assert exec("""print('hello word')""") == 'hello word'
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
File "/Users/vincentdavis/anaconda/envs/py35/lib/python3.5/doctest.py",
line 1320, in __run
compileflags, 1), test.globs)
File "", line 1
print('hello')
^
SyntaxError: multiple statements found while compiling a single statement
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
untittests
on source code from a jupyter notebook. Reading closer this seems like it
will work.
Not that I mind learning more about how doctests work ;-)
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
source="print('hello world')/n", want="hello world\n")
t = doctest.DocTestRunner()
t.run(e)
Thanks
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
ncoder(n)
> backagain = decoder(short)
> nlen = len(str(n))
> print (nlen, len(short), float(len(short))/nlen)
> assert n==backagain, (n,short,b)
>
> test()
>
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
My goal is to shorten a long integer into a shorter set of characters.
Below is what I have which gets me about a 45-50% reduction. Any suggestion
on how to improve upon this?
I not limited to ascii but I didn't see how going to utf8 would help.
The resulting string needs to be something I could
Found an example, needs a little updating but then it works (appears to) in
python 3.5.
http://coding4streetcred.com/blog/post/Asymmetric-Encryption-Revisited-(in-PyCrypto)
Vincent Davis
720-301-3003
On Wed, Nov 18, 2015 at 5:04 PM, Chris Angelico <ros...@gmail.com> wrote:
> On Th
reading the message from a local file.
Possibly using cryptography library elliptic-curve
https://cryptography.io/en/latest/hazmat/primitives/asymmetric/ec/#elliptic-curve-signature-algorithms
Surly there is an example out there?
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
That worked, Thanks!
Vincent Davis
720-301-3003
On Thu, Oct 15, 2015 at 6:11 AM, Peter Otten <__pete...@web.de> wrote:
> Oscar Benjamin wrote:
>
> > On 15 October 2015 at 09:16, Peter Otten <__pete...@web.de> wrote:
> >>
> >> def preprocess(fi
.
with open(infile,"r") as fin:
with open(outfile,"w") as fout:
writer=csv.writer(fout)
for row in csv.reader(fin):
#do stuff to the row
writer.writerow(row)
df = pandas.csv_reader(outfile)
Vincent Davis
72
On Wed, May 27, 2015 at 4:55 PM, Cameron Simpson c...@zip.com.au wrote:
First, test your test by hand running:
to_datetime('2015-02-29', coerce=False)
_Does_ it raise ValueError?
Well that was not expected. Thanks
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
..format(name))
AssertionError: ValueError not raised.
From the docs maybe I should be using a with statement.
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
Not sure what I was doing wrong, it seems to work now.
Vincent Davis
720-301-3003
On Sat, May 9, 2015 at 4:46 PM, Vincent Davis vinc...@vincentdavis.net
wrote:
I am reading a file with Dictreader and writing a new file. I want use the
fieldnames in the Dictwriter from the reader. See below
: 98 pass
ValueError: I/O operation on closed file.
Thanks
Vincent
Davis
--
https://mail.python.org/mailman/listinfo/python-list
up parts of your
error messages.
I am posting from google mail (not google groups). Kindly let me know if
this email is also html.
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
How does one get the date given the day of a year.
dt.datetime.now().timetuple().tm_yday
114
How would I get the Date of the 114 day of 2014?
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Apr 24, 2015 at 8:01 AM, Ian Kelly ian.g.ke...@gmail.com wrote:
dt.date(2014, 1, 1) + dt.timedelta(114 - 1)
datetime.date(2014, 4, 24)
Thanks!
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
I need to go find my strange symbols that
are not 'utf-8' and see what happens
I was thought, that I had to open with 'rb' to use encoding?
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
WELLS FARGO COMPANY
WELLS FARGO COMPANYWELLS
FARGO ¢ COMPANY
994946
{'encoding': 'windows-1252', 'confidence': 0.5}
OSSOSSO¬¬O OSSOSSOO OSSOSSOO OSSOSSO¬¬O
996535
Vincent Davis
720-301
I had been reading in a file like so. (python 3)
with open(dfile, 'rb') as f:
for line in f:
line
= line.decode('utf-8', 'ignore').split(',')
How can I do accomplish decode('utf-8', 'ignore') when reading with
DictReader()
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman
On Sat, Apr 4, 2015 at 5:51 PM, Thomas 'PointedEars' Lahn
pointede...@web.de wrote:
Do anyone have good links to python regex or other python problems for
beginners but with solution.
Please mail me.
I recently found this
https://regex101.com/#python
Vincent Davis
720-301-3003
Changes by Vincent Davis vinc...@vincentdavis.com:
--
nosy: +Vincentdavis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21360
___
___
Python-bugs
Vincent Davis added the comment:
Rather than dealing with the time delta how about getting the time twice and
checking that we are between and at least once we have the same day.
i.e.
ts1 = time()
today = self.theclass.today()
ts2 = time()
todayagain1 = self.theclass.fromtimestamp(ts1
Vincent Davis added the comment:
Looks like this is ready to be applied and closed or just closed.
--
nosy: +Vincentdavis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20544
Vincent Davis added the comment:
Anything else need to be done on this patch?
--
nosy: +Vincentdavis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18983
and
the 1982 model year.
Ah , I had not looked close at that yet. I found a different more
extensive site.
http://www.britishonly.com/tech/joust/techtiptriumphmf.htm
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
/tech/joust/techtiptriumphmf.htm,
I could see some overlapping although I have not looked real close yet.
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
return 'tp1960'
else:
return None
else:
return None
vin_test_list = ['101n', '500n', '234na', '15809NA', '25000', '32303',
'44135', '56700', '70930', '0100', 'H11512', 'D15789', 'DU101']
for vin in vin_test_list:
print(vin_to_year2(vin))
Vincent Davis
720-301
I would like to parse the VIN, frame and engine numbers found on this page
(below). I don't really know any regex, I have looked a little at
pyparsing. I have some other similar numbers to. I am looking for
suggestions, which tool should I learn, how should I approach this.
These are vintage motorcycles so the VIN's are not like modern VIN's
these are frame numbers and engine number.
I don't want to parse the page, I what a function that given a VIN (frame
or engine number) returns the year the bike was made.
Vincent Davis
720-301-3003
On Thu, Dec 25, 2014 at 5:56
Tim and Ben,
Thanks for your input, I am working on it now and will come back when I
have questions.
Any comment on using pyparsing VS regex
Vincent Davis
720-301-3003
On Thu, Dec 25, 2014 at 7:18 PM, Ben Finney ben+pyt...@benfinney.id.au
wrote:
Vincent Davis vinc...@vincentdavis.net writes
','MED2','MED3','MED4','MED5']].isin([drugs[n]]).any(1)
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Jul 30, 2014 at 6:28 PM, Vincent Davis vinc...@vincentdavis.net
wrote:
The real slow part seems to be
for n in drugs:
df[n] =
df[['MED1','MED2','MED3','MED4','MED5']].isin([drugs[n]]).any(1)
I was wrong, this is fast, it was selecting the columns that was slow.
using
keep_col
', 'MED2', 'MED3',
'MED4', 'MED5']
df = df[keep_col]
The real slow part seems to be
for n in drugs:
df[n] = df[['MED1','MED2','MED3','MED4','MED5']].isin([drugs[n]]).any(1)
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
Bio.Affy import CelFile
from bz2 import decompress,
with open('Tests/Affy/affy_v3_ex.CEL.bz2', 'rb') as handle:
cel_data = decompress(handle.read())
c = CelFile.read(cel_data)
Thanks
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
'))
Vincent Davis
720-301-3003
On Sun, May 18, 2014 at 8:32 PM, Tim Chase python.l...@tim.thechases.comwrote:
On 2014-05-18 19:53, Vincent Davis wrote:
I have a file compressed with bz2 and a function that expects a
file handle. When I decompress the bz2 file I get a string (binary)
not a file
On Sun, May 18, 2014 at 9:44 PM, Ian Kelly ian.g.ke...@gmail.com wrote:
You can just use bz2.open:
with bz2.open('test.txt.bz2', 'rt', encoding='ascii') as f:
... print(f.read())
Thanks I like that better then my solution.
Vincent Davis
720-301-3003
--
https://mail.python.org
(r.keys()))
outfile.writerow(r)
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
Thanks for the feedback.
Vincent Davis
720-301-3003
On Mon, Mar 24, 2014 at 1:44 PM, Chris Angelico ros...@gmail.com wrote:
On Tue, Mar 25, 2014 at 4:50 AM, Vincent Davis vinc...@vincentdavis.net
wrote:
I have several csv file I need to append (vertically). They have
different
of times an observed sub sequence overlaps a
value in the De Bruijn sequence) The way the sub sequences overlap is
important to me and I don't see a way go from base-k (or any other base) to
the index location in the De Bruijn sequence. i.e. a decoding algorithm.
Vincent Davis
720-301-3003
--
https
secs or more. The total expected minimum time without startup overhead
is then
Ah, I did not know about the calibration. That and I did not notice the
100 on my machine vs 10 on yours.
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
]
else:
a = a[:t] + a[t - p] + a[t+1:]
db(t + 1, p)
for j in range(int(a[t - p]) + 1, k):
a = a[:t] + str(j) + a[t+1:]
db(t + 1, t)
return sequence
db(1, 1)
return sequence
d2 = de_bruijn_2(4, 8)
Vincent Davis
n de_brujin(k, n) and the
ordering the same ordering as found in de_brujin(k, n).
I am not really sure how to modify the algorithm to do that. Any ideas? I
won't have time to think hard about that until later.
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
by
itertools.permutations.
Vincent Davis
On Thu, Jan 23, 2014 at 10:18 AM, Dave Angel da...@davea.name wrote:
Vincent Davis vinc...@vincentdavis.net Wrote in message:
(something about your message seems to make it unquotable)
64gig is 4^18, so you can forget about holding a string of size 4^50
)
I am not really sure what _mapping should be. The code above does not run
because
NameError: global name '_mapping' is not defined
I tried to get the bytearray
sequence to convert to ascii but don't know how to.
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
.
Thanks for pointing this out Mark, I will soon be running this on 3.3+
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
import debruijn_bytes as d'
'd(4, 11)'
10 loops, best of 3: 480 msec per loop
This took ~20 secs vs .480*10
d(4, 14) takes about 24 seconds (one run)
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
You might think about using an array to represent the canvas. Starting with
it filled with and then for each point change it to X.
The print the rows of the array.
You can make the array/canvas arbitrarily large and then plot multiple
different paths onto the same array.
Vincent Davis
720-301
When printing the rows of the array/canvas you might add \n to the end of
each row and print the canvas all at once rather than a print statement for
each row.
Vincent Davis
720-301-3003
On Sat, Jan 4, 2014 at 3:10 PM, Vincent Davis vinc...@vincentdavis.netwrote:
You might think about using
.
Any suggestions?
Vincent Davis
720-301-3003
--
https://mail.python.org/mailman/listinfo/python-list
(the opposite of what I want)
Vincent Davis
On Tue, Dec 31, 2013 at 6:45 PM, Jason Friedman jsf80...@gmail.com wrote:
I have a about 255 data fields that I am trying to verify on thousands of
webpages.
For example:
value: 255,000
sqft: 1800
Since I have the correct answer
of the pages, I got this from the county on
a cd, I thought defining the xpath would be easier using bs4 or
http://lxml.de/
Vincent Davis
720-301-3003
On Tue, Dec 31, 2013 at 10:30 PM, Jason Friedman jsf80...@gmail.com wrote:
For example this URL;
http://jeffco.us/ats/displaygeneral.do?sch=001690
and error I suppose if the for example I lost
the connection to the internet but I am not really sure about that.
That said after some more research I found this tread.
http://lists.open-bio.org/pipermail/biopython/2013-April/008507.html
Vincent Davis
--
https://mail.python.org/mailman/listinfo
, megablast=True,
entrez_query=e_query, word_size='11', other_advanced='-G 5 -E 2')
return NCBIXML.read(blast_result)
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
without installing additional software or using an external
server/service?
Maybe I am wrong, I thought examples like s = smtplib.SMTP('localhost')
are using a local(outside of python) smtp server, like postfix.
Vincent Davis
720-301-3003
On Fri, Dec 13, 2013 at 9:40 AM, Grant Edwards
.
Then submit the email to that address using smtplib.SMTP
Do I have that right?
Vincent Davis
720-301-3003
On Fri, Dec 13, 2013 at 10:24 AM, Dennis Lee Bieber
wlfr...@ix.netcom.comwrote:
On Thu, 12 Dec 2013 18:01:58 -0700, Vincent Davis
vinc...@vincentdavis.net declaimed the following:
I have
Grant, Chris
Thanks !!!
I guess in the end this is a bad idea, (for my purposes) I should just use
my gmail account smtp server.
Vincent Davis
720-301-3003
On Fri, Dec 13, 2013 at 11:15 AM, Chris Angelico ros...@gmail.com wrote:
On Sat, Dec 14, 2013 at 4:13 AM, Vincent Davis vinc
initiate a SMTP
server, send the attachment and shutdown the SMTP after.
Vincent Davis
--
https://mail.python.org/mailman/listinfo/python-list
going on?
Vincent Davis
720-301-3003
--
http://mail.python.org/mailman/listinfo/python-list
ipython, or at least how I am
using it ipython notebook --pylab inline.
Thanks
Vincent Davis
720-301-3003
On Fri, Jun 28, 2013 at 4:04 PM, Joshua Landau
joshua.landau...@gmail.comwrote:
On 28 June 2013 15:38, Vincent Davis vinc...@vincentdavis.net wrote:
I have a list of a list of integers
I am looking for a good way to get every pair from a string. For example,
input:
x = 'apple'
output
'ap'
'pp'
'pl'
'le'
I am not seeing a obvious way to do this without multiple for loops, but
maybe there is not :-)
In the end I am going to what to get triples, quads... also.
Thanks
Vincent
a
chance later today.
Thanks again!
Vincent
On Mon, Oct 22, 2012 at 12:45 AM, Emile van Sebille em...@fenx.com wrote:
On 10/21/2012 11:33 AM, Vincent Davis wrote:
I am looking for a good way to get every pair from a string. For example,
input:
x = 'apple'
output
'ap'
'pp'
'pl'
'le'
I
@vbr
Thats interesting. I would never have come up with that.
Vincent
On Sun, Oct 21, 2012 at 3:48 PM, Vlastimil Brom vlastimil.b...@gmail.comwrote:
vbr
--
http://mail.python.org/mailman/listinfo/python-list
Kelly wrote:
On Sun, Oct 21, 2012 at 12:58 PM, Vincent Davis
vinc...@vincentdavis.net wrote:
x = 'apple'
for f in range(len(x)-1):
print(x[f:f+2])
@Ian,
Thanks for that I was just looking in to that. I wonder which is faster I
have a large set of strings to process. I'll try some
Yes afile is the file name and extension, ifile is the full file name and
path.
Thanks
Vincent
On Sunday, October 14, 2012, MRAB wrote:
On 2012-10-14 05:23, Vincent Davis wrote:
I am working on a script to find bad image files. I am using PIL
and specifically image.verify() I have a set
I am working on a script to find bad image files. I am using PIL
and specifically image.verify() I have a set of known to be bad image files
to test. I also what to be able to test any file for example a .txt and
deal with the exception.
Currently my code is basically
try:
im =
Oops, I was going to make note of the file size. 1.2MB
Vincent
On Sat, Oct 13, 2012 at 10:31 PM, Chris Angelico ros...@gmail.com wrote:
On Sun, Oct 14, 2012 at 3:23 PM, Vincent Davis vinc...@vincentdavis.net
wrote:
OverflowError: Python int too large to convert to C long
line 266
14, 2012 at 3:36 PM, Vincent Davis vinc...@vincentdavis.net
wrote:
Oops, I was going to make note of the file size. 1.2MB
Then I'd definitely declare the file bad; I don't know what the valid
ranges for channels and ysize are, but my reading of that is that your
file's completely corrupt
. Received: 2011-08-16T22:47:47.000Z. Size:
196114. Subject RE: ppt templates.
--
Thanks
Vincent Davis
720-301-3003
--
http://mail.python.org/mailman/listinfo/python-list
string, line 1, in fragment
MemoryError:
Python 2.7.1 |EPD 7.0-2 (32-bit)| (r271:86832, Dec 3 2010, 15:41:32)
[GCC 4.0.1 (Apple Inc. build 5488)]
--
Thanks
Vincent Davis
720-301-3003
--
http://mail.python.org/mailman/listinfo/python-list
I am working on a program to monitor directory file changes and am would
like a configuration file. This file would specify email addresses, file and
directory locations.. Is there a preferred format to use with python?
--
Thanks
Vincent Davis
--
http://mail.python.org/mailman/listinfo
hgc
On Thu, Feb 3, 2011 at 6:52 PM, Kushal Kumaran
kushal.kumaran+pyt...@gmail.com kushal.kumaran%2bpyt...@gmail.com wrote:
On Fri, Feb 4, 2011 at 3:44 AM, Vincent Davis vinc...@vincentdavis.net
wrote:
I have a few emails I am trying to download from my google account. I
seem
, IMAP_PORT)
rc, resp = M.login('x@', 'X')
print rc, resp
M.select('[Gmail]/All Mail')
M.search(None, 'FROM', 'some...@logitech.com')
#M.fetch(121, '(body[header.fields (subject)])')
M.fetch(121, '(RFC822)')
--
Thanks
Vincent Davis
720-301-3003
--
http://mail.python.org/mailman/listinfo
How do I get the bit version of the installed python. In my case, osx
python2.7 binary installed. I know it runs 64 bt as I can see it in
activity monitor. but how do I ask python?
sys.version
'2.7 (r27:82508, Jul 3 2010, 21:12:11) \n[GCC 4.0.1 (Apple Inc. build 5493)]'
--
Thanks
Vincent Davis
On Tue, Oct 19, 2010 at 3:29 PM, Philip Semanchuk phi...@semanchuk.com wrote:
On Oct 19, 2010, at 5:18 PM, Vincent Davis wrote:
How do I get the bit version of the installed python. In my case, osx
python2.7 binary installed. I know it runs 64 bt as I can see it in
activity monitor. but how
On Tue, Oct 19, 2010 at 3:55 PM, Philip Semanchuk phi...@semanchuk.com wrote:
On Oct 19, 2010, at 5:38 PM, Hexamorph wrote:
On 19.10.2010 23:18, Vincent Davis wrote:
How do I get the bit version of the installed python. In my case, osx
python2.7 binary installed. I know it runs 64 bt as I
I would like to have a python script that would download the most
recent svn of python, configure, make, install and cleanup after
itself. I am not replacing the python version I would be using to run
the script.
I was struggling to get this to work and I assume someone else has
done it better.
On Thu, Jul 8, 2010 at 9:11 AM, Daniel Fetchinson
fetchin...@googlemail.com wrote:
I would like to have a python script that would download the most
recent svn of python, configure, make, install and cleanup after
itself. I am not replacing the python version I would be using to run
the
I have several versions of python installed and some I have built from
source which seems to install the python-dev on osx. I know that on
ubuntu python-dev is an optional install. The main python version I
use is the enthought distribution. Can I install the python-dev tools
with this? How. It
On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl wrote:
On 14-6-2010 1:19, Vincent Davis wrote:
I just installed 2.6 and 3.1 from current maintenance source on Mac
OSx. When I am running as an interactive terminal session the up arrow
does not scroll thought the history
On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans tho...@jollans.com wrote:
On 06/14/2010 02:37 PM, Vincent Davis wrote:
On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong irmen-nosp...@xs4all.nl
wrote:
On 14-6-2010 1:19, Vincent Davis wrote:
I just installed 2.6 and 3.1 from current maintenance
I just installed 2.6 and 3.1 from current maintenance source on Mac
OSx. When I am running as an interactive terminal session the up arrow
does not scroll thought the history of the py commands I have entered
I just get ^[[A. When I install from a compiled source it works fine.
Whats the fix for
On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno gr...@verizon.net wrote:
sounds like your keymapping got messed with.
you could just:
set -o vi
python
ESC, Ctrl-j
and now ESC-k and ESC-j will take you back and forth in history (std vi
editing)
This is done within python? Let make sure I am
On Fri, Jun 11, 2010 at 10:11 PM, Ian Kelly ian.g.ke...@gmail.com wrote:
On Fri, Jun 11, 2010 at 9:31 PM, Vincent Davis vinc...@vincentdavis.net
wrote:
Starting with an example.
In [23]: x = [1,2,3,4,4,4,5,5,3,2,2,]
In [24]: y = set(x)
In [25]: y
Out[25]: set([1, 2, 3, 4, 5])
In [26]: y2
Starting with an example.
In [23]: x = [1,2,3,4,4,4,5,5,3,2,2,]
In [24]: y = set(x)
In [25]: y
Out[25]: set([1, 2, 3, 4, 5])
In [26]: y2 = len(set(x))
In [27]: y2
Out[27]: 5
How would I do the above y2 = len(set(x)) but have len(set()) in a
dictionary. I know how to do ..
In [30]: d = dict(s=set)
On Wed, Jun 9, 2010 at 2:21 PM, Michael Chambliss em...@mchambliss.com wrote:
I use Python for my own entertainment and for quick jobs, but haven't been
able to use it professionally up to this point. As a former Perl developer
and someone that's currently required to code in Java I'm starting
1 - 100 of 183 matches
Mail list logo