Re: Does python(django) have an official database driver to access SQLFire

2012-01-29 Thread Chris Rebert
On Sat, Jan 28, 2012 at 11:12 PM, Niu.Jack jack@igt.com wrote: I have a question on Python.  Does python(django) have an official database driver to access SQLFire? Or is there any roadmap to deliver an official database driver? Sounds like no; SQLFire's FAQ

autoconf error on Windows

2012-01-29 Thread Alec Taylor
PyCrypto's install is giving an autoconf error on Windows, whether I install from the git repo or normally. Traceback (most recent call last): File C:\Python27\lib\distutils\dist.py, line 972, in run_command cmd_obj.run() File C:\Projects\satchmo_test\satchmo_test\src\pycrypto\setup.py,

Re: autoconf error on Windows

2012-01-29 Thread Chris Rebert
On Sun, Jan 29, 2012 at 12:52 AM, Alec Taylor alec.tayl...@gmail.com wrote: PyCrypto's install is giving an autoconf error on Windows, whether I install from the git repo or normally. Traceback (most recent call last):  File C:\Python27\lib\distutils\dist.py, line 972, in run_command    

Re: autoconf error on Windows

2012-01-29 Thread Alec Taylor
Thanks, but I already have MinGW installed and in PATH. C:\where g++ C:\libraries\MinGW\bin\g++.exe C:\libraries\perl\c\bin\g++.exe On Sun, Jan 29, 2012 at 8:07 PM, Chris Rebert c...@rebertia.com wrote: On Sun, Jan 29, 2012 at 12:52 AM, Alec Taylor alec.tayl...@gmail.com wrote: PyCrypto's

回复: write 中文 into c:\t1

2012-01-29 Thread 水静流深
file.write(s.decode('gbk').encode('utf-8')) i open the file c:\t1, to get 中文 in it not 涓枃 -- 原始邮件 -- 发件人: MRABpyt...@mrabarnett.plus.com; 发送时间: 2012年1月27日(星期五) 上午10:53 收件人: python-listpython-list@python.org; 主题: Re: write 中文 into c:\t1 On 27/01/2012

Re: autoconf error on Windows

2012-01-29 Thread Chris Rebert
On Sun, Jan 29, 2012 at 8:07 PM, Chris Rebert c...@rebertia.com wrote: On Sun, Jan 29, 2012 at 12:52 AM, Alec Taylor alec.tayl...@gmail.com wrote: PyCrypto's install is giving an autoconf error on Windows, whether I install from the git repo or normally. Traceback (most recent call last):  

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-29 Thread Dominic Binks
snipped lots of mindless nonsense, nothing at all to do with Python On 25-Jan-12 3:23 PM, Rick Johnson wrote: ... In my world ... Rick, I may be overstepping the mark here but I believe all participants on this list would probably like it if that's precisely where you stayed. -- Dominic

Re: autoconf error on Windows

2012-01-29 Thread Alec Taylor
Thanks, adding MSYS's bin to PATH solved that issue. Now I'm getting linker errors on: C:\libraries\MinGW\bin\gcc.exe -mno-cygwin -shared -s build\temp.win-amd64-2.7\Release\src\winrand.o build\temp.win-amd64-2.7\Release\src\winrandom.def -LC:\Python27\libs -LC:\Python27\PCbuild\amd64 -lws2_32

Re: python logging filter limitation, looks intentional?

2012-01-29 Thread Vinay Sajip
On Jan 28, 10:51 am, Chris Withers ch...@simplistix.co.uk wrote: To be clear, I wasn't asking for a change to existing behaviour, I was asking for the addition of an option that would allow thelogging framework to behave as most people would expect when it comes to filters ;-) And the

Re: parse binary file

2012-01-29 Thread Peter Otten
contro opinion wrote: please download the attachment ,and put in c:\test.data Your data didn't make it through. and run the folloeing code: from struct import unpack file_obj = open('c:\\test.data', 'r') Open the file in binary mode to disable CRNL-to-NL translation which will corrupt

Re: parse binary file

2012-01-29 Thread Steven D'Aprano
On Sun, 29 Jan 2012 13:39:25 +0100, Peter Otten wrote: contro opinion wrote: please download the attachment ,and put in c:\test.data Your data didn't make it through. Since this is a text-only newsgroup, it won't. and run the folloeing code: from struct import unpack file_obj =

Re: parse binary file

2012-01-29 Thread Andrea Crotti
On 01/29/2012 07:51 AM, contro opinion wrote: please download the attachment ,and put in c:\test.data Your program should never use hard-coded path, and actually I think the majority here is not using windows. -- http://mail.python.org/mailman/listinfo/python-list

Re: parse binary file

2012-01-29 Thread Aaron
On 01/29/2012 03:04 PM, Andrea Crotti wrote: On 01/29/2012 07:51 AM, contro opinion wrote: please download the attachment ,and put in c:\test.data Your program should never use hard-coded path, and actually I think the majority here is not using windows. But I also think that the majority

Re: [Python-Dev] #include Python.h

2012-01-29 Thread Chris Angelico
On Mon, Jan 30, 2012 at 2:34 AM, Andrea Crotti andrea.crott...@gmail.com wrote: I have a newbie question about CPython. Looking at the C code I noted that for example in tupleobject.c there is only one include #include Python.h For files like tupleobject.c there's often a corresponding

Re: problems with tkinter updates

2012-01-29 Thread yves
In case somebody else is trying to do the same thing, this is what I ended up with to get the concept, that I can now integrate in other scripts: http://projects.zioup.org/scratchpad/python/tkrun.py -- Yves. http://www.SollerS.ca/

Re: object aware of others

2012-01-29 Thread Jerry Hill
On Sun, Jan 29, 2012 at 1:47 AM, Lee lchapli...@gmail.com wrote: I was afraid that a list/set/dictionary and alike is the answer, but, anyway, thanks everybody. It doesn't seem too bad to keep track of the instances in the class object using weak references

Questions about compiled Python (beginner)

2012-01-29 Thread HoneyMonster
I am new to Python (Python 2.7 on Linux). Research indicates that: a) Compiling Python modules into intermediate bytecode marginally improves load time. b) The Python interpreter will use an already-prepared .pyc file if one exists in the same directory as the .py. That then, is presumably

How To Use Python/GDAL to create a KML file from an Image?

2012-01-29 Thread Roger Zimmerman
Hi All, I'd have a contour image file, in either svg, gif or png format. I know the GPS coordinates for the four corners of the image. I'd like to create a KML file from that image. I will view the KML file in Google Earth or ARCGIS. I understand that GDAL can do this, and I saw a tutorial for

Re: Questions about compiled Python (beginner)

2012-01-29 Thread Terry Reedy
On 1/29/2012 12:57 PM, HoneyMonster wrote: I am new to Python (Python 2.7 on Linux). Research indicates that: a) Compiling Python modules into intermediate bytecode marginally improves load time. The improvement is larger the larger the file. You may notice that .pyc files are only created

Re: Questions about compiled Python (beginner)

2012-01-29 Thread Cousin Stanley
This short article provides some basic information about .pyc and .pyo files http://www.network-theory.co.uk/docs/pytut/CompiledPythonfiles.html -- Stanley C. Kitching Human Being Phoenix, Arizona -- http://mail.python.org/mailman/listinfo/python-list

Re: calling a simple PyQt application more than once

2012-01-29 Thread John Posner
Jabba Laci wrote: Hi, Thanks for your reply. I forgot to mention that my first solution created a headless browser, i.e. it didn't create any GUI. I would like to keep it that way, thus I could scrape (AJAX-powered) webpages in batch mode without any user interaction. No head, no problem.

Re: parse binary file

2012-01-29 Thread Steven D'Aprano
On Sun, 29 Jan 2012 15:50:49 +0100, Aaron wrote: On 01/29/2012 03:04 PM, Andrea Crotti wrote: On 01/29/2012 07:51 AM, contro opinion wrote: please download the attachment ,and put in c:\test.data Your program should never use hard-coded path, and actually I think the majority here is not

Re: constraint based killer sudoku solver performance improvements

2012-01-29 Thread Blockheads Oi Oi
On 27/01/2012 07:47, Blockheads Oi Oi wrote: On 27/01/2012 06:57, Frank Millman wrote: Blockheads Oi Oibreamore...@yahoo.co.uk wrote: I have a working program based on [1] that sets up all different constraints for each row, column and box and then sets exact sum constraints for each cage.

Re: Questions about compiled Python (beginner)

2012-01-29 Thread HoneyMonster
On Sun, 29 Jan 2012 14:01:01 -0500, Terry Reedy wrote: On 1/29/2012 12:57 PM, HoneyMonster wrote: I am new to Python (Python 2.7 on Linux). Research indicates that: a) Compiling Python modules into intermediate bytecode marginally improves load time. The improvement is larger the larger

[issue2636] Adding a new regex module (compatible with re)

2012-01-29 Thread Devin Jeanpierre
Devin Jeanpierre jeanpierr...@gmail.com added the comment: In practice, I expect that a pure Python implementation of a regular expression engine would only be fast enough to be usable on PyPy. Not sure why this is necessarily true. I'd expect a pure-Python implementation to be maybe 200

[issue6210] Exception Chaining missing method for suppressing context

2012-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Ah, nice idea of bringing the boolean constants into the mix so we don't need to invent a new sentinel value. However, to preserve the current behaviour that raise X from Y is essentially just syntactic sugar for: _var = X; _var.__cause__ =

[issue2636] Adding a new regex module (compatible with re)

2012-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, REs are very often used to process large chunks of text by repeated application. So if the whole operation takes 0.1 or 20 seconds you're going to notice :) -- ___ Python tracker

[issue2636] Adding a new regex module (compatible with re)

2012-01-29 Thread Devin Jeanpierre
Devin Jeanpierre jeanpierr...@gmail.com added the comment: It'd be nice if we had some sort of representative benchmark for real-world uses of Python regexps. The JS guys have all pitched in to create such a thing for uses of regexps on thew web. I don't know of any such thing for Python. I

[issue13901] test_get_outputs (test_distutils) failure with --enable-shared on Mac OS X

2012-01-29 Thread toggtc
New submission from toggtc tog...@gmail.com: Current 2.7.2 + building on OS X 10.7.2 and gcc 4.2.1 (Apple build 5666.3): i686-apple-darwin11-gcc-4.2.1: /private/var/folders/jy/dhptnvj90b34s0135sb_g6w8gn/T/tmpAfN6sj/foo.so: No such file or directory

[issue13897] Move fields relevant to coroutine/generators out of frame into generator/threadstate

2012-01-29 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Amaury Forgeot d'Arc wrote: - Why is it called CoState? is it related to coroutines? Yes it is related to coroutines, threads and generators *are* (a limited form of) asymmetric coroutines, even if we don't usually think of them that way).

[issue13897] Move fields relevant to coroutine/generators out of frame into generator/threadstate

2012-01-29 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Nick Coghlan wrote: Nick Coghlan ncogh...@gmail.com added the comment: The division of responsibilities between generator objects and the eval loop is currently a little messy. The eval loop deals almost entirely with frame objects and also

[issue1625] bz2.BZ2File doesn't support multiple streams

2012-01-29 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I am just recompressing a 77GB file because of this :-(. Sorry to hear that :( I would consider that a bug, not a feature request. Semantic issues aside, my concern here is that the patch for 2.7 is considerably larger than the one for

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-01-29 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Antoine Pitrou rep...@bugs.python.org wrote: I thought the whole Py_buffer API was only temporarily removed from the limited API until the issues were sorted out: http://bugs.python.org/issue10181#msg125462 I'm talking about

[issue13848] io.open() doesn't check for embedded NUL characters

2012-01-29 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I have fixed the refleak, added a _PyUnicode_HasNULChars and integrated it into the Win32-unicode-if-branch. Couldn't test it due to lack of win32 – the function itself is tested though. -- Added file:

[issue13817] deadlock in subprocess while running several threads using Popen

2012-01-29 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13817 ___ ___

[issue13848] io.open() doesn't check for embedded NUL characters

2012-01-29 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: With Georg's kind help I added some improvements: - I've been reluctant to waste heap for caching the nul string but he convinced me that I was being ridiculous ;) - For some reason there was a stray character inside, that should be fixed too.

[issue13902] Sporadic test_threading failure on FreeBSD 6.4 buildbot

2012-01-29 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%206.4%203.x/builds/2206/steps/test/logs/stdio FAIL: test_6_daemon_threads (test.test_threading.ThreadJoinOnShutdown)

[issue6210] Exception Chaining missing method for suppressing context

2012-01-29 Thread Ethan Furman
Ethan Furman et...@stoneleaf.us added the comment: Current semantics (before patch): cause is not None -- cause is set, display it instead of context cause is None -- no cause, try to display context context is not None -- no context context is None -- context set, display it (unless cause

[issue6210] Exception Chaining missing method for suppressing context

2012-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Hmm, so from None sets cause to True, while all other from X sets cause to X. That does not sound like a good idea to me. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Mark Shannon
New submission from Mark Shannon m...@hotpy.org: The proposed dictionary implementation allows sharing of keys hashes between dictionaries. This leads to substantial memory savings for object-oriented programs. For non-OO programs the impact is negligible. -- components: Interpreter

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: BTW, the short spelling looks like it wouldn't indent the first line. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Otherwise +1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___ ___ Python-bugs-list

[issue13899] re pattern r[\A] should work like A but matches nothing. Ditto B and Z.

2012-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: r'[\w]' also matches word chars. I find that a very useful property, since you can easily build classes like '[\w.]' It's also impossible to change this without breaking lots of regexes. It's also explicitly documented, although IMO it's not

[issue13900] documentation page on email.parser contains self-referential non-definition of headersonly parameter

2012-01-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0d5667171356 by Georg Brandl in branch '3.2': Fix #13900: resolve self-referential description of a parameter. http://hg.python.org/cpython/rev/0d5667171356 -- nosy: +python-dev

[issue13900] documentation page on email.parser contains self-referential non-definition of headersonly parameter

2012-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Should now be fixed. Thanks for the report. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13900 ___

[issue13900] documentation page on email.parser contains self-referential non-definition of headersonly parameter

2012-01-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 690d5978bd21 by Georg Brandl in branch '2.7': Fix #13900: resolve self-referential description of a parameter. http://hg.python.org/cpython/rev/690d5978bd21 -- ___ Python

[issue13900] documentation page on email.parser contains self-referential non-definition of headersonly parameter

2012-01-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13900 ___

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- keywords: +patch Added file: http://bugs.python.org/file24357/061f8573af54.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___

[issue13896] shelf doesn't work with 'with'

2012-01-29 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Oh, I haven't noticed that. Using contextlib.closing solves my problem. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13896

[issue13899] re pattern r[\A] should work like A but matches nothing. Ditto B and Z.

2012-01-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: [\w] should definitely work, but [\B] doesn't seem to match anything useful, and it just fails silently because it's neither equivalent to \B nor to [B]: re.match(r'foo\B', 'foobar') # on a non-word-boundary -- matches fine _sre.SRE_Match

[issue13899] re pattern r[\A] should work like A but matches nothing. Ditto B and Z.

2012-01-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Interesting. That shifts the issue, since the current behavior is neither of the two that make sense. Then it would indeed make the most sense to raise in these cases. (I wonder what these patterns actually would match, but I have no time to

[issue13872] socket.detach doesn't mark socket._closed

2012-01-29 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13872 ___ ___ Python-bugs-list

[issue6774] socket.shutdown documentation: on some platforms, closing one half closes the other half

2012-01-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9be82f458b79 by Charles-François Natali in branch 'default': Issue #6774: Back out c8b77efe8b56, which only brings confusion. http://hg.python.org/cpython/rev/9be82f458b79 -- nosy: +python-dev

[issue4966] Improving Lib Doc Sequence Types Section

2012-01-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: One other point... the branch is actually now relative to default, not 3.2. While that was due to a merging mistake on my part, it also means I can legitimately ignore the narrow/wide build distinction in the section on strings. So will

[issue6774] socket.shutdown documentation: on some platforms, closing one half closes the other half

2012-01-29 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I've reverted the commit. -- resolution: - rejected stage: - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue6210] Exception Chaining missing method for suppressing context

2012-01-29 Thread Patrick Westerhoff
Patrick Westerhoff patrickwesterh...@gmail.com added the comment: I have to agree with Georg on that. I think it would make more sense to introduce some internal flag/variable that keeps track of if the cause was explicitely set. So if cause was set (i.e. `from X` syntax is used), then always

[issue13904] Generator as *args: TypeError replaced

2012-01-29 Thread July Tikhonov
New submission from July Tikhonov july.t...@gmail.com: set().union(*(None[k] for k in range(5))) Traceback (most recent call last): File stdin, line 1, in module TypeError: union() argument after * must be a sequence, not generator Clearly, exception in not relevant, since next line works:

[issue13904] Generator as *args: TypeError replaced

2012-01-29 Thread July Tikhonov
Changes by July Tikhonov july.t...@gmail.com: Added file: http://bugs.python.org/file24359/typeerror-replaced-in-stararg-test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13904 ___

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Mark Shannon
Changes by Mark Shannon m...@hotpy.org: Added file: http://bugs.python.org/file24360/6a21f3b35e20.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: Removed file: http://bugs.python.org/file24357/061f8573af54.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___

[issue13848] io.open() doesn't check for embedded NUL characters

2012-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch works under Windows here (on branch default). -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13848

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Of course this could also be exposed as a function, e.g.: /* stealing a reference to bytes */ PyMemoryView_FromBytesAndInfo(PyObject *bytes, Py_buffer *info); I think we should minimize the number of reference-stealing functions. So

[issue2636] Adding a new regex module (compatible with re)

2012-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It'd be nice if we had some sort of representative benchmark for real-world uses of Python regexps. The JS guys have all pitched in to create such a thing for uses of regexps on thew web. I don't know of any such thing for Python. See

[issue13872] socket.detach doesn't mark socket._closed

2012-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: socket.socket.detach doesn't mark the socket._closed flag. Well, does it have to? It's only an internal detail, it's not exposed as a public API. -- ___ Python tracker rep...@bugs.python.org

[issue13848] io.open() doesn't check for embedded NUL characters

2012-01-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 572bb8c265c0 by Antoine Pitrou in branch '3.2': Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name. http://hg.python.org/cpython/rev/572bb8c265c0 New changeset

[issue13890] test_importlib failures under Windows

2012-01-29 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Is there a technological reason environ is not updated, or is it simply oversight? Lib/os.py: under POXIX, os.environ reflects posix.environ (it uses the same underlying dict), while under Windows, os.environ uses a distinct dict from nt.environ.

[issue13848] io.open() doesn't check for embedded NUL characters

2012-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've made small changes and committed the patch in 3.2 and 3.3. 2.7 would need further changes and I don't think it's worth the bother. Thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue13890] test_importlib failures under Windows

2012-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think it's more laziness. _Environ.__setitem__ could also update the original mapping. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13890

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson, pitrou stage: - patch review versions: +Python 3.3 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___

[issue6210] Exception Chaining missing method for suppressing context

2012-01-29 Thread Ethan Furman
Ethan Furman et...@stoneleaf.us added the comment: Patrick: The value in this enhancement is in not displaying the chained exception. I do not see any value in throwing it away completely. If you don't care about __context__ you can safely ignore it. On the other hand, if it is completely

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In the initial comment, 'Dummy' to 'Deleted' here but only here: - Holds an active (key, value) pair. Active can transition to Dummy + Holds an active (key, value) pair. Active can transition to Deleted Im Lib/test/test_pprint.py

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@underboss.org: -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs-list

[issue13905] Built-in Types Comparisons should mention rich comparison methods

2012-01-29 Thread Catalin Iacob
New submission from Catalin Iacob iacobcata...@gmail.com: In 2.7 the Comparisons section of stdtypes.rst only talks about __cmp__ and never mentions the rich comparison methods: Instances of a class normally compare as non-equal unless the class defines the __cmp__() method. Refer to Basic

[issue13905] Built-in Types Comparisons should mention rich comparison methods

2012-01-29 Thread Catalin Iacob
Catalin Iacob iacobcata...@gmail.com added the comment: Here's my attempt at a patch. It mostly takes the text from the default branch and adds references to __cmp__. -- keywords: +patch Added file: http://bugs.python.org/file24361/issue13905v1.patch

[issue5231] Change format of a memoryview

2012-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Shouldn't this be closed in favour of #10181? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5231 ___

[issue1625] bz2.BZ2File doesn't support multiple streams

2012-01-29 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: An alternative solution I'd like to pursue is to backport 3.3's BZ2File implementation to run on 2.7, and release it on PyPI. Well, that was easier than I expected. It didn't take much work to get it working under 2.6, 2.7 and 3.2. I've

[issue13507] Modify OS X installer builds to package liblzma for the new lzma module

2012-01-29 Thread David Bolen
David Bolen db3l@gmail.com added the comment: I recently built the xz library on my OSX Tiger buildbot (that also does the daily DMGs via the build script), and Nadeem mentioned this ticket. As an FYI, I wasn't able to get the xz library (5.0.3) to configure/build as a universal build

[issue5231] Change format of a memoryview

2012-01-29 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Yes, it's really superseded by #10181 now. I'm closing as 'duplicate', since technically it'll be fixed once the patch for #10181 is committed. -- dependencies: -Problems with Py_buffer management in memoryobject.c (and

[issue13897] Move fields relevant to coroutine/generators out of frame into generator/threadstate

2012-01-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: IMO tstate-exc_value has nothing to do with generators. Changing its name seems gratuitous breakage to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13897

[issue13897] Move fields relevant to coroutine/generators out of frame into generator/threadstate

2012-01-29 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: The important part is not the change of name, but wrapping them in a struct which can be embedded in both PyThreadState and PyGenObject. The state-exc_XXX trio of values are the currently handled exception (sys.exc_info()) and are shadowed by

[issue13868] Add hyphen doc fix

2012-01-29 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: If floating point in a sentence is in a role of an adjective, then it must be written as floating-point (with a hyphen), otherwise not. Example: The number 3.5 is a floating-point number. Please consult some English orthography book and

[issue13899] re pattern r[\A] should work like A but matches nothing. Ditto B and Z.

2012-01-29 Thread John Machin
John Machin sjmac...@lexicon.net added the comment: @Ezio: Comparison of the behaviour of \letter inside/outside character classes is irrelevant. The rules for inside can be expressed simply as: 1. Letters dDsSwW are special; they represent categories as documented, and do in fact have a

[issue13899] re pattern r[\A] should work like A but matches nothing. Ditto B and Z.

2012-01-29 Thread John Machin
John Machin sjmac...@lexicon.net added the comment: Whoops: normal Python rules for backslash escapes should have had a note but revert to the C behaviour of stripping the \ from unrecognised escapes which is what re appears to do in its own \ handling. --

[issue13889] str(float) and round(float) issues with FPU precision

2012-01-29 Thread Samuel Iseli
Samuel Iseli samuel.is...@gmail.com added the comment: Hi Marc, the changes to the pythoncore.vcproj Visual-Studio file define the HAVE_VC_FUNC_FOR_X87 symbol. I use this symbol to enable the precision-setting macros in pyport.h. I made this similar to the existing code for gcc (linux). You

[issue13906] mimetypes.py under windows - bad exception catch

2012-01-29 Thread Alexander Maksimenko
New submission from Alexander Maksimenko alex.mclan...@gmail.com: mimetypes.py(249) expectts Unicode*En*codeError, but Unicode*De*codeError happens when registry has non latin symbols (Vista Home 64). I just change cathc jn next line to UnicodeDecodeError and all now works fine. But may be

[issue13856] xmlrpc / httplib changes to allow for certificate verification

2012-01-29 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Thanks for submitting the patch. Couple of comments. 1. This is a new feature, so the patch should be addressed against 3.x. 2. The patch lacks tests and documentation and hence it is not complete. You could take a look at http/client.py

[issue13906] mimetypes.py under windows - bad exception catch

2012-01-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is a duplicate of issue 9291. -- nosy: +r.david.murray resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - mimetypes initialization fails on Windows because of non-Latin characters in

[issue13856] xmlrpc / httplib changes to allow for certificate verification

2012-01-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine - I fail to recollect, but is there any reason for the clients in the stdlib are not carrying a ca_file and doing a certificate validation of the server connection? Well, if you are a security expert you can volunteer to maintain a

[issue13703] Hash collision security issue

2012-01-29 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Jan 28, 2012, at 07:26 PM, Dave Malcolm wrote: This turns out to pass without PYTHONHASHRANDOMIZATION in the environment, and fail intermittently with it. Note that make test invokes the built python with -E, so that it ignores the setting

[issue13703] Hash collision security issue

2012-01-29 Thread Jim Jewett
Jim Jewett jimjjew...@gmail.com added the comment: Given PYTHONHASHSEED, what is the point of PYTHONHASHRANDOMIZATION? Alternative: On startup, python reads a config file with the seed (which defaults to zero). Add a function to write a random value to that config file for the next startup.

[issue7097] urlparse.urljoin of simple http:// and somedomain.com produces incorrect result

2012-01-29 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: urljoin(http://;, //somedomain.com) results in http://somedomain.com; So, I wonder if this way to specify the relative url properly and not the base-url. The test suite of urlparse tries to follow all the advertised scenarios for

[issue13856] xmlrpc / httplib changes to allow for certificate verification

2012-01-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: For 3.x, xmlrpc.client should just pass-through the SSL context. Since the code to do so will be quite different from the current patch, I'm tempted to close this issue as rejected, unless Nathanael indicates that he would like to redo the

[issue13907] test_pprint relies on set/dictionary repr() ordering

2012-01-29 Thread Mark Shannon
New submission from Mark Shannon m...@hotpy.org: The function test_set_reprs() includes the comment: Consequently, this test is fragile and implementation-dependent Changing the dictionary iteration ordering breaks it. -- components: Tests messages: 152272 nosy: Mark.Shannon priority:

[issue13703] Hash collision security issue

2012-01-29 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Barry A. Warsaw wrote: Barry A. Warsaw ba...@python.org added the comment: On Jan 28, 2012, at 07:26 PM, Dave Malcolm wrote: This turns out to pass without PYTHONHASHRANDOMIZATION in the environment, and fail intermittently with it. Note

[issue13703] Hash collision security issue

2012-01-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Given PYTHONHASHSEED, what is the point of PYTHONHASHRANDOMIZATION? How would you do what it does without it? I.e. how would you indicate that it should randomize the seed, rather than fixing the seed value? On startup, python reads a

[issue4966] Improving Lib Doc Sequence Types Section

2012-01-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Trying to make this change in 2.7 would actually be a bit of a nightmare - how do you cleanly split documentation of the binary data and text processing sequence types when str is used for both? The change would be *mostly* feasible in 3.2

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___

[issue13874] test_faulthandler: read_null test fails with current clang

2012-01-29 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f71249d785d6 by Victor Stinner in branch 'default': Issue #13874: read_null() of faulthandler uses volatile to avoid optimisation http://hg.python.org/cpython/rev/f71249d785d6 -- nosy: +python-dev

[issue13874] test_faulthandler: read_null test fails with current clang

2012-01-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Does my commit fix the issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13874 ___

  1   2   >