Python Brasil[10]

2014-06-13 Thread Renato Oliveira
Hi all! My name is Renato Oliveira, I'm board member of Python Brazil Association and co-chair of the next Python Brasil Conference . This year the conf is taking place in Porto de Galinhas, Pernambuco (for ten times in a row elected the most

Re: Python's re module and genealogy problem

2014-06-13 Thread Dan Sommers
On Fri, 13 Jun 2014 17:17:06 +0200, BrJohan wrote: > Or to put the namevariants in some sequence of sets having elements > like: ("Kristina", "Christina", "Cristine", "Kristine") > Matching is then just applying the 'in' operator. That's definitely a better approach, for the reasons you mention

Re: tempfile.py", line 83, in once_lock = _allocate_lock() thread.error: can't allocat lock

2014-06-13 Thread Cameron Simpson
On 14Jun2014 01:40, SABARWAL, SHAL wrote: Appreciate any help in resolving/understanding following error. Very occasionally get following error. The error occurs once every 20 - 30 days. OS HP-UX 11.11 ### ERROR LISTNG # sem_init: Device busy [...]

parsley parsing question, how to make a variable grammar

2014-06-13 Thread Eric S. Johansson
In my quest for making speech friendly applications, I've developed a very simple domain specific language/notation that works well. I'm using parsley which is a great tool for writing parsers especially simple ones like the one I need. However, I've come across a problem that I don't know how

Re: C-API proper initialization and deallocation of subclasses

2014-06-13 Thread ptb
While there doesn't appear to be too much interest in this question I thought I would post the solution. I had to modify shoddy by adding the proper flags and clear/traverse methods such to ensure that cyclic garbage collection was properly handled. I'm not quite sure why I had to do this sinc

Re: Python's re module and genealogy problem

2014-06-13 Thread Peter Otten
BrJohan wrote: > On 11/06/2014 14:23, BrJohan wrote: >> For some genealogical purposes I consider using Python's re module. >> >> Rather many names can be spelled in a number of similar ways, and in >> order to match names even if they are spelled differently, I will build >> regular expressions,

Re: Question about asyncio

2014-06-13 Thread Ian Kelly
On Fri, Jun 13, 2014 at 5:42 AM, Frank Millman wrote: > Now I want to use the functionality of asyncio by using a 'yield from' to > suspend the currently executing function at a particular point while it > waits for some information. I find that adding 'yield from' turns the > function into a gene

Re: Python's re module and genealogy problem

2014-06-13 Thread BrJohan
On 11/06/2014 14:23, BrJohan wrote: For some genealogical purposes I consider using Python's re module. Rather many names can be spelled in a number of similar ways, and in order to match names even if they are spelled differently, I will build regular expressions, each of which is supposed to m

Re: OT: This Swift thing

2014-06-13 Thread Roy Smith
In article <5399019e$0$29988$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > On Wed, 11 Jun 2014 08:48:36 -0400, Roy Smith wrote: > > > In article <53984cd2$0$29988$c3e8da3$54964...@news.astraweb.com>, > > Steven D'Aprano wrote: > > > >> Yes, technically water-cooled engines ar

Announcing the PyconUK Education Track

2014-06-13 Thread Tim Golden
If you're UK-based and aren't following the python-uk mailing list -- well, why aren't you? But, just in case, we're announcing the Education Track at this year's PyCon UK. See here for details: http://pyconuk.org/education/ If you're a teacher in the UK, or if you know any teachers here, this is

Re: Asymmetry in globals __getitem__/__setitem__

2014-06-13 Thread Marko Rauhamaa
Paul Sokolovsky : > And people should decide what they really want - fast language which > can stand against the competition, or language with dynamicity and > reflection capabilities beyond any practical need. I make first choice > any time. I'm in the latter camp, absolutely, except that I have

Question about asyncio

2014-06-13 Thread Frank Millman
Hi all I am trying to get to grips with asyncio, but I don't know if I am doing it right. I have an app that listens for http connections and sends responses. I had it working with cherrypy, which uses threading. Now I am trying to convert it to asyncio, using a package called aiohttp. I got

Re: Asymmetry in globals __getitem__/__setitem__

2014-06-13 Thread Paul Sokolovsky
Hello, On Fri, 13 Jun 2014 12:53:54 +0200 Peter Otten <__pete...@web.de> wrote: [] > > exec(fun.__code__, {}, Namespace()) > > > > > > Neither __getitem__ nor __setitem__ seem to be called on the local > > variables. > > Accessing fun.__code__ is clever, but unfortunately the compiler > produ

Re: Asymmetry in globals __getitem__/__setitem__

2014-06-13 Thread Peter Otten
rob...@robertlehmann.de wrote: > On Friday, June 13, 2014 8:07:45 AM UTC+2, Marko Rauhamaa wrote: >> >> The documentation is a bit vague about it: >> >>If only globals is provided, it must be a dictionary, which will be >>used for both the global and the local variables. If globals and >

Re: Asymmetry in globals __getitem__/__setitem__

2014-06-13 Thread robert
On Friday, June 13, 2014 8:07:45 AM UTC+2, Marko Rauhamaa wrote: > > The documentation is a bit vague about it: > >If only globals is provided, it must be a dictionary, which will be >used for both the global and the local variables. If globals and >locals are given, they are used for

Re: what is the location of erpnext database?

2014-06-13 Thread alister
On Fri, 13 Jun 2014 02:16:13 -0700, satishguptajaipur wrote: > I was thinking of connecting the database to access for some custom > reports. > What is the location of erpnext database? > > Regards Satish How on earth should we know? It is your database server you should know. -- If you're c

what is the location of erpnext database?

2014-06-13 Thread satishguptajaipur
I was thinking of connecting the database to access for some custom reports. What is the location of erpnext database? Regards Satish -- https://mail.python.org/mailman/listinfo/python-list

Re: http://bugs.python.org/issue19495 timeit enhancement

2014-06-13 Thread Mark Lawrence
On 13/06/2014 01:44, Steven D'Aprano wrote: On Fri, 13 Jun 2014 00:35:43 +0100, Mark Lawrence wrote: The request is for a class within timeit that allows you to test code inside a with block. It strikes me as being useful but there's only one response on the issue, albeit a positive one. If o