On Tue, Apr 21, 2015 at 4:46 PM, Paul Rubin wrote:
> Chris Angelico writes:
>> Ow, this is getting extremely complicated. And you still haven't
>> actually answered the fundamental problem, which is: When will you
>> need this? When will you actually want to put two different
>> annotations onto
On Tuesday, April 21, 2015 at 4:20:16 AM UTC+5:30, Dave Angel wrote:
> On 04/20/2015 07:59 AM, wrote:
> > Dear Group,
> >
> > I am trying to open multiple files at one time.
> > I am trying to do it as,
> >
> > for item in [ "one", "two", "three" ]:
> > f = open (item + "world.txt", "w"
On 04/21/2015 03:56 AM, subhabrata.bane...@gmail.com wrote:
Yes. They do not. They are opening one by one.
I have some big chunk of data I am getting by crawling etc.
now as I run the code it is fetching data.
I am trying to fetch the data from various sites.
The contents of the file are gettin
On 04/20/2015 10:14 PM, Paulo da Silva wrote:
I have program that generates about 100 relatively complex graphics and
writes then to a pdf book.
It takes a while!
Is there any possibility of using multiprocessing to build the graphics
and then use several calls to savefig(), i.e. some kind of gra
Hello everyone,
I am willing to learn Python from scratch.Please he me to learn.Although I hv
knowledge of c and object oriented programming.
--
https://mail.python.org/mailman/listinfo/python-list
On 21/04/2015 06:50, Chris Angelico wrote:
On Tue, Apr 21, 2015 at 3:43 PM, Sayth wrote:
If you were asked to right a song to teach new python programmers the core
concepts of python to new pythonistas could you?
What would be your song?
song and mnemonics are a key to learning and memorizin
On 21/04/2015 06:43, Sayth wrote:
If you were asked to right a song to teach new python programmers the core
concepts of python to new pythonistas could you?
What would be your song?
song and mnemonics are a key to learning and memorizing but very rarely used,
at least in my experience with
On 21/04/2015 11:57, pm05...@gmail.com wrote:
Hello everyone,
I am willing to learn Python from scratch.Please he me to learn.Although I hv
knowledge of c and object oriented programming.
Welcome :)
Start here https://docs.python.org/3/tutorial/index.html
Besides this list there is also a
On Tuesday, April 21, 2015 at 11:57:34 AM UTC+1, Parikshit Mishra wrote:
> Hello everyone,
>
> I am willing to learn Python from scratch.Please he me to learn.Although I hv
> knowledge of c and object oriented programming.
http://learnpythonthehardway.org/
Depending on your experience you can g
On Sunday, April 19, 2015 at 7:09:02 PM UTC-7, Rustom Mody wrote:
>
>
> let me spell it out:
> Prestige of Aristotle stymies progress of physics of 2 millennia
> likewise
> Prestige of Unix development environment keeps us stuck with text files when
> the world has moved on
Difference is, Aristo
On 21-04-2015 11:26, Dave Angel wrote:
> On 04/20/2015 10:14 PM, Paulo da Silva wrote:
>> I have program that generates about 100 relatively complex graphics and
>> writes then to a pdf book.
>> It takes a while!
>> Is there any possibility of using multiprocessing to build the graphics
>> and then
On Wed, Apr 22, 2015 at 1:53 AM, Paulo da Silva
wrote:
> Yes, I have 8 cores and the graphics' processes calculation are all
> independent. The problem I have is that if there is any way to generate
> independent figures in matplotlib. The logic seems to be build the
> graphic and save it. I was t
We are building an app that can help people to chat with the ones connected
over LAN. No internet connection is required.For GUI we are using wxpython.
Problem is in the Launching of a frame. In the beginning when a particular
client say c1 receives a message from c2 we pop a new frame and c2's
On 21-04-2015 16:58, Chris Angelico wrote:
> On Wed, Apr 22, 2015 at 1:53 AM, Paulo da Silva
> wrote:
>> Yes, I have 8 cores and the graphics' processes calculation are all
>> independent. The problem I have is that if there is any way to generate
>> independent figures in matplotlib. The logic se
On Tue, Apr 21, 2015 at 11:03 AM, wrote:
> We are building an app that can help people to chat with the ones connected
> over LAN. No internet connection is required.For GUI we are using wxpython.
> Problem is in the Launching of a frame. In the beginning when a particular
> client say c1 rece
On Tue, 21 Apr 2015 03:14:09 +0100, Paulo da Silva wrote:
> I have program that generates about 100 relatively complex graphics and
> writes then to a pdf book.
> It takes a while!
> Is there any possibility of using multiprocessing to build the graphics
> and then use several calls to savefig(),
On Tuesday, April 21, 2015 at 9:01:08 PM UTC+5:30, llanitedave wrote:
> On Sunday, April 19, 2015 at 7:09:02 PM UTC-7, Rustom Mody wrote:
> >
> >
> > let me spell it out:
> > Prestige of Aristotle stymies progress of physics of 2 millennia
> > likewise
> > Prestige of Unix development environment
I've been following along with the discussions related to type
hints[1] on python-ideas and python-dev. I'm interested enough to
start looking into this for my own nefarious purposes. At work, we
have lots of C++ code wrapped by Boost.Python. It seems like creating
type hint stubs for those librari
On 4/21/2015 2:08 PM, Skip Montanaro wrote:
I've been following along with the discussions related to type
hints[1] on python-ideas and python-dev. I'm interested enough to
start looking into this for my own nefarious purposes. At work, we
have lots of C++ code wrapped by Boost.Python. It seems l
On 21/04/2015 19:08, Skip Montanaro wrote:
I've been following along with the discussions related to type
hints[1] on python-ideas and python-dev. I'm interested enough to
start looking into this for my own nefarious purposes. At work, we
have lots of C++ code wrapped by Boost.Python. It seems li
Hi,
I'm in need of a system for logging the step-wise results and
diagnostic metadata about a python function implementation of an
algorithm that I'm developing. The specific algorithm is not of great
consequence except that it's for scientific computing and may produce
large (e.g., '00s or maybe
On Tue, Apr 21, 2015 at 1:29 PM, Terry Reedy wrote:
> I believe mypy can typecheck 2.x code in conjunction with stub files.
Thanks. Maybe the MyPy FAQ is just out-of-date? It includes this Q&A:
All of my code is still in Python 2. What are my options?
Mypy currently supports Python 3 sy
On 4/21/2015 3:11 PM, Skip Montanaro wrote:
On Tue, Apr 21, 2015 at 1:29 PM, Terry Reedy wrote:
I believe mypy can typecheck 2.x code in conjunction with stub files.
I based this on comments in the PEP 484 discussion on py-dev, which I
might have misread as being about now rather than the fu
On Tue, Apr 21, 2015 at 1:02 PM, Rob Clewley wrote:
> I don't think the built-in logger is sophisticated enough for this,
> being a flat record of freeform text AFAIU, but the API looks
> appealing.
It doesn't have to be a flat record. You can write a custom a Handler
that does anything you want
On Tue, Apr 21, 2015 at 2:26 PM, Terry Reedy wrote:
> Sorry if I jumped the gun on mypy.
Not a problem. I went ahead and installed Python 3.5a4 and mypy. It
seems to run, but it isn't terribly happy with my Python 2 code. Not
so much the actual syntax as things like the builtin cmp() function
and
On Tue, Apr 21, 2015 at 8:02 PM, Rob Clewley wrote:
>
> Hi,
>
> I'm in need of a system for logging the step-wise results and
> diagnostic metadata about a python function implementation of an
> algorithm that I'm developing. The specific algorithm is not of great
> consequence except that it's fo
All of these ideas and links are very helpful, thank you!
-Rob
--
https://mail.python.org/mailman/listinfo/python-list
On 21/04/2015 21:22, Robert Kern wrote:
On Tue, Apr 21, 2015 at 8:02 PM, Rob Clewley wrote:
Hi,
I'm in need of a system for logging the step-wise results and
diagnostic metadata about a python function implementation of an
algorithm that I'm developing. The specific algorithm is not of great
On Tuesday, April 21, 2015 at 10:49:34 AM UTC-7, Rustom Mody wrote:
> On Tuesday, April 21, 2015 at 9:01:08 PM UTC+5:30, llanitedave wrote:
> > On Sunday, April 19, 2015 at 7:09:02 PM UTC-7, Rustom Mody wrote:
> > >
> > >
> > > let me spell it out:
> > > Prestige of Aristotle stymies progress of p
On Wed, Apr 22, 2015 at 5:33 AM, Skip Montanaro
wrote:
> On Tue, Apr 21, 2015 at 2:26 PM, Terry Reedy wrote:
>> Sorry if I jumped the gun on mypy.
>
> Not a problem. I went ahead and installed Python 3.5a4 and mypy. It
> seems to run, but it isn't terribly happy with my Python 2 code. Not
> so mu
On 21Apr2015 16:46, Rob Clewley wrote:
All of these ideas and links are very helpful, thank you!
Another to add to your list, a be warned that it is baroque.
I have a context manager named "Pfx" which I use liberally in my code like
this:
from cs.logutils import Pfx, info
def load(filen
On Wed, Apr 22, 2015 at 10:11 AM, Cameron Simpson wrote:
> I have a context manager named "Pfx" which I use liberally in my code like
> this:
>
> from cs.logutils import Pfx, info
>
> def load(filename):
>with Pfx("loading %r", filename):
> with open(filename) as fp:
>lineno = 0
On 22Apr2015 10:50, Chris Angelico wrote:
On Wed, Apr 22, 2015 at 10:11 AM, Cameron Simpson wrote:
I have a context manager named "Pfx" which I use liberally in my code like
this:
from cs.logutils import Pfx, info
def load(filename):
with Pfx("loading %r", filename):
with open(file
On 04/21/2015 07:54 PM, Dennis Lee Bieber wrote:
On Tue, 21 Apr 2015 18:12:53 +0100, Paulo da Silva
declaimed the following:
Yes. fork will do that. I have just looked at it and it is the same as
unix fork (module os). I am thinking of launching several forks that
will produce .png images an
On Wednesday, April 22, 2015 at 3:05:57 AM UTC+5:30, llanitedave wrote:
> On Tuesday, April 21, 2015 at 10:49:34 AM UTC-7, Rustom Mody wrote:
> > If only Galileo had had you as lawyer...
>
> Well, I'd asked Giordano Bruno for a positive recommendation. For some
> inexplicable reason, he declined.
Hi Team,
Iam running the below command on Linux machine have Python 2.7
installed , I was trying to figure out the speed difference between
xrange and range functions.
range :
python -m timeit 'for i in range(100):' ' pass'
10 loops, best of 3: 90.5 msec per loop
$ python -m timeit 'for i
On Tue, Apr 21, 2015 at 12:59 AM, Chris Angelico wrote:
> plus, docstringargs
> basically implies that all the function parameters are strings, so the
> annotations are going to be rather less useful.
Why is that? argparse supports non-string args, so why couldn't
docstringargs as well?
--
https
On Tuesday, April 21, 2015 at 8:12:07 PM UTC-7, Rustom Mody wrote:
> On Wednesday, April 22, 2015 at 3:05:57 AM UTC+5:30, llanitedave wrote:
> > On Tuesday, April 21, 2015 at 10:49:34 AM UTC-7, Rustom Mody wrote:
> > > If only Galileo had had you as lawyer...
> >
> > Well, I'd asked Giordano Bruno
On Wed, Apr 22, 2015 at 2:00 PM, Ian Kelly wrote:
> On Tue, Apr 21, 2015 at 12:59 AM, Chris Angelico wrote:
>> plus, docstringargs
>> basically implies that all the function parameters are strings, so the
>> annotations are going to be rather less useful.
>
> Why is that? argparse supports non-st
Ganesh Pal writes:
> Iam running the below command on Linux machine have Python 2.7
> installed ,
If it hasn't already been said: You should be targeting Python 3
wherever possible (with the ‘python3’ command).
Since you're not in this case – and you are specifically testing Python
2 features –
40 matches
Mail list logo