Re: how to check if a value is a floating point or not

2014-06-19 Thread Gary Herron
On 06/18/2014 10:53 PM, nicholascann...@gmail.com wrote: I am making a calculator and i need it to support floating point values but i am using the function isnumeric to check if the user has entered an int value. I need the same for floating point types so i could implement an or in the if

Re: how to check if a value is a floating point or not

2014-06-19 Thread Nicholas Cannon
On Thursday, June 19, 2014 1:53:31 PM UTC+8, Nicholas Cannon wrote: I am making a calculator and i need it to support floating point values but i am using the function isnumeric to check if the user has entered an int value. I need the same for floating point types so i could implement an or

Re: Understanding Python Code

2014-06-19 Thread Ian Kelly
On Wed, Jun 18, 2014 at 11:50 PM, subhabangal...@gmail.com wrote: Thank you for the reply. But as I checked it again I found, f_prev[k] is giving values of f_curr[st] = e[st][x_i] * prev_f_sum which is calculated later and again uses prev_f_sum. f_prev is the f_curr that was calculated on the

Python 3 on Mac OS X 10.8.4

2014-06-19 Thread Une Bévue
On my mac i do have : $ python --version Python 2.7.2 I want to install Python 3 such as python-3.4.0-macosx10.6.dmg avoiding disturbing the built-in version. Is that possible ? -- https://mail.python.org/mailman/listinfo/python-list

Re: Under what kind of situation, time.sleep(n) would sleep much longer than n seconds?

2014-06-19 Thread Christian Gollwitzer
Am 19.06.14 01:38, schrieb Chris Angelico: a good console UI just requires this: something = raw_input(Enter something: ) print(Result: +result) That is actually one of the worst console UIs possible. Almost all beginner's courses start with programs like that, requiring the user to key

Re: how to check if a value is a floating point or not

2014-06-19 Thread Ben Finney
Nicholas Cannon nicholascann...@gmail.com writes: #checks if the user input is an integer value def checkint(a): if a.isnumeric(): return True else: if a.isalpha(): return False else: return

Re: how to check if a value is a floating point or not

2014-06-19 Thread Ian Kelly
On Thu, Jun 19, 2014 at 12:48 AM, Nicholas Cannon nicholascann...@gmail.com wrote: On Thursday, June 19, 2014 1:53:31 PM UTC+8, Nicholas Cannon wrote: I am making a calculator and i need it to support floating point values but i am using the function isnumeric to check if the user has entered

Re: how to check if a value is a floating point or not

2014-06-19 Thread Ian Kelly
On Thu, Jun 19, 2014 at 1:23 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Jun 19, 2014 at 12:48 AM, Nicholas Cannon nicholascann...@gmail.com wrote: On Thursday, June 19, 2014 1:53:31 PM UTC+8, Nicholas Cannon wrote: I am making a calculator and i need it to support floating point values

Re: Under what kind of situation, time.sleep(n) would sleep much longer than n seconds?

2014-06-19 Thread Chris Angelico
On Thu, Jun 19, 2014 at 5:18 PM, Christian Gollwitzer aurio...@gmx.de wrote: Am 19.06.14 01:38, schrieb Chris Angelico: a good console UI just requires this: something = raw_input(Enter something: ) print(Result: +result) That is actually one of the worst console UIs possible My

Re: Python 3 on Mac OS X 10.8.4

2014-06-19 Thread Andrea D'Amore
On 2014-06-19 07:02:21 +, Une Bévue said: I want to install Python 3 such as python-3.4.0-macosx10.6.dmg avoiding disturbing the built-in version. Is that possible ? The Installer app won't let you see the target path of each package in the metapackage so you'll have to open each of the

Re: Python Fails to Write to File

2014-06-19 Thread cutey Love
Thank you very much, that fixed it. On Thursday, June 19, 2014 12:03:43 AM UTC+1, cutey Love wrote: I'm trying to write data to a text file But I'm getting the error: TypeError: invalid file: _io.TextIOWrapper Code is def saveFile(): file_path =

