Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-04 Thread Steven D'Aprano
On Tue, 03 Apr 2012 08:39:14 -0400, Nathan Rice wrote: Much like with the terminal to GUI transition, you will have people attacking declarative natural language programming as a stupid practice for noobs, and the end of computing (even though it will allow people with much less experience

Re: [pyxl] Re: xlrd 0.7.4 released!

2012-04-04 Thread Chris Withers
On 03/04/2012 21:46, Josh English wrote: When I try to import xlrd, I get an error IOError: [Errno 2] No such file or directory: 'C:\\Users\\josh\\Desktop\\Portable Python\\App\\lib\\site-packages\\xlrd-0.7.5-py2.7.egg\\xlrd\\version.txt' *sigh* I hate python packaging, I'll get a 0.7.6

xlrd 0.7.6 released!

2012-04-04 Thread Chris Withers
And the goat sacrifice continues... On 03/04/2012 08:34, Chris Withers wrote: On 03/04/2012 08:04, Chris Withers wrote: I'm pleased to announce the release of xlrd 0.7.4. I've just release a 0.7.5 that fixes this. Except it didn't, I've just released 0.7.6, which will hopefully bring an

Implementing python program running in background.

2012-04-04 Thread Rishabh Verma
I need to implement a simple python program, which will be using the oAuth tokens and secrets of all users in out system and will be fetching some stuff from a JSON API. The list of all these users(with a flag if they are logged-in or not right now) is there in a Redis DB. The JSON API needs to

Re: No os.copy()? Why not?

2012-04-04 Thread Chris Angelico
On Wed, Apr 4, 2012 at 3:53 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 03 Apr 2012 15:46:31 -0400, D'Arcy Cain wrote: def cp(infile, outfile):    open(outfile, w).write(open(infile).read()) Because your cp doesn't copy the FILE, it copies the file's CONTENTS,

ANN: bayeux 0.2 released

2012-04-04 Thread Matej Cepl
Bayeux 0.2 is now available at http://pypi.python.org/pypi/bayeux bayeux is a module for generating TAP (http://testanything.org/). Version 0.2 is an initial version registered in the Cheesshop. Release notes: -- * module tap.py for programatic writing of TAP stream * clone of

Re: xlrd 0.7.6 released!

2012-04-04 Thread Karim
Le 04/04/2012 09:24, Chris Withers a écrit : And the goat sacrifice continues... On 03/04/2012 08:34, Chris Withers wrote: On 03/04/2012 08:04, Chris Withers wrote: I'm pleased to announce the release of xlrd 0.7.4. I've just release a 0.7.5 that fixes this. Except it didn't, I've just

Re: Python and Bloomberg

2012-04-04 Thread Bastian Ballmann
Am 03.04.2012 16:35, schrieb smac2...@comcast.net: Hello, I was just wondering if anyone had experience using Python to interact with Bloomberg. Ideally, I'd look to use Python to feed Bloomberg's OVML calculator with a list of inputs, and then use an additional program to grab the results of

Re: No os.copy()? Why not?

2012-04-04 Thread Alain Ketterlin
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Tue, 03 Apr 2012 15:46:31 -0400, D'Arcy Cain wrote: On 03/28/12 16:12, John Ladasky wrote: I'm looking for a Python (2.7) equivalent to the Unix cp command. open(outfile, w).write(open(infile).read()) Because your cp

Re: No os.copy()? Why not?

2012-04-04 Thread Roy Smith
On Tue, 03 Apr 2012 15:46:31 -0400, D'Arcy Cain wrote: cp is not a system command, it's a shell command. Why not just use the incredibly simple and portable open(outfile, w).write(open(infile).read()) In article 4f7be1e8$0$2$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano

Re: No os.copy()? Why not?

2012-04-04 Thread Roy Smith
In article 87fwcj4zru@dpt-info.u-strasbg.fr, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: And sparse files are really hard to reproduce, at least on Unix: on Linux even the system's cp doesn't guarantee sparseness of the copy (the manual mentions a crude heuristic). I imagine the

Re: No os.copy()? Why not?

2012-04-04 Thread Chris Angelico
On Wed, Apr 4, 2012 at 10:08 PM, Roy Smith r...@panix.com wrote: Slightly off-topic, but are there file systems these days which support off-line copying?  If I have a disk at the other end of a network link, it would be nice to tell the disk to copy a file and tell me when it's done. Depends

Re: Is Programing Art or Science?

2012-04-04 Thread Seymour J.
In 87hax0suun@sapphire.mobileactivedefense.com, on 04/03/2012 at 04:22 PM, Rainer Weikusat rweiku...@mssgmbh.com said: http://en.wikipedia.org/wiki/Liberal_arts Do you need the Quadrivium or is the Trivium enough for programming g, d r? If the term art is good enough for Knuth it's good

Re: Run once while loop

2012-04-04 Thread John O'Hagan
On Tue, 3 Apr 2012 23:00:22 +0200 Anatoli Hristov toli...@gmail.com wrote: On 03 Apr 2012, at 22:45, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, Apr 3, 2012 at 2:36 PM, Anatoli Hristov toli...@gmail.com wrote: Hi, I'm trying to do a while loop with condition of time if time is

Re: Run once while loop

2012-04-04 Thread Anatoli Hristov
I thing the best will be if I use hundreds of the seconds to print the message. for example at 12:00:00:10, but unfortunately I cant see that I can use hundreds of the seconds. Does anyone knows if I can use it ? Thanks Anatoli On Wed, Apr 4, 2012 at 2:25 PM, John O'Hagan

Re: Run once while loop

2012-04-04 Thread Benjamin Kaplan
On Wed, Apr 4, 2012 at 9:21 AM, Anatoli Hristov toli...@gmail.com wrote: I thing the best will be if I use hundreds of the seconds to print the message. for example at 12:00:00:10, but unfortunately I cant see that I can use hundreds of the seconds. Does anyone knows if I can use it ?

Re: No os.copy()? Why not?

2012-04-04 Thread Thomas Rachel
Am 03.04.2012 11:34 schrieb John Ladasky: I use subprocess.call() for quite a few other things. I just figured that I should use the tidier modules whenever I can. Of course. I only wanted to point out that os.system() is an even worse approach. shutils.copy() is by far better, of course.

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-04 Thread Nathan Rice
On Wed, Apr 4, 2012 at 1:49 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 03 Apr 2012 13:17:18 -0400, Nathan Rice wrote: I have never met a programmer that was not completely into computers. That leaves a lot unspecified though. You haven't looked hard enough. There

Re: getaddrinfo NXDOMAIN exploit - please test on CentOS 6 64-bit

2012-04-04 Thread John Nagle
On 4/2/2012 6:53 PM, John Nagle wrote: On 4/1/2012 1:41 PM, John Nagle wrote: On 4/1/2012 9:26 AM, Michael Torrie wrote: On 03/31/2012 04:58 PM, John Nagle wrote: Removed all search and domain entries from /etc/resolve.conf It's a design bug in glibc. I just submitted a bug report.

Re: Is Programing Art or Science?

2012-04-04 Thread Chiron
On Wed, 04 Apr 2012 03:33:24 -0400, Shmuel (Seymour J.) Metz wrote: If the term art is good enough for Knuth it's good enough for me. I think that may be the most intelligent comment so far... -- Some rise by sin and some by virtue fall. --

Re: xlrd 0.7.6 released!

2012-04-04 Thread Chris Withers
On 04/04/2012 09:57, Karim wrote: Hello, This release manage the '.xlsx' format? No, that is planned for the 0.8 release. cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk --

igraph and usage of Read(klass, f, format=None, *args, **kwds) question

2012-04-04 Thread ishwar . rattan
I have a file with with adjacency list of an undirected graph one vertex list per input line [0 1, 1 2 3, 2 1, 3 1] assume a newline for commas (file is named adjl.txt). Can some one give an example of loading this into graph of 4 vertices? import igraph g = igraph.Graph() g.Read(adjl.txt,

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-04 Thread rusi
On Apr 3, 11:42 pm, Nathan Rice nathan.alexander.r...@gmail.com wrote: Lets start with some analogies.  In cooking, chefs use recipes to produce a meal; the recipe is not a tool.  In architecture, a builder uses a blueprint to produce a building; the blueprint is not a tool. In manufacturing,

Re: Async IO Server with Blocking DB

2012-04-04 Thread Jon Clements
On Tuesday, 3 April 2012 23:13:24 UTC+1, looking for wrote: Hi We are thinking about building a webservice server and considering python event-driven servers i.e. Gevent/Tornado/ Twisted or some combination thereof etc. We are having doubts about the db io part. Even with connection

Seeking help: reading text file with genfromtxt

2012-04-04 Thread frankenstein
Hi all I have got a text file which is only 32 MB in size and consists of the following type of lines (columns are fixed): == Header text 1 line ... 01-Jan-2006 0055 145.069 -16.0449 83.2246 84.2835 499.14680 0.074029965 01-Jan-2006 0065

Re: Async IO Server with Blocking DB

2012-04-04 Thread Steve Howell
On Apr 3, 3:13 pm, looking for lookingforsmart...@gmail.com wrote: Hi We are thinking about building a webservice server and considering python event-driven servers i.e. Gevent/Tornado/ Twisted or some combination thereof etc. We are having doubts about the db io part. Even with connection

Igraph and usage of Read(kclass, f, format=...) question

2012-04-04 Thread ish
I am using igraph package via Python interface. I have a list of edges of a graph one edge per line of input in a file (e.txt) and want igraph to read the edges into the graph. Can any one give me a usage hint of igraph.Graph.Read()?? import igraph g = igraph.Graph() g.add_vertices(3)# 4

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-04 Thread Steve Howell
On Apr 3, 11:19 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Tue, 03 Apr 2012 08:39:14 -0400, Nathan Rice wrote: Much like with the terminal to GUI transition, you will have people attacking declarative natural language programming as a stupid practice for noobs,

Re: Google Tech Talk: lisp at JPL

2012-04-04 Thread ccc31807
On Apr 3, 1:53 am, Xah Lee xah...@gmail.com wrote: 〈The Remote Agent Experiment: Debugging Code from 60 Million Miles Away〉 Google Tech Talk, (2012-02-14) Presented by Ron Garret. @http://www.youtube.com/watch?v=_gZK0tW8EhQ RG mentions giving a more technical version to a Lisp User Group.

Re: No os.copy()? Why not?

2012-04-04 Thread Steve Howell
On Apr 4, 1:37 am, Chris Angelico ros...@gmail.com wrote: On Wed, Apr 4, 2012 at 3:53 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 03 Apr 2012 15:46:31 -0400, D'Arcy Cain wrote: def cp(infile, outfile):    open(outfile, w).write(open(infile).read()) Because

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-04 Thread Nathan Rice
Long personal note ahead. tl;dr version: Computers are such a large shift for human civilization that generally we dont get what that shift is about or towards. Another option: since *computers* are such a general device, there isn't just one notion. In the long run I expect computing

Re: No os.copy()? Why not?

2012-04-04 Thread Nobody
On Wed, 04 Apr 2012 08:14:18 -0400, Roy Smith wrote: And sparse files are really hard to reproduce, at least on Unix: on Linux even the system's cp doesn't guarantee sparseness of the copy (the manual mentions a crude heuristic). I imagine the heuristic is to look for blocks of all zeros.

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-04 Thread Nathan Rice
The building cabinets problem is interesting:  1. To actually build a cabinet, there's a lot of domain knowledge that's probably implicit in most circumstances.  A carpenter might tell another carpenter which hinge to use, but they won't have to talk about why doors need hinges or how to do

Installing a binary package on virtualenv on windows

2012-04-04 Thread Manu
Hi I have been using virtualenv on my windows desktop for quite a while now and would really recommend everyone to use it. Something I come across is how can I install a binary dependency in my virtual environment . I need to install lxml and gevent. Both packages are delivered as windows

Re: igraph and usage of Read(klass, f, format=None, *args, **kwds) question

2012-04-04 Thread Ian Kelly
On Tue, Apr 3, 2012 at 9:45 PM, ishwar.rat...@gmail.com wrote: I have a file with with adjacency list of an undirected graph one vertex list per input line [0 1, 1 2 3, 2 1, 3 1] assume a newline for commas (file is named adjl.txt). Can some one give an example of loading this into graph of

Why does this hang sometimes?

2012-04-04 Thread Jesse Jaggars
I am just playing around with threading and subprocess and found that the following program will hang up and never terminate every now and again. import threading import subprocess import time def targ():    p = subprocess.Popen([/bin/sleep, 2])    while p.poll() is None:        time.sleep(1)

Re: Async IO Server with Blocking DB

2012-04-04 Thread Jean-Paul Calderone
On Apr 3, 6:13 pm, looking for lookingforsmart...@gmail.com wrote: Hi We are thinking about building a webservice server and considering python event-driven servers i.e. Gevent/Tornado/ Twisted or some combination thereof etc. We are having doubts about the db io part. Even with connection

Python Gotcha's?

2012-04-04 Thread Miki Tebeka
Greetings, I'm going to give a Python Gotcha's talk at work. If you have an interesting/common Gotcha (warts/dark corners ...) please share. (Note that I want over http://wiki.python.org/moin/PythonWarts already). Thanks, -- Miki -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Gotcha's?

2012-04-04 Thread Steven D'Aprano
On Wed, 04 Apr 2012 15:34:20 -0700, Miki Tebeka wrote: Greetings, I'm going to give a Python Gotcha's talk at work. If you have an interesting/common Gotcha (warts/dark corners ...) please share. (Note that I want over http://wiki.python.org/moin/PythonWarts already). The GIL prevents

Re: Python Gotcha's?

2012-04-04 Thread Cameron Simpson
On 04Apr2012 15:34, Miki Tebeka miki.teb...@gmail.com wrote: | I'm going to give a Python Gotcha's talk at work. | If you have an interesting/common Gotcha (warts/dark corners ...) please share. | | (Note that I want over http://wiki.python.org/moin/PythonWarts already). Missing return means

Re: Python Gotcha's?

2012-04-04 Thread Cameron Simpson
On 04Apr2012 23:07, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: | If you decorate a function, by default the docstring is lost. | | @decorate | def spam(x, y): | blah blah blah blah | | spam.__doc__ = raises exception | | Solution: make sure your decorator uses

Re: Python Gotcha's?

2012-04-04 Thread Cameron Simpson
No module level properties: @property ... def x(): ... print 1 ... x property object at 0x100475f18 Actually, that doesn't work with classes either, only instances. Can I refer to the instance of the module/package? In the interpreter, __package__ is None instead of some

Re: Python Gotcha's?

2012-04-04 Thread Chris Angelico
On Thu, Apr 5, 2012 at 8:34 AM, Miki Tebeka miki.teb...@gmail.com wrote: Greetings, I'm going to give a Python Gotcha's talk at work. If you have an interesting/common Gotcha (warts/dark corners ...) please share. (Note that I want over http://wiki.python.org/moin/PythonWarts already).

Re: Python Gotcha's?

2012-04-04 Thread Tim Chase
On 04/04/12 17:34, Miki Tebeka wrote: Greetings, I'm going to give a Python Gotcha's talk at work. If you have an interesting/common Gotcha (warts/dark corners ...) please share. (Note that I want over http://wiki.python.org/moin/PythonWarts already). 1) While I believe it was fixed in more

Re: No os.copy()? Why not?

2012-04-04 Thread Chris Angelico
On Thu, Apr 5, 2012 at 1:15 AM, Steve Howell showel...@yahoo.com wrote: On Apr 4, 1:37 am, Chris Angelico ros...@gmail.com wrote: And, as a subtle point: This method can't create the file at size. I don't know how it'll end up allocating space, but certainly there's no opportunity to announce

Re: Igraph and usage of Read(kclass, f, format=...) question

2012-04-04 Thread alex23
On Apr 5, 12:00 am, ish ishwar.rat...@gmail.com wrote: Any pointer will be appreciated. 1. Show your input. Odds are there's a problem with your data. 2. Show the output. Does not work tells us nothing of value. 3. Don't repeatedly post the same question in different threads. That doesn't make

Cannot connect to IMAP server in Python 3.2

2012-04-04 Thread Steven D'Aprano
I can connect to an IMAP server using Python 2.6: steve@runes:~$ python2.6 Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. import imaplib server = imaplib.IMAP4_SSL('x') print server imaplib.IMAP4_SSL

Re: Cannot connect to IMAP server in Python 3.2

2012-04-04 Thread Rob Williscroft
Steven D'Aprano wrote in news:4f7d2475$0$3$c3e8...@news.astraweb.com in gmane.comp.python.general: I can connect to an IMAP server using Python 2.6: steve@runes:~$ python2.6 Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) server = imaplib.IMAP4_SSL('x') But when I try with

Re: Cannot connect to IMAP server in Python 3.2

2012-04-04 Thread Steve Howell
On Apr 4, 9:49 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: I can connect to an IMAP server using Python 2.6: steve@runes:~$ python2.6 Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information.

[issue9634] Add timeout parameter to Queue.join()

2012-04-04 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The thread pool impl where I'm using this: http://git.fedorahosted.org/git/?p=pulpdist.git;a=blob;f=src/pulpdist/cli/thread_pool.py -- ___ Python tracker rep...@bugs.python.org

[issue14489] repr() function link on the built-in function documentation is incorrect

2012-04-04 Thread H Xu
New submission from H Xu xuh...@gmail.com: The `repr()` built-in function link in this page [ http://docs.python.org/library/functions.html ] should link to the built-in version of `repr()`. It should link to: http://docs.python.org/library/functions.html#repr However, it links to here:

[issue12723] Provide an API in tkSimpleDialog for defining custom validation functions

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: I think we have to reject this issue. Adding generic validation make sense, but adding just permanent check for non-empty string is wrong. -- nosy: +asvetlov ___ Python tracker

[issue8998] add crypto routines to stdlib

2012-04-04 Thread Matej Cepl
Changes by Matej Cepl mc...@redhat.com: -- nosy: +mcepl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8998 ___ ___ Python-bugs-list mailing list

[issue6181] Tkinter.Listbox several minor issues

2012-04-04 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6181 ___ ___ Python-bugs-list

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I just noticed that PyTypeObjects have a gc slot already: inquiry tp_is_gc; /* For PyObject_IS_GC */ Now, this is used in only one place in 2.7, for type objects: return type-tp_flags Py_TPFLAGS_HEAPTYPE; This is thus used to

[issue14321] Do not run pgen during the build if files are up to date

2012-04-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4e306c1a3c92 by Matthias Klose in branch 'default': Followup for issue #14321, remove references to Parser/pgen.stamp http://hg.python.org/cpython/rev/4e306c1a3c92 -- ___

[issue13903] New shared-keys dictionary implementation

2012-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not bothered by the regression in silent_logging, as it is a micro benchmark with a very short running time. I'm not concerned about the micro-benchmark itself but the fact that it might hint at a wider problem. Also, I don't get your

[issue14490] abitype.py wrong raise format

2012-04-04 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: In Tools/abitype.py an exception is raised using the old format: raise Exception, '%s has no PyVarObject_HEAD_INIT' % name The attached patch fixes this problem. -- components: Demos and Tools files: abitype.patch keywords: patch

[issue14321] Do not run pgen during the build if files are up to date

2012-04-04 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14321 ___ ___ Python-bugs-list

[issue14428] Implementation of the PEP 418

2012-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Patch version 5, updated to the last version of the PEP: - drop time.highres() - time.monotonic() is always monotonic but it not always available - add a test on time.monotonic() setting the system clock (jump backward wtih a delta

[issue14428] Implementation of the PEP 418

2012-04-04 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: +#if defined(linux) || defined(__linux) || defined(__linux__) Hum, a better check should be done in configure and/or a macro like MS_WINDOWS should be added. -- ___ Python tracker

[issue14491] fixcid.py is using instead of !=

2012-04-04 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: Tools/fixcid.py uses instead of !=. The attached patched fixes this issue. -- components: Demos and Tools files: fixcid.patch keywords: patch messages: 157470 nosy: Popa.Claudiu priority: normal severity: normal status: open

[issue14492] pdeps.py has_key

2012-04-04 Thread Popa Claudiu
Changes by Popa Claudiu pcmantic...@gmail.com: -- components: +Demos and Tools versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14492 ___

[issue14492] pdeps.py has_key

2012-04-04 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: Tools/pdeps.py is using has_key for a dictionary. The attached patch fixes this issue. -- files: pdeps.patch keywords: patch messages: 157471 nosy: Popa.Claudiu priority: normal severity: normal status: open title: pdeps.py

[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py

2012-04-04 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: [forwarded from https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/971311] The webbrowser.py is using gnome-open. This is no longer supported by gnome, instead they use gvfs-open. The attached patch adds support for this and will also

[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py

2012-04-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 70c58903b52e by Matthias Klose in branch 'default': - Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py. http://hg.python.org/cpython/rev/70c58903b52e -- nosy: +python-dev

[issue14494] __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't

2012-04-04 Thread Sven Marnach
New submission from Sven Marnach s...@marnach.net: As has been pointed out before on python-dev [1], the mandatory version of '__future__.absolute_import' does not match reality. In Python 2.7, absolute imports are not the default. [1]: http://article.gmane.org/gmane.comp.python.devel/125446

[issue14065] Element should support cyclic GC

2012-04-04 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Fix committed - Windows bots now compile successfully. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14065 ___

[issue11734] Add half-float (16-bit) support to struct module

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Tests passed, looks good. Code is also looks ok. Documentation is out-of-date. Patch cannot be applied to struct.rst from default branch. Compilation generates warning messages on gcc 4.6.1:

[issue13903] New shared-keys dictionary implementation

2012-04-04 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: I'm not bothered by the regression in silent_logging, as it is a micro benchmark with a very short running time. I'm not concerned about the micro-benchmark itself but

[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py

2012-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: If gvfs is preferred, should its if block come second, or perhaps those two should be an if/elif block? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py

2012-04-04 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: I don't think so. the register calls append to the list, don't overwrite it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14493 ___

[issue14489] repr() function link on the built-in function documentation is incorrect

2012-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is only a problem in the 2.7 docs. I tried adding a .. py:currentmodule:: builtins directive to the page, hoping that would make all unqualified links local, but it didn't work. I think the fix will require someone with more

[issue14490] abitype.py wrong raise format

2012-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the patch. Do you have an interest in trying your hand at writing a test for this to go into Lib/test/test_tools.py? -- nosy: +r.david.murray stage: - test needed ___ Python

[issue14492] pdeps.py has_key

2012-04-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14492 ___

[issue14491] fixcid.py is using instead of !=

2012-04-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14491 ___ ___

[issue14494] __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't

2012-04-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - patch review versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14494 ___

[issue13903] New shared-keys dictionary implementation

2012-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Also, I don't get your remark about it running in a short time. Your patch AFAICT doesn't need any warm up period to exhibit any improvements. What I mean is that the runtime is so short, no one would notice any change, so who cares?

[issue14495] Minor typo in tkinter.ttk.Treeview.exists docstring

2012-04-04 Thread Zachary Ware
New submission from Zachary Ware zachary.w...@gmail.com: I found a very very minor typo in the docstring of tkinter.ttk.Treeview.exists: Returns True if the specified item is present in the *three* I assume that should be tree. The attached patch removes the h. Thanks! --Note: This is the

[issue11734] Add half-float (16-bit) support to struct module

2012-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Given than there is no native half float in C (AFAIK), does it make sense to have a native variant of half floats? Also: +{'e', sizeof(short), SHORT_ALIGN,nu_halffloat, np_halffloat}, Shouldn't it be 2 rather than

[issue14490] abitype.py wrong raise format

2012-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Nevermind, it occurred to me that what we really need is a 'test_sundry' style test for the tools. Here's a patch that adds that. I'll apply it after I fix the other bugs it reveals (which include the other two you pointed out as a

[issue14493] use gvfs-open/xdg-open in Lib/webbrowser.py

2012-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, sounds fine. Shall we close this as fixed then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14493 ___

[issue14491] fixcid.py is using instead of !=

2012-04-04 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Hello. I added a test for fixcid.py regression. -- nosy: +r.david.murray Added file: http://bugs.python.org/file25121/fixcid_test.patch ___ Python tracker rep...@bugs.python.org

[issue11734] Add half-float (16-bit) support to struct module

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: I used half-float in GPU programming and from my perspective it was just native. There are no half-float in C, right. But there are half-floats used in NVIDIA libraries for example and I like to think used format is native and

[issue14490] abitype.py wrong raise format

2012-04-04 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Oh, ok then. That makes the last file added in 14491 irrelevant. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14490 ___

[issue11734] Add half-float (16-bit) support to struct module

2012-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I used half-float in GPU programming and from my perspective it was just native. There are no half-float in C, right. But there are half-floats used in NVIDIA libraries for example and I like to think used format is native and

[issue11734] Add half-float (16-bit) support to struct module

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Antoine, agree with you after explanation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11734 ___

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This might simplify some stuff. Any thoughts? I think you should float it on python-dev. -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue1053687] PyOS_InputHook not called in IDLE subprocess

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Closing as wan't fix. -- assignee: kbk - asvetlov resolution: - wont fix stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14496] Wrong name in idlelib/tabbedpages.py

2012-04-04 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: In the file from the subject, page_name was used instead of tab_name, increasing the chances of a NameError exception. I didn't find any tests for IDLE, so there are no tests attached. -- components: IDLE files: idlelib.patch

[issue14496] Wrong name in idlelib/tabbedpages.py

2012-04-04 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: The patch looks good. Can you describe manual steps to reproduce the issue? -- assignee: - asvetlov nosy: +asvetlov ___ Python tracker rep...@bugs.python.org

[issue14495] Minor typo in tkinter.ttk.Treeview.exists docstring

2012-04-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 45287f2799f5 by Georg Brandl in branch '3.2': Closes #14495: fix typo. http://hg.python.org/cpython/rev/45287f2799f5 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open -

[issue14496] Wrong name in idlelib/tabbedpages.py

2012-04-04 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Yes. 1. inherit from TabbedPageSet 2. pass tabs keyword to the internal TabSet instance 3. when the GUI started, enter a page with the same name found in tabs list. NameError will be raised at this point. I'm curios if this script is used

[issue634412] RFC 2112 in email package

2012-04-04 Thread moijes12
moijes12 moije...@gmail.com added the comment: Is this still open for someone to work on? -- nosy: +moijes12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue634412 ___

[issue14490] abitype.py wrong raise format

2012-04-04 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Hmm. I came across this error yesterday in the tests, when broke utf-16 decoder. The error was introduced in the module atexit. Until it all tests passed successfully, and this branch will not run. A simple search find -name '*.py'

[issue13903] New shared-keys dictionary implementation

2012-04-04 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: [Antoine] I also think that, apart from the dict storage changes, your patch should strive not to change any other tunables. I agree. Please keep the patch focused on the single task, the shared keys. --

[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka storch...@gmail.com: I was very surprised to find in Python source code files that are not compatible with Python3. It turns out that this is not an exception, such files very much (see scanner script in attachment). Surely for many years no one had

[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: See also issues 14490, 14491, and 14492. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14497 ___

[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file25125/invalid.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14497 ___

[issue14497] Invalid syntax Python files in Python sources tree

2012-04-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Some of these at least are intentional. There are test files (especially in 2to3!) that use python2 syntax, and test files that have specially crated syntax errors in them. Sphinx at one point was using Python2, I'm not sure if it has

  1   2   >