Single line if statement with a continue

2022-12-14 Thread Aaron P
I occasionally run across something like: for idx, thing in enumerate(things): if idx == 103: continue do_something_with(thing) It seems more succinct and cleaner to use: if idx == 103: continue. Of course this would be considered an anti-pattern, and Flake8 will complain. Any

Re: When creating a nested dictionary of dataframes, how can I name a dictionary based on a list name of the dataframe?

2020-06-07 Thread Aaron
, 2020 at 4:39 AM Peter Otten <__pete...@web.de> wrote: > Aaron wrote: > > > When creating a nested dictionary of dataframes, how can I name a > > dictionary based on a list name of the dataframe? > > > > Given the following: > > > > # START CODE > >

When creating a nested dictionary of dataframes, how can I name a dictionary based on a list name of the dataframe?

2020-06-06 Thread Aaron
When creating a nested dictionary of dataframes, how can I name a dictionary based on a list name of the dataframe? Given the following: # START CODE import pandas as pd cars = {'Brand': ['Honda Civic','Toyota Corolla'], 'Price': [22000,25000] } df_cars = pd.DataFrame(cars, colum

From an existing Pandas DataFrame, how can I create a summary DataFrame based on the union of overlapping date ranges (given a start and an end date) and an additional column?

2020-06-03 Thread Aaron
60.671 HIJ 01/01/2020 03/01/2020 40.002 HIJ 05/01/2020 05/05/202050.013 DEF 01/12/2020 02/02/2020 212.18 I have been trying to use a combination of sorting and grouping but the best I've achieved is reordering the dataframe. Even though I am able to sort/group based on values, I still run into the issues of finding overlapping date ranges and pulling out all trips based on a single company per aggregate/overlapping date range. Thank you in advance for any help! Aaron -- https://mail.python.org/mailman/listinfo/python-list

Re: Lists And Missing Commas

2019-12-23 Thread Aaron Gray
On Tuesday, 24 December 2019, Tim Daneliuk wrote: > If I do this: > > foo = [ "bar", "baz" "slop", "crud" ] > > Python silently accepts that and makes the middle term "bazslop". Strings concatinate over line endings so this case is only sensible really. > > BUT, if I do this: > > foo

Combining every pair of list items and creating a new list.

2017-07-17 Thread aaron . m . weisberg
Hi, I'm having difficulty thinking about how to do this as a Python beginner. But I have a list that is represented as: [1,2,3,4,5,6,7,8] and I would like the following results: [1,2] [3,4] [5,6] [7,8] Any ideas? Thanks -- https://mail.python.org/mailman/listinfo/python-list

Problem getting unittest tests for existing project working

2017-07-02 Thread Aaron Gray
I am trying to get distorm3's unittests working but to no avail. I am not really a Python programmer so was hoping someone in the know maybe able to fix this for me. Here's a GitHub issue I have created for the bug :- https://github.com/gdabah/distorm/issues/118 --

Iterating through a list. Upon condition I want to move on to next item in list

2017-05-10 Thread aaron . m . weisberg
Good afternoon, I have a list that I'm iterating thorough in Python. Each item in the list will have between 1-200 urls associated with it. My goal is to move on to the next. I have a variable "associationsCount" that is counting the number of urls and once it gets to 0 i want to move on to

Breaking down network range to individual networks

2016-06-01 Thread Aaron Christensen
I started working out some things on paper but I don't want to get too far ahead of myself in case there is a function or easy way that already does this. Thank you for your help! Aaron - Pasted some brainstorming below to show tha

Re: Psycopg2 to create a record using a FK

2016-03-12 Thread Aaron Christensen
On Sat, Mar 12, 2016 at 9:57 PM, Aaron Christensen < aaron.christen...@gmail.com> wrote: > > > On Sat, Mar 12, 2016 at 5:03 AM, dieter wrote: > >> Aaron Christensen writes: >> > I am running the following versions of software: >> > >> >

Re: Psycopg2 to create a record using a FK

2016-03-12 Thread Aaron Christensen
On Sat, Mar 12, 2016 at 5:03 AM, dieter wrote: > Aaron Christensen writes: > > I am running the following versions of software: > > > > Python 3.5 > > psycopg2==2.6.1 > > Postgres 9.4.5 > > > > I have 2 tables. Table User has UserId (serial PK),

Re: Psycopg2 to create a record using a FK

2016-03-12 Thread Aaron Christensen
On Sat, Mar 12, 2016 at 5:26 AM, Peter Otten <__pete...@web.de> wrote: > Aaron Christensen wrote: > > > Hello, > > > > I am running the following versions of software: > > > > Python 3.5 > > psycopg2==2.6.1 > > Postgres 9.4.5 > > >