Re: Not Responding When Dealing with Large Data

2014-06-19 Thread cutey Love
update_idletasks didn't work. The code is this file_path = filedialog.askopenfilename(filetypes=[('text files', '.txt')], multiple=True, defaultextension=.txt) for path in file_path: fo = open(path, r) for line in fo: if

Re: Python Fails to Write to File

2014-06-19 Thread Mark Lawrence
On 19/06/2014 08:54, cutey Love wrote: Thank you very much, that fixed it. What do you not understand about top posting and using google groups? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free

Re: Python 3 on Mac OS X 10.8.4

2014-06-19 Thread Une Bévue
Le 19/06/14 09:52, Andrea D'Amore a écrit : Brew should require the smaller command line package. OK, fine thanks, I'll use brew. -- https://mail.python.org/mailman/listinfo/python-list

urllib/urllib2 support for specifying ip address

2014-06-19 Thread Robin Becker
I want to run torture tests against an https server on domain A; I have configured apache on the server to respond to a specific hostname ipaddress. I don't want to torture the live server so I have set up an alternate instance on a different ip address. Is there a way to get urlib or

Re: Under what kind of situation, time.sleep(n) would sleep much longer than n seconds?

2014-06-19 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: Yeah, I think [raw_]input() isn't so bad after all. I have never used it. I *have* used getpass.getpass(). Unfortunately, it doesn't have a corresponding prompt and raw input variant so I've had to essentially copy over getpass() code and modify that: fd =

Re: urllib/urllib2 support for specifying ip address

2014-06-19 Thread Chris Angelico
On Thu, Jun 19, 2014 at 7:22 PM, Robin Becker ro...@reportlab.com wrote: I want to run torture tests against an https server on domain A; I have configured apache on the server to respond to a specific hostname ipaddress. I don't want to torture the live server so I have set up an alternate

Re: Understanding Python Code

2014-06-19 Thread subhabangalore
On Thursday, June 19, 2014 12:30:12 PM UTC+5:30, Ian wrote: On Wed, Jun 18, 2014 at 11:50 PM, wrote: Thank you for the reply. But as I checked it again I found, f_prev[k] is giving values of f_curr[st] = e[st][x_i] * prev_f_sum which is calculated later and again uses prev_f_sum.

Re: Python 3 on Mac OS X 10.8.4

2014-06-19 Thread Andrew Jaffe
On 19/06/2014 08:02, Une Bévue wrote: On my mac i do have : $ python --version Python 2.7.2 I want to install Python 3 such as python-3.4.0-macosx10.6.dmg avoiding disturbing the built-in version. Is that possible ? The python.org packages are explicitly created in order to have no conflict

can I get 0./0. to return nan instead of exception?

2014-06-19 Thread Neal Becker
Can I change behavior of py3 to return nan for 0./0. instead of raising an exception? -- https://mail.python.org/mailman/listinfo/python-list

Re: Not Responding When Dealing with Large Data

2014-06-19 Thread MRAB
On 2014-06-19 09:17, cutey Love wrote: update_idletasks didn't work. The code is this file_path = filedialog.askopenfilename(filetypes=[('text files', '.txt')], multiple=True, defaultextension=.txt) for path in file_path: fo = open(path, r) for line in fo:

Re: can I get 0./0. to return nan instead of exception?

2014-06-19 Thread Joel Goldstick
On Jun 19, 2014 7:05 AM, Neal Becker ndbeck...@gmail.com wrote: Can I change behavior of py3 to return nan for 0./0. instead of raising an exception? There is no nan in python. -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: can I get 0./0. to return nan instead of exception?

