Re: daemon thread cleanup approach

2014-05-29 Thread Cameron Simpson
On 28May2014 18:20, Carl Banks pavlovevide...@gmail.com wrote: Here's the solution I came up with: in the library's init function, it will start a non-daemon thread that simply joins the main thread, and then asks all existing worker threads to exit gracefully before timing out and leaving

Re: Python 3 is killing Python

2014-05-29 Thread Terry Reedy
On 5/29/2014 12:03 AM, Steven D'Aprano wrote: On Wed, 28 May 2014 20:41:53 -0400, Terry Reedy wrote: Claim: Another great strength of Python 2 was that programs written in it would almost always run on the next version of Python without much alteration. True. True, but only because of the

Re: Forking PyPI package

2014-05-29 Thread Chris Angelico
On Thu, May 29, 2014 at 10:31 AM, Wiktor look@signature.invalid wrote: I see few scenarios: 1) I'm trying to contact with original script's author, and send him my propositions of changes in code. (Oh, one more thing: my code isn't backward compatible, and I don't know Py2 that much to

Re: Forking PyPI package

2014-05-29 Thread Duncan Booth
Chris Angelico ros...@gmail.com wrote: If you absolutely can't get in touch with him, the only option is to go back to the original protocol and manually reimplement it, completely ignoring this code. It's sad but true; some code dies because of a trivial thing like Oops, I forgot to actually

Re: IDE for python

2014-05-29 Thread Chris Angelico
On Thu, May 29, 2014 at 9:12 AM, Rhodri James rho...@wildebst.org.uk wrote: On Wed, 28 May 2014 14:04:55 +0100, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: My IDE is to have three GUI windows open: * A web browser for searching the Internet. Any browser will do, but I prefer

Re: Forking PyPI package

2014-05-29 Thread Chris Angelico
On Thu, May 29, 2014 at 5:56 PM, Duncan Booth duncan.booth@invalid.invalid wrote: Chris Angelico ros...@gmail.com wrote: If you absolutely can't get in touch with him, the only option is to go back to the original protocol and manually reimplement it, completely ignoring this code. It's sad

Re: IDE for python

2014-05-29 Thread Duncan Booth
Sameer Rathoud sameer.rath...@gmail.com wrote: On Wednesday, May 28, 2014 5:16:41 PM UTC+5:30, Greg Schroeder wrote: Please suggest, if we have any free ide for python development. Anything that writes text is fine. I recommend the standard text editor for your OS (Notepad if you

Re: daemon thread cleanup approach

2014-05-29 Thread Chris Angelico
On Thu, May 29, 2014 at 11:20 AM, Carl Banks pavlovevide...@gmail.com wrote: Most threads have cleanup work to do (such as deleting temporary directories and killing spawned processes). For better or worse, one of the requirements is that the library can't cause the program to hang no

Re: IDE for python

2014-05-29 Thread Duncan Booth
Duncan Booth duncan.booth@invalid.invalid wrote: Sameer Rathoud sameer.rath...@gmail.com wrote: On Wednesday, May 28, 2014 5:16:41 PM UTC+5:30, Greg Schroeder wrote: Please suggest, if we have any free ide for python development. Anything that writes text is fine. I recommend the

Re: Forking PyPI package

2014-05-29 Thread Wiktor
On Thu, 29 May 2014 02:31:56 +0200, Wiktor wrote: So, what should I do? Thanks guys, you're right. I'll contact the Lion. ;-) Yes, I forgot to mention that pwdhash.py was published under BSD licence. Without knowing that I wouldn't even consider forking it. -- Best regards,

Re: IDE for python

2014-05-29 Thread Wolfgang Maier
On 28.05.2014 12:43, Sameer Rathoud wrote: Hello everyone, I am new to python. I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. Seems like not too many other people on this list

Re: Python alternative to Google Groups

2014-05-29 Thread Mark Lawrence
On 29/05/2014 06:06, Tim Golden wrote: On 28/05/2014 22:54, Steven Clift wrote: If you are looking for an open source alternative between Google Groups and Mailman, I wanted to share: http://groupserver.org It has recent release and new design. Aargh. I hate it when someone does that:

Re: Python 3 is killing Python

2014-05-29 Thread Larry Martell
On Wed, May 28, 2014 at 10:49 PM, Steven D'Aprano st...@pearwood.info wrote: On Wed, 28 May 2014 14:58:05 -0500, Larry Martell wrote: On Wed, May 28, 2014 at 2:49 PM, Paul Rubin no.email@nospam.invalid wrote: Larry Martell larry.mart...@gmail.com writes: Somthing I came across in my

Re: Python alternative to Google Groups

2014-05-29 Thread Tim Golden
On 29/05/2014 11:57, Mark Lawrence wrote: On 29/05/2014 06:06, Tim Golden wrote: On a more serious note, it does look interesting and it would be great to have a credible alternative to promote for people who tend towards GG. Needs to someone to do the setup / config / management though.

Re: Command prompt not shown when running Python script with subprocess on Windows

2014-05-29 Thread Tim Golden
On 28/05/2014 21:46, ps16thypresenceisfullnessof...@gmail.com wrote: Thank you for your replies. I tried what you suggested in your second post and it worked. That was actually a mistake in the app_list.xml file. As you said: app name=LibreOffice Writer%ProgramFiles%\LibreOffice

Re: Python alternative to Google Groups

2014-05-29 Thread Steven Clift
Ah, I wasn't referring to Google Groups newsgroup/usenet connection, but if one wanted to host open source based online groups themselves that are similar to the web experience with Google Groups overall. While folks who just want a mailing list are well served by Mailman, Sympa, and others ...

Re: Fortran (Was: The does Python have variables? debate)

2014-05-29 Thread Albert van der Horst
In article lkoi5v$vfj$1...@speranza.aioe.org, Mark H Harris harrismh...@gmail.com wrote: On 5/11/14 1:59 PM, Chris Angelico wrote: julia prec=524288 524288 julia with_bigfloat_precision(prec) do println(atan(BigFloat(1)/5)*16 - atan(BigFloat(1)/239)*4) end Would it be

Re: Fortran

2014-05-29 Thread Albert van der Horst
In article 8761l9pi3n@elektro.pacujo.net, Marko Rauhamaa ma...@pacujo.net wrote: SNIP Producing an effective JIT for Python seems like a formidable challenge but not impossible in principle. After all, the developer *could* provide that static typing information in, like, 99.9% of the code.

Re: Fortran

2014-05-29 Thread Marko Rauhamaa
alb...@spenarnc.xs4all.nl (Albert van der Horst): I always thought that the real point of JIT was that it can take advantage of type information that is not available until runtime. If it can infer that something is an integer, just before entering a loop to be executed millions of times,

Re: Fortran

2014-05-29 Thread Chris Angelico
On Fri, May 30, 2014 at 12:50 AM, Marko Rauhamaa ma...@pacujo.net wrote: Python code, too, is compiled into interpreted bytecode. Again, you could compile it into machine code ahead of execution or perform the compilation on the fly with JIT techniques. However, Python is so ridiculously

Re: Fortran

2014-05-29 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: On Fri, May 30, 2014 at 12:50 AM, Marko Rauhamaa ma...@pacujo.net wrote: Python code, too, is compiled into interpreted bytecode. Again, you could compile it into machine code ahead of execution or perform the compilation on the fly with JIT techniques.

Re: IDE for python

2014-05-29 Thread Terry Reedy
On 5/29/2014 5:41 AM, Wolfgang Maier wrote: On 28.05.2014 12:43, Sameer Rathoud wrote: Hello everyone, I am new to python. I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. What bothers you the most. Seems like not too many other people on

Re: IDE for python

2014-05-29 Thread Paul Rudin
Terry Reedy tjre...@udel.edu writes: On 5/29/2014 5:41 AM, Wolfgang Maier wrote: On 28.05.2014 12:43, Sameer Rathoud wrote: Hello everyone, I am new to python. I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. What bothers you the most.

Re: IDE for python

2014-05-29 Thread Chris Angelico
On Fri, May 30, 2014 at 2:39 AM, Terry Reedy tjre...@udel.edu wrote: I am curious how many of the editors people have been recommending have all of the following Idle features, that I use constantly. Regarding SciTE: 1. Run code in the editor with a single keypress. Yes, although for most of

Re: Fortran (Was: The does Python have variables? debate)

2014-05-29 Thread Peter Pearson
On 29 May 2014 14:06:47 GMT, Albert van der Horst wrote: In article lkoi5v$vfj$1...@speranza.aioe.org, Mark H Harris harrismh...@gmail.com wrote: On 5/11/14 1:59 PM, Chris Angelico wrote: julia prec=524288 524288 julia with_bigfloat_precision(prec) do

Re: Fortran

2014-05-29 Thread Steven D'Aprano
On Thu, 29 May 2014 17:50:00 +0300, Marko Rauhamaa wrote: alb...@spenarnc.xs4all.nl (Albert van der Horst): I always thought that the real point of JIT was that it can take advantage of type information that is not available until runtime. If it can infer that something is an integer, just

Re: Fortran

2014-05-29 Thread Marko Rauhamaa
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: You're talking as if this were only theoretical. It is not. The state of the art in compiler techniques has advanced a lot since the old days of the Pascal P-Machine. Parakeet, for example[2], compiles numeric functions to optimized

Re: Command prompt not shown when running Python script with subprocess on Windows

2014-05-29 Thread ps16thypresenceisfullnessofjoy
That's interesting, now I learned something else too. As I said before, though, I want users to be able to enter paths in the XML file exactly the way they would be entered in a Windows shortcut. (Actually, my program currently only has one Windows user, for whom I develop it [I don't even use

Re: daemon thread cleanup approach

2014-05-29 Thread Carl Banks
On Thursday, May 29, 2014 1:15:35 AM UTC-7, Chris Angelico wrote: On Thu, May 29, 2014 at 11:20 AM, Carl Banks pavlovevide...@gmail.com wrote: Most threads have cleanup work to do (such as deleting temporary directories and killing spawned processes). For better or worse, one of

Re: IDE for python

2014-05-29 Thread Mark H Harris
On 5/29/14 11:44 AM, Paul Rudin wrote: Terry Reedy tjre...@udel.edu writes: I am curious how many of the editors people have been recommending have all of the following Idle features, that I use constantly. 1. Run code in the editor with a single keypress. 2. Display output and traceback in a

Re: How to run script from interpreter?

2014-05-29 Thread Mark H Harris
On 5/28/14 10:22 PM, Steven D'Aprano wrote: If you want to use python as a shell-glue you can try using system. from os import system def function_name([parms]) blah blah rc = system(your_script_name) os.system is cool for quick and dirty calls to an external command.

Re: IDE for python

2014-05-29 Thread Mark Lawrence
On 29/05/2014 21:11, Mark H Harris wrote: The OP is looking for an IDE-like interactive environment, because he is uncomfortable with IDLE. IDLE is THE choice, however ---precisely because IDLE is clean, elegant, and most importantly simple. It is simple to understand, and it is even simpler to

Re: IDE for python

2014-05-29 Thread Terry Reedy
On 5/29/2014 12:51 PM, Chris Angelico wrote: On Fri, May 30, 2014 at 2:39 AM, Terry Reedy tjre...@udel.edu wrote: I am curious how many of the editors people have been recommending have all of the following Idle features, that I use constantly. Regarding SciTE: 1. Run code in the editor

Re: IDE for python

2014-05-29 Thread Ben Finney
Terry Reedy tjre...@udel.edu writes: I am curious how many of the editors people have been recommending have all of the following Idle features, that I use constantly. You can satisfy such wonderings with a search for the answers to such questions, which is how I got these answers. 1. Run

Re: Forking PyPI package

2014-05-29 Thread Ian Kelly
On Thu, May 29, 2014 at 1:40 AM, Chris Angelico ros...@gmail.com wrote: If you absolutely can't get in touch with him, the only option is to go back to the original protocol and manually reimplement it, completely ignoring this code. It's sad but true; some code dies because of a trivial thing

Binary data exchange

2014-05-29 Thread rasikasriniva...@gmail.com
friends I have a pair of simple python programs as follows: #!/usr/bin/python # broadcast.py import socket from ctypes import * import random class PurgeData(Structure): _fields_ = [(press,c_int), (ticks,c_int), (volume,c_float)] myPort = 10756

Re: Binary data exchange

2014-05-29 Thread rasikasriniva...@gmail.com
BTW - My environment is: H:\python Enthought Canopy Python 2.7.6 | 64-bit | (default, Apr 11 2014, 20:31:44) [MSC v .1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. -- https://mail.python.org/mailman/listinfo/python-list

Re: IDE for python

2014-05-29 Thread Travis Griggs
On May 28, 2014, at 3:43, Sameer Rathoud sameer.rath...@gmail.com wrote: Hello everyone, I am new to python. I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. --

Re: Binary data exchange

2014-05-29 Thread MRAB
On 2014-05-29 23:08, rasikasriniva...@gmail.com wrote: friends I have a pair of simple python programs as follows: #!/usr/bin/python # broadcast.py import socket from ctypes import * import random class PurgeData(Structure): _fields_ = [(press,c_int), (ticks,c_int), (volume,c_float)]

Re: Binary data exchange

2014-05-29 Thread Ian Kelly
On Thu, May 29, 2014 at 5:09 PM, MRAB pyt...@mrabarnett.plus.com wrote: On 2014-05-29 23:08, rasikasriniva...@gmail.com wrote: the received data for the messages 9 thru 13 are not as expected. I wonder if anyone can see what I am doing wrong? Appreciate any hints. thanks, srini I don't

Re: Binary data exchange

2014-05-29 Thread rasikasriniva...@gmail.com
Of course Cut and paste issue. Anyhow, i will look at the struct module. cheers, srini On Thursday, May 29, 2014 7:09:21 PM UTC-4, MRAB wrote: On 2014-05-29 23:08, rasikasriniva...@gmail.com wrote: friends I have a pair of simple python programs as follows:

Re: Binary data exchange

2014-05-29 Thread Mark Lawrence
On 30/05/2014 00:25, rasikasriniva...@gmail.com wrote: Of course Cut and paste issue. Anyhow, i will look at the struct module. cheers, srini Please let us know how you get on, please don't top post, and please either use the mailing list

pyflakes best practices?

2014-05-29 Thread Roy Smith
We've recently started using pyflakes. The results seem to be similar to most tools of this genre. It found a few real problems. It generated a lot of noise about things which weren't really wrong, but were easy to fix (mostly, unused imports), and a few plain old false positives which have

Re: Forking PyPI package

2014-05-29 Thread Chris Angelico
On Fri, May 30, 2014 at 7:54 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, May 29, 2014 at 1:40 AM, Chris Angelico ros...@gmail.com wrote: If you absolutely can't get in touch with him, the only option is to go back to the original protocol and manually reimplement it, completely ignoring

Re: How to run script from interpreter?

2014-05-29 Thread Steven D'Aprano
On Thu, 29 May 2014 15:26:37 -0500, Mark H Harris wrote: I think the IDLE REPL should have a system shell mode. What say you? I don't use IDLE, so I don't really care what you do to it. But speaking generally, -1 on that. IDLE is primarily aimed at beginners, and beginners have enough trouble

Re: How to run script from interpreter?

2014-05-29 Thread Chris Angelico
On Fri, May 30, 2014 at 10:33 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: (By the way, ; won't work for a Python shell, because ;spam already is valid Python syntax: it's an empty statement followed by the statement spam, separated by a semicolon.) That's not really a

Re: pyflakes best practices?

2014-05-29 Thread Mark Lawrence
On 30/05/2014 01:13, Roy Smith wrote: We've recently started using pyflakes. The results seem to be similar to most tools of this genre. It found a few real problems. It generated a lot of noise about things which weren't really wrong, but were easy to fix (mostly, unused imports), and a few

Multi-line commands with 'python -c'

2014-05-29 Thread Chris Angelico
Since lines are so critical to Python syntax, I'm a little surprised there's no majorly obvious solution to this... or maybe I'm just blind. Problem: Translate this into a shell one-liner: import os for root, dirs, files in os.walk(.): if len(dirs + files) == 1: print(root) Solution 1:

Re: pyflakes best practices?

2014-05-29 Thread Roy Smith
In article mailman.10467.1401411041.18130.python-l...@python.org, Mark Lawrence breamore...@yahoo.co.uk wrote: On 30/05/2014 01:13, Roy Smith wrote: We've recently started using pyflakes. The results seem to be similar to most tools of this genre. It found a few real problems. It

Re: How to run script from interpreter?

2014-05-29 Thread Steven D'Aprano
On Fri, 30 May 2014 10:46:34 +1000, Chris Angelico wrote: On Fri, May 30, 2014 at 10:33 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: (By the way, ; won't work for a Python shell, because ;spam already is valid Python syntax: it's an empty statement followed by the statement

Re: How to run script from interpreter?

2014-05-29 Thread Chris Angelico
On Fri, May 30, 2014 at 11:49 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 30 May 2014 10:46:34 +1000, Chris Angelico wrote: On Fri, May 30, 2014 at 10:33 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: (By the way, ; won't work for a Python shell,

Proposal of an API to deal with fingerprints on Python

2014-05-29 Thread Pedro Izecksohn
  Today I wrote the following API. It was not implemented on C yet. Do you have any comment? Could you help me to implement it? http://www.izecksohn.com/pedro/python/fingerprint/fingerprint.001.py -- https://mail.python.org/mailman/listinfo/python-list

Multi-line commands with 'python -c'

2014-05-29 Thread Zachary Ware
On Thursday, May 29, 2014, Chris Angelico ros...@gmail.com javascript:_e(%7B%7D,'cvml','ros...@gmail.com'); wrote: Since lines are so critical to Python syntax, I'm a little surprised there's no majorly obvious solution to this... or maybe I'm just blind. Problem: Translate this into a shell

Re: Proposal of an API to deal with fingerprints on Python

2014-05-29 Thread Chris Angelico
On Fri, May 30, 2014 at 7:21 AM, Pedro Izecksohn izecks...@yahoo.com.dmarc.invalid wrote: Today I wrote the following API. It was not implemented on C yet. Do you have any comment? Could you help me to implement it? http://www.izecksohn.com/pedro/python/fingerprint/fingerprint.001.py If

Re: Multi-line commands with 'python -c'

2014-05-29 Thread Chris Angelico
On Fri, May 30, 2014 at 12:34 PM, Zachary Ware zachary.ware+pyl...@gmail.com wrote: You can always cheat: $ python -c 'exec(import os\nfor root, dirs, files in os.walk(\.\):\n if len(dirs + files) == 1: print(root))' Doesn't do much for being long and fiddly, though. Not really, no! Heh. I

Re: PythonCE successfully inst'ed, but scripts don't work. Please help.

2014-05-29 Thread Abdullah Indorewala
Hi, I know you posted this 15 years ago but I recently stumbled across your post here : https://mail.python.org/pipermail/python-list/1999-May/018340.html And I am in the same situation (kind of). I can’t get Python to install on my MobilePro 770 running Windows CE 3.0. Are you still

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Syou Ei
Syou Ei added the comment: http://bugs.python.org/issue21602 The smtplib.py also has the same problem. The EINTR cannot be handled properly. -- nosy: +meishao ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20611

[issue21603] IDLE SaveAs drops the extension in the prompted filename

2014-05-29 Thread Raymond Hettinger
New submission from Raymond Hettinger: In IDLE, edit and save a file foo.py. Then choose File SaveAs. The dialog box only shows foo, not foo.py which is irritating when renaming a file or saving a variant of a file. -- components: IDLE messages: 219338 nosy: rhettinger priority: normal

[issue21602] smtplib.py socket.create_connection() also doesn't handle EINTR properly

2014-05-29 Thread Charles-François Natali
Charles-François Natali added the comment: If you know it's a duplicate, why create a new issue? -- resolution: - duplicate status: open - closed superseder: - socket.create_connection() doesn't handle EINTR properly ___ Python tracker

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Syou Ei
Syou Ei added the comment: @neologix, May I attach the patch file of smtplib.py for review? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20611 ___

[issue13742] Add a key parameter (like sorted) to heapq.merge

2014-05-29 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file35398/keymerge2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___

[issue21604] Misleading 2to3 fixer name in documentation: standard_error

2014-05-29 Thread Wilfried Lübbe
New submission from Wilfried Lübbe: The documentation https://docs.python.org/2/library/2to3.html#2to3fixer-standard_error calls the fixer standard_error. But really its name is standarderror (the filename is fix_standarderror.py). Py3.4.1 and Py3.4 docs are the same:

[issue13742] Add a key parameter (like sorted) to heapq.merge

2014-05-29 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Removed file: http://bugs.python.org/file35398/keymerge2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___

[issue13742] Add a key parameter (like sorted) to heapq.merge

2014-05-29 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file35399/keymerge2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___

[issue21590] Systemtap and DTrace support

2014-05-29 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: I'd really prefer IRC, if at all possible for you :) When online, I'm usually on #fedora-python, but I can really come any channel of your choice. Sorry for the delays in communication, I've got a lot on my plate right now and I'll probably not be

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Florent Xicluna
Florent Xicluna added the comment: @meishao Previous comments answer your question : http://bugs.python.org/issue20611#msg218836 http://bugs.python.org/issue20611#msg218841 -- ___ Python tracker rep...@bugs.python.org

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread Syou Ei
Syou Ei added the comment: @flox Thank you for your comment. So we just only modify the socket.py to handle the system level call, is it right? Please let me attach the patch file of socket.py for 2.7.2. -- Added file: http://bugs.python.org/file35400/socket_2_7_2_patch.py

[issue21605] Add tests for Tkinter images

2014-05-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds tests for tkinter's classes BitmapImage and PhotoImage. Some tests are temporary skipped until resolving issue21580. -- assignee: serhiy.storchaka components: Tests, Tkinter files: tkinter_test_images.patch keywords: patch

[issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded

2014-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes passing Python bytes to Tcl in Python 3. However it will be not easy to fix this issue in Python 2. See also issue21605 which adds tests for Tkinter images (some of them fails without this patch). -- assignee:

[issue21606] No visual feedback when entering japanese Characters in Entry widget

2014-05-29 Thread rovf
New submission from rovf: When I enter Japanese text in a tkinter entry widget, I don't get any visual feedback while typing; in particular, I don't get the Kanji selection box of the Kotaeri input method, which makes it impossible to choose the correct Kanji (try, for example, to type the

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Sasha Ovsankin
New submission from Sasha Ovsankin: Python 3.4.0 (default, May 20 2014, 20:42:24) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin Type help, copyright, credits or license for more information. zip([1, 2, 3], [a, b, c]) zip object at 0x1017c79c8 Python 2.7.5 (default, Mar 9

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread SilentGhost
SilentGhost added the comment: This is the correct behaviour. In python 3 zip returns an iterator. Detailed information is available in documentation. https://docs.python.org/3/library/functions.html#zip -- nosy: +SilentGhost resolution: - not a bug status: open - closed

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Eric Snow
Eric Snow added the comment: It may be the correct behavior but that doesn't mean we cannot update the repr to be more informative. We've already done that for a number of types that previously used the default __repr__() implementation. So in the case, how hard would it be to have the

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: zip(list_iterator object at 0xb70c7c8c, list_iterator object at 0xb70c7cac) doesn't look more readable to me. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21607

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Sasha Ovsankin
Sasha Ovsankin added the comment: It's also showing up in iPython. list(...) is a reasonable workaround but I disagree with the not a bug opinion. This is definitely the regression vs Python 2. Who else can I talk to about reopening this? -- ___

[issue19662] smtpd.py should not decode utf-8

2014-05-29 Thread R. David Murray
R. David Murray added the comment: Added review comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19662 ___ ___ Python-bugs-list mailing

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Eric Snow
Eric Snow added the comment: zip(list_iterator object at 0xb70c7c8c, list_iterator object at 0xb70c7cac) doesn't look more readable to me. Well, that seems more informative to me. Now you know that you're zipping together two list iterators. By readable do you mean shorter? In my opinion

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-05-29 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21600 ___ ___ Python-bugs-list mailing

[issue21603] IDLE SaveAs drops the extension in the prompted filename

2014-05-29 Thread Ned Deily
Ned Deily added the comment: There are known differences among the various Tk implementations with regard to how file extensions are handled in Tk file dialogs, like IDLE uses; see Issue4832. Can you say which version of Tk was in use (it should be in the About IDLE display) and on what

[issue21226] PyImport_ExecCodeModuleObject not setting module attributes

2014-05-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset baa7b656 by Eric Snow in branch '3.4': Issue #21226: fix a ref leak. http://hg.python.org/cpython/rev/baa7b656 New changeset 57130574d1e8 by Eric Snow in branch 'default': Issue #21226: Merge from 3.4.

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Mark Lawrence
Mark Lawrence added the comment: How do you display the contents of an iterable without using them up, or have I grossly overlooked something? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21607

[issue21606] No visual feedback when entering japanese Characters in Entry widget

2014-05-29 Thread Ned Deily
Ned Deily added the comment: tkinter-based apps depend on the underlying Tk widget for text processing. I know nothing about the various Japanese input methods on OS X but, in spot checking of a few, I observed no visual feedback with Katakana selected until I pressed the Return key, at

[issue21462] PEP 466: upgrade OpenSSL in the Python 2.7 Windows builds

2014-05-29 Thread Zachary Ware
Zachary Ware added the comment: Steve or Tim, did one of you want to commit this since you can run a clean test? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21462 ___

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Sasha Ovsankin
Sasha Ovsankin added the comment: How do you display the contents of an iterable without using them up In general case you can't, but zip object _is_ reusable iterable so we can reuse it? -- ___ Python tracker rep...@bugs.python.org

[issue21310] ResourceWarning when open() fails with io.UnsupportedOperation: File or stream is not seekable

2014-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which fixes warnings. -- assignee: - serhiy.storchaka keywords: +patch stage: - patch review versions: +Python 2.7, Python 3.5 Added file: http://bugs.python.org/file35403/io_open_resource_warning.patch

[issue14097] Improve the introduction page of the tutorial

2014-05-29 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14097 ___ ___ Python-bugs-list

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread SilentGhost
SilentGhost added the comment: How do you display the contents of an iterable without using them up In general case you can't, but zip object _is_ reusable iterable so we can reuse it? I think you're misunderstanding what an iterator is or how it functions. Just to make it clear, it cannot

[issue19662] smtpd.py should not decode utf-8

2014-05-29 Thread Maciej Szulik
Maciej Szulik added the comment: I've implemented all your proposed changes, because for most of your changes I was thinking pretty the same way for the whole day today, to make the code more elegant. The current state of work is attached as issue19662_v2.patch -- Added file:

[issue21607] results of `zip` are displayed as 'zip object at 0xxxxxx

2014-05-29 Thread Sasha Ovsankin
Sasha Ovsankin added the comment: Yep, you are right. Even the zip thingy is not reusable. Oh well... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21607 ___

[issue21608] logging.handlers.HTTPHandler.setFormatter() has no effect

2014-05-29 Thread Bikram Zesto II
New submission from Bikram Zesto II: HTTPHandler instance will assign a Formatter to format() but emit() never calls self.format(record) so it has no effect. I know mapLogRecord() does something like this now but would like to reuse Formatters across Handlers instead of subclassing

[issue21609] Documentation for datetime.datetime uses microseconds instead of microsecond

2014-05-29 Thread Miquel Garcia
New submission from Miquel Garcia: In browsing the documentation for datetime.datetime: https://docs.python.org/2/library/datetime.html It states that the datetime.datetime.microseconds returns the number of microseconds but in trying (Python 2.7.1 r271:86832): import datetime print

[issue21610] load_module not closing opened files

2014-05-29 Thread mattip
New submission from mattip: imputil and modulefinder are opening files but not actively closing them. This causes problems for pypy and is not clean. -- components: Library (Lib) files: close_fp_2.7.patch keywords: patch messages: 219367 nosy: mattip priority: normal severity: normal

[issue21609] Documentation for datetime.datetime uses microseconds instead of microsecond

2014-05-29 Thread SilentGhost
SilentGhost added the comment: Could you provide an actual quote where it refers to datetime.datetime.microseconds? Are you not by any chance confusing it with datetime.timedelta.microseconds? -- nosy: +SilentGhost ___ Python tracker

[issue21610] load_module not closing opened files

2014-05-29 Thread mattip
mattip added the comment: the issue has already been fixed on HEAD but not backported to 2.7 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21610 ___

[issue21609] Documentation for datetime.datetime uses microseconds instead of microsecond

2014-05-29 Thread Miquel Garcia
Miquel Garcia added the comment: My mistake. Yes you are right, I was confused with the timedelta class. Sorry for the confusion. Many thanks! Miquel -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org

[issue21608] logging.handlers.HTTPHandler.setFormatter() has no effect

2014-05-29 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21608 ___ ___

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread tholzer
tholzer added the comment: Oops, I missed a break statement at the end of socket_2.7.3_eintr_patch.py. I've fixed this now in the attached patch. @meishao Could you please also update your socket_2_7_2_patch.py and add the missing break statement ? -- Added file:

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-29 Thread tholzer
Changes by tholzer thol...@wetafx.co.nz: Removed file: http://bugs.python.org/file35359/socket_2.7.3_eintr_patch.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20611 ___

[issue21608] logging.handlers.HTTPHandler.setFormatter() has no effect

2014-05-29 Thread Vinay Sajip
Vinay Sajip added the comment: HTTPHandler doesn't exactly format text for output - it encodes the LogRecord fields into an HTTP GET or POST request, and sends that request to a web server. Since this formatting is determined by the HTTP protocol, it is not possible to share it with

[issue1191964] asynchronous Subprocess

2014-05-29 Thread Josiah Carlson
Josiah Carlson added the comment: I submitted an issue to the tulip/asyncio bug tracker: https://code.google.com/p/tulip/issues/detail?id=170 And I am uploading a new patch that only includes non-tulip/asyncio related changes, as tulip/asyncio changes will eventually be propagated to Python.

  1   2   >