Re: Import question

2010-02-08 Thread Andrew Degtiariov
2010/2/6 Gabriel Genellina > En Fri, 05 Feb 2010 13:21:47 -0300, Andrew Degtiariov > escribió: > > > Code of our project has split into several packages and we deploy the >> project using buildout. >> All worked fine until I need to dynamically inspect python modul

Re: Import question

2010-02-08 Thread Andrew Degtiariov
. And we are using buildout so the omelette might help me. Link [2] very interesting. Thank you, Gabrial. -- Andrew Degtiariov DA-RIPE -- http://mail.python.org/mailman/listinfo/python-list

Re: Artificial Neural Networks recommendation

2010-02-24 Thread Andrew Davison
for biologically-realistic neural networks (for some value of realistic), aka neuronal networks, so I guess you can rule them out (similar tools that you might come across are NEST, NEURON, PCSIM). Cheers, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Good Intermediate Tutorials

2010-04-03 Thread Andrew Ellis
t; http://mail.python.org/mailman/listinfo/python-list > > -- Andrew http://blog.psych0tik.net -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE GUI not working

2010-12-26 Thread Grant Andrew
On Sun, Dec 26, 2010 at 4:33 PM, Python Programming wrote: > Hello all, > > Newbie here so go easy on me. I've been trying to get the IDLE GUI to > work on my machine, but have been unsuccessful so far. I have an IBM > Thinkpad running Windows XP and it has an older version of Python > running (

Cast to a method pointer in ctypes

2011-01-31 Thread Andrew Evans
How can I cast to a method pointer in ctypes. for example this in C int (*func)(); func = (int (*)()) expl; (int)(*func)(); How can I do this in ctypes using Python? I couldn't find the info I needed to be able to do this *cheers -- http://mail.python.org/mailman/listinfo/python-list

Confused by slash/escape in regexp

2010-04-11 Thread andrew cooke
nformation. >>> from re import compile >>> p1 = compile('a\x62c') >>> p1.match('abc') <_sre.SRE_Match object at 0x7f4e8f93d578> >>> p2 = compile('a\\x62c') >>> p2.match('abc') <_sre.SRE_Match object at 0x

Re: Confused by slash/escape in regexp

2010-04-11 Thread andrew cooke
special character to regex: > """ > \b       Matches the empty string, but only at the start or end of a word. > """ ah, brilliant! yes. thank-you very much! andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Confused by slash/escape in regexp

2010-04-11 Thread andrew cooke
pear as literal strings. It's weird, because what's the point of Python would do it for you anyway, but it seems to be the correct behaviour. Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Parser

2010-05-03 Thread andrew cooke
http://www.acooke.org/lepl/ I think it's easy to use, and other people have said the documentation is fairly good. It doesn't have a GUI like Antlr, but it is recursive descent rather and completely implemented in Python, which (I think) makes it easier to understand and extend. Cheers, An

Ann: Validating Emails and HTTP URLs in Python

2010-05-03 Thread andrew cooke
es to regular expressions wherever possible, the library is quite fast - in testing I was seeing about 1ms needed to validate a URL. Please bear in mind that this is the very first release of this module, so it may have some bugs... If you find any problems contact me and I'll fix them ASAP. Than

Re: Ann: Validating Emails and HTTP URLs in Python

2010-05-03 Thread andrew cooke
les in RFC 3696, and with a few extra ones that test particular issues, but when I looked around I couldn't find any public, obvious list of URLs for general testing. Could I use your list? Also, same for emails... Cheers, Andrew Cheers, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Help with Regexp, \b

2010-05-29 Thread andrew cooke
t \b matches a space at the start or end of a word, and that "word" is a word - http://docs.python.org/library/re.html What am I missing here? I suspect I am doing something very stupid. Thanks, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Regexp, \b

2010-05-29 Thread andrew cooke
On May 29, 11:24 am, Duncan Booth wrote: > andrew cooke wrote: > > Please can someone explain why the following fails: > > >         from re import compile > > >         p = compile(r'\bword\b') > >         m = p.match(' word ') > >

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Andrew Philpot
On 06/11/10 08:48, Elena wrote: On 10 Giu, 23:33, bolega wrote: I mean ordinary people, who may want to do things with their computers for scripting, tasks that python can do... Lisp is not for ordinary people, Python is. Python is for ordinary people. Lisp is for extraordinary people. I be

Another Regexp Question

2010-07-05 Thread andrew cooke
ert compile('(a)b(?<=b)(c)').match('abc') assert not compile('(a)b(?<=c)(c)').match('abc') assert not compile('(a)b(?=b)(c)').match('abc') assert compile('(a)b(?=c)(c)').match('abc') in which lookback does indeed lookback (note the asymmetry, while the first examples were symmetrical). What am I missing this time? :o( Thanks, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Another Regexp Question

2010-07-05 Thread andrew cooke
On Jul 5, 8:56 pm, MRAB wrote: > andrew cooke wrote: > > What am I missing this time? :o( > Nothing. It's a bug. :-( Sweet :o) Thanks - do you want me to raise an issue or will you? Cheers, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Another Regexp Question

2010-07-06 Thread andrew cooke
http://bugs.python.org/issue9179 On Jul 5, 9:38 pm, MRAB wrote: > andrew cooke wrote: > > On Jul 5, 8:56 pm, MRAB wrote: > >> andrew cooke wrote: > >>> What am I missing this time? :o( > >> Nothing. It's a bug. :-( > > > Sweet :o) > &

Python source checkout problem

2010-07-15 Thread Andrew Lucas
Redirect) in response to OPTIONS request for 'http://svn.python.org/projects/python/ trunk' " Any ideas what I am doing wrong? Thanks, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Problem Creating NewLines in PDF

2010-08-18 Thread Andrew Evans
Hello I am generating a PDF in web2py but its ignoring my line breaks. randname = random.randrange(1, 10001) styles = getSampleStyleSheet() title = "My Title" doc = SimpleDocTemplate("primer.pdf") story = [] story.append(Paragraph(strftime("%a, %d %b %Y %H:

Re: Problem Creating NewLines in PDF

2010-08-18 Thread Andrew Evans
Hello yes This line doesn't seem to want to accept a list for some strange reason story.append(Paragraph(str(result_list), para)) *cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem Creating NewLines in PDF

2010-08-18 Thread Andrew Evans
Hello ty for the fast replies This is the string I am using for the PDF I was able to create new lines using the HTML "br" tag which is what I wanted a method to create new lines search_str="Position: (%d) - Keyword: (%s) - Domain (%s) " % (idx+1, target_keyword, session.target_domain)

Re: Unsupported Format Character '&' (0x26)

2010-08-18 Thread Andrew Evans
nvm I got it by adding s and d respectively after each value eg %(query)s thank you all On Wed, Aug 18, 2010 at 4:35 PM, Andrew Evans wrote: > I get an error message "Unsupported Format Character '&' (0x26)" I narrowed > it down to these two variab

Unsupported Format Character '&' (0x26)

2010-08-19 Thread Andrew Evans
I get an error message "Unsupported Format Character '&' (0x26)" I narrowed it down to these two variables any idea how to fix it? SEARCH_URL_0 = " http://search.yahoo.com/search;_ylt=A0oGdEf1XGxMJRoAUdml87UF;_ylc=X1MDMjE0MjQ3ODk0OARfcgMyBGZyA3NmcARuX2dwcwMxMARvcmlnaW4Dc3ljBHF1ZXJ5A3Rlc3QEc2FvA

Python module Code returns empty list any ideas how to fix

2010-08-19 Thread Andrew Evans
Hello I am trying to modify Python xgoogle module to use yahoo I have hit a road block where I receive no error messages the code I use to test just returns an empty list. and I don't know how to trouble shoot it the module code is here http://pastebin.com/iTibRs1R and the code I am using to t

Lexical scope: converting Perl to Python

2009-06-12 Thread Andrew Savige
I'd like to convert the following Perl code to Python:  use strict;  {    my %private_hash = ( A=>42, B=>69 );    sub public_fn { my $param = shift; return $private_hash{$param};    }  }  print public_fn("A");    # good:  prints 42  my $x = $private_hash{"A"};  # error: good, hash n

Re: itertools.intersect?

2009-06-15 Thread Andrew Henshaw
"Raymond Hettinger" wrote in message news:fb1feeeb-c430-4ca7-9e76-fea02ea3e...@v23g2000pro.googlegroups.com... > [David Wilson] >> The problem is simple: given one or more ordered sequences, return >> only the objects that appear in each sequence, without reading the >> whole set into memory. Th

Suppressing Implicit Chained Exceptions (Python 3.0)

2009-07-01 Thread andrew cooke
uot; in the PEP described above. Thanks, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Suppressing Implicit Chained Exceptions (Python 3.0)

2009-07-02 Thread andrew cooke
David Bolen wrote: > "andrew cooke" writes: > >> However, when printed via format_exc(), this new exception still has the old exception attached via the mechanism described at >> http://www.python.org/dev/peps/pep-3134/ (this is Python 3.0). > > If you're

Re: finding most common elements between thousands of multiple arrays.

2009-07-07 Thread Andrew Henshaw
"mclovin" wrote in message news:[email protected]... > Currently I need to find the most common elements in thousands of > arrays within one large array (arround 2 million instances with ~70k > unique elements) > > so I set up a dictionary to handle

Re: If Scheme is so good why MIT drops it?

2009-07-26 Thread Andrew Reilly
easier to master. Isn't it widely accepted that the number of people who have mastered C++ is about five? All of the rest of us just struggle... [I know enough of C++ to avoid it whenever I can, and to not use it for my own projects. I'm happy with a mix of C, python and lisp(or scheme).] -- Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing Binary Structures; Is there a better way / What is your way?

2009-08-07 Thread andrew cooke
ns. disclaimer: this is quite new and i don't know of anyone that actually uses it; it is also Python3 only (because it uses bytes()). andrew -- http://mail.python.org/mailman/listinfo/python-list

Frustrated with scopes

2009-08-11 Thread andrew cooke
e = source __join = join [...] I can get something working by bouncing through global values, but it looks awful and I think it's a source of a bug due too values being redefined. Thanks, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Frustrated with scopes

2009-08-11 Thread andrew cooke
correction: "source" and "join" are undefined. Sorry, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Frustrated with scopes

2009-08-12 Thread andrew cooke
On Aug 12, 1:51 am, James Stroud wrote: > andrew cooke wrote: > > Is there a way to make this work (currently scope and join are > > undefined at runtime when the inner class attributes are defined): > > > class _StreamFactory(object): > > >     @staticmethod &

Re: Frustrated with scopes

2009-08-12 Thread andrew cooke
On Aug 12, 7:49 am, andrew cooke wrote: > On Aug 12, 1:51 am, James Stroud > wrote: > > > > > andrew cooke wrote: > > > Is there a way to make this work (currently scope and join are > > > undefined at runtime when the inner class attributes are define

Re: Frustrated with scopes

2009-08-12 Thread andrew cooke
join >         return Line() > > fact = _StreamFactory() > obj = fact(43, "name.txt") > print obj Ah! OK, thanks for that. I need to look at this again. I'll post again if necessary, but if it works for you then I clearly don't understand what the issue is myself. Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Mapping in python? Transforming shapefile so that basemap can read them?

2009-09-12 Thread Andrew MacIntyre
ls.org/) - FWTools (http://fwtools.maptools.org/) Shapefiles, except for the coordinate system support included in ESRI's more recent products, are documented in a publicly accessible PDF which googling for "ESRI shapefile" should find. -- ----

python decimals

2009-09-14 Thread Andrew Svetlov
Is there some kind of python binding for decNumber library? Standard decimal.Decimal is good enough, but very slow. My current project toughly coupled with 'currency' operations and we have performance problems related to decimal calculations. >From my perspective decNumber is fast and has well wid

Re: python decimals

2009-09-15 Thread Andrew Svetlov
It only reflects the fact what comp.lang.python replicated by several web sites. Unfortunately looks like there are no link to library implements that : ( On Sep 15, 5:17 pm, Terry Reedy wrote: > Mark Dickinson wrote: > > On Sep 15, 2:27 am, Andrew Svetlov wrote: > >> Is

Re: python decimals

2009-09-16 Thread Andrew Svetlov
ource. Perhaps I will start to work on it about end of next week - it's high priority task for my company. On Sep 16, 4:49 am, Mark Dickinson wrote: > On Sep 16, 1:35 am, Andrew Svetlov wrote: > > > It only reflects the fact what comp.lang.python replicated by several > > web si

Re: How do I begin debugging a python memory leak?

2009-09-16 Thread Andrew Svetlov
guppy-pe On Sep 16, 8:10 pm, Matthew Wilson wrote: > I have a web app based on TurboGears 1.0.  In the last few days, as > traffic and usage has picked up, I noticed that the app went from using > 4% of my total memory all the way up to 50%. > > I suspect I'm loading data from the database and som

explicit call to __init__(self) in subclass needed?

2009-09-17 Thread Andrew MacKeith
? Is this behavior specific to the str type, or do base classes not need to be explicitly initialized? Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: explicit call to __init__(self) in subclass needed?

2009-09-18 Thread Andrew MacKeith
Bruno Desthuilliers wrote: Andrew MacKeith a écrit : I create a class like this in Python-2.6 >>> class Y(str): ... def __init__(self, s): ... pass ... >>> y = Y('giraffe') >>> y 'giraffe' >>> How does the base class (s

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
oject you might be better interfacing to a compiled parser (lepl has memoisation, so should scale quite well, but it's not something i've looked at in detail yet). andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
On Sep 20, 8:11 am, Peng Yu wrote: > On Sun, Sep 20, 2009 at 6:50 AM, andrew cooke wrote: > > On Sep 19, 9:34 pm, Peng Yu wrote: > >> On Sep 19, 6:05 pm, Robert Kern wrote: > >> >http://nedbatchelder.com/text/python-parsers.html > > >> This is more a

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
better could well be more complex and slower on small texts. andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
One word of warning - the documentation for that format says at the beginning that it is compressed in some way. I am not sure if that means within some program, or on disk. But most parsers will not be much use with a compressed file - you will need to uncompress it first. -- http://mail.pytho

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
find the end of line); (4) the community for support is small. so i would suggest asking on the pyparsing list for advice on using that with large data files (you are getting closer to the point where i would recommend lepl - but of course i am biased as i wrote it). andrew ps is there somewhere can

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
ckage that is already in python. will that help? alternatively, perhaps plex - http://www.cosc.canterbury.ac.nz/greg.ewing/python/Plex/ - that is pure python, but greg ewing is a good programmer and he says on that page it is as fast as possible for python, so it is probably going to be quite fas

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
imple format, so the case for any tool is marginal - i'm just exploring the options. andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
and it may have features (perhaps logging, or handling of quoted strings, for example) that will save you some work in the future. andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
On Sep 20, 9:12 am, andrew cooke wrote: > ps is there somewhere can download example files?  this would be > useful for my own testing.  thanks. i replied to a lot of your questions here; any chance you could reply to this one of mine? the wig format looks like it could be a good test fo

Re: Comparison of parsers in python?

2009-09-20 Thread andrew cooke
On Sep 20, 3:16 pm, Peng Yu wrote: > On Sun, Sep 20, 2009 at 1:35 PM, andrew cooke wrote: > > On Sep 20, 9:12 am, andrew cooke wrote: > >> ps is there somewhere can download example files?  this would be > >> useful for my own testing.  thanks. > > > i rep

Intercepting binding?

2009-09-23 Thread andrew cooke
some other (no doubt terribly hacky) approach. Even some idea of what to google for would be a help... Thanks, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Intercepting binding?

2009-09-23 Thread andrew cooke
For example, I assume it's possible to somehow access the dictionary for the current block, but I can't see how to do this after assignment. If I do it in the Foo constructor, for example, "a" will not yet be bound. On Sep 23, 8:15 pm, andrew cooke wrote: > This is a bit

Re: Intercepting binding?

2009-09-23 Thread andrew cooke
care about) is si,ple variables, and this is an "optional extra" to help the user, so it's OK if it only works sometimes. at the moment i'd be happy with any half-baked unreliable solution that is transparent... andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Intercepting binding?

2009-09-23 Thread andrew cooke
bject): def __rlshift__(self, name): try: raise Exception() except: locals = sys.exc_traceback.tb_frame.f_back.f_locals locals[name] = self if __name__ == '__main__': foo = Foo() 'a' << foo print(a) andrew -

Re: Intercepting binding?

2009-09-23 Thread andrew cooke
for the record, googling for "f_back.f_locals" reveals a wide variety of similar hacks and also a cleaner way to access the current frame: inspect.currentframe() -- http://mail.python.org/mailman/listinfo/python-list

Re: Intercepting binding?

2009-09-24 Thread andrew cooke
the with context is an excellent idea. thanks very much. andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Intercepting binding?

2009-09-24 Thread andrew cooke
ll come and ask you for it. That is not what I asked for here. But since we're all passing round unsolicited advice, here's some from me. Being an anal retentive will get you a long way in programming. Dotting the "i"s and crossing the "t"s is 99% of what it's all

Parsing error for ConfigParser

2010-09-23 Thread Andrew Z.
Is there a way to parse RealPlayer's realplayerrc in Python? I need to support Python 2.5 - 2.7 Example code import urllib2 import ConfigParser f = urllib2.urlopen('http://pastebin.com/download.php?i=N1AcUg3w') config = ConfigParser.RawConfigParser() config.readfp(f) Error Traceback (most rece

Starting Python in XP Pro

2010-10-16 Thread Grant Andrew
I'm a beginning user with some challenges. I have installed and uninstalled several versions with the same results - I can't get IDLE to work, nor can I associate .py files with Python. So I can get the interactive shell interface but nothing else. I'm currently running ActiveState 2.6. Any tho

Re: Starting Python in XP Pro

2010-10-16 Thread Grant Andrew
quot; This probably means that Tcl wasn't installed properly. I hope this helps. Thanks again for any help. Grant On Sat, Oct 16, 2010 at 6:30 PM, Dave Angel wrote: > On 2:59 PM, Grant Andrew wrote: > >> I'm a beginning user with some challenges. I have installed

Re: Starting Python in XP Pro

2010-10-19 Thread Grant Andrew
Oct 17, 2010 at 4:17 AM, Dave Angel wrote: > On 10/16/2010 11:27 PM, Grant Andrew wrote: > >> I hear that...God knows if I had a more complete question, I'd type it - >> basically, when I click the IDLE GUI icon from the Start Menu, there is a >> flash of a command p

Re: Starting Python in XP Pro

2010-10-19 Thread Grant Andrew
, all is well. Now I can get to the work of learning Python, instead of bleeding through the eyes. Thanks for all of the help!! Grant On Sun, Oct 17, 2010 at 12:12 PM, Dennis Lee Bieber wrote: > On Sat, 16 Oct 2010 21:27:11 -0600, Grant Andrew > declaimed the follow

panda, column access

2017-02-27 Thread Andrew Zyman
Hello, i'm trying to understand what is the difference between the below code. And how do i access the column's data without hardcoding the column name in such a way that i'll be able to convert it's values into the list of strings? I appreciate your help. Short version: colnames='hostname' da

panda, column access

2017-02-27 Thread Andrew Zyman
Hello, i'd appreciate an explanation about the differences in the code versions below. I'm trying to get the list of the strings out of the column and avoid hardcoding the column name. cat Data/2domain.csv hostname hostname1 hostname2 ... ... Working version(s): Python2.7: input_file = r'Data

Re: panda, column access

2017-02-27 Thread Andrew Zyman
On Monday, February 27, 2017 at 4:27:23 PM UTC-5, Pavol Lisy wrote: > On 2/27/17, Andrew Zyman wrote: > I think you meant: > colnames = ['hostname'] arh... Exactly. Now the rest is "unfolding". > What do you want is probably: > >>> data[colnames

list of the lists - append after search

2017-03-02 Thread Andrew Zyman
Hello, please advise. I'd like search and append the internal list in the list-of-the-lists. Example: ll =[ [a,1], [b,2], [c,3], [blah, 1000] ] i want to search for the internal [] based on the string field and, if matches, append that list with a value. if internal_list[0] == 'blah':

spam issue

2017-03-02 Thread Andrew Zyman
Why is this group have such an obscene number of spam posts ? I'm subscribed to a few other google groups and this is the only one that has this issue. -- https://mail.python.org/mailman/listinfo/python-list

Re: spam issue

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 1:39:54 PM UTC-5, Chris Angelico wrote: > On Fri, Mar 3, 2017 at 5:31 AM, Cholo Lennon wrote: > > Google groups act like a "web frontend" for nntp protocol (on which this > > group is based). I suppose Google doesn't filter spam messages in its > > interface. Try usin

Re: list of the lists - append after search

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: > Andrew Zyman wrote: > . > . > > End result: > > ll =[ [a,1], [b,2], [c,3], [blah, 1000, 'new value'] ] > > >>> outer = [["a", 1], ["b", 2], ["

Re: spam issue

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 2:28:04 PM UTC-5, [email protected] wrote: > On Thursday, March 2, 2017 at 4:08:44 PM UTC, Andrew Zyman wrote: > > Why is this group have such an obscene number of spam posts ? > > I'm subscribed to a few other google groups and this is the on

Re: list of the lists - append after search

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote: > Peter Otten <[email protected]> writes: > > > Andrew Zyman wrote: > > > >> On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: > >>> Andrew Zyman wrot

Re: list of the lists - append after search

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 3:31:36 PM UTC-5, Jussi Piitulainen wrote: > Andrew Zyman writes: > > > On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote: > >> Peter Otten <[email protected]> writes: > >> > >> > Andrew Zyman wro

Re: list of the lists - append after search

2017-03-03 Thread Andrew Zyman
On Thursday, March 2, 2017 at 3:53:25 PM UTC-5, Andrew Zyman wrote: > On Thursday, March 2, 2017 at 3:31:36 PM UTC-5, Jussi Piitulainen wrote: > > Andrew Zyman writes: > > > > > On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote: > > >> P

Passing parameters thru decorators

2017-04-12 Thread andrew . holway
return "" + fn() + "" return wrapped banana = Meow("foo", "bar") @banana.makebold("foobar") def hello(): return "hello world" print(hello()) Returns error: INIT ClassBasedDecoratorWithParams Traceback (most rece

FW: Python win 10 problem

2017-05-19 Thread Andrew Havalda
Sent from Mail for Windows 10 From: Havalda Andrew Sent: 2017. május 18., csütörtök 19:56 To: [email protected] Subject: Python win 10 problem Dear Python team, I have encountered a problem with Python 3.6 version, when I open IDLE it sais: "Subprocess startup error". I attach

Python subprocess error win 10

2017-05-19 Thread Havalda Andrew
would be grateful if you would help me solve this embarrassing problem. I look forward to hearing from you as soon as possible. Yours faithfully, Andrew Havalda -- https://mail.python.org/mailman/listinfo/python-list

data structure

2017-06-14 Thread Andrew Zyman
Hello, i wonder what would be a proper data structure for something with the following characteristics: id - number, obj[a..c] - objects of various classes the idea is to be able to update certain fields of these objects initially getting access to the record by ID something like this ( not wor

Re: data structure

2017-06-15 Thread Andrew Zyman
ill do for now. Thank you. On 15 Jun 2017 03:07, "Paul Barry" wrote: > Hi Andrew. > > You start by talking about a data structure, then show code that uses > "class". Not everything in Python needs to be in a class. > > I'd look at using a simple D

Proper architecture

2017-07-02 Thread Andrew Z
Hello, I'd appreciate your suggestions for a better approach to the following task. I have 2 files ( 2 classes). One (ClassA) has all logic related to the main workflow of the program. Another (DB), I like to offload all operations with a DB ( sql3 in this case). I'm trying to pass the connect

Re: Proper architecture

2017-07-02 Thread Andrew Zyman
Cameron, This is much more than I hoped for. >From quickly looking over - most your notes are perfectly on target. Allow sometime to digest and reply. Thank you very much! On 2 Jul 2017 8:14 p.m., "Cameron Simpson" wrote: > On 02Jul2017 11:02, Andrew Z wrote: > >

Re: Proper architecture

2017-07-05 Thread Andrew Zyman
r remarks have been accepted :) Thank you very much! On Sun, Jul 2, 2017 at 8:14 PM, Cameron Simpson wrote: > On 02Jul2017 11:02, Andrew Z wrote: > >> I'd appreciate your suggestions for a better approach to the following >> task. >> >> I have 2 files ( 2 class

Python3 : import

2017-07-07 Thread Andrew Z
this has bee driving me nutz for the past few hours. 2 modules are in the same directory. I want to be able to use them both: [code] [az@hp tst1]$ pwd /home/az/Dropbox/work/Prjs/tst1 [az@hp tst1]$ ls -l total 16 -rw-rw-r--. 1 az az 66 Jul 7 12:58 db.py -rw-rw-r--. 1 az az 182 Jul 7 15:54 uno.

Re: Python3 : import

2017-07-07 Thread Andrew Z
On Friday, July 7, 2017 at 4:00:51 PM UTC-4, Andrew Z wrote: > this has bee driving me nutz for the past few hours. > 2 modules are in the same directory. I want to be able to use them both: > > [code] > > [az@hp tst1]$ pwd > /home/az/Dropbox/work/Prjs/tst1 > > [az

Re: Python3 : import

2017-07-07 Thread Andrew Z
On Friday, July 7, 2017 at 4:00:51 PM UTC-4, Andrew Z wrote: > this has bee driving me nutz for the past few hours. > 2 modules are in the same directory. I want to be able to use them both: > > [code] > > [az@hp tst1]$ pwd > /home/az/Dropbox/work/Prjs/tst1 > > [az

Re: Python3 : import

2017-07-07 Thread Andrew Z
On Friday, July 7, 2017 at 4:16:38 PM UTC-4, Ian wrote: > On Fri, Jul 7, 2017 at 2:00 PM, Andrew Z wrote: > > [az@hp tst1]$ python3 ./uno.py > > Traceback (most recent call last): > > File "./uno.py", line 1, in > > from . import db > > Syste

Windows: python3.exe missing

2017-07-07 Thread Andrew Pennebaker
Could the Windows installer for Python 3 provide a "python3" command, such as a python3.bat or python3.exe file, to help with scripts that rely on the interpreter being called "python3"? The py launcher is somewhat helpful, but a proper python3 runnable is preferable. -- https://mail.python.or

Nesting concurrent.futures.ThreadPoolExecutor

2017-07-20 Thread Andrew McLean
I have a program where I am currently using a concurrent.futures.ThreadPoolExecutor to run multiple tasks concurrently. These tasks are typically I/O bound, involving access to local databases and remote REST APIs. However, these tasks could themselves be split into subtasks, which would also b

Accessing Json data (I think I am nearly there) complete beginner

2013-05-23 Thread Andrew Edwards-Adams
Hey guys I think its worth stating that I have been trying to code for 1 week. I am trying to access some Json data. My innitial code was the below: "import mechanize import urllib import re def getData(): post_url = "http://www.tweetnaps.co.uk/leaderboards/leaderboard_json/all_time";

Re: Accessing Json data (I think I am nearly there) complete beginner

2013-05-23 Thread Andrew Edwards-Adams
On Thursday, May 23, 2013 5:40:49 PM UTC+1, Andrew Berg wrote: > On 2013.05.23 11:09, Andrew Edwards-Adams wrote: > > > I was recommended to use the following code to access the Json data > > directly, however I cannot get it to return anything. > > Where exactly is the

Re: Accessing Json data (I think I am nearly there) complete beginner

2013-05-23 Thread Andrew Edwards-Adams
On Thursday, May 23, 2013 7:11:28 PM UTC+1, Andrew Berg wrote: > On 2013.05.23 11:58, Andrew Edwards-Adams wrote: > > > Hi thanks for the reply Andrew, my first bit of code was heading in the > > right direction I was managing to pull out the usernames from the JSON, > >

Re: Accessing Json data (I think I am nearly there) complete beginner

2013-05-23 Thread Andrew Edwards-Adams
On Thursday, May 23, 2013 7:56:19 PM UTC+1, Mark Lawrence wrote: > On 23/05/2013 19:19, Andrew Edwards-Adams wrote: > > > On Thursday, May 23, 2013 7:11:28 PM UTC+1, Andrew Berg wrote: > > >> On 2013.05.23 11:58, Andrew Edwards-Adams wrote: > > >> > &

help install on Win 7

2018-06-28 Thread Andrew von Bevern
I have tried to install python on my home laptop several times, using 3.6 or 3.7. Each time I get the following error - anyone know what I am doing wrong? [image: image.png] thanks in advance Andrew -- https://mail.python.org/mailman/listinfo/python-list

Re: Guide in Deskop Application Development in Python for newbies

2015-11-11 Thread Leonard Andrew Mesiera
Thank you sir @Chris Warrick for your great suggestion, even though I really got overwhelmed by the things that I need to study to get this project done. I'm really new to programming so I havent heard or even tried DJANGO, but on your suggestion, if thats what I need to get my project done, that

Re: Guide in Deskop Application Development in Python for newbies

2015-11-11 Thread Leonard Andrew Mesiera
that would I do. It would really take alot of time for me to finish this project, but thank you man, I really appreciate your help On Wed, Nov 11, 2015 at 8:38 PM, Leonard Andrew Mesiera < [email protected]> wrote: > Thank you sir @Chris Warrick for your great suggestion, even tho

ooopy: newbie cannot get basic functionality to work

2006-12-09 Thread Andrew Sackville-West
d OOoPy hmm... okay how about: >>> from ooopy import OOoPy >>> dir (OOoPy) ['ElementTree', 'OOoElementTree', 'OOoPy', 'StringIO', 'VERSION', 'ZIP_DEFLATED', 'ZipFile', '__builtins__', '__doc

Re: ooopy: newbie cannot get basic functionality to work

2006-12-09 Thread Andrew Sackville-West
On Sat, Dec 09, 2006 at 09:42:40PM -0600, Paul Watson wrote: > Andrew Sackville-West wrote: > > Hi list, > > > > I am new to python and old to coding (as in I did it a long time > > ago). I've got a task that cries out for a scripted solution -- > > impor

<    13   14   15   16   17   18   19   >