2014-06-19 Thread Chris “Kwpolska” Warrick
On Thu, Jun 19, 2014 at 1:31 PM, Joel Goldstick joel.goldst...@gmail.com wrote: On Jun 19, 2014 7:05 AM, Neal Becker ndbeck...@gmail.com wrote: Can I change behavior of py3 to return nan for 0./0. instead of raising an exception? There is no nan in python. Wrong: float('nan') nan also:

Re: urllib/urllib2 support for specifying ip address

2014-06-19 Thread Robin Becker
.. Since you mention urllib2, I'm assuming this is Python 2.x, not 3.x. The exact version may be significant. I can use python = 3.3 if required. Can you simply query the server by IP address rather than host name? According to the docs, urllib2.urlopen() doesn't check the

Re: can I get 0./0. to return nan instead of exception?

2014-06-19 Thread Chris Angelico
On Thu, Jun 19, 2014 at 9:31 PM, Joel Goldstick joel.goldst...@gmail.com wrote: On Jun 19, 2014 7:05 AM, Neal Becker ndbeck...@gmail.com wrote: Can I change behavior of py3 to return nan for 0./0. instead of raising an exception? There is no nan in python. Yes, there is, but it's not normal

Re: urllib/urllib2 support for specifying ip address

2014-06-19 Thread Chris Angelico
On Thu, Jun 19, 2014 at 9:51 PM, Robin Becker ro...@reportlab.com wrote: Since you mention urllib2, I'm assuming this is Python 2.x, not 3.x. The exact version may be significant. I can use python = 3.3 if required. The main reason I ask is in case something's changed. Basically, what I did

Re: Backport fix on #16611 to Python 2.7

2014-06-19 Thread Makoto Kuwata
Sorry, I failed to post reply: -- Forwarded message -- From: Makoto Kuwata k...@kuwata-lab.com Date: Wed, Jun 18, 2014 at 5:32 PM Subject: Re: Backport fix on #16611 to Python 2.7 To: Terry Reedy tjre...@udel.edu On Wed, Jun 18, 2014 at 12:31 PM, Terry Reedy tjre...@udel.edu

DHCP query script not work.

2014-06-19 Thread 不坏阿峰
Dear all i got code recipes from here. and i want to run it on win 7. http://code.activestate.com/recipes/577649-dhcp-query/ i have do some modify and use print to check how it is work, but i am stucked now. hope someone can help me. thanks a lot. i meet this error: Traceback (most recent

Re: DHCP query script not work.

2014-06-19 Thread Steven D'Aprano
On Thu, 19 Jun 2014 05:56:57 -0700, 不坏阿峰 wrote: Traceback (most recent call last): File D:/Workspace/TestExcel/Test/test_DHCP.py, line 138, in module offer = DHCPOffer(data, discoverPacket.transactionID) File D:/Workspace/TestExcel/Test/test_DHCP.py, line 82, in __init__

pyhon 1.5.2 problem

2014-06-19 Thread Pat Fourie
Good Day all, I have the following problem. This is the python code # Import SER # SER.set_speed('115200','8N1') .. .. .. When I run the above code I get the following error : SER.set_speed('115200','8N1') AttributeError : set_speed Can anyone help as this did work before.I have

Re: DHCP query script not work.

2014-06-19 Thread Peter Otten
不坏阿峰 wrote: i got code recipes from here. and i want to run it on win 7. http://code.activestate.com/recipes/577649-dhcp-query/ i have do some modify and use print to check how it is work, but i am stucked now. hope someone can help me. thanks a lot. i meet this error: Traceback

Re: DHCP query script not work.

2014-06-19 Thread soneedu
On Thursday, June 19, 2014 8:23:17 PM UTC+7, Peter Otten wrote: 不坏阿峰 wrote: i got code recipes from here. and i want to run it on win 7. http://code.activestate.com/recipes/577649-dhcp-query/ i have do some modify and use print to check how it is work, but i am stucked

Re: pyhon 1.5.2 problem

