On 18/09/12 16:02:02, Wanderer wrote:
> On Monday, September 17, 2012 7:43:06 PM UTC-4, Martin De Kauwe wrote:
>> On Tuesday, September 18, 2012 8:31:09 AM UTC+10, Wanderer wrote:
>>> I need to divide a 512x512 image array with the first horizontal
>>> and vertical division 49 pixels in. Then every
http://goo.gl/lCAUy - "Chinese Flashcards with Pictures" is an iPhone app that
will help you learn Chinese (Mandarin) faster by using flashcards with pictures
(learn over 300 most commonly used words in the English / Chinese language from
A to Z), thanks.
--
http://mail.python.org/mailman/listi
It's been several years since I announced this page the first time, so
I feel like it's okay to announce it again, possibly introducing a few
new people to Python's elegance and simplicity.
This is my attempt to teach Python to programmers who have experience
in other languages, using gentle immer
> I'm converting windows bat files little by little to Python 3 as I find time
> and learn Python.
> The most efficient method for some lines is to call Python like:
> python -c "import sys; sys.exit(3)"
>
> How do I "indent" if I have something like:
> if (sR=='Cope'): sys.exit(1) elif (sR=='Perfo
On Tue, 18 Sep 2012 21:38:19 -0400, Terry Reedy wrote:
> On 9/18/2012 5:51 PM, Thomas Jollans wrote:
>> On 09/18/2012 10:50 PM, weissman.m...@gmail.com wrote:
>>> Well there's wired stuff like this:
>>>
>>> In [1]: locals()["x"] = 5
>>>
>>> In [2]: print x
>>> 5
>>>
>>>
>> No, there isn't. Modifyi
On Thu, Sep 13, 2012 at 09:00:19AM -0700, andrea crotti wrote:
> I have to give a couple of Python presentations in the next weeks, and
> I'm still thinking what is the best approach.
>
> In one presentation for example I will present decorators and context
> managers, and my biggest doubt is how
On 9/18/2012 5:51 PM, Thomas Jollans wrote:
On 09/18/2012 10:50 PM, weissman.m...@gmail.com wrote:
Well there's wired stuff like this:
In [1]: locals()["x"] = 5
In [2]: print x
5
No, there isn't. Modifying the dictionary returned by locals() has no
effect.
Last time I tried it, it does wi
On 09/18/2012 08:47 PM, Nathan Spicer wrote:
> -- Forwarded message --
> From: Nathan Spicer
> Date: Tue, Sep 18, 2012 at 8:32 PM
> Subject: Programming Issues
> To: webmas...@python.org
>
>
> Hello,
>
> My name is Nathan Spicer. I'm taking a computer programming class using
> pyth
On Tue, 18 Sep 2012 12:17:40 -0400, Dwight Hutto wrote:
> You can call me David. I go by my middle name.
If you want to be known as David, why do you give your name as Dwight? In
your email client or newsreader, set your name as David and attributions
will be to David, and people will know to c
-- Forwarded message --
From: Nathan Spicer
Date: Tue, Sep 18, 2012 at 8:32 PM
Subject: Programming Issues
To: webmas...@python.org
Hello,
My name is Nathan Spicer. I'm taking a computer programming class using
python. I have a project that's due in a week and I'm not certain ho
On 18/09/2012 21:40, Dwight Hutto wrote:
You're most often going to be addressed by the name that's given in
your post headers. In this case "David" has been reduced to an
initial, and is visible only in your email address, whereas "Dwight"
My sig says David, but it was just to let him know he
Terry Reedy於 2012年9月15日星期六UTC+8上午4時40分32秒寫道:
> 2nd try, hit send button by mistake before
>
>
>
> On 9/14/2012 5:28 AM, Jean-Michel Pichavant wrote:
>
>
>
> > Decorators are very popular so I kinda already know that the fault is
>
> > mine. Now to the reason why I have troubles writing them,
On 18/09/2012 21:10, porkfried wrote:
I want to define a 'with' command that makes entries
in dictionary available within the local scope, and
stores new local variables into that dictionary. The
original scope should be restored on exit, and called
functions should not see anything special. Ca
On 09/18/2012 10:50 PM, weissman.m...@gmail.com wrote:
> Well there's wired stuff like this:
>
> In [1]: locals()["x"] = 5
>
> In [2]: print x
> 5
>
No, there isn't. Modifying the dictionary returned by locals() has no
effect.
>>> def f ():
... locals()["x"] = 1
... return x
...
>>> f
On Tuesday, September 18, 2012 4:10:32 PM UTC-4, porkfried wrote:
> I want to define a 'with' command that makes entries
>
> in dictionary available within the local scope, and
>
> stores new local variables into that dictionary. The
>
> original scope should be restored on exit, and called
>
On 09/18/2012 10:10 PM, porkfried wrote:
> I want to define a 'with' command that makes entries
> in dictionary available within the local scope, and
> stores new local variables into that dictionary. The
> original scope should be restored on exit, and called
> functions should not see anything s
> You're most often going to be addressed by the name that's given in
> your post headers. In this case "David" has been reduced to an
> initial, and is visible only in your email address, whereas "Dwight"
My sig says David, but it was just to let him know he can call me by
my used name.
--
Bes
I want to define a 'with' command that makes entries
in dictionary available within the local scope, and
stores new local variables into that dictionary. The
original scope should be restored on exit, and called
functions should not see anything special. Can I do this?
my_dict = dict(a=1, b=2)
w
On Wednesday, September 19, 2012 12:40:00 AM UTC+5:30, Mark Lawrence wrote:
> On 18/09/2012 19:35, subhabangal...@gmail.com wrote:
>
> > Dear Group,
>
> > If anyone of the learned members can kindly help with a HMM/CRF based
> > chunker on NLTK.
>
> >
>
> > Regards,
>
> > Subhabrata.
>
> >
>
On 18/09/2012 19:35, subhabangal...@gmail.com wrote:
Dear Group,
If anyone of the learned members can kindly help with a HMM/CRF based chunker
on NLTK.
Regards,
Subhabrata.
Certainly but how do you intend paying us? :)
An alternative approach is to provide us with an idea of what you've
re
On 9/18/2012 9:31 AM, Laszlo Nagy wrote:
capable of that. Another requirement would be: easy installation under
unix and windows, good multilingual support.
By using 3.3, your Python string manipulations will act the same on all
platforms, even when using extended plane (non-BMP) characters.
Jean-Michel Pichavant writes:
> - Original Message -
>> Jean-Michel Pichavant wrote:
> [snip]
>> One minor note, the style of decorator you are using loses the
>> docstring
>> (at least) of the original function. I would add the
>> @functools.wraps(func)
>> decorator inside your decorator
Le mardi 18 septembre 2012 15:31:52 UTC+2, Laszlo Nagy a écrit :
> > I understood, you have Python on a platform and starting
>
> > from this you wish to create pdf files.
>
> > Obviously, embedding "TeX" is practically a no solution,
>
> > although distibuting a portable standalone TeX distribu
On Wed, Sep 19, 2012 at 2:17 AM, Dwight Hutto wrote:
>>
>> You're right, my apologies. Dwight Hutto is the one I plonked.
> You can call me David. I go by my middle name.
You're most often going to be addressed by the name that's given in
your post headers. In this case "David" has been reduced
>
> You're right, my apologies. Dwight Hutto is the one I plonked.
You can call me David. I go by my middle name.
And it seem to me I made some valid points about a few simple trimming
of postings, that didn't seem necessary in the context of a small
quick conversation.
--
http://mail.python.org
>>> sufficient context, you've left me feeling puzzled. Is there a guideline for
>>> this in basic netiquette?
>>
www.woodgate.org/FAQs/netiquette.html
--
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Sep 18, 2012 at 11:12 AM, Ethan Furman wrote:
> Neil Hodgson wrote:
>>
>> Ethan Furman:
>>>
>>> *plonk*
>>
>>
>>I can't work out who you are plonking. While more than one of the
>> posters on this thread seem worthy of a good plonk, by not including
>> sufficient context, you've left m
Neil Hodgson wrote:
Ethan Furman:
*plonk*
I can't work out who you are plonking. While more than one of the
posters on this thread seem worthy of a good plonk, by not including
sufficient context, you've left me feeling puzzled. Is there a guideline
for this in basic netiquette?
You're
Chris Angelico於 2012年9月18日星期二UTC+8下午9時25分04秒寫道:
> On Tue, Sep 18, 2012 at 11:19 PM, Neil Cerutti wrote:
>
> > On 2012-09-14, Chris Angelico wrote:
>
> >> But then again, who actually ever needs fibonacci numbers?
>
> >
>
> > If it should happen that your question is not facetious:
>
> >
>
>
Hello everyone and,
especially all python user from Belgium.
I'm proud to announce the creation of a User Group around Python for the
Belgium community.
It has been baptized pyBug which stands for Python Belgian User Group.
We're just starting out and will need all the help we can get , even i
On Monday, September 17, 2012 7:43:06 PM UTC-4, Martin De Kauwe wrote:
> On Tuesday, September 18, 2012 8:31:09 AM UTC+10, Wanderer wrote:
>
> > I need to divide a 512x512 image array with the first horizontal and
> > vertical division 49 pixels in. Then every 59 pixels in after that. hsplit
> >
I have a similar problem, something which I've never quite understood
about subprocess...
Suppose I do this:
proc = subprocess.Popen(['ls', '-lR'], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
now I created a process, which has a PID, but it's not running apparently...
It only seems to run whe
I understood, you have Python on a platform and starting
from this you wish to create pdf files.
Obviously, embedding "TeX" is practically a no solution,
although distibuting a portable standalone TeX distribution
is a perfectly viable solution, especially on Windows!
To "I wanted to learn TeX
On Tue, Sep 18, 2012 at 11:19 PM, Neil Cerutti wrote:
> On 2012-09-14, Chris Angelico wrote:
>> But then again, who actually ever needs fibonacci numbers?
>
> If it should happen that your question is not facetious:
>
> http://en.wikipedia.org/wiki/Fibonacci_number#Applications
It wasn't entirel
On 2012-09-14, Chris Angelico wrote:
> But then again, who actually ever needs fibonacci numbers?
If it should happen that your question is not facetious:
http://en.wikipedia.org/wiki/Fibonacci_number#Applications
--
Neil Cerutti
--
http://mail.python.org/mailman/listinfo/python-list
Thank you all. Roy Smith gets the most thanks, though he didn't answer
my general question -- he showed me how to look at that specific
structure differently. Terry Reedy might get thanks for her idea if I
can ever figure the correct escape sequences that will make both windows
and the Python i
On 2012-09-14, Xavier Combelle wrote:
> Le 14/09/2012 12:56, Dwight Hutto a ?crit :
>> service_num_list = [num for num in range(0,5)]
>> for service_num in service_num_list:
>> eval("web_service_call%i(%i)" % (service_num,service_num))
>>
>>
> service_num_list = [num for num in range(0,5)]
s
Joel Goldstick writes:
> On Tue, Sep 18, 2012 at 1:03 AM, Terry Reedy wrote:
> > On 9/17/2012 10:03 PM, Ben Finney wrote:
> >> Where can I find a standard implementation of the docstring parsing
> >> and splitting algorithm from PEP 257?
>
> Do you know about pydoc? I haven't looked at its sourc
Am 15.09.2012 16:18 schrieb 8 Dihedral:
The concept of decorators is just a mapping from a function
... or class ...
> to another function
... or any other object ...
> with the same name in python.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
I've installed scrapy and gotten a basic set-up working, and I have a
few odd questions that I haven't been able to find in the
documentation.
I plan to run it occasionally from the command line or as a cron job,
to scrape new content from a few sites. To avoid duplication, I have
in memory two s
Le mardi 18 septembre 2012 11:04:19 UTC+2, Laszlo Nagy a écrit :
> > A big yes and it is very easy. I assume you know how
>
> > to write a plain text file with Python :-).
>
> >
>
> > Use your Python to generate a .tex file and let it compile
>
> > with one of the pdf TeX engines.
>
> >
>
> >
Incidentally and I know this is region specific, but what's the average
salary approximately in the US/UK for a Senior Python programmer?
ITJobsWatch in the UK says - http://www.itjobswatch.co.uk/jobs/uk/python.do
Is that about right?
Jon.
On 18 September 2012 08:40, Paul Rudin wrote:
> nithi
On Tue, Sep 18, 2012 at 1:03 AM, Terry Reedy wrote:
> On 9/17/2012 10:03 PM, Ben Finney wrote:
>>
>> Howdy all,
>>
>> Where can I find a standard implementation of the docstring parsing and
>> splitting algorithm from PEP 257?
Do you know about pydoc? I haven't looked at its source, but since i
- Original Message -
> Want to work so:
>
> import sys
> class Foo(object):
> def __getattr__(self, t):
>print 'use __getattr__ - ', t
>return type(t, (object,), {})
> def funct1(self): pass
> def funct2(self): pass
>
> sys.modules[__name__] = Foo()
> ttt('yy')
A big yes and it is very easy. I assume you know how
to write a plain text file with Python :-).
Use your Python to generate a .tex file and let it compile
with one of the pdf TeX engines.
Potential problems:
- It requires a TeX installation (a no problem).
- Of course I requires some TeX know
ANNOUNCEMENT
mxODBC Zope/Plone Database Adapter
Version 2.1.0
for Zope and the Plone CMS
Available for Plone 4.0, 4.1 and 4.2,
On Tue, Sep 18, 2012 at 10:26 AM, Dhananjay wrote:
> Dear all,
>
> I am trying to use multiprocessing module.
> I have 5 functions and 2000 input files.
>
> First, I want to make sure that these 5 functions execute one after the
> other.
> Is there any way that I could queue these 5 functions with
nithinm...@gmail.com writes:
> ...Must be an export in this language...
Are you hiring proof readers as well? :)
--
http://mail.python.org/mailman/listinfo/python-list
Want to work so:
import sys
class Foo(object):
def __getattr__(self, t):
print 'use __getattr__ - ', t
return type(t, (object,), {})
def funct1(self): pass
def funct2(self): pass
sys.modules[__name__] = Foo()
ttt('yy')
name 'ttt' is not defined.
__getattr__ not work ((
Le lundi 17 septembre 2012 10:48:30 UTC+2, Laszlo Nagy a écrit :
> Reportlab is on the wall of shame. http://python3wos.appspot.com/
>
>
>
> Is there other ways to create PDF files from python 3? There is pyPdf. I
>
> haven't tried it yet, but it seem that it is a low level library. It
>
> d
50 matches
Mail list logo