> On Apr 13, 2015, at 04:17, HawkOwl wrote:
>
> On behalf of Twisted Matrix Laboratories, I am honoured to announce the
> release of Twisted 15.1.0 -- just in time for the PyCon sprints!
>
> This is not a big release, but does have some nice-to-haves:
>
> - You can now install Twisted's optio
On Tue, Apr 14, 2015 at 3:35 AM, Fabien wrote:
> With multiprocessing, do I have to care about processes writing
> simultaneously in *different* files? I guess the OS takes good care of this
> stuff but I'm not an expert.
Not sure what you mean, here. Any given file will be written by
exactly one
Chris Angelico writes:
> Small point: Calling dunder methods is usually a bad idea, so I'd
> change this to "p = next(ps)" instead.
Oh yes, I forgot about that. I'm used to ps.next() and was irritated to
find that it doesn't work in Python 3, so I did the ugly thing that was
closest. Thanks.
--
On Tue, Apr 14, 2015 at 12:42 PM, Paul Rubin wrote:
> Just for laughs, this prints the first 20 primes using Python 3's
> "yield from":
>
> import itertools
>
> def sieve(ps):
> p = ps.__next__()
> yield p
> yield from sieve(a for a in ps if a % p != 0)
>
> prim
Steven D'Aprano writes:
> http://code.activestate.com/recipes/577821-integer-square-root-function/
The methods there are more "mathematical" but probably slower than what
I posted.
Just for laughs, this prints the first 20 primes using Python 3's
"yield from":
import itertools
def sie
Hi,
I want to show the graph for this code:
import re
from Tkinter import *
import tkFileDialog
import testpattern
import networkx as nx
import matplotlib.pyplot as plt
patternresult =[]
nodes = {}
edges = {}
pattern = ['(#P\[\w*\])', '(#C\[\w*[\s\(\w\,\s\|\)]+\])',
'(#ST\[\w*[\s\(\
On Monday, 13 April 2015 15:58:58 UTC-4, Ned Deily wrote:
> In article <176d49d3-6ff8-4d35-b8ec-647f13250...@googlegroups.com>,
> Pippo wrote:
> > I am trying to install matplotlib and I keep getting error:
> [...]
> > File
> >
> > "/Library/Frameworks/Python.framework/Versions/3.3/lib/pyt
In article <176d49d3-6ff8-4d35-b8ec-647f13250...@googlegroups.com>,
Pippo wrote:
> I am trying to install matplotlib and I keep getting error:
[...]
> File
> "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/distutils/v
> ersion.py", line 343, in _cmp
> if self.version <
Hi guys,
I am trying to install matplotlib and I keep getting error:
Traceback (most recent call last):
File "setup.py", line 155, in
result = package.check()
File
"/Users/sepidehghanavati/Desktop/Programs/python/matplotlib-1.4.3/setupext.py",
line 961, in check
min_version='2.3',
On 13.04.2015 19:08, Peter Otten wrote:
How about a file-based workflow?
Write distinct scripts, e. g.
a2b.py that reads from *.a and writes to *.b
and so on. Then use a plain old makefile to define the dependencies.
Whether .a uses pickle, .b uses json, and .z uses csv is but an
implementatio
On 13.04.2015 17:45, Devin Jeanpierre wrote:
On Mon, Apr 13, 2015 at 10:58 AM, Fabien wrote:
>Now, to my questions:
>1. Does that seem reasonable?
A big issue is the use of pickle, which is:
* Often suboptimal performance wise (e.g. you can't load only subsets
of the data)
* Makes forwards/ba
On 13.04.2015 18:25, Dave Angel wrote:
On 04/13/2015 10:58 AM, Fabien wrote:
Folks,
A comment. Pickle is a method of creating persistent data, most
commonly used to preserve data between runs. A database is another
method. Although either one can also be used with multiprocessing, you
seem
Fabien wrote:
> I am writing a quite extensive piece of scientific software. Its
> workflow is quite easy to explain. The tool realizes series of
> operations on watersheds (such as mapping data on it, geostatistics and
> more). There are thousands of independent watersheds of different size,
> an
On 04/13/2015 10:58 AM, Fabien wrote:
Folks,
A comment. Pickle is a method of creating persistent data, most
commonly used to preserve data between runs. A database is another
method. Although either one can also be used with multiprocessing, you
seem to be worrying more about the mechan
for what it's worth I believe that marshal is a faster method for storing simple
python objects. So if your information can be stored using simple python things
eg strings, floats, integers, lists and dicts then storage using marshal is
faster than pickle/cpickle. If you want to persist the obje
On Mon, Apr 13, 2015 at 10:58 AM, Fabien wrote:
> Now, to my questions:
> 1. Does that seem reasonable?
A big issue is the use of pickle, which is:
* Often suboptimal performance wise (e.g. you can't load only subsets
of the data)
* Makes forwards/backwards compatibility very difficult
* Can mak
Folks,
I am writing a quite extensive piece of scientific software. Its
workflow is quite easy to explain. The tool realizes series of
operations on watersheds (such as mapping data on it, geostatistics and
more). There are thousands of independent watersheds of different size,
and the size d
On Sun, Apr 12, 2015 at 10:29 PM, Pippo wrote:
> Any guide on this?
>
> http://snap.stanford.edu/snappy/#download
Sure. http://snap.stanford.edu/snappy/#docs
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
I have written a script using bottle.py. The app works fine most of times.
Sometimes though, the server takes time to respond and the web browser
eventually drops the connection to the server after a certain time (timeout),
showing this page :
"""
Connection reset
The connection to th
On 04/13/2015 07:30 AM, userque...@gmail.com wrote:
I am writing a function in python, where the function excludes a list of pawns
from the game. The condition for excluding the pawns is whether the pawn is
listed in the database DBPawnBoardChart. Here is my code:
def _bring_bigchart_pa
I am writing a function in python, where the function excludes a list of pawns
from the game. The condition for excluding the pawns is whether the pawn is
listed in the database DBPawnBoardChart. Here is my code:
def _bring_bigchart_pawns(self, removed_list=set(), playing_amount=0):
Anyone out there got any examples of calling the UK Royal Mail Mailmark web
service from python?
--
https://mail.python.org/mailman/listinfo/python-list
On behalf of Twisted Matrix Laboratories, I am honoured to announce the release
of Twisted 15.1.0 -- just in time for the PyCon sprints!
This is not a big release, but does have some nice-to-haves:
- You can now install Twisted's optional dependencies easier -- for example,
`pip install twisted
On Monday 13 April 2015 15:38, Mahima Goyal wrote:
> error of corrupted file or directory is coming if i am installing
> python for 64 bit.
My sympathies. Did you have a question, or are you just sharing the bad
news?
--
Steve
--
https://mail.python.org/mailman/listinfo/python-list
On Monday 13 April 2015 15:25, Paul Rubin wrote:
> Dave Angel writes:
>> But doesn't math.pow return a float?...
>> Or were you saying bignums bigger than a float can represent at all?
>> Like:
> x = 2**1 -1 ...
> math.log2(x)
>> 1.0
>
> Yes, exactly that. Thus (not completely
25 matches
Mail list logo