2014-06-19 Thread Peter Otten
Pat Fourie wrote: Good Day all, I have the following problem. This is the python code # Import SER # SER.set_speed('115200','8N1') .. .. .. When I run the above code I get the following error : SER.set_speed('115200','8N1') AttributeError : set_speed

Re: DHCP query script not work.

2014-06-19 Thread 不坏阿峰
在 2014年6月19日星期四UTC+7下午8时23分17秒,Peter Otten写道: 不坏阿峰 wrote: i got code recipes from here. and i want to run it on win 7. http://code.activestate.com/recipes/577649-dhcp-query/ i have do some modify and use print to check how it is work, but i am stucked now. hope

Re: how to check if a value is a floating point or not

2014-06-19 Thread Sturla Molden
nicholascann...@gmail.com wrote: I am making a calculator and i need it to support floating point values but i am using the function isnumeric to check if the user has entered an int value. I need the same for floating point types so i could implement an or in the if statement that checks the

Re: DHCP query script not work.

2014-06-19 Thread Anssi Saari
不坏阿峰 onlydeb...@gmail.com writes: Dear all i got code recipes from here. and i want to run it on win 7. http://code.activestate.com/recipes/577649-dhcp-query/ It works for me as is in Windows 7. It's a Python 3 script though which might be your problem. --

Re: DHCP query script not work.

2014-06-19 Thread 不坏阿峰
On Thursday, June 19, 2014 8:49:21 PM UTC+7, Anssi Saari wrote: 不坏阿峰 onlydeb...@gmail.com writes: Dear all i got code recipes from here. and i want to run it on win 7. http://code.activestate.com/recipes/577649-dhcp-query/ It works for me as is in Windows 7. It's a

Re: pyhon 1.5.2 problem

2014-06-19 Thread Steven D'Aprano
Are you really using Python 1.5.2? Wow. That's really old :-) Please copy and paste the *full* traceback that Python shows. A few more comments below: On Thu, 19 Jun 2014 14:55:36 +0200, Pat Fourie wrote: This is the python code # Import SER No it isn't. Import SER is a syntax error.

Re: Understanding Python Code

2014-06-19 Thread Ian Kelly
On Thu, Jun 19, 2014 at 3:48 AM, subhabangal...@gmail.com wrote: I am trying to see this line, prev_f_sum = sum(f_prev[k]*a[k][st] for k in states) a[k][st], and f_prev[k] I could take out and understood. Now as it is doing sum() so it must be over a list, I am trying to understand the

Re: Create flowcharts from Python

2014-06-19 Thread Wolfgang Keller
Is there a library for Python that can easily create flowcharts using a simple API? Graphviz (-TikZ-LaTeX-PDF) But the users want to see this as a visual flowchart too. It would be the best to have it automatically arranged; or at least open it an editor so they can move the nodes and see

Re: urllib/urllib2 support for specifying ip address

2014-06-19 Thread Robin Becker
On 19/06/2014 13:03, Chris Angelico wrote: . I can use python = 3.3 if required. The main reason I ask is in case something's changed. Basically, what I did was go to my Python 2 installation (which happens to be 2.7.3, because that's what Debian Wheezy ships with - not sure why it

Re: urllib/urllib2 support for specifying ip address

2014-06-19 Thread Chris Angelico
On Fri, Jun 20, 2014 at 12:19 AM, Robin Becker ro...@reportlab.com wrote: in practice [monkeypatching socket] worked well with urllib in python27. Excellent! That's empirical evidence of success, then. Like with all monkey-patching, you need to keep it as visible as possible, but if your driver

Re: Understanding Python Code

2014-06-19 Thread subhabangalore
On Thursday, June 19, 2014 7:39:42 PM UTC+5:30, Ian wrote: On Thu, Jun 19, 2014 at 3:48 AM, wrote: I am trying to see this line, prev_f_sum = sum(f_prev[k]*a[k][st] for k in states) a[k][st], and f_prev[k] I could take out and understood. Now as it is doing sum() so it must be

