Running Multiple Versions

2008-01-15 Thread noel
Hi,

We are windows shop with some unix servers as well. We run 2.4.1 and
want to begin migrating  to 2.5.1. I am looking for information
dealing with having more than one version of python on a server at one
time. I believe this is called side-by-side and all that is needed to
select a version on a windows box is to set the path to the desired
version of python prior to launching the script.

Does this sound correct?

Is there doc online that describes this?

For windows, has anyone come up with a way to have the script launch
the correct version at load time - similar to the she-bang method used
in unix?

Thanks

Noel
-- 
http://mail.python.org/mailman/listinfo/python-list


Managing concurrent.futures exit-handlers

2020-02-27 Thread Remy NOEL
Hello !

I am currently using concurrent.futures ThreadPoolExecutor, but i am
annoyed by its exit_handler preventing program exit if any of the jobs it
is running is blocked.

Currently i can workaround it by either unregister the exit handler
concurrent.futures.thread._python_exit or by subclassing the
threadpoolExecutor and overriding the _adjust_thread_count method with one
that does not register its threads queues.

Both seems kinda ugly though.

I was wondering if there was a better way.
Also, would adding an option to executors so that their worker threads is
not be globally joined  was conceivable.

Thanks !

Remy Noel
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: simple chemistry in python

2008-04-29 Thread Noel O'Boyle
2008/4/30 Astan Chee <[EMAIL PROTECTED]>:
>
>  Wow, that is the jackpot.
>  Is that color node supposed to be the actual color of the element? or just
> representation?

Representation. There are certain de facto standards, such as blue for
nitrogen and so on. Google "CPK colors" for the origin of some of
these.

>  Thanks again
>  Astan
>
>  baoilleach wrote:
>  If you are familiar with parsing XML, much of the data you need is
> stored in the following file:
> http://bodr.svn.sourceforge.net/viewvc/*checkout*/bodr/trunk/bodr/elements/elements.xml?revision=34&content-type=text%2Fplain
>
> This file is part of the Blue Obelisk Data Repository, an effort by
> several chemistry software developers to share common information. If
> you have any further questions, please email blueobelisk-
> [EMAIL PROTECTED]
>
> Noel
>
> On Apr 29, 8:48 am, Astan Chee <[EMAIL PROTECTED]> wrote:
>
>
>  Hi,
> Im looking for a python module to do simple chemistry things. Things
> like, finding the name of elements given the atomic number (and vice
> versa); what state the given matter is in depending on certain
> parameters; maybe even color of certain elements or even calculating the
> result of combining certain elements.
> I was looking for something simple, but everything I see seems to be a
> full blown chemistry set.
> I know I can probably spend a day doing this one element at a time, but
> I was wondering if there is already something like this done in a small
> scale?
> Thanks for any information
> Astan
>
> --
> "Formulations of number theory: Complete, Consistent, Non-trivial. Choose
> two."
>
> Animal Logichttp://www.animallogic.com
>
> Please think of the environment before printing this email.
>
> This email and any attachments may be confidential and/or privileged. If you
> are not the intended recipient of this email, you must not disclose or use
> the information contained in it. Please notify the sender immediately and
> delete this document if you have received it in error. We do not guarantee
> this email is error or virus free.
>
>  --
> http://mail.python.org/mailman/listinfo/python-list
>
>
>
>  --
> "Formulations of number theory: Complete, Consistent, Non-trivial. Choose
> two."
>
>
>
>
> Please think of the environment before printing this email.
>
> This email and any attachments may be confidential and/or privileged. If you
> are not the intended recipient of this email, you must not disclose or use
> the information
>  contained in it. Please notify the sender immediately and delete this
> document if you have received it in error. We do not guarantee this email is
> error or virus free.
--
http://mail.python.org/mailman/listinfo/python-list


how to convert this psuedo code to python

2018-09-14 Thread Noel P. CUA
 compose your own octave script to calculate the machine
epsilon. Analyze the code.

epsilon = 1
DO
IF (epsilon+1<=1) EXIT
epsilon = epsilon/2
END DO
epsilon = 2 x epsilon

-- 

*This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are 
addressed. If you have received this email in error please notify the 
system manager . This message contains 
confidential information and is intended only for the individual named. *If 
you are not the named addressee you should not disseminate, distribute or 
copy this e-mail*. Please notify the sender immediately by e-mail if you 
have received this e-mail by mistake and delete this e-mail from your 
system. If you are not the intended recipient you are notified that 
disclosing, copying, distributing or taking any action in reliance on the 
contents of this information is strictly prohibited.*
-- 
https://mail.python.org/mailman/listinfo/python-list


help me in python plssss!!!!

2018-09-14 Thread Noel P. CUA
 Calculate the true, relative and approximate errors, and  Relate the absolute 
relative approximate error to the number of significant digits.

epsilon = 1

while epsilon + 1 > 1:
epsilon = epsilon / 2.0

epsilon = 2 * epsilon

help me!

-- 

*This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are 
addressed. If you have received this email in error please notify the 
system manager . This message contains 
confidential information and is intended only for the individual named. *If 
you are not the named addressee you should not disseminate, distribute or 
copy this e-mail*. Please notify the sender immediately by e-mail if you 
have received this e-mail by mistake and delete this e-mail from your 
system. If you are not the intended recipient you are notified that 
disclosing, copying, distributing or taking any action in reliance on the 
contents of this information is strictly prohibited.*
-- 
https://mail.python.org/mailman/listinfo/python-list