[issue20099] a new idea

2013-12-31 Thread Liam Marsh
New submission from Liam Marsh: idea: var(): input var name (str), outputs var value useful for(example in a chess program): >>>count=1 >>>while count<=8: ...var('a', count)='black queen' ...count=count+1 -- messages: 207118 nosy: Liam.Marsh priority: normal severity: normal sta

[issue20099] a new idea

2013-12-31 Thread Ezio Melotti
Ezio Melotti added the comment: You should propose this to the python-ideas mailing list, but from your description is not clear to me what you want. Can you try to explain it more in detail? Are you asking for a new function that accepts the name of a variable as a string and prints its value?

[issue20095] what is that result!?

2013-12-31 Thread Mark Dickinson
Mark Dickinson added the comment: > can you add an approximation of the result in the command? I don't really understand what you're asking here. If you're asking for the behaviour of multiplication to change so that it becomes more do-what-I-mean-ish, that's not going to happen. You could tr

[issue20100] epoll docs are not clear with regards to CLOEXEC.

2013-12-31 Thread R. David Murray
New submission from R. David Murray: http://docs.python.org/dev/library/select.html#select.epoll documents the EPOLL_CLOEXEC flag as something you can specify that makes the file descriptor be closed on exec. But then it goes on to say that the file descriptor is non-inheritable. So is the f

[issue20095] what is that result!?

2013-12-31 Thread Tim Peters
Tim Peters added the comment: @Liam, try using the "decimal" module instead. That follows rules much like the ones people learn as kids. >>> from decimal import Decimal as D >>> D("0.1") * 3 # decimal results are computed exactly Decimal('0.3') >>> D("1.01") - D(".01") # number of significan

[issue20099] a new idea

2013-12-31 Thread Liam Marsh
Liam Marsh added the comment: first, it was for the second idea, which can be replaced, but maybe sameone needs it, when you reed theese lines, this idea is sent. meen while, have a happy new year. -- status: pending -> open ___ Python tracker

[issue20100] epoll docs are not clear with regards to CLOEXEC.

2013-12-31 Thread STINNER Victor
STINNER Victor added the comment: Use os.set_inheritable(epoll.fileno(), True) to make the file descriptor inheritable. You should find this info easily if you follow the link on "non inheritable" in epoll documentation. EPOLL_CLOEXEC becomes useless in Python 3.4. It is used internally by defau

[issue20101] Determine correct behavior for time functions on Windows

2013-12-31 Thread Zachary Ware
New submission from Zachary Ware: For previous discussion, see issue1. To summarize, time on Windows is far from straight-forward, and currently for """ t1 = time.monotonic() time.sleep(0.5) t2 = time.monotonic() dt = t2-t1 """ dt may end up as very slightly smaller than 0.5 (0.4990030

[issue3982] support .format for bytes

2013-12-31 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue3982] support .format for bytes

2013-12-31 Thread Brett Cannon
Changes by Brett Cannon : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue20096] Mention modernize and future in Python 2/3 porting HOWTO

2013-12-31 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20065] Python-3.3.3/Modules/socketmodule.c:1660:14: error: 'CAN_RAW' undeclared (first use in this function)

2013-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Revision e767318baccd introduced usage of CAN_RAW. -- keywords: +3.3regression nosy: +Arfrever, neologix, pitrou versions: +Python 3.4 ___ Python tracker _

[issue6135] subprocess seems to use local encoding and give no choice

2013-12-31 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2013-12-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +vajrasky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20055] On Windows NT 6 with administrator account, there are two failing tests on test_shutil.py

2013-12-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f888589dbcd by Antoine Pitrou in branch '3.3': Issue #20055: Fix test_shutil under Windows with symlink privileges held. http://hg.python.org/cpython/rev/0f888589dbcd New changeset 6fd3d473e1c2 by Antoine Pitrou in branch 'default': Issue #20055: F

[issue20055] On Windows NT 6 with administrator account, there are two failing tests on test_shutil.py

2013-12-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Pushed, thank you! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue20099] a new idea

2013-12-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: This isn't a bug, please use https://mail.python.org/mailman/listinfo/python-ideas if you want to propose ideas. -- nosy: +pitrou resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Pyth

[issue1346238] A constant folding optimization pass for the AST

2013-12-31 Thread Paul Sokolovsky
Paul Sokolovsky added the comment: 8 years after the original patch, there's still no trivial constant folding in bytecode generated (because peephole of course is not a real optimizer to consistently catch all cases): $ cat const.py FOO = 1 BAR = FOO + 2 + 4 $ python --version Python 2.7.3