Re: Not Responding When Dealing with Large Data

2014-06-19 Thread Peter Pearson
On Thu, 19 Jun 2014 12:25:23 +0100, MRAB pyt...@mrabarnett.plus.com wrote: [snip] and then you can say: def myCase(c): if len(c) 8 or len(c) 80: return False if c in mySet: return False return True which can be shortened to:

Re: Not Responding When Dealing with Large Data

2014-06-19 Thread MRAB
On 2014-06-19 17:21, Peter Pearson wrote: On Thu, 19 Jun 2014 12:25:23 +0100, MRAB pyt...@mrabarnett.plus.com wrote: [snip] and then you can say: def myCase(c): if len(c) 8 or len(c) 80: return False if c in mySet: return False

Re: Under what kind of situation, time.sleep(n) would sleep much longer than n seconds?

2014-06-19 Thread Christian Gollwitzer
Am 19.06.14 09:42, schrieb Chris Angelico: On Thu, Jun 19, 2014 at 5:18 PM, Christian Gollwitzer aurio...@gmx.de wrote: Am 19.06.14 01:38, schrieb Chris Angelico: a good console UI just requires this: something = raw_input(Enter something: ) print(Result: +result) That is actually one of

Re: Understanding Python Code

2014-06-19 Thread subhabangalore
On Thursday, June 19, 2014 7:57:38 PM UTC+5:30, wrote: On Thursday, June 19, 2014 7:39:42 PM UTC+5:30, Ian wrote: On Thu, Jun 19, 2014 at 3:48 AM, wrote: I am trying to see this line, prev_f_sum = sum(f_prev[k]*a[k][st] for k in states) a[k][st], and

Re: Understanding Python Code

2014-06-19 Thread Ian Kelly
On Thu, Jun 19, 2014 at 12:44 PM, subhabangal...@gmail.com wrote: Dear Group, Generally most of the issues are tackled here, but as I am trying to cross check my understanding I found another question, f_curr[st] = e[st][x_i] * prev_f_sum Here, if I give one print command and see the

Re: Under what kind of situation, time.sleep(n) would sleep much longer than n seconds?

2014-06-19 Thread Chris Angelico
On Fri, Jun 20, 2014 at 3:17 AM, Christian Gollwitzer aurio...@gmx.de wrote: While I don't understand the purpose of the program (is it a game?), it shows exactly why this is a bad idea. It's a tool for calculating stuff about railway tracks. Never mind about the details of what it does with

Re: Under what kind of situation, time.sleep(n) would sleep much longer than n seconds?

2014-06-19 Thread Terry Reedy
On 6/19/2014 3:42 AM, Chris Angelico wrote: On Thu, Jun 19, 2014 at 5:18 PM, Christian Gollwitzer aurio...@gmx.de wrote: My advice: 1) First try parsing the command line. (Example: All Unix tools) 2) If you require more interaction and maybe state preservation, just write a couple of

Re: Under what kind of situation, time.sleep(n) would sleep much longer than n seconds?

2014-06-19 Thread Chris Angelico
On Fri, Jun 20, 2014 at 12:33 PM, Terry Reedy tjre...@udel.edu wrote: Most any* console script runs fine** in Idle once you load it into the editor and press F5. Prompts and prints go the shell window (default blue on white) and input comes from the same (default black on white). I figured

[issue21806] Add tests for turtle.TPen class

2014-06-19 Thread ingrid
Changes by ingrid h...@ingridcheung.com: -- components: Tests files: TPen_tests.patch keywords: patch nosy: ingrid, jesstess priority: normal severity: normal status: open title: Add tests for turtle.TPen class versions: Python 3.5 Added file:

[issue21807] SysLogHandler closes TCP connection after first message

