random module gives same results across all configurations?

2009-03-03 Thread Amir Michail
Hi, Is it the case that the random module will always give the same results if given the same seed across all configurations (e.g., architectures, compilers, etc.)? Amir -- http://mail.python.org/mailman/listinfo/python-list

Re: random module gives same results across all configurations?

2009-03-03 Thread Amir Michail
On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote: On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote: Hi, Is it the case that the random module will always give the same results if given the same seed across all configurations (e.g., architectures, compilers

Re: random module gives same results across all configurations?

2009-03-03 Thread Amir Michail
On Mar 4, 2:26 am, Diez B. Roggisch de...@nospam.web.de wrote: Amir Michail schrieb: On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote: On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote: Hi, Is it the case that the random module will always give the same

Re: python vs java eclipse

2006-12-02 Thread Amir Michail
Hi, Here's a blog post that is relevant to this discussion: http://sixthandredriver.typepad.com/river_of_code/2006/01/automated_refac.html Amir -- http://mail.python.org/mailman/listinfo/python-list

python vs java eclipse

2006-12-01 Thread Amir Michail
Hi, It seems to me that measuring productivity in a programming language must take into account available tools and libraries. Eclipse for example provides such an amazing IDE for java that it is no longer obvious to me that one would be much more productive in python for medium sized projects.

Re: python vs java eclipse

2006-12-01 Thread Amir Michail
krishnakant Mane wrote: just used the py dev plugin for eclipse. it is great. But isn't support for java better because the eclipse ide can take advantage of explicit type declarations (e.g., for intellisense, refactoring, etc.)? Amir auto indentation and intellisence. and all other

Re: python vs java eclipse

2006-12-01 Thread Amir Michail
[EMAIL PROTECTED] wrote: ... Is there anything _useful_ that it'll bring that a good editor doesn't? e.g. in vim I do get * automatic syntax checking (if I type if a=1: and hit enter, it'll immediately highlight the syntax error) * omni-completion (because Intellisense is trademarked) *

unpickling Set as set

2006-11-07 Thread Amir Michail
Hi, Is there an easy way to unpickle the older Set as the newer set behind the scenes when using shelve? Amir -- http://mail.python.org/mailman/listinfo/python-list

avoiding file corruption

2006-08-27 Thread Amir Michail
Hi, Trying to open a file for writing that is already open for writing should result in an exception. It's all too easy to accidentally open a shelve for writing twice and this can lead to hard to track down database corruption errors. Amir --

Re: avoiding file corruption

2006-08-27 Thread Amir Michail
Paolo Pantaleo wrote: 27 Aug 2006 00:44:33 -0700, Amir Michail [EMAIL PROTECTED]: Hi, Trying to open a file for writing that is already open for writing should result in an exception. It's all too easy to accidentally open a shelve for writing twice and this can lead to hard

Re: avoiding file corruption

2006-08-27 Thread Amir Michail
Diez B. Roggisch wrote: Amir Michail schrieb: Paolo Pantaleo wrote: 27 Aug 2006 00:44:33 -0700, Amir Michail [EMAIL PROTECTED]: Hi, Trying to open a file for writing that is already open for writing should result in an exception. It's all too easy to accidentally open a shelve

Re: avoiding file corruption

2006-08-27 Thread Amir Michail
Grant Edwards wrote: On 2006-08-27, Amir Michail [EMAIL PROTECTED] wrote: Trying to open a file for writing that is already open for writing should result in an exception. MS Windows seems to do something similar, and it pisses me off no end. Trying to open a file and read it while

Re: python library for web discussions

2006-03-19 Thread Amir Michail
Gregory Petrosyan wrote: reddit is written with webpy (webpy.org), maybe you should give it a try? I'm looking for a library that provides commenting on items in a similar way to reddit/digg/slashdot. I would rather not write all that code from scratch. I don't think web.py comes with that

python library for web discussions

2006-03-18 Thread Amir Michail
Hi, I'm building something like digg/reddit and would like to allow people to have discussions on various items. Is there a simple lightweight python library that I can use (as opposed to a heavyweight web framework)? Although not necessary, some sort of scoring/moderation mechanism would be

deleting a parameter's name as it is passed to a function

2005-10-14 Thread Amir Michail
Hi, I think it would be useful to delete a name of a parameter object as the object is passed to a function: dosomestuff(del a) instead of dosomestuff(a) del a The idea is to garbage collect the object as soon as possible, and this may be sooner than when dosomestuff returns. Amir --

cgi relay for python cgi script

2005-10-04 Thread Amir Michail
Hi, Is there an easy way to execute a python cgi script on a different machine from the cgi server? I could write my own server, but I was wondering if something is available that would allow me to use a cgi script as is without modification. Amir --

Re: cgi relay for python cgi script

2005-10-04 Thread Amir Michail
Fredrik Lundh wrote: Amir Michail wrote: Is there an easy way to execute a python cgi script on a different machine from the cgi server? http://www.google.com/search?q=reverse+proxy /F Is there an easy way to do this without modifying the configuration of the cgi server and without

Re: cgi relay for python cgi script

2005-10-04 Thread Amir Michail
Fredrik Lundh wrote: Amir Michail wrote: Is there an easy way to do this without modifying the configuration of the cgi server and without running a cgi server on the other machine where the script will actually run? Perhaps someone wrote a simple server that provides the required

editor for shelve files

2005-05-01 Thread Amir Michail
Hi, Is there a program for editing shelve databases? Amir -- http://mail.python.org/mailman/listinfo/python-list

ideal rankings for python related search engine queries

2005-04-09 Thread Amir Michail
Hi, Google is good, but not perfect. CollaborativeRank takes Google rankings as a starting point but allows users to tweak them in a collaborative way to achieve something even better. Perhaps some people in this group might be interested in producing even better rankings for python related

Open Course on Software System Design and Implementation

2005-02-22 Thread Amir Michail
Hi, I will be teaching a course on software system design and implementation. Like last year, the course will be open meaning that anyone can participate in online discussions -- not only UNSW students. You can find a mind map of topics covered last year here:

Make predictions about Python in a New Google Game

2005-01-08 Thread Amir Michail
Hi, I have added over 50 Python related (Query, URL) pairs into the Speculative Search Game -- a new Google game. Just search for python to find them when making predictions: http://www.cse.unsw.edu.au/~amichail/spec/ The Speculative Search Game allows you to predict which web pages will rank