[issue13060] allow other rounding modes in round()

2011-10-07 Thread Aaron Robson

Aaron Robson  added the comment:

When i run into I have to bodge around it in ways like the below code.

I've only ever used round half up, has anyone here even used Bankers Rounding 
by choice before?

For reference here are the other options: 
http://en.wikipedia.org/wiki/Rounding#Tie-breaking

def RoundHalfUp(number):
  '''http://en.wikipedia.org/wiki/Rounding#Round_half_up
  0.5 and above round up else round down.
  '''
  trunc = int(number)
  fractionalPart = number - trunc
  if fractionalPart < 0.5:
return trunc
  else:
ceil = trunc + 1
return ceil

--
nosy: +AaronR

___
Python tracker 
<http://bugs.python.org/issue13060>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12664] Path variable - Windows installer

2011-07-31 Thread Aaron Robson

New submission from Aaron Robson :

One of the main barriers to getting a working development environment for me 
was having to discover that I needed, learn about and find out how to set up 
the Path variable in Windows.

I propose an option in the installer (perhaps even set to be on by default) to 
allow the user to choose if they want it to be added to the list or not.

My apologies if this has been raised before (my searches in the tracker didn't 
turn up any similar problems), I am quite new to the issue tracker however.

--
components: Installation
messages: 141468
nosy: AaronR
priority: normal
severity: normal
status: open
title: Path variable - Windows installer
type: feature request
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker 
<http://bugs.python.org/issue12664>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2011-08-11 Thread Aaron Robson

Changes by Aaron Robson :


--
nosy: +AaronR

___
Python tracker 
<http://bugs.python.org/issue3561>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12006] strptime should implement %V or %u directive from libc

2011-08-11 Thread Aaron Robson

Changes by Aaron Robson :


--
nosy: +AaronR

___
Python tracker 
<http://bugs.python.org/issue12006>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com