2014-06-19 Thread Omer Katz
New submission from Omer Katz: import logging import logging.handlers import socket logger = logging.getLogger('mylogger') handler = logging.handlers.SysLogHandler(('', logging.handlers.SYSLOG_TCP_PORT), socktype=socket.SOCK_STREAM) formatter = logging.Formatter('%(name)s: [%(levelname)s]

[issue21758] Not so correct documentation about asyncio.subprocess_shell method

2014-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 24c356168cc8 by Victor Stinner in branch '3.4': Closes #21758: asyncio doc: mention explicitly that subprocess parameters are http://hg.python.org/cpython/rev/24c356168cc8 New changeset b57cdb945bf9 by Victor Stinner in branch 'default': (Merge

[issue21758] Not so correct documentation about asyncio.subprocess_shell method

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: A string can be a bytes string or a character string. I modified the documentation to be more explicitly, but IMO it's fine to keep string term in unit tests and error messages. You should not get the string error message if you pass a bytes or str object.

[issue21808] 65001 code page not supported

2014-06-19 Thread Maries Ionel Cristian
New submission from Maries Ionel Cristian: cp65001 is purported to be an alias for utf8. I get these results: C:\Python27chcp 65001 Active code page: 65001 C:\Python27python Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or

[issue21595] asyncio: Creating many subprocess generates lots of internal BlockingIOError

2014-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 46c251118799 by Victor Stinner in branch '3.4': Closes #21595: asyncio.BaseSelectorEventLoop._read_from_self() now reads all http://hg.python.org/cpython/rev/46c251118799 New changeset 513eea89b80a by Victor Stinner in branch 'default': (Merge 3.4)

[issue21595] asyncio: Creating many subprocess generates lots of internal BlockingIOError

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: I commited asyncio_read_from_self.patch into Tulip, Python 3.4 and 3.5. If someone is interested to work on more advanced enhancement, please open a new issue. Oh by, a workaround is to limit the number of concurrent processes. Without the patch, ./python

[issue21326] asyncio: request clearer error message when event loop closed

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: The initial issue is now fixed, thanks for the report Mark Dickinson. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21326

[issue1191964] add non-blocking read and write methods to subprocess.Popen

2014-06-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: asynchronous Subprocess - add non-blocking read and write methods to subprocess.Popen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1191964

[issue21365] asyncio.Task reference misses the most important fact about it, related info spread around intros and example commentary instead

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: Victor, since you wrote much of the asyncio doc, any comment on this request? Please write a patch. The change is ok. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21365

[issue16399] argparse: append action with default list adds to list instead of overriding

2014-06-19 Thread SylvainDe
SylvainDe added the comment: As this is likely not to get solved, is there a recommanded way to work around this issue ? Here's what I have done : import argparse def main(): Main function parser = argparse.ArgumentParser() parser.add_argument('--foo', action='append')

[issue21809] Building Python3 on VMS - External repository

2014-06-19 Thread John Malmberg
New submission from John Malmberg: With issue 16136 VMS support was removed for Python V3 A test build of the in-development branch using the UNIX instruction and the current GNV product with a few minor tweaks produced a Python.exe interpreter that is somewhat functional. Most of the issues

[issue21808] 65001 code page not supported

2014-06-19 Thread eryksun
eryksun added the comment: cp65001 was added in Python 3.3, for what it's worth. For me codepage 65001 (CP_UTF8) is broken for most console programs. Windows API WriteFile gets routed to WriteConsoleA for a console buffer handle, but WriteConsoleA has a different spec. It returns the number

[issue21808] 65001 code page not supported

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: The support of the code page 65001 (CP_UTF8, cp65001) was added in Python 3.3. It is usually used for the OEM code page. The chcp command changes the Windows console encoding which is used by sys.{stdin,stdout,stderr).encoding. locale.getpreferredencoding()

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-06-19 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Attached is a patch which adds linenumbering to IDLE. [1] is the current discussion regarding this topic at idle-dev. This patch is a initial patch. It is missing menu and config additions. I have posted it in this state, so that we can catch platform

[issue19870] Backport Cookie fix to 2.7 (httponly / secure flag)

2014-06-19 Thread INADA Naoki
INADA Naoki added the comment: Could someone review this? While this is not a regression or bug, I think this is an important feature when writing HTTP clients. -- nosy: +naoki ___ Python tracker rep...@bugs.python.org

[issue21808] 65001 code page not supported

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: See also Issue20574. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21808 ___ ___

[issue21805] Argparse Revert config_file defaults

2014-06-19 Thread R. David Murray
R. David Murray added the comment: I don't understand your use case. As a user I would expect a switch to either set the value to true or to false, not to toggle it based on some default that might be changed in a configuration file. But, your method of accomplishing your goal looks fine to

[issue21807] SysLogHandler closes TCP connection after first message

2014-06-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21807 ___ ___

[issue21808] 65001 code page not supported

2014-06-19 Thread R. David Murray
R. David Murray added the comment: I agree with Haypo, because if he isn't interested in doing it, it is unlikely anyone else will find the problem tractable :) Certainly not anyone else on the core team. But, the danger of breaking things in 2.7 is the clincher. -- nosy:

[issue21809] Building Python3 on VMS - External repository

2014-06-19 Thread R. David Murray
R. David Murray added the comment: Is the purpose of this issue just informational, then? It would be better to have a listing of active platform forks somewhere in the docs, I think, assuming we don't already. -- nosy: +r.david.murray ___ Python

[issue21808] 65001 code page not supported

2014-06-19 Thread eryksun
eryksun added the comment: Setting the Windows console encoding to cp65001 using the chcp command doesn't make the Windows console fully Unicode compliant. It is a little bit better using TTF fonts, but it's not enough. See the old issue #1602 opened 7 years ago and not fixed yet. It's

[issue1576313] os.execvp[e] on win32 fails for current directory

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: The patch deliberately says Windows msvcrt to distinguish it from the Python module of the same name. -- Added file: http://bugs.python.org/file35690/Issue1576313.diff ___ Python tracker rep...@bugs.python.org

[issue19870] Backport Cookie fix to 2.7 (httponly / secure flag)

2014-06-19 Thread R. David Murray
R. David Murray added the comment: If it really wasn't a bug, we couldn't backport it. However, we generally treat RFC non-compliance issues as bugs unless fixing them is disruptive (and this one isn't because I took care to maintain backward compatibility in the original patch), so it is OK

[issue21808] 65001 code page not supported

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: It's annoyingly broken for me due to the problems with WriteFile and ReadFile. sys.stdout.write() doen't use WriteFile. Again, see the issue #1602 if you are interested to improve the Unicode support of the Windows console. A workaround is for example to

[issue11352] Update cgi module doc

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: @Pierre can you submit a clean patch as requested in msg214267? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11352 ___

[issue9739] Output of help(...) is wider than 80 characters

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: @Terry is this something you could take on? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9739 ___

[issue21808] 65001 code page not supported

2014-06-19 Thread eryksun
eryksun added the comment: sys.stdout.write() doen't use WriteFile. Again, see the issue #1602 if you are interested to improve the Unicode support of the Windows console. _write calls WriteFile because Python 3 sets standard I/O to binary mode. The source is distributed with Visual

[issue21163] asyncio task possibly incorrectly garbage collected

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: Ok, I agree that this issue is very tricky :-) The first problem in asyncio-gc-issue.py is that the producer keeps *weak* references to Queue object, so the Queue objects are quickly destroyed, especially if gc.collect() is called explicitly. When yield from

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: asyncio task possibly incorrectly garbage collected - asyncio doesn't warn if a task is destroyed during its execution ___ Python tracker rep...@bugs.python.org

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 706fab0213db by Zachary Ware in branch 'default': Issue #21741: Add st_file_attributes to os.stat_result on Windows. http://hg.python.org/cpython/rev/706fab0213db -- nosy: +python-dev ___ Python tracker

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-19 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- Removed message: http://bugs.python.org/msg220987 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___

[issue21719] Returning Windows file attribute information via os.stat()

2014-06-19 Thread Zachary Ware
Zachary Ware added the comment: Committed as 706fab0213db (with the wrong issue number), with just a couple of comment tweaks (mostly to shorten a couple more lines) and some committer drudge-work. Thanks for your contribution, Ben! -- assignee: - zach.ware resolution: - fixed

[issue21808] 65001 code page not supported

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: @eryksun: I agree that using the Python interactive interpreter in the Windows console has many important issues when using non-ASCII characters. But the title of this issue and the initial message is about the code page 65001. The *code page* is supported in

[issue21719] Returning Windows file attribute information via os.stat()

2014-06-19 Thread Ben Hoyt
Ben Hoyt added the comment: Great, thanks for committing! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21719 ___ ___ Python-bugs-list mailing

[issue20295] imghdr add openexr support

2014-06-19 Thread Claudiu Popa
Claudiu Popa added the comment: Here's an updated patch with a small exr test file. -- Added file: http://bugs.python.org/file35692/issue20295.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20295

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-19 Thread Steve Dower
Steve Dower added the comment: I'd be fine to reconsider if a previously-demonstrated bug is now demonstrated-fixed. However, if the actual bug persists, optimization should be disabled for all code, not just for the code that allows to demonstrate the bug. I'm okay with that. I thought

[issue21807] SysLogHandler closes TCP connection after first message

2014-06-19 Thread Vinay Sajip
Vinay Sajip added the comment: Some information appears to be missing from your snippet: the default logger level is WARNING, so no INFO messages would be expected. Have you set logging.raiseExceptions to a False value? Are you sure that no network error is occurring? How can you be sure the

[issue21758] Not so correct documentation about asyncio.subprocess_shell method

2014-06-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21758 ___

[issue18017] ctypes.PyDLL documentation

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: @Marc can you prepare a patch for this issue? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18017 ___

[issue16272] C-API documentation clarification for tp_dictoffset

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: @Chris can you prepare a patch for this? -- nosy: +BreamoreBoy versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16272

[issue21599] Argument transport in attach and detach method in Server class in base_events file is not used

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: The Server class is hardcoded in create_server() and create_unix_server(), it's not possible to pass an arbitrary class. Only the AbstractServer class is documented, and only close() and wait_for_close() methods:

[issue20493] select module: loop if the timeout is too large (OverflowError timeout is too large)

2014-06-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: asyncio: OverflowError('timeout is too large') - select module: loop if the timeout is too large (OverflowError timeout is too large) ___ Python tracker rep...@bugs.python.org

[issue18612] More elaborate documentation on how list comprehensions and generator expressions relate to each other

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: Both list comprehension and generator expression are defined in the glossary https://docs.python.org/3/glossary.html, so what else can be done? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue18669] curses.chgat() moves cursor, documentation says it shouldn't

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a comment on this please. -- nosy: +BreamoreBoy versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18669

[issue21447] Intermittent asyncio.open_connection / futures.InvalidStateError

2014-06-19 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the issue with Python 3.5 (development version). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21447 ___

[issue18588] timeit examples should be consistent

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: @Steven you're into timeit, do you have anything to add here? -- nosy: +BreamoreBoy, steven.daprano ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18588 ___

[issue18703] To change the doc of html/faq/gui.html

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: It looks as if there's nothing to be done here, is that correct? -- nosy: +BreamoreBoy versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703

[issue6673] Uncaught comprehension SyntaxError eats up all memory

2014-06-19 Thread Mark Lawrence
Mark Lawrence added the comment: Assuming that documentation changes are needed, who's best placed to do them? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6673 ___

  1   2   >