[Python-Dev] pythonhosted.org doc upload no longer works

2017-09-04 Thread Giampaolo Rodola'
I know pythonhosted.org was deprecated long ago in favor of readthedocs but
I kept postponing it and my doc for psutil is still hosted on
https://pythonhosted.org/psutil/.

http://pythonhosted.org/ web page still recommends this:

>

I took a look at:
https://pypi.python.org/pypi?:action=pkg_edit&name=psutil
...but the form to upload the doc in zip format is gone.

The only available option is the "destroy documentation" button.
I would like to at least upload a static HTML page redirecting to the new
doc which I will soon move on readthedocs. Is that possible?

Thanks in advance.

-- 
Giampaolo - http://grodola.blogspot.com
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] pythonhosted.org doc upload no longer works

2017-09-04 Thread Oleg Broytman
Hi!

On Mon, Sep 04, 2017 at 06:47:23PM +0800, Giampaolo Rodola' 
 wrote:
> I know pythonhosted.org was deprecated long ago in favor of readthedocs but
> I kept postponing it and my doc for psutil is still hosted on
> https://pythonhosted.org/psutil/.
> 
> http://pythonhosted.org/ web page still recommends this:
> 
> < http://pypi.python.org/pypi?%3Aaction=pkg_edit&name=yourpackage), and fill
> out the form at the bottom of the page.>>
> 
> I took a look at:
> https://pypi.python.org/pypi?:action=pkg_edit&name=psutil
> ...but the form to upload the doc in zip format is gone.
> 
> The only available option is the "destroy documentation" button.

   What is worse, it doesn't work, at least for me.

> I would like to at least upload a static HTML page redirecting to the new
> doc which I will soon move on readthedocs. Is that possible?

   I'm also interested in redirecting or at least removing outdated docs.

> Thanks in advance.
> 
> -- 
> Giampaolo - http://grodola.blogspot.com

Oleg.
-- 
 Oleg Broytmanhttp://phdru.name/[email protected]
   Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] removing IRIX support

2017-09-04 Thread Benjamin Peterson
Since IRIX was EOLed in 2013, I propose support for it be removed in
Python 3.7. I will add it to PEP 11.
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] removing IRIX support

2017-09-04 Thread Guido van Rossum
Wow. IRIX. It was probably Python's first UNIX. It does sound like it's
time to stop supporting... +1

On Mon, Sep 4, 2017 at 1:48 PM, Benjamin Peterson 
wrote:

> Since IRIX was EOLed in 2013, I propose support for it be removed in
> Python 3.7. I will add it to PEP 11.
> ___
> Python-Dev mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/
> guido%40python.org
>



-- 
--Guido van Rossum (python.org/~guido)
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Complex numbers

2017-09-04 Thread TBER Abdelmalek
This module implements cplx class (complex numbers) regardless to the
built-in class.
The main goal of this module is to propose some improvement to complex
numbers in python and deal with them from a mathematical approach.
Also cplx class doesn't support the built-in class intentionally, as the
idea was to give an alternative to it.
With the hope I managed to succeed, here is the module :
# Module for complex numbers (doesn't support the built-in complex class)
# Originally contributed by TBER Abdelmalek

import re, math
from fractions import Fraction as Q

if __name__ == '__main__' :
import os, Complex
help(Complex)
os.system("pause")

_supported = (int, float, Q, str, tuple, list) # Supported types for 
instanciation and operations for cplx class

class cplx :

"""This class implements complex numbers at the form of 'a+bi'
   with a : the real part, and b : the imaginary part.
   a and b are real numbers : [integers, floating numbers, or 
   fractions (from Fraction class of fractions module), refered here by 
Q].
   
   Construction of complex numbers can be from two major ways :
- cplx([real part[, imaginary part]]) : 
Two real numbers arguments given and both optionals, so 
that cplx() = 0
For fractions use Fraction class : cplx(Q(n,d),Q(n',d'))
for details about Fraction, see help(Fraction).

-cplx('valid form of a complex number in a STRING'):
The advantage of this way is the ease of fractions use 
with '/'.
Examples : cplx('2i-1/4')
   cplx('6 - 1/5 * i') # spaces don't bother at 
all
   cplx('7i')
""" 
global _supported

def __init__(self, a=0, b=None):
if isinstance(a, str) and b is None:  # construction from string
if a == '' :
self.re = 0
self.im = 0
elif cplx.verify(a):
part_one = ''
part_two = ''
switch = False
first = True
for c in a :
if c in ('+', '-') and not first : 
switch = True
part_two += c
elif not switch :
if c.isalnum() or c in ('+', 
'-', '/') : part_one += c
elif c in (',', '.') : part_one 
+= '.'
else :
if c.isalnum() or c == '/' : 
part_two += c
elif c in (',', '.') : part_two 
+= '.'
first = False
if 'i' in part_two :
part_two = part_two[:len(part_two)-1]
if '.' in part_one : self.re = 
float(part_one)
elif '/' in part_one : self.re = 
Q(part_one)
else : self.re = int(part_one)
if '.' in part_two : self.im = 
float(part_two)
elif '/' in part_two : self.im = 
Q(part_two)
elif part_two == '+' : self.im = 1
elif part_two == '-' : self.im = -1
else : self.im = int(part_two)
elif 'i' in part_one :
part_one = part_one[:len(part_one)-1]
if part_two == '' : self.re = 0
elif '.' in  part_two : self.re = 
float(part_two)
elif '/' in part_two : self.re = 
Q(part_two)
else : self.re = int(part_two)
if '.' in part_one : self.im = 
float(part_one)
elif '/' in part_one : self.im = 
Q(part_one)
elif part_one == '' or part_one == '+' 
: self.im = 1
elif part_one == '-' : self.im = -1
else : self.im = int(part_one)
else :
if '.' in part_one : self.re = 
float(part_one)
elif '/' in part_one : self.re = 
Q

Re: [Python-Dev] Complex numbers

2017-09-04 Thread David Mertz
This sounds like something worthwhile to put on GitHub and PyPI. But it
doesn't seem like it has much to do with developing CPython itself, the
purpose of this list.

On Sep 4, 2017 2:09 PM, "TBER Abdelmalek"  wrote:

> This module implements cplx class (complex numbers) regardless to the
> built-in class.
> The main goal of this module is to propose some improvement to complex
> numbers in python and deal with them from a mathematical approach.
> Also cplx class doesn't support the built-in class intentionally, as the
> idea was to give an alternative to it.
> With the hope I managed to succeed, here is the module :
>
>
> ___
> Python-Dev mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/
> mertz%40gnosis.cx
>
>
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Complex numbers

2017-09-04 Thread TBER Abdelmalek
thanks for your feedback.

Le 4 sept. 2017 22:35, "David Mertz"  a écrit :

> This sounds like something worthwhile to put on GitHub and PyPI. But it
> doesn't seem like it has much to do with developing CPython itself, the
> purpose of this list.
>
> On Sep 4, 2017 2:09 PM, "TBER Abdelmalek"  wrote:
>
>> This module implements cplx class (complex numbers) regardless to the
>> built-in class.
>> The main goal of this module is to propose some improvement to complex
>> numbers in python and deal with them from a mathematical approach.
>> Also cplx class doesn't support the built-in class intentionally, as the
>> idea was to give an alternative to it.
>> With the hope I managed to succeed, here is the module :
>>
>>
>> ___
>> Python-Dev mailing list
>> [email protected]
>> https://mail.python.org/mailman/listinfo/python-dev
>> Unsubscribe: https://mail.python.org/mailman/options/python-dev/mertz%
>> 40gnosis.cx
>>
>>
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com