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: 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

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: 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

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
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

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

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

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 > >

Need to pass Object by value into a list

2005-09-26 Thread Aaron
I have a data sructure setup and I populate it in a loop like so: y=0 while X: DS.name = "ASDF" DS.ID = 1234 list[y] = DS; y = y + 1 print list This does not work because DS is passed in by reference causing all entries into the list to change to the most current value. I cannot fi

Re: Telephony project

2005-09-27 Thread aaron
It will be much easier to use asterisk, there's a win32 version aterisk available but it does not support hardware phone, voip only. A clone FXO card only cost $15 on ebay. "Roger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm new to Python and need to do a (low level, I thin

Re: Howto Extract PNG from binary file @ 0x80?

2004-12-22 Thread Aaron
On Sat, 11 Dec 2004 10:53:19 +0100, Fredrik Lundh wrote: > "flamesrock" <[EMAIL PROTECTED]> wrote: > >> As a newbie to the language, I have no idea where to start..please bare >> with me.. >> >> The simcity 4 savegame file has a png image stored at the hex location >> 0x80. What I want to extract

Creating Image Maps

2004-12-23 Thread Aaron
I know this is a thing used primarily on websites..but since python can do anything ;) I'm trying to make a clickable image map for my wxPython program. Basically, I know how to organize the images into one large image in a panel, but how do I make the individual pieces clickable like webpage link

Re: Creating Image Maps

2004-12-24 Thread Aaron
Thanks for the responses guys! The first option you provided sounds great, Steve. I think I'm gonna try it that way. -- http://mail.python.org/mailman/listinfo/python-list

Configuration Files

2004-12-25 Thread Aaron
Hi, I'm interested in creating a large number of configuration files which I have no experience doing in python. The fields will be static for the most part. But design changes and I might want to add new fields in the future.. My question is - whats the best module for creating, reading, and edi

regular expression

2005-03-25 Thread aaron
g the other direction works: !--! >>> pattern.sub(':', '3.') '3:' !--! any thoughts? thanks, aaron -- http://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

yet another indentation proposal

2007-08-19 Thread Aaron
e to see them opt to learn other languages simply because of this one issue. Thanks. Aaron -- To reply directly, remove j's from email address. -- http://mail.python.org/mailman/listinfo/python-list

Re: yet another indentation proposal

2007-08-19 Thread Aaron
t the indentation model is a good one for 99.9% of users. What I do want to do is simply give the Python interpreter a tiny bit more flexibility to handle code from users or environments where indentation is not possible or practical. Aaron -- To reply directly, remove j's from email

Re: yet another indentation proposal

2007-08-20 Thread Aaron
guage. I admit, it's probably not that much work, but it is one more stumblingblock that blind newcomers will have to overcome. Aaron -- http://mail.python.org/mailman/listinfo/python-list

Re: I Need help from all the group participants

2007-08-21 Thread Aaron
ot;slows down to" "drops to" "decreases to" "goes down to" ETC. "goes above" could be "exceeds" "passes" "goes past" "increases to" "speeds up to" "goes up to" "reaches" "exceeds" "surpasses" "is faster than" "goes faster than" "is above" ETC. Good luck. I'm glad this isn't my project. Aaron -- To reply directly, remove j's from email address. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycon disappointment

2008-03-16 Thread Aaron
> In my opinion, open spaces should have had greater status and billing, > with eyes-forward talks and vendor sessions offered only as possible > alternatives. Especially, vendor sessions should not be presented as > "keynotes" during plenary sessions. I think it took a little while > for people

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: 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

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 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 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-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-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-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-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: 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-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: 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-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-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-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. > > >

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: 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

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-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: 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

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: 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: 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: 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: 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

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

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

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

error in exception syntax

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

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:

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

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

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: 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

Re: How to convert a number to hex number?

2005-11-08 Thread Aaron Bingham
C,DEF. > > To print the hexidecimal string representation of an integer, n, use print hex(n) or print "%x" % n Regards, Aaron Bingham -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse best/good or bad IDE for Python?

2005-12-02 Thread Aaron Bingham
se performance is not a problem for me, but I have a beefy box. Enjoy, Aaron Bingham -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse best/good or bad IDE for Python?

2005-12-06 Thread Aaron Bingham
oms the editor to take up the whole window and hids all the "screen furniture". You can double click the tab again to get the furniture back. Aaron Bingham -- http://mail.python.org/mailman/listinfo/python-list

Re: search backward

2005-01-04 Thread Aaron Bingham
3 >>> "foofoo".index("foo") 0 >>> "foofoo".rindex("foo") 3 -- Aaron Bingham Application Developer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: 2 versions of python on 1 machine

2005-01-06 Thread Aaron Bingham
installed and switching versions when you need to? How can i do that? You need to put the path to the desired version in the PATH environment variable. You shoudn't need to change PYTHONPATH at all. -- Aaron Bingham Applic

Re: Fuzzy matching of postal addresses

2005-01-18 Thread Aaron Bingham
as well. This paper's algorithm deals with those problems quite nicely, -- ---- Aaron Bingham Application Developer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: Fuzzy matching of postal addresses

2005-01-19 Thread Aaron Bingham
I pointed you to takes care of this pretty nicely. -- ---- Aaron Bingham Application Developer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: __eq__ on a dict

2005-07-11 Thread Aaron Bingham
ocumented? > In general, you should not call __eq__ directly, but use the == operator > instead. That is clear enough, the OP was seeking information about the behavior of these operators when used with dictionaries. Thanks, -- Aaron Bingham Senior Software Engineer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: __eq__ on a dict

2005-07-12 Thread Aaron Bingham
s are unordered: > > py> {1:1j} < {1:2j} > Traceback (most recent call last): > File "", line 1, in ? > TypeError: cannot compare complex numbers using <, <=, >, >= > > but even

Re: [perl-python] text pattern matching, and expressiveness

2005-02-11 Thread Aaron Sherman
John Bokma wrote: Xah Lee wrote: Perl is a language of syntactical variegations. Python on the other hand, does not even allow changes in code's indentation, but its efficiency and power in expression, with respect to semantics (i.e. algorithms), showcases Perl's poverty in specification. Clarify

Re: Faster way to do this...

2005-03-01 Thread Aaron Bingham
e(100) ;-) -- Aaron Bingham Software Engineer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

metaclass error

2005-03-17 Thread Aaron Steele
tatement, it collects the base class (ManagerInterface) into a tuple and then executes the class body in a dictionary... is this where the error is happening? thanks! aaron -- http://mail.python.org/mailman/listinfo/python-list

Re: COM connection point

2005-03-18 Thread Aaron Brady
That appears to do just the job! Much obliged, -OY - Original Message - From: "Stefan Schukat" <[EMAIL PROTECTED]> To: "Oy Politics" <[EMAIL PROTECTED]>; Sent: Friday, March 18, 2005 6:05 AM Subject: RE: COM connection point > Just use > > obj = win32com.client.Dispatch(obj) > >

Re: comment out more than 1 line at once?

2004-11-30 Thread Aaron Bingham
feature to make it easy to comment out whole blocks of code at a time using the hash character ('#'). Aaron -- http://mail.python.org/mailman/listinfo/python-list

Re: how to list files with extension .txt in windows?

2004-12-02 Thread Aaron Bingham
access errors first. Aaron -- http://mail.python.org/mailman/listinfo/python-list

Re: byte code generated under linux ==> bad magic number under windows

2004-12-06 Thread Aaron Bingham
on 2.4 or vice versa. Aaron -- http://mail.python.org/mailman/listinfo/python-list

How to implement autonomous timer (for FRP)?

2004-12-08 Thread Aaron Leung
s), and I'm not sure what my options are. I'd appreciate any suggestions. Thanks and regards, Aaron -- http://mail.python.org/mailman/listinfo/python-list

Re: Data problem

2004-12-15 Thread Aaron Bingham
d Y fields in the DB are actually defined as integers, not floats, but you probably already checked that. Regards, -- Aaron Bingham Application Developer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: Optimisation Hints (dict processing and strings)

2005-03-29 Thread Aaron Bingham
r of repeated string concatenation. Regards, -- ---- Aaron Bingham Software Engineer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: Little Q: how to print a variable's name, not its value?

2005-03-30 Thread Aaron Bingham
long as as it is used as a debugging aid, with the expression as a literal string in the program, there should be no security issue. I would never use either of these functions except as debugging aids anyway. Regards, -- -

Re: Little Q: how to print a variable's name, not its value?

2005-03-31 Thread Aaron Bingham
odo/) and its remote debugging functionality, instead of building your own tool. There may be other IDEs that provide equivalent functionality, but I am not familiar with them. Regards, -- ---- Aaron Bin

Re: Why Python does *SLICING* the way it does??

2005-04-20 Thread Aaron Bingham
excellent link! -- ---- Aaron Bingham Software Engineer Cenix BioScience GmbH -- http://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

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

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: &

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

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: 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

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
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
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
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: 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: 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: 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

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: 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 > > >

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 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: >> > >> >

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

Re: RPC client class?

2006-03-03 Thread Aaron Lav
look at if the IDL is complex: - my Pinefs package (http://www.panix.com/~asl2/software/Pinefs/), - the Michigan CITI pynfs/newpynfs (http://www.citi.umich.edu/projects/nfsv4/pynfs/) - Wim Lewis's rpcgen.py (http://people.omnigroup.com/wiml/soft/stale-index.html#python) Aaron Lav (http://www.pobox.com/~asl2) -- http://mail.python.org/mailman/listinfo/python-list

Re: Access from one class to methode of other class

2005-05-26 Thread Aaron Bingham
: >>> class 1: File "", line 1 class 1: ^ SyntaxError: invalid syntax -- Aaron Bingham Software Engineer Cenix BioScience GmbH -- http://mail.python.org/mailman/listinfo/python-list

Re: bool behavior in Python 3000?

2007-07-11 Thread aaron . watters
or precedence appropriately (versus using and, or, not) and also correctly implementing DeMorgan's laws and other property's of boolean algebra ~(a*b) == ~a + ~b etcetera. 1+True is bad practice and should be an error. Anything else is false advertising (and the java community has the pa

renaming an open file in nt like unix?

2007-07-13 Thread aaron . watters
pport this feature (which I think is standard for POSIX systems)? Inquiring minds want to know. -- Aaron Watters === an apple every 8 hours will keep 3 doctors away. -- kliban -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >