Re: "in house" pypi?

2011-03-23 Thread Martin v. Loewis
Am 24.03.2011 04:19, schrieb Miki Tebeka: > Greetings, > > My company want to distribute Python packages internally. We would like > something like an internal PyPi where people can upload and easy_install from > packages. > > Is there such a ready made solution? > I'd like something as simple

Re: Instant File I/O

2011-03-23 Thread Dan Stromberg
I'm not familiar with linecache.clearcache(), but did you flush the data to the filesystem with file_.flush() ? On Wed, Mar 23, 2011 at 9:53 PM, jam1991 wrote: > I'm trying to build a feature on to a text-based game that I've been > working on that would allow users to view their stats. Informat

Instant File I/O

2011-03-23 Thread jam1991
I'm trying to build a feature on to a text-based game that I've been working on that would allow users to view their stats. Information is stored in a flat text database file that is given the same name that they sign into the program with; however, this information doesn't appear in the file until

"in house" pypi?

2011-03-23 Thread Miki Tebeka
Greetings, My company want to distribute Python packages internally. We would like something like an internal PyPi where people can upload and easy_install from packages. Is there such a ready made solution? I'd like something as simple as possible, without my install headache. Thanks, -- Miki

Re: Free Software University - Python Certificate

2011-03-23 Thread Red John
> To me all this does not look professional for somebody who want to > attract students / instructors I'm a big fan of the Menu containing a (useless) link to First Menu Item -- http://mail.python.org/mailman/listinfo/python-list

Re: Validating Command Line Options

2011-03-23 Thread Jonathan Gossage
See inline comments On Wed, Mar 23, 2011 at 2:13 PM, Alex Willmer wrote: > On Mar 23, 3:20 pm, T wrote: > > Thanks! argparse is definitely what I need..unfortunately I'm running > > 2.6 now, so I'll need to upgrade to 2.7 and hope that none of my other > > scripts break. > > Argparse was a thi

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Carl Banks
On Mar 23, 1:38 pm, Paul Rubin wrote: > Carl Banks writes: > > It's kind of ridiculous to claim that cmp adds much complexity (it's > > maybe ten lines of extra C code), so the only reason not to include it > > is that it's much slower than using key. > > Well, I thought it was also to get rid of

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Paul Rubin
Carl Banks writes: > It's kind of ridiculous to claim that cmp adds much complexity (it's > maybe ten lines of extra C code), so the only reason not to include it > is that it's much slower than using key. Well, I thought it was also to get rid of 3-way cmp in general, in favor of rich comparison

Re: May I discuss here issues on Machine Learning?

2011-03-23 Thread Robert Kern
On 3/22/11 6:18 PM, joy99 wrote: Dear Group, My apology to pose this non python question in this forum. I am trying to develop one Naive Bayes Classifier and one HMM with Python. But my question is not related to Python, rather to these two models, whether I am choosing right parameters, etc for

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Carl Banks
On Mar 23, 10:51 am, Stefan Behnel wrote: > Carl Banks, 23.03.2011 18:23: > > > > > > > On Mar 23, 6:59 am, Stefan Behnel wrote: > >> Antoon Pardon, 23.03.2011 14:53: > > >>> On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: > The removal of cmp from the sort method of lists is

Re: Special logging module needed

2011-03-23 Thread Dan Stromberg
On Wed, Mar 23, 2011 at 7:37 AM, Laszlo Nagy wrote: > I was also thinking about storing data in a gdbm database. One file for > each month storing at most 100 log messages for every key value. Then one > file for each day in the current month, storing one message for each key > value. Incrementa

autoscale y to current xrange in view - matplotlib

2011-03-23 Thread urban_gibbon
Hi I am very new to python and matplotlib, so please forgive me if this is a naive question I have a question regarding the y autoscale. I would like it to scale to only the current data in view, not all the data. At the moment the y axes are scaled to some data not currently shown and so ver

Re: Validating Command Line Options

2011-03-23 Thread Alex Willmer
On Mar 23, 3:20 pm, T wrote: > Thanks!  argparse is definitely what I need..unfortunately I'm running > 2.6 now, so I'll need to upgrade to 2.7 and hope that none of my other > scripts break. Argparse was a third-party module before it became part of the std- lib. You may find it easier to use th

Python-URL! - weekly Python news and links (Mar 23)

2011-03-23 Thread Cameron Laird
QOTW: "So far as I know, that actually just means that the test suite is insufficient." - Peter Seebach, when an application passes all its tests http://groups.google.com/group/comp.lang.lisp/msg/29aff9595bb0eac0 Administrative note: it's been a while--since the end of October 2010, in fact;

Re: urllib2 - not returning page expected after post

2011-03-23 Thread John Nagle
On 3/23/2011 5:14 AM, David Feyo wrote: I'm trying to automate reverse-ip lookups on domaintools.com. Sign up for their API. They charge the same as for web lookups. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Stefan Behnel
Carl Banks, 23.03.2011 18:23: On Mar 23, 6:59 am, Stefan Behnel wrote: Antoon Pardon, 23.03.2011 14:53: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Carl Banks
On Mar 23, 6:59 am, Stefan Behnel wrote: > Antoon Pardon, 23.03.2011 14:53: > > > On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: > >> The removal of cmp from the sort method of lists is probably the most > >> disliked change in Python 3. On the python-dev mailing list at the > >>

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Stefan Behnel
Antoon Pardon, 23.03.2011 16:14: On Wed, Mar 23, 2011 at 02:59:09PM +0100, Stefan Behnel wrote: Antoon Pardon, 23.03.2011 14:53: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. O

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Ian Kelly
On Wed, Mar 23, 2011 at 9:14 AM, Antoon Pardon wrote: > Which isn't helpfull if where you decide how they have to be sorted is > not the place where they are actually sorted. > > I have a class that is a priority queue. Elements are added at random but > are removed highest priority first. The pri

Re: Threading with Socket Server

2011-03-23 Thread T
The server portion of the program will typically be writing to the shelve file (there may be a few cases in which I will need it to read), and the other part of the program will read it. Basically, I want the following to be able to both go on at the same time: 1) Server portion waits for connect

Re: Validating Command Line Options

2011-03-23 Thread T
Thanks! argparse is definitely what I need..unfortunately I'm running 2.6 now, so I'll need to upgrade to 2.7 and hope that none of my other scripts break. -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Antoon Pardon
On Wed, Mar 23, 2011 at 02:59:09PM +0100, Stefan Behnel wrote: > Antoon Pardon, 23.03.2011 14:53: > >On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: > >>The removal of cmp from the sort method of lists is probably the most > >>disliked change in Python 3. On the python-dev mailing

Discount Wholesale ED Hardy beach shorts man

2011-03-23 Thread polotshirt
Discount Wholesale EVISU short jeans man http://www.idesignerworld01.com/ Discount Wholesale G-star long jeans man Discount Wholesale Gucci long jeans man http://www.idesignerworld01.com/ Discount Wholesale Jeep long jeans man http://www.idesignerworld01.com/ Discount Wholesale LB long jeans man

Re: Free Software University - Python Certificate

2011-03-23 Thread dozor
On Mar 22, 4:38 pm, Noah Hall wrote: > On Tue, Mar 22, 2011 at 11:30 AM, Giovani wrote: > >> I don't know whether this site is useful or not. > > >> Assuming this site is serious: > >> If you are already subscribed you might be able to give some feedback. > > >> One can't even see the list of cou

Re: Validating Command Line Options

2011-03-23 Thread Boris FELD
If you're using argparse, you have a method for that named "add_mutually_exclusive_group". Tutorial : http://www.doughellmann.com/PyMOTW/argparse/#mutually-exclusive-options Cheers, Feld Boris 2011/3/23 T : > For a Python script with multiple command line options, what is the > best way to go abo

Re: Threading with Socket Server

2011-03-23 Thread Boris FELD
I'm not sure to understand what you want. Is it your server process that will read the shelve file ? You may give more informations about your problem, but i can give you some hints. In order to create a TCP server, you can use SocketServer which is in the builtin library (http://docs.python.org/l

readline module (python: symbol 'tgetnum': can't resolve symbol)

2011-03-23 Thread bruce bushby
Hi I'm hoping the list could give me some insight into how python behaves when it has been compiled with "readline". I sent the following email to the uClibc list which describes my problem, any tips or pointers would be much appreciated! Thanks Bruce Using buildroot, I am able to co

Re: Validating Command Line Options

2011-03-23 Thread Joe Riopel
On Wed, Mar 23, 2011 at 10:10 AM, T wrote: > For a Python script with multiple command line options, what is the > best way to go about validating that only certain options are used > together?  For example, say -s, -t, and -v are all valid options, but > should never be used together (i.e. -s -t

Special logging module needed

2011-03-23 Thread Laszlo Nagy
Hi All, We have a special problem that needs to be addressed. We need to have a database of log messages. These messages are not simple strings - they are data structures. The log messages are assigned to various objects. Objects can be identified with simple object identifiers (strings).

Re: Validating Command Line Options

2011-03-23 Thread bruce bushby
optparse? http://docs.python.org/library/optparse.html if options.a and options.b: parser.error("options -a and -b are mutually exclusive") On Wed, Mar 23, 2011 at 2:10 PM, T wrote: > For a Python script with multiple command line options, what is the > best way to go about validating th

Validating Command Line Options

2011-03-23 Thread T
For a Python script with multiple command line options, what is the best way to go about validating that only certain options are used together? For example, say -s, -t, and -v are all valid options, but should never be used together (i.e. -s -t would be invalid). Thanks in advance. -- http://ma

pth files and virtualenv

2011-03-23 Thread Calvin Spealman
I am not understanding why paths I'm adding to a virtualenv via add2virtualenv are not working. I use this in plenty of other situations, but in this one project (which is on 3.2) I am getting strange behavior. ~/projects/fooproject/# add2virtualenv src/ ~/projects/fooproject/# python3 -c "impor

Threading with Socket Server

2011-03-23 Thread T
Hello all, I am writing a Windows service that needs to 1) Act as a server (TCP), and write to a shelve file, and 2) Read that same shelve file every x number of seconds. My thought is to create 2 separate classes (1 for the socket server and writing to the shelve file, and another to read the fil

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Stefan Behnel
Antoon Pardon, 23.03.2011 14:53: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake.

Re: Guido rethinking removal of cmp from sort method

2011-03-23 Thread Antoon Pardon
On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: > The removal of cmp from the sort method of lists is probably the most > disliked change in Python 3. On the python-dev mailing list at the > moment, Guido is considering whether or not it was a mistake. > > If anyone has any use-

Re: side by side python

2011-03-23 Thread John Roth
On Mar 21, 6:31 am, Robert wrote: > Can I install Python 2.7 and 3.2 (from python.org) side by side on OSX > without them stepping all over each other? Also look at PEP 394. It makes some suggestions about installing symbolic links to each of the versions. If you do it that way, you can use Pytho

urllib2 - not returning page expected after post

2011-03-23 Thread David Feyo
I'm trying to automate reverse-ip lookups on domaintools.com. Everything is fine, except that I don't exactly get the data I want after I submit a post to the site. I know the post is correct, the return data just doesn't appear on the post. Not sure what to do at this point. Here is the code: #!/

Re: May I discuss here issues on Machine Learning?

2011-03-23 Thread joy99
On Mar 23, 2:57 pm, Brian Blais wrote: > On Mar 22, 2011, at 7:18 PM, joy99 wrote: > > > My apology to pose this non python question in this forum. I am trying > > to develop one Naive Bayes Classifier and one HMM with Python. But my > > question is not related to Python, rather to these two model

Re: May I discuss here issues on Machine Learning?

2011-03-23 Thread Brian Blais
On Mar 22, 2011, at 7:18 PM, joy99 wrote: > My apology to pose this non python question in this forum. I am trying > to develop one Naive Bayes Classifier and one HMM with Python. But my > question is not related to Python, rather to these two models, whether > I am choosing right parameters, etc

Many runner fans were ecstatic to hear about these particular Air max's making a return.

2011-03-23 Thread jerser-2009
Many runner fans were ecstatic to hear about these particular Air max's making a return. The Nike Air Max 90 is a prized colorway of a classic sneaker, so it only makes sense that its return would create serious buzz. Nike’s "Blue Slate" Air Max 95 has made a triumphant return to retail shelves thi