pypi mirror

2011-05-19 Thread Slafs
Hi there. I would like to make a local mirror of some packages that are on pypi. What options do You recommend ? I am leaning towards z3c.pypimirror because it was kind of first on my google search results. Regards SÅ‚awek -- http://mail.python.org/mailman/listinfo/python-list

Re: itertools.groupby usage to get structured data

2011-02-05 Thread Slafs
On 5 Lut, 05:58, Paul Rubin no.em...@nospam.invalid wrote: Slafs slaf...@gmail.com writes: What i want to have is: a big nested dictionary with 'g1' values as 1st level keys and a dictionary of aggregates and subgroups in it I was looking for a solution that would let me do that kind

itertools.groupby usage to get structured data

2011-02-04 Thread Slafs
Hi there! I'm having trouble to wrap my brain around this kind of problem: What I have : 1) list of dicts 2) list of keys that i would like to be my grouping arguments of elements from 1) 3) list of keys that i would like do aggregation on the elements of 1) with some function e.g. sum

reStructuredText format a part of a word

2010-06-25 Thread Slafs
Hi there! Is it possible to format a word using reStructuredText in a way that only a part of it is formatted (e.g. in bold)? I would like to do something like this: my l****ng word where all the os are in bold but this doesn't work with rst2html Regards --

Re: reStructuredText format a part of a word

2010-06-25 Thread Slafs
On 25 Cze, 14:06, Thomas Jollans tho...@jollans.com wrote: On 06/25/2010 01:56 PM, Slafs wrote: Hi there! Is it possible to format a word using reStructuredText in a way that only a part of it is formatted (e.g. in bold)? I would like to do something like this: my l****ng word

Re: XML root node attributes

2009-11-18 Thread Slafs
...@behnel.de wrote: Slafs, 17.11.2009 15:19: I'm little confused about adding attributes to the root node when creating an XML document. Can I do this using minidom or something else. Yes, you /can/, but you /should/ use something else. I can't find anything that would fit my needs. i would

XML root node attributes

2009-11-17 Thread Slafs
Hi I'm little confused about adding attributes to the root node when creating an XML document. Can I do this using minidom or something else. I can't find anything that would fit my needs. i would like to have something like this: ?xml ... ? root a=v b=v2 c=v3 d ... /d /root Please

cx Oracle privileges

2009-02-19 Thread Slafs
Hello On my Debian server I'm using cx Oracle 5.1 (installation from a package made from rpm by alien) with Python 2.5.2 and Oracle Instant Client 10.2.0.4.0. Installation went well but simple test such as connecting to the db shows that only user root can make a connection to a database, but any

yacc statement recognition

2009-01-01 Thread Slafs
Hi ALL! I have to write in yacc an acceptor of files with lines matching this regexp: '[0-9],[0-9]' and I don't know what I am doing wrong beacuse this: tokens = ( 'NUMBER', ) literals = [','] t_NUMBER = r'\d' ... def p_statement_exp(p): '''statement : NUMBER ',' NUMBER