Psycopg2 to create a record using a FK

2016-03-11 Thread Aaron Christensen
uot;", \ (last_name, first_name, gender, date_of_birth, now(), ??...??) Also, I have a second question. Is it possible to extract that value derived from "RETURNING UserId" so that it can be used in a later query? Thank you for your time! Aaron -- https://mail.python.org/mailman/listinfo/python-list

Re: Network Simulator

2016-02-24 Thread Aaron Christensen
On Feb 23, 2016 9:55 PM, "nikhil amraotkar" wrote: > > Hi...I need help to design a network simulator consisting for 5 routers in python...Any help would be appretiated... > Thanks.. > -- > https://mail.python.org/mailman/listinfo/python-list What is the purpose for designing it in Python? I'm a

Re: good python tutorial

2016-02-23 Thread Aaron Christensen
Thanks for sharing! On Tue, Feb 23, 2016 at 1:48 AM, Mike S via Python-list < python-list@python.org> wrote: > This site was recommended by a friend, it looks really well put together, > I thought it might be of interest to people considering online tutorials. > > http://www.python-course.eu/inde

Re: A newbie's doubt

2016-01-07 Thread Aaron Christensen
That's an awesome response! On Jan 7, 2016 6:35 AM, "Chris Angelico" wrote: > On Thu, Jan 7, 2016 at 2:20 PM, Henrique Correa wrote: > > Is Python's Tutorial (by Guido) a good and complete reference for the > > language? I mean, after reading it, should I have a good basis on Python? > > > > I'v

Re: Python and multiple user access via super cool fancy website

2015-12-25 Thread Aaron Christensen
On Dec 25, 2015 12:38 PM, "Chris Warrick" wrote: > > On 25 December 2015 at 13:15, Aaron Christensen > wrote: > > LOL. Thanks! PHP was definitely not very easy to pick up and I'm still > > having some issues. Last night I watched some tutorials on Django and

Re: Python and multiple user access via super cool fancy website

2015-12-25 Thread Aaron Christensen
On Dec 25, 2015 12:22 PM, "Jason Friedman" wrote: > > >> I have a hunch that you do not want to write the program, nor do you > >> want to see exactly how a programmer would write it? > >> > >> The question is more like asking a heart surgeon how she performs > >> heart surgery: you don't plan to

Re: Python and multiple user access via super cool fancy website

2015-12-25 Thread Aaron Christensen
Reply to List) button in the future] > > On 25 December 2015 at 05:02, Aaron Christensen > wrote: > > Hi Chris, > > > > Thank you for your response and information. I enjoy doing Python on my > > free time so when I get closer to some kind of web application, then I

Re: Python and multiple user access via super cool fancy website

2015-12-25 Thread Aaron Christensen
Great thank you! I will look into it. I watched some tutorials on Django last night. It appears to be somewhat of a bootstrap but for the backend. I'm not sure if my opinion is correct. On Dec 25, 2015 5:27 AM, wrote: > > On 25 December 2015 at 05:02, Aaron Christensen > > wro

Re: Python and multiple user access via super cool fancy website

2015-12-25 Thread Aaron Christensen
Hi Jason, What gives you that idea? On Dec 25, 2015 12:23 AM, "Jason Friedman" wrote: > > I am not sure if this is the correct venue for my question, but I'd like > to > > submit my question just in case. I am not a programmer but I do have an > > incredible interest in it, so please excuse my

Python and multiple user access via super cool fancy website

2015-12-24 Thread Aaron Christensen
, etc. I hope my question is a good question. Thank you for your time! Aaron -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to use python 3.5

2015-12-23 Thread Aaron Christensen
Wow, you can find cyber bullies just about anywhere... On Wed, Dec 23, 2015 at 8:00 AM, Chris Warrick wrote: > On 23 December 2015 at 07:38, Ankit Deshmukh wrote: > > Hi there, > > > > > > > > I am maters student in India, > > We don’t care (expect that you made a typo there). > > > I have inst

Re: In Python 3, how to append a nested dictionary to a shelve file with the added difficulty of using a for loop?

2015-12-21 Thread Aaron Christensen
Hi Peter, Thanks for the response! Several things you stated definitely got me thinking. I really appreciate the response. I used what you said and I am able to accomplish what I needed. Thanks! Aaron On Mon, Dec 21, 2015 at 7:23 PM, Peter Otten <__pete...@web.de> wrote: &

In Python 3, how to append a nested dictionary to a shelve file with the added difficulty of using a for loop?

2015-12-21 Thread Aaron Christensen
dictPeople['attributes'][attribute]['high score'], 'time': dictPeople['attributes'][attribute]['time']] } But, this obvously doesn't work because of the for loop. How can I do this? -I am trying to figure out how to extract data from the dictionary dictPeople.py file and store it in the people.db file. -I am trying to add new people to the people.db file as more people become available. -I need to use the for loop because of the 50+ attributes I need to add. -My future steps would be to modify some of the data values that I extract and used to populate the people.db file, but my first step is to, at least, extract, and then populate the people.db file. Any help or guidance is greatly appreciated. Thank you for your time and reading my question. Thanks! Aaron -- https://mail.python.org/mailman/listinfo/python-list

In Python 3, how to append a nested dictionary to a shelve file with the added difficulty of using a for loop?

2015-12-21 Thread Aaron
ore': dictPeople['attributes'][attribute]['high score'], 'time': dictPeople['attributes'][attribute]['time']] } But, this obvously doesn't work because of the for loop. How can I do this? -I am trying to figure out how to extract data from the dictionary dictPeople.py file and store it in the people.db file. -I am trying to add new people to the people.db file as more people become available. -I need to use the for loop because of the 50+ attributes I need to add. -My future steps would be to modify some of the data values that I extract and used to populate the people.db file, but my first step is to, at least, extract, and then populate the people.db file. Any help or guidance is greatly appreciated. Thank you for your time and reading my question. Thanks! Aaron -- https://mail.python.org/mailman/listinfo/python-list

JSON translated into SQL by python

2013-11-22 Thread Aaron G.
I am new to programming python for JSON to SQL and I was wondering why this does not work. All the values for entering the DB are correct. The EnterpriseValue data is not entering the database. #collect data from JSON source at Yahoo url = ["db", "http://y.ahoo.it/wlB89";] #check all sites che

Can I trust downloading Python?

2013-09-07 Thread Aaron Martin
Hi, I am thinking about getting a software but it requires python, so that brought up a few questions. Is it safe do download python, and does it come with spam or advertisements? If it doesn't then should I get the latest version? I mostly want to know if it is safe to download, because most of th

Providing a Python wrapper to a C++ type.

2012-10-16 Thread aaron . l . france
n.org/release/2.7.3/extending/newtypes.html Regards, Aaron -- http://mail.python.org/mailman/listinfo/python-list

Re: unit test strategy

2012-09-22 Thread Aaron Brady
On Sunday, September 16, 2012 3:01:11 PM UTC-5, Steven D'Aprano wrote: > On Sun, 16 Sep 2012 11:38:15 -0700, Aaron Brady wrote: > > Here is an example of some repetitive code. > > > > for view_meth in [ dict.items, dict.keys, dict.values ]: > > dict0= dict

Re: unit test strategy

2012-09-16 Thread Aaron Brady
On Sunday, September 16, 2012 2:42:09 AM UTC-5, Steven D'Aprano wrote: > On Fri, 14 Sep 2012 19:59:29 -0700, Aaron Brady wrote: > > > > > Hello, > > > > > > I've developing a test script. There's a lot of repetition. I want to > &g

Re: unit test strategy

2012-09-15 Thread Aaron Brady
On Friday, September 14, 2012 10:32:47 PM UTC-5, David Hutto wrote: > On Fri, Sep 14, 2012 at 11:26 PM, Dwight Hutto wrote: > > > On Fri, Sep 14, 2012 at 10:59 PM, Aaron Brady wrote: > > >> Hello, > > >> > > >> I've developing a

unit test strategy

2012-09-14 Thread Aaron Brady
Hello, I've developing a test script. There's a lot of repetition. I want to introduce a strategy for approaching it, but I don't want the program to be discredited because of the test script. Therefore, I'd like to know what people's reactions to and thoughts about it are. The first strate

Re: set and dict iteration

2012-09-08 Thread Aaron Brady
On Thursday, August 23, 2012 1:11:14 PM UTC-5, Steven D'Aprano wrote: > On Thu, 23 Aug 2012 09:49:41 -0700, Aaron Brady wrote: > > > > [...] > > > The patch for the above is only 40-60 lines. However it introduces two > > > new concepts. > > >

Re: set and dict iteration

2012-09-08 Thread Aaron Brady
On Monday, September 3, 2012 8:59:16 PM UTC-5, Steven D'Aprano wrote: > On Mon, 03 Sep 2012 21:50:57 -0400, Dave Angel wrote: > > > > > On 09/03/2012 09:26 PM, Steven D'Aprano wrote: > > > > >> An unsigned C int can count up to 4,294,967,295. I propose that you say > > >> that is enough iter

Re: set and dict iteration

2012-09-03 Thread Aaron Brady
On Monday, September 3, 2012 3:28:28 PM UTC-5, Dave Angel wrote: > On 09/03/2012 04:04 PM, Aaron Brady wrote: > > > On Monday, September 3, 2012 2:30:24 PM UTC-5, Ian wrote: > > >> On Sun, Sep 2, 2012 at 11:43 AM, Aaron Brady wrote: > > >> > > >

Re: set and dict iteration

2012-09-03 Thread Aaron Brady
On Monday, September 3, 2012 2:30:24 PM UTC-5, Ian wrote: > On Sun, Sep 2, 2012 at 11:43 AM, Aaron Brady wrote: > > > We could use a Python long object for the version index to prevent > > overflow. Combined with P. Rubin's idea to count the number of open > > it

Re: set and dict iteration

2012-09-02 Thread Aaron Brady
On Monday, August 27, 2012 2:17:45 PM UTC-5, Ian wrote: > On Thu, Aug 23, 2012 at 10:49 AM, Aaron Brady wrote: > > > The patch for the above is only 40-60 lines. However it introduces two new > > concepts. > > > > Is there a link to the patch? Please see b

Re: Looking for an IPC solution

2012-09-01 Thread Aaron Brady
On Friday, August 31, 2012 2:22:00 PM UTC-5, Laszlo Nagy wrote: > There are just so many IPC modules out there. I'm looking for a solution > > for developing a new a multi-tier application. The core application will > > be running on a single computer, so the IPC should be using shared > > me

Re: set and dict iteration

2012-08-27 Thread Aaron Brady
On Thursday, August 23, 2012 1:11:14 PM UTC-5, Steven D'Aprano wrote: > On Thu, 23 Aug 2012 09:49:41 -0700, Aaron Brady wrote: > > > > [...] > > > The patch for the above is only 40-60 lines. However it introduces two > > > new concepts. > > >

Re: set and dict iteration

2012-08-23 Thread Aaron Brady
On Saturday, August 18, 2012 9:28:32 PM UTC-5, Aaron Brady wrote: > On Saturday, August 18, 2012 5:14:05 PM UTC-5, MRAB wrote: > > > On 18/08/2012 21:29, Aaron Brady wrote: > > > > On Friday, August 17, 2012 4:57:41 PM UTC-5, Chris Angelico wrote: > > > >>

Re: set and dict iteration

2012-08-18 Thread Aaron Brady
On Saturday, August 18, 2012 5:14:05 PM UTC-5, MRAB wrote: > On 18/08/2012 21:29, Aaron Brady wrote: > > > On Friday, August 17, 2012 4:57:41 PM UTC-5, Chris Angelico wrote: > > >> On Sat, Aug 18, 2012 at 4:37 AM, Aaron Brady wrote: > > >> > > >&g

Re: set and dict iteration

2012-08-18 Thread Aaron Brady
On Friday, August 17, 2012 4:57:41 PM UTC-5, Chris Angelico wrote: > On Sat, Aug 18, 2012 at 4:37 AM, Aaron Brady wrote: > > > Is there a problem with hacking on the Beta? > > > > Nope. Hack on the beta, then when the release arrives, rebase your > > work ont

Re: set and dict iteration

2012-08-17 Thread Aaron Brady
On Thursday, August 16, 2012 9:24:44 PM UTC-5, Steven D'Aprano wrote: > On Thu, 16 Aug 2012 19:11:19 -0400, Dave Angel wrote: > > > > > On 08/16/2012 05:26 PM, Paul Rubin wrote: > > >> Dave Angel writes: > > >>> Everything else is implementation defined. Why should an > > >>> implementation

Re: set and dict iteration

2012-08-17 Thread Aaron Brady
On Thursday, August 16, 2012 9:30:42 PM UTC-5, Paul Rubin wrote: > Steven D'Aprano writes: > > > Luckily, Python is open source. If anyone thinks that sets and dicts > > > should include more code protecting against mutation-during-iteration, > > > they are more than welcome to come up with a

Re: set and dict iteration

2012-08-17 Thread Aaron Brady
On Thursday, August 16, 2012 8:01:39 PM UTC-5, Paul Rubin wrote: > Ian Kelly writes: > > > With regard to key insertion and deletion while iterating over a dict > > > or set, though, there is just no good reason to be doing that > > > (especially as the result is very implementation-specific),

Re: set and dict iteration

2012-08-17 Thread Aaron Brady
On Thursday, August 16, 2012 6:07:40 PM UTC-5, Ian wrote: > On Thu, Aug 16, 2012 at 4:55 PM, Ian Kelly wrote: > > > On Thu, Aug 16, 2012 at 12:00 PM, Aaron Brady wrote: > > >> The inconsistency is, if we remove an element from a set and add another > >> during

set and dict iteration

2012-08-16 Thread Aaron Brady
Hello, I observed an inconsistency in the behavior of 'set' and 'dict' iterators. It is "by design" according to the docs. ''' http://docs.python.org/dev/library/stdtypes.html#dict-views iter(dictview). Iterating views while adding or deleting entries in the dictionary may raise a RuntimeErr

Re: GUI for pickle read

2012-02-28 Thread Aaron France
On Tue, Feb 28, 2012 at 12:51 PM, Smiley 4321 wrote: Can I have some thoughts about - building a GUI to display the results of the pickle read? A prototype code should be fine on Linux. What on earth is this post asking? Do you want code? Opinions? -- http://mail.python.org/mailman/listinfo

Re: iterating over list with one mising value

2012-02-07 Thread Aaron France
On 02/07/2012 11:09 PM, Mark Lawrence wrote: On 07/02/2012 21:25, Aaron France wrote: for i in range(0, len(x), 2): print x[i-1], x[i] x = ['with', 3, 'which', 1, 'were', 2, 'well', 1, 'water', 1, 'was', 4, 'two', 1,

Re: iterating over list with one mising value

2012-02-07 Thread Aaron France
On 02/07/2012 10:13 PM, MRAB wrote: On 07/02/2012 20:23, Sammy Danso wrote: Hi Expert, Thanks for your responses and help. thought I should provide more information for clarity. > Please find the error message below for more information for (key, value) in wordFreq2: ValueError: need more

Re: difference between random module in python 2.6 and 3.2?

2012-02-06 Thread Aaron France
On 02/06/2012 09:57 AM, Matej Cepl wrote: On 6.2.2012 09:45, Matej Cepl wrote: Also, how could I write a re-implementation of random.choice which would work same on python 2.6 and python 3.2? It is not only matter of unit tests, but I would really welcome if the results on both versions produce

Re:

2012-02-03 Thread Aaron France
On 02/03/2012 09:14 PM, Chris Rebert wrote: On Fri, Feb 3, 2012 at 12:06 PM, Debashish Saha wrote: would u like to help me by answering some vbasic questions about python? You might prefer to ask such questions on the tutor mailing list instead: http://mail.python.org/mailman/listinfo/tutor C

Re: except clause syntax question

2012-01-30 Thread Aaron
On 01/30/2012 06:41 PM, Charles Yeomans wrote: To catch more than one exception type in an except block, one writes except (A, B, C) as e: I'm wondering why it was decided to match tuples, but not lists: except [A, B, C] as e: The latter makes more sense semantically to me -- "catch all excep

Re: parse binary file

2012-01-29 Thread Aaron
On 01/29/2012 03:04 PM, Andrea Crotti wrote: On 01/29/2012 07:51 AM, contro opinion wrote: please download the attachment ,and put in c:\test.data Your program should never use hard-coded path, and actually I think the majority here is not using windows. But I also think that the majority o

Re: PyPI - how do you pronounce it?

2012-01-28 Thread Aaron France
On 01/28/2012 10:57 AM, Steven D'Aprano wrote: On Sat, 28 Jan 2012 18:48:49 +1100, Chris Angelico wrote: Hopefully this will be a step up from Rick's threads in usefulness, but I'm aware it's not of particularly great value! How do you pronounce PyPI? Is it: Obviously that's pronounced Fin-ti

OSX application built with py2app can't see bundled PySide module?

2011-09-01 Thread Aaron Scott
I'm trying to deploy a Python app on OSX that was built with PySide. py2app packages it without issue, copying and linking a lot of PySide and Qt files in the process. But then, when I try to run the built app, I get this error: Traceback (most recent call last): File "/Users/sequence/Desktop

Re: How to get number of bytes written to nonblocking FIFO when EAGAIN is raised?

2011-07-21 Thread Aaron Staley
On Jul 19, 8:15 pm, Adam Skutt wrote: > On Jul 19, 9:19 pm, Aaron Staley wrote: > > > However, if interpreter 1 overfills the FIFO, we get an error (EAGAIN)>>> > > f.write('a'*7) > > > IOError: [Errno 11] Resource temporarily unavailable > &g

How to get number of bytes written to nonblocking FIFO when EAGAIN is raised?

2011-07-19 Thread Aaron Staley
l the FIFO was full and then raised the IOError. Interpreter 2 constantly received some, but not all, of what interpreter 2 tried to send. Unfortunately, the IOError seems to have no attribute indicating how much data was successfully sent. I've looked through the docs and can't seem to figure out how; can anyone land some advice? Thanks, Aaron Staley -- http://mail.python.org/mailman/listinfo/python-list

Announce: WHIFF 1.1 Release

2011-03-17 Thread Aaron Watters
cks http://whiffdoc.appspot.com/docs/W1100_2200.TreeView Google App Engine compatibility http://whiffdoc.appspot.com/docs/W1100_2300.GAEDeploy And much more. Please try it out and let me know what you think. Also, thanks to all for suggestions and other feedback. -- Aaron Watters === This one goes

Re: using simplejson.dumps to encode a dictionary to json

2011-03-15 Thread Aaron
Rock on, thanks guys. I'm on python 2.5 btw - I use it with google app engine so cannot upgrade unfortunately. A -- http://mail.python.org/mailman/listinfo/python-list

Re: using simplejson.dumps to encode a dictionary to json

2011-03-15 Thread Aaron
I'm attempting to write an xml as a json object. the xml object is authreq_data = """ %s CFD_Demo %s """ %(username, password) -- http://mail.python.org/mailman/listinfo/python-list

Re: using simplejson.dumps to encode a dictionary to json

2011-03-15 Thread Aaron
If I print authreq_data to screen I get {"req": {"username": "##", "password": "#", "productType": "CFD_Demo"}} Essentially I want the inner brackets to be [ ] instead of {} but alternating on each level so it would be: {"req": [{"username": "##", "password": "#", "productType

using simplejson.dumps to encode a dictionary to json

2011-03-15 Thread Aaron
Hi there, I am attempting to use simplejson.dumps to convert a dictionary to a json encoded string. For some reason this doesn't work - it would be awesome if someone could give me a clue as to why. loginreq = {"username":username, "password":password, "productType":"CFD_Demo"} authreq_data =

Re: error in exception syntax

2011-03-09 Thread Aaron Gray
"Aaron Gray" wrote in message news:8tpu87f75...@mid.individual.net... On Windows I have installed Python 3.2 and PyOpenGL-3.0.1 and am getting the following error :- File "c:\Python32\lib\site-packages\OpenGL\platform\win32.py", line 13 except OSError, err:

error in exception syntax

2011-03-09 Thread Aaron Gray
in advance, Aaron -- http://mail.python.org/mailman/listinfo/python-list

Re: constructin trees in python

2010-11-21 Thread Aaron Sterling
> Thanks a lot peter, that worked as i needed. Where can i find some > good documentation which explains such behavior. The reason for this behavior is the way python stores attributes. Both a class and an instance of a class have a __dict__ attribute which is a dictionary which stores attributes

Re: Pdf download using mechanize

2010-07-06 Thread Aaron Watters
ge.net/mechanize/doc.html It looks like downloading any sort of file and saving it should be straightforward to me, but I haven't tried it. Aaron Watters http://whiffdoc.appspot.com === % man less less is more. -- http://mail.python.org/mailman/listinfo/python-list

Re: I strongly dislike Python 3

2010-06-28 Thread Aaron Watters
thon in favor of a less chaotic platform, like Java or C# or even (got help us) Perl. I apologize if I pontificate. -- Aaron Watters -- http://mail.python.org/mailman/listinfo/python-list

Re: I wander which is better? JSP or Python? And is there a place for JSP?

2010-06-28 Thread Aaron Watters
regular expressions and such. It's very easy to understand, develop, debug. This is why I wrote WHIFF to use a similar but generalized "drop in" paradigm. http://whiffdoc.appspot.com -- Aaron Watters === % man less less is more. -- http://mail.python.org/mailman/listinfo/python-list

Re: mysql query results to web page

2010-06-22 Thread Aaron Watters
I scripting. I also had to mess with some directory permissions because my MySQLdb on my Mac in inside a Python Egg... to get around these sorts of problems you may have to look at your server error log. Also please see the WHIFF quickstart for a discussion of setting up a WSGI/WHIFF based CGI script. Good luck! -- Aaron Watters === % man less less is more. -- http://mail.python.org/mailman/listinfo/python-list

conceptual model diagram builder

2010-06-22 Thread Aaron Watters
source at this link. http://code.google.com/p/whiff/source/browse/#hg/trunk/test/root/schema Let me know what you think. If you want to get the source you will have to clone the google code mercurial archive (it isn't part of the whiff release yet). -- Aaron Watters === This

Re: Serializing functions

2010-06-17 Thread Aaron Staley
I am one of the developer's of PiCloud. To answer your question, we wrote a custom subclass of Pickler to pickle functions. As Robert pointed out, the library is LGPL, so you can see (and use) the source code. I also presented the details on a poster at PyCon 2010. You can see it here: http://b

Re: Is Scheme/LISP faster than C/C++

2010-06-14 Thread Aaron W. Hsu
ions, and closures, and you won't find C faster. Benchmarks to compare C with Scheme often don't compare the things Scheme is good at, but focus only on the static things that C was designed for. Aaron W. Hsu -- http://mail.python.org/mailman/listinfo/python-list

Announcing: WHIFF 1.0

2010-06-05 Thread Aaron Watters
eploy And much more. Please try it out and let me know what you think -- Aaron Watters === This one goes to eleven. -- http://mail.python.org/mailman/listinfo/python-list

Including a remote file -- permission denied?

2010-05-14 Thread Aaron Scott
I have a Python script running on the default OSX webserver, stored in /Library/WebServer/CGI-Executables. That script spits out a list of files on a network drive, a la "os.listdir('/Volumes/code/ directory/')". If I just execute this from the terminal, it works as expected, but when I try to acce

Re: CGI templating with python

2010-04-02 Thread Aaron Watters
out the test drive. http://whiffdoc.appspot.com/docs/W.intro -- Aaron Watters === This one goes to 11. -- http://mail.python.org/mailman/listinfo/python-list

Re: regex object limitations/behavior for large regexes?

2009-12-30 Thread Aaron Watters
Sorry, I should have looked harder. I found this: http://bugs.python.org/issue1160 It looks exactly like my use case. drat. -- Aaron Watters http://whiffdoc.appspot.com === less is more. -- http://mail.python.org/mailman/listinfo/python-list

regex object limitations/behavior for large regexes?

2009-12-30 Thread Aaron Watters
very large? Do they remain as fast? Do they display reasonable (linear or n log n) memory growth? Do they just stop working at some point? Please reply if you have any experience with very large regexes or other insights. Thanks in advance. -- Aaron Watters === less is more --

Re: Moving from PHP to Python. Is it Possible

2009-12-29 Thread Aaron Watters
than full > academic description. http://whiffdoc.appspot.com (again) there are lots and lots of examples. I hope you like it and have a happy new year! -- Aaron Watters === my resolution last year was not to make any resolutions this year. -- http://mail.python.org/mailman/listinfo/python-list

wave robot notes

2009-12-23 Thread Aaron Watters
using wave, please add it to a wave and try it out. It should "respond" to a BNF rule you type in like this one: program ::= "begin" (statement ";")+ "end" $$ Happy Holidays everyone... I'm off to the slopes :). -- Aaron Watters === an apple ev

Re: ANN: WHIFF.0.7 += GAE + jQueryUI + internationalization + testdrive = (last beta?)

2009-12-10 Thread Aaron Watters
gh for you? :) You are now immortalized in the WHIFF repository http://aaron.oirt.rutgers.edu/cgi-bin/whiffRepo.cgi/rev/6d8c650102dd Please let me know if anything else offends your sensibilities. Thanks again, -- Aaron Watters === an apple every 8 hours will keep 3 doctors away. -- kliban -- http

Re: a huge shared read-only data in parallel accesses -- How? multithreading? multiprocessing?

2009-12-09 Thread Aaron Watters
or Python or any other programming language. Generally you can always get to any piece of data in about 4 seeks at most anyway, so if your disk is fast your app will be fast too. The file can be accessed concurrently without problems by any number of processes or threads. -- Aa

Re: ANN: WHIFF.0.7 += GAE + jQueryUI + internationalization + testdrive = (last beta?)

2009-12-09 Thread Aaron Watters
On Dec 9, 1:48 pm, Terry Reedy wrote: > Aaron Watters wrote: > > Also the WHIFF documentation is now hosted on Google App > > Engine at thehttp://whiffdoc.appspot.com/domain. > > When I went there and clicked on the "scatter chart is generated by a > straightforwa

ANN: WHIFF.0.7 += GAE + jQueryUI + internationalization + testdrive = (last beta?)

2009-12-09 Thread Aaron Watters
lemented on Google App Engine using WHIFF. I hope you like. -- Aaron Watters === Talk low. Talk slow. And don't say a lot. -- John Wayne's advice to Clint Eastwood -- http://mail.python.org/mailman/listinfo/python-list

Re: High-performance Python websites

2009-12-06 Thread Aaron Watters
/ and here http://listtree.appspot.com/ I hope that helps. -- Aaron Watters === an apple every 8 hours will keep 3 doctors away. -kliban -- http://mail.python.org/mailman/listinfo/python-list

Re: python simply not scaleable enough for google?

2009-11-20 Thread Aaron Watters
Comparing language platforms using small numeric benchmarks often completely misses the point. -- Aaron Watters http://whiffdoc.appspot.com http://listtree.appspot.com === an apple every 8 hours will keep 3 doctors away. - kliban -- http://mail.python.org/mailman/listinfo/python-list

Re: python simply not scaleable enough for google?

2009-11-17 Thread Aaron Watters
speaking someone should invite Matt Mackall to give a Python conference keynote. Or how about Bram Cohen for that matter... -- Aaron Watters http://listtree.appspot.com/ === if you want a friend, get a dog. -Truman -- http://mail.python.org/mailman/listinfo/python-list

Re: wsgi with separate css file

2009-11-13 Thread Aaron Watters
om/ service is implemented using WHIFF under the Google App Engine environment. -- Aaron Watters === TO INFINITY... AND BEYOND! -- http://mail.python.org/mailman/listinfo/python-list

Re: python simply not scaleable enough for google?

2009-11-13 Thread Aaron Watters
running on my laptop is *much* faster. By the way: the GO language smells like Rob Pike, and I certainly hope it is more successful than Limbo was. Of course, if Google decides to really push it then it's gonna be successful regardless of all other considerations, just like Sun did to

graceful degradation : is it degrading?

2009-11-02 Thread Aaron Watters
le javascript if you want to use this page..." What is the state of best-practices and such? -- Aaron Watters === she was dirty, flirty / musta been about thirty... Stones '60s she was shifty, nifty / musta been about fifty... Stones '90s (what rhymes with 80?) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python library "support" propaganda lists?

2009-10-30 Thread Aaron Watters
On Oct 30, 12:51 pm, Robert Kern wrote: > On 2009-10-30 11:31 AM, Aaron Watters wrote: > > > I know this may be due to simple laziness and negligence, > > but in that case they should turn moderation off. > > That's the funny thing about mailing list problems. I

Re: Python library "support" propaganda lists?

2009-10-30 Thread Aaron Watters
in particular -- I'm just making a general observation. Maybe as Robert suggests I will try comp.lang.python as a fall back after a few days of nonresponsiveness in the future... -- Aaron Watters http://aaron.oirt.rutgers.edu/myapp/docs/W1100_2200.TreeView === "I'm

Python library "support" propaganda lists?

2009-10-30 Thread Aaron Watters
line RTFM reply to the poster. There, I feel better now. -- Aaron Watters http://aaron.oirt.rutgers.edu/myapp/docs/W1100_1600.openFlashCharts === If you think you are smart enough to write multi-threaded programs, then you're not.-- Jim Ahlstrom -- http://mail.python.org/mailman/listinfo/python-list

Re: Web development with Python 3.1

2009-10-27 Thread Aaron Watters
I built WHIFF :). http://aaron.oirt.rutgers.edu/myapp/docs/W1100_2200.TreeView -- Aaron Watters === If all you got is lemons, make lemonade. -- anon. -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-27 Thread Aaron Watters
On Oct 27, 8:16 am, Aaron Watters wrote: > On Oct 27, 8:02 am, alex23 wrote: > > > If you need a full traceback, let me know. > > Well, yes, the bottom of the traceback would be more useful :). > >    -- Aaron Watters Alex sent me the traceback (thanks!) and after con

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-27 Thread Aaron Watters
On Oct 27, 8:02 am, alex23 wrote: > If you need a full traceback, let me know. Well, yes, the bottom of the traceback would be more useful :). -- Aaron Watters -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-27 Thread Aaron Watters
Paul Boddie wrote: > On 27 Okt, 03:49, Aaron Watters wrote: ... > > http://aaron.oirt.rutgers.edu/myapp/GenBankTree/index > > This looks interesting, but when I have JavaScript switched off, I get > a big traceback ... I just tried it. How do you get a traceback? For me none

Re: ANN: WHIFF += Mako & treeview & url rewrites

2009-10-27 Thread Aaron Watters
On Oct 27, 7:04 am, Paul Boddie wrote: > On 27 Okt, 03:49, Aaron Watters wrote: > > > > > WHIFF now includes components for > > implementing "tree views" for web navigation panes > > or other purposes, either using AJAX or frame > &g

Re: Web development with Python 3.1

2009-10-26 Thread Aaron Watters
aaron.oirt.rutgers.edu/myapp/GenBankTree/index http://whiff.sourceforge.net -- Aaron Watters === It gotta be rock-roll music if you wanna dance with me if you wanna dance with me -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >