[ANNOUNCE] PySide 1.0.6.1 - Minor Release

2011-08-26 Thread Renato Araujo Oliveira Filho
Hi All, Due some problems with PySide + Qt 4.6 compilation we are releasing this minor update, which contains the fix for this problem. Since this version only contains the fix for Qt. 4.6 bug, the update is not required for those who are using Qt. 4.7. You can get the latest PySide version

Re: bash command, get stdErr

2011-08-26 Thread Tracubik
Il Thu, 25 Aug 2011 01:52:25 -0700, Chris Rebert ha scritto: On Thu, Aug 25, 2011 at 1:25 AM, Tracubik affdfsdfds...@b.com wrote: Hi all! cut Untested: from subprocess import Popen, PIPE sudo = Popen(sudo las, shell=True, stderr=PIPE) tee = Popen([tee, /dev/stderr], stdin=sudo.stderr,

Re: bash command, get stdErr

2011-08-26 Thread Chris Rebert
On Fri, Aug 26, 2011 at 12:56 AM, Tracubik affdfsdfds...@b.com wrote: Il Thu, 25 Aug 2011 01:52:25 -0700, Chris Rebert ha scritto: On Thu, Aug 25, 2011 at 1:25 AM, Tracubik affdfsdfds...@b.com wrote: Hi all! cut Untested: from subprocess import Popen, PIPE sudo = Popen(sudo las,

Re: bash command, get stdErr

2011-08-26 Thread Tracubik
Il Thu, 25 Aug 2011 08:25:59 +, Tracubik ha scritto: Hi all! i'ld like to execute via Python this simple bash command: sudo las las is intended to be a typo for ls the point is that i want to see in the terminal the stderr message (that is sorry, try again if i insert the wrong

How to handle application level errors

2011-08-26 Thread Navkirat Singh
Hi Guys, Not sure if this is the place to ask, but I am trying find out a way to handle application level errors from a global config. Any help would be really appreciated. Regards, Nav -- http://mail.python.org/mailman/listinfo/python-list

Re: bash command, get stdErr

2011-08-26 Thread Tracubik
Il Fri, 26 Aug 2011 01:20:02 -0700, Chris Rebert ha scritto: On Fri, Aug 26, 2011 at 12:56 AM, Tracubik affdfsdfds...@b.com wrote: Il Thu, 25 Aug 2011 01:52:25 -0700, Chris Rebert ha scritto: On Thu, Aug 25, 2011 at 1:25 AM, Tracubik affdfsdfds...@b.com wrote: Hi all! cut Untested: from

Re: PUT with proxy-support

2011-08-26 Thread Laszlo Nagy
Running pycurl-7.19.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2ZCa8v/pycurl-7.19.0/egg-dist-tmp-DyHFls Using curl-config (libcurl 7.12.1) src/pycurl.c:42:20: Python.h: No such file or directory src/pycurl.c:43:22: pythread.h: No such file or directory src/pycurl.c:58:4: #error Need

Re: is there any principle when writing python function

2011-08-26 Thread Roy Smith
In article c2fe3168-92b1-46a1-a176-0914f0ba9...@19g2000vbv.googlegroups.com, t...@thsu.org wrote: On Aug 23, 7:59 am, smith jack thinke...@gmail.com wrote: i have heard that function invocation in python is expensive, but make lots of functions are a good design habit in many other

Mastering Python... Best Resources?

2011-08-26 Thread Travis Parks
I know the Python syntax pretty well. I know a lot of the libraries and tools. When I see professional Python programmer's code, I am often blown away with the code. I realized that even though I know the language, I know nothing about using it effectively. I would like to start using Python more

Re: Mastering Python... Best Resources?

2011-08-26 Thread Chris Angelico
On Fri, Aug 26, 2011 at 10:33 PM, Travis Parks jehugalea...@gmail.com wrote: I know the Python syntax pretty well. I know a lot of the libraries and tools. When I see professional Python programmer's code, I am often blown away with the code. I realized that even though I know the language, I

Re: PUT with proxy-support

2011-08-26 Thread Shashwat Anand
On Fri, Aug 26, 2011 at 3:15 PM, Laszlo Nagy gand...@shopzeus.com wrote: Running pycurl-7.19.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2ZCa8v/**pycurl-7.19.0/egg-dist-tmp-**DyHFls Using curl-config (libcurl 7.12.1) src/pycurl.c:42:20: Python.h: No such file or directory

Re: Learning python reading software source code

2011-08-26 Thread Chetan Harjani
Thanks Michael :) . I will keep your suggestions in mind. On Fri, Aug 26, 2011 at 9:01 AM, Chetan Harjani chetan.harj...@gmail.comwrote: Hello friends, I have learned the basic syntax of python through the book HOW TO THINK LIKE A COMPUTER SCIENTIST n by reading first 10-11 chapters of

Re: Mastering Python... Best Resources?

2011-08-26 Thread Mel
Chris Angelico wrote: [ ... ] You can get books on algorithms from all sorts of places, and with a very few exceptions, everything you learn with apply to Python and also to every other language you use. I liked _Programming Pearls_ by Jon Bentley. No reference to Python -- that would be the

Re: Mastering Python... Best Resources?

2011-08-26 Thread Travis Parks
On Aug 26, 8:44 am, Chris Angelico ros...@gmail.com wrote: On Fri, Aug 26, 2011 at 10:33 PM, Travis Parks jehugalea...@gmail.com wrote: I know the Python syntax pretty well. I know a lot of the libraries and tools. When I see professional Python programmer's code, I am often blown away with

Re: Mastering Python... Best Resources?

2011-08-26 Thread Chris Angelico
On Fri, Aug 26, 2011 at 10:58 PM, Travis Parks jehugalea...@gmail.com wrote: I haven't gotten to the point where I can truly use the language features to my full advantage. I haven't seen enough tricks to be effective. I feel like there is so much of the language I am not utilizing because I'm

Re: Mastering Python... Best Resources?

2011-08-26 Thread Kayode Odeyemi
On Fri, Aug 26, 2011 at 2:28 PM, Chris Angelico ros...@gmail.com wrote: On Fri, Aug 26, 2011 at 10:58 PM, Travis Parks jehugalea...@gmail.com wrote: I haven't gotten to the point where I can truly use the language features to my full advantage. I haven't seen enough tricks to be

Re: Mastering Python... Best Resources?

2011-08-26 Thread Travis Parks
On Aug 26, 9:28 am, Chris Angelico ros...@gmail.com wrote: On Fri, Aug 26, 2011 at 10:58 PM, Travis Parks jehugalea...@gmail.com wrote: I haven't gotten to the point where I can truly use the language features to my full advantage. I haven't seen enough tricks to be effective. I feel like

Python IDE/Eclipse

2011-08-26 Thread Dave Boland
I'm looking for a good IDE -- easy to setup, easy to use -- for Python. Any suggestions? I use Eclipse for other projects and have no problem with using it for Python, except that I can't get PyDev to install. It takes forever, then produces an error that makes no sense. An error occurred

dpkg

2011-08-26 Thread Verde Denim
I downloaded cx_oracle for installation to Ubuntu 11.04 64bit this morning, and the alien and dpkg operations worked fine, but on testing the import, the error msg shows that the oracle client lib is missing. I found a thread that mentioned installing the oracle instant client on 11.04 to resolve

Re: Mastering Python... Best Resources?

2011-08-26 Thread Roy Smith
In article 2309ec4b-e9a3-4330-9983-1c621ac16...@ea4g2000vbb.googlegroups.com, Travis Parks jehugalea...@gmail.com wrote: I know the Python syntax pretty well. I know a lot of the libraries and tools. When I see professional Python programmer's code, I am often blown away with the code. I

Re: dpkg

2011-08-26 Thread Ken Watford
On Fri, Aug 26, 2011 at 10:43 AM, Verde Denim tdl...@gmail.com wrote: Looking for this with find / -name libclntsh.so.11.1 -print produces /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1 I'm confused as to why Python doesn't see it... Try running sudo ldconfig. --

Re: Python IDE/Eclipse

2011-08-26 Thread Zach Dziura
I've honestly always used either PyDev or IDLE. However, Python is pretty easy to usd without a big IDE slowing you down, so you could also use a developer's text editor like Notepad++ or gedit and still be good. -- http://mail.python.org/mailman/listinfo/python-list

Re: is there any principle when writing python function

2011-08-26 Thread rantingrick
On Aug 26, 6:15 am, Roy Smith r...@panix.com wrote: Maybe.  In general, it's certainly true that a bunch of smallish functions, each of which performs exactly one job, is easier to work with than a huge ball of spaghetti code.   Obviously you need to google the definition of spaghetti code.

Re: dpkg

2011-08-26 Thread Verde Denim
On Fri, Aug 26, 2011 at 11:17 AM, Ken Watford kwatf...@gmail.com wrote: On Fri, Aug 26, 2011 at 10:43 AM, Verde Denim tdl...@gmail.com wrote: Looking for this with find / -name libclntsh.so.11.1 -print produces /usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1 I'm confused as to why

Re: Python IDE/Eclipse

2011-08-26 Thread Moises Alberto Lindo Gutarra
I like Aptana Studio http://www.aptana.com/products/studio3 2011/8/26 Dave Boland dbola...@fastmail.fm: I'm looking for a good IDE -- easy to setup, easy to use -- for Python.  Any suggestions? I use Eclipse for other projects and have no problem with using it for Python, except that I can't

Unit test failing please help

2011-08-26 Thread lblake
Hi I am new to python I am at bit lost as to why my unit test is failing below is the code and the unit test: class Centipede(object): legs, stomach def __init__(self): def __str__(self): return ','.join(self.stomach) def __call__(self,*args):

Re: Mastering Python... Best Resources?

2011-08-26 Thread Travis Parks
On Aug 26, 11:12 am, Roy Smith r...@panix.com wrote: In article 2309ec4b-e9a3-4330-9983-1c621ac16...@ea4g2000vbb.googlegroups.com,  Travis Parks jehugalea...@gmail.com wrote: I know the Python syntax pretty well. I know a lot of the libraries and tools. When I see professional Python

Re: is there any principle when writing python function

2011-08-26 Thread John Gordon
In 7b47ca17-d3f1-4d91-91d1-98421e870...@ea4g2000vbb.googlegroups.com rantingrick rantingr...@gmail.com writes: Furthermore: If you are moving code out of one function to ONLY be called by that ONE function then you are a bad programmer and should have your editor taken away for six months.

Re: Python IDE/Eclipse

2011-08-26 Thread Benjamin Kaplan
On Aug 26, 2011 11:39 AM, Moises Alberto Lindo Gutarra mli...@gmail.com wrote: I like Aptana Studio http://www.aptana.com/products/studio3 FYI, Aptana is just a set of extensions for Eclipse. Aptana Studio is just Eclipse with all of the Aptana extensions (including PyDev) preinstalled.

Re: is there any principle when writing python function

2011-08-26 Thread Tobiah
Furthermore: If you are moving code out of one function to ONLY be called by that ONE function then you are a bad programmer and should have your editor taken away for six months. You should ONLY create more func/methods if those func/methods will be called from two or more places in the code.

Hot Bollwood Actresses and Hot Football Players of Spain Soccer Team

2011-08-26 Thread Ashraf Ali
Hot Bollywood Actresses and Hot Football Players of Spain Nation Soccer Team. http://bollywoodactresseshotdresses.blogspot.com/ http://spainnationalfootballteamwallpapers.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Unit test failing please help

2011-08-26 Thread John Gordon
In ccbce61b-77e3-44fc-bbb8-fbd700732...@w28g2000yqw.googlegroups.com lblake treleven.ll...@gmail.com writes: Hi I am new to python I am at bit lost as to why my unit test is failing below is the code and the unit test: class Centipede(object): legs, stomach You aren't assigning any

Re: Design principles: no bool arguments

2011-08-26 Thread Thomas 'PointedEars' Lahn
Ian Kelly wrote: Thomas 'PointedEars' Lahn wrote: Both variants work (even in Py3) if you only define [a named argument]. You have to define [a keyword argument, e.g. `kwargs']. so that data1.merge_with(data2, True); is a syntax error (TypeError: merge_with() takes exactly 2 arguments (3

Why PyImport_ExecCodeModule takes char*?

2011-08-26 Thread Mateusz Loskot
Hi, I'm wondering, why PyImport_ExecCodeModule function takes char* instead of const char*? Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org -- http://mail.python.org/mailman/listinfo/python-list

Re: is there any principle when writing python function

2011-08-26 Thread Chris Angelico
On Sat, Aug 27, 2011 at 1:48 AM, Tobiah tob...@teranews.com wrote: While I understand and agree with that basic tenet, I think that the capitalized 'ONLY' is too strong.  I do split out code into function for readability, even when the function will only be called from the place from which I

Re: Python IDE/Eclipse

2011-08-26 Thread smackay
You can get a lot done, if not everything, with a simple editor however for me an IDE is awesome for digging around in the django internals to see how it all works. I used PyDev initially then onto emacs but finally I settled on PyCharm - it's just like PyDev except that everything works.

Re: Unit test failing please help

2011-08-26 Thread Tim Wintle
On Fri, 2011-08-26 at 08:35 -0700, lblake wrote: Hi I am new to python I am at bit lost as to why my unit test is failing below is the code and the unit test: class Centipede(object): legs, stomach This doesn't do what you think it does. legs, stomach is a statement and is not defining

Re: Python IDE/Eclipse

2011-08-26 Thread Thomas 'PointedEars' Lahn
Dave Boland wrote: I'm looking for a good IDE -- easy to setup, easy to use -- for Python. Any suggestions? PyDev (currently 2.2.1.2011073123, from the Aptana Studio 3.0.4 Plugin; but I can see that 2.2.2 has been released). I use Eclipse for other projects and have no problem with using

Re: is there any principle when writing python function

2011-08-26 Thread Steven D'Aprano
Tobiah wrote: Furthermore: If you are moving code out of one function to ONLY be called by that ONE function then you are a bad programmer and should have your editor taken away for six months. You should ONLY create more func/methods if those func/methods will be called from two or more

Record seperator

2011-08-26 Thread greymaus
Is there an equivelent for the AWK RS in Python? as in RS='\n\n' will seperate a file at two blank line intervals -- maus . . ... NO CARRIER -- http://mail.python.org/mailman/listinfo/python-list

Re: is there any principle when writing python function

2011-08-26 Thread rantingrick
On Aug 26, 10:40 am, John Gordon gor...@panix.com wrote: In 7b47ca17-d3f1-4d91-91d1-98421e870...@ea4g2000vbb.googlegroups.com rantingrick rantingr...@gmail.com writes: Furthermore: If you are moving code out of one function to ONLY be called by that ONE function then you are a bad

Re: Record seperator

2011-08-26 Thread D'Arcy J.M. Cain
On 26 Aug 2011 18:39:07 GMT greymaus greyma...@mail.com wrote: Is there an equivelent for the AWK RS in Python? as in RS='\n\n' will seperate a file at two blank line intervals open(file.txt).read().split(\n\n) -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves

Catch and name an exception in Python 2.5 +

2011-08-26 Thread Steven D'Aprano
In Python 3, you can catch an exception and bind it to a name with: try: ... except ValueError, KeyError as error: pass In Python 2.5, that is written: try: ... except (ValueError, KeyError), error: pass and the as error form gives a SyntaxError. Python 2.6 and 2.7 accept

Re: Catch and name an exception in Python 2.5 +

2011-08-26 Thread Thomas Jollans
On 26/08/11 21:56, Steven D'Aprano wrote: In Python 3, you can catch an exception and bind it to a name with: try: ... except ValueError, KeyError as error: pass In Python 2.5, that is written: try: ... except (ValueError, KeyError), error: pass and the as error

Re: is there any principle when writing python function

2011-08-26 Thread Chris Angelico
On Sat, Aug 27, 2011 at 4:05 AM, rantingrick rantingr...@gmail.com wrote: Now take a look at MY simple ONE module solution. It has JUST enough methods and NOT a single more! I disagree - create_widgets() is completely unnecessary in the presence of show(), unless it's possible to show the

The RAISE_VARARGS opcode in Python 3

2011-08-26 Thread Arnaud Delobelle
Hi all, Here is an extract from the dis module doc [1] RAISE_VARARGS(argc) Raises an exception. argc indicates the number of parameters to the raise statement, ranging from 0 to 3. The handler will find the traceback as TOS2, the parameter as TOS1, and the exception as TOS. OTOH, looking at

Re: is there any principle when writing python function

2011-08-26 Thread rantingrick
On Aug 26, 4:45 pm, Chris Angelico ros...@gmail.com wrote: On Sat, Aug 27, 2011 at 4:05 AM, rantingrick rantingr...@gmail.com wrote: Now take a look at MY simple ONE module solution. It has JUST enough methods and NOT a single more! I disagree - create_widgets() is completely unnecessary in

Re: is there any principle when writing python function

2011-08-26 Thread rantingrick
On Aug 26, 1:16 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: (3) Fault isolation. If you have a 100 line function that fails on line 73, that failure may have been introduced way back in line 16. By splitting the function up into smaller functions, you can more easily

Re: is there any principle when writing python function

2011-08-26 Thread Steven D'Aprano
Chris Angelico wrote: On Sat, Aug 27, 2011 at 4:16 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I can think of at least five reasons apart from re-use why it might be appropriate to pull out code into its own function or method even if it is used in one place only: I'm

Re: is there any principle when writing python function

2011-08-26 Thread Chris Angelico
On Sat, Aug 27, 2011 at 11:26 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I say might be because I mean it: these arguments have to be weighed up against the argument against breaking code out of functions. It's easy to imagine an extreme case where there are a billion

Re: Catch and name an exception in Python 2.5 +

2011-08-26 Thread Steven D'Aprano
Thomas Jollans wrote: On 26/08/11 21:56, Steven D'Aprano wrote: Is there any way to catch an exception and bind it to a name which will work across all Python versions from 2.5 onwards? I'm pretty sure there isn't, but I thought I'd ask just in case. It's not elegant, and I haven't

[issue12831] 2to3 and integer division

2011-08-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: / 2 is an integer division, so it should be // 3 in Python 3. No, I don't think that's right: 2to3 has no way of knowing that the programmer intended an integer division here (self.maxstars could be a float). Instead, you should always use

[issue12831] 2to3 and integer division

2011-08-26 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12831 ___

[issue12844] Support more than 255 arguments

2011-08-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The approach looks fine to me. Would you like to work on a patch? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12844

[issue12808] Coverage of codecs.py

2011-08-26 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: Here is a stab at updated documentation. I would suggest that if further changes are recommended to the documentation, that a core committer go ahead and make them. I'm absolutely more than happy to keep taking stabs at it, but

[issue12831] 2to3 and integer division

2011-08-26 Thread Alexander Rødseth
Alexander Rødseth rods...@gmail.com added the comment: Even though it's hard to cover every case, it should be possible in quite a few cases: self.maxstars = 4 half = self.maxstars / 2 -- ___ Python tracker rep...@bugs.python.org

[issue12845] PEP-3118: C-contiguity with zero strides

2011-08-26 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Numpy and PyBuffer_IsContiguous() have different ideas of C-contiguity if there is a zero in strides (this is allowed, I asked Pauli Virtanen). from numpy import * nd = ndarray(shape=[10], strides=[0]) nd.flags C_CONTIGUOUS :

[issue12831] 2to3 and integer division

2011-08-26 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Running python with the -3 command line option will warn about Python 3.x incompatibilities that 2to3 cannot trivially fix. -- nosy: +rhettinger ___ Python tracker

[issue12820] Tests for Lib/xml/dom/minicompat.py

2011-08-26 Thread John Chandler
John Chandler therealmetal...@gmail.com added the comment: Cool, thanks for the feedback! :-) I'll make the appropriate changes to the tests and add some coverage for defproperty as soon as I can. John -- ___ Python tracker rep...@bugs.python.org

[issue12846] unicodedata.normalize turkish letter problem

2011-08-26 Thread Cem YILDIZ
New submission from Cem YILDIZ c...@fizy.com: unicodedata.normalize cannot convert turkish letter ı into i: import unicodedata s = uüfürükçü ağaç ve ıslıkçı çeşme print(shoehorn_unicode_into_ascii(s)) print unicodedata.normalize('NFKD', s).encode('ascii','ignore') ufurukcu agac ve slkc cesme

[issue12846] unicodedata.normalize turkish letter problem

2011-08-26 Thread Cem YILDIZ
Changes by Cem YILDIZ c...@fizy.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12846 ___ ___ Python-bugs-list mailing

[issue12846] unicodedata.normalize turkish letter problem

2011-08-26 Thread Cem YILDIZ
Cem YILDIZ c...@fizy.com added the comment: unicodedata.normalize cannot convert turkish letter ı into i: import unicodedata s = uüfürükçü ağaç ve ıslıkçı çeşme print unicodedata.normalize('NFKD', s).encode('ascii','ignore') ufurukcu agac ve slkc cesme but the result should be ufurukcu

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-08-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 96f0ccb9716d by Éric Araujo in branch '3.2': Fix type information in distutils API reference (#9302). http://hg.python.org/cpython/rev/96f0ccb9716d New changeset a410b857efe3 by Éric Araujo in branch 'default':

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-08-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 78b26e7720c0 by Éric Araujo in branch '2.7': Fix type information in distutils API reference (#9302). http://hg.python.org/cpython/rev/78b26e7720c0 -- ___ Python tracker

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8ad1670c0f1f by Éric Araujo in branch '2.7': Try to fix test_distutils on Windows (#12678) http://hg.python.org/cpython/rev/8ad1670c0f1f -- ___ Python tracker

[issue11360] In documentation of getopt, advertise argparse instead of optparse

2011-08-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 40f7a6e71930 by Éric Araujo in branch '3.2': Remove outdated pointer to optparse (fixes #11360). http://hg.python.org/cpython/rev/40f7a6e71930 -- nosy: +python-dev ___

[issue11360] In documentation of getopt, advertise argparse instead of optparse

2011-08-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6d3c645fa52f by Éric Araujo in branch '2.7': Remove outdated pointer to optparse (fixes #11360). http://hg.python.org/cpython/rev/6d3c645fa52f -- ___ Python tracker

[issue12833] raw_input misbehaves when readline is imported

2011-08-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Maybe you need to call sys.stdin.flush() before raw_input? In any way, 2.6 is in security mode, so we need to reproduce this with current versions: 2.7, 3.2 or 3.3. -- components: +IO, Interpreter Core -Library (Lib) nosy: +eric.araujo,

[issue12842] Docs: first parameter of tp_richcompare() always has the correct type

2011-08-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review stage: - patch review versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12842 ___

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-08-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Improved and committed, thanks again! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9302

[issue12759] (?P=) input for Tools/scripts/redemo.py raises unnhandled exception

2011-08-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I can reproduce in 3.3 (the file has been moved to Tools/demo/redemo.py). The Tk application does not crash but there is a traceback. Would you like to work on a patch? If so, there are good guidelines in the devguide. -- keywords:

[issue12806] argparse: Hybrid help text formatter

2011-08-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Steven: What do you think? GraylinKim: You can open a feature request for message preview on the metatracker (see “Report Tracker Problem” in the sidebar). -- nosy: +bethard, eric.araujo type: - feature request versions: +Python 3.3

[issue12768] docstrings for the threading module

2011-08-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have made a review on Rietveld. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12768 ___ ___

[issue12195] Little documentation of annotations

2011-08-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12195 ___ ___ Python-bugs-list

[issue12742] Add support for CESU-8 encoding

2011-08-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Can you provide some example? The page you linked says It should be used exclusively for internal processing and never for external data exchange., so I'm not sure why these APIs would want to use it. -- nosy: +ezio.melotti

[issue12195] Little documentation of annotations

2011-08-26 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: some simple examples showing the syntax would go a long way. Sorry, there as just too many ways to go and we are intentionally not stating which way is preferred. I've seen many variants a:[Integral] for a list of integers,

[issue12768] docstrings for the threading module

2011-08-26 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Éric, yeah I received an email. Hopefully Graeme did too. It's a shame a new review isn't notified in the tracker instead. -- ___ Python tracker rep...@bugs.python.org

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-08-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Brian, Tim, I'd feel more comfortable if any of you confirmed this isn't a stupid proposal on my part :) -- components: +Interpreter Core stage: needs patch - patch review ___ Python tracker

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-08-26 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I could see how they'd use EINVAL, but to me ENOTDIR makes more sense here. However, I'm not sure if anyone is depending on this (or what they could depend on it for). -- ___ Python tracker

[issue12833] raw_input misbehaves when readline is imported

2011-08-26 Thread Idan Kamara
Idan Kamara idank...@gmail.com added the comment: Reproduced on 2.7. (flushing stdin/out doesn't help) -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12833 ___

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-08-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I could see how they'd use EINVAL, but to me ENOTDIR makes more sense here. However, I'm not sure if anyone is depending on this (or what they could depend on it for). Right now I'm not sure, but if PEP 3151 is accepted it will make much more

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-08-26 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: With that PEP likely to be accepted, I say go ahead with the change for that benefit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12802

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-08-26 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Obviously someone's code would break if it were relying on the Unix errno only in a Windows-only situation to determine the situation of opening a directory which isn't one. But that combination of events doesn't seem terribly likely.

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-08-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Note that this file is not written by hand. It's generated by PC/generrmap.c, which uses the _dosmaperr() function provided by the msvcrt. If we want to modify it, this should be clearly marked somewhere. --

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-08-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: If you have a copy of Visual Studio, you can see the code of _dosmaperr() in VC/crt/src/dosmap.c. Otherwise the Google query inurl:dosmap.c returns some online copies of this file. -- ___

[issue9262] IDLE: Use tabbed shell and edit windows

2011-08-26 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is an extension which provides tabbed windows for IDLE. It supports drag-and-drop reordering and separate windows. The implementation relies on monkey-patching a few subroutines and duck-typing for the toplevel window. The

[issue11913] sdist should allow for README.rst

2011-08-26 Thread resc
resc thomat...@gmail.com added the comment: Just wanted to note that this confuses other people too... http://stackoverflow.com/questions/4384796/readme-extension-for-python-projects Is this something that could be changed in 'distribute'? -- nosy: +Thomas.Smith

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Wow. A very educational discussion. We will be referencing this issue for many years to come. As long as the buck stops with me, I feel strongly that *today* changing indexing from O(1) to O(log N) is a bad idea, partly for technical

[issue12728] Python re lib fails case insensitive matches on Unicode data

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: This bug could do with a little less attitude. That said, I think it is a bug and should be fixed, at the very least for Python 3.3. As always, it is a matter of much debate to what extent bugs can be fixed in previous Python versions

[issue12735] request full Unicode collation support in std python library

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Sounds like a fair feature request for Python 3.3, as long as the intention is that users must import some module from the standard library and use functions defined in that module. The operations and methods defined for str instances

[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I presume this applies to builtin str methods like .lower(), right? I think it is a good thing to do for Python 3.3. We'd need to define what should happen in edge cases, e.g. when (against all odds) a string happens to contain a lone

[issue12749] lib re cannot match non-BMP ranges (all versions, all builds)

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: We should at least get this fixed in 3.3. Then we can discuss the benefits of backporting the fixes to 2.7 and 3.2 (though it sounds to me like the backports will fix more than they will break, since it is pretty much impossible to do the

[issue12737] str.title() is overzealous by upcasing combining marks inappropriately

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Yeah, this should be fixed in 3.3 and probably backported to 3.2 and 2.7. (There is already no guarantee that len(s) == len(s.title()), right?) -- nosy: +gvanrossum ___ Python tracker

[issue12746] normalization is affected by unicode width

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Yeah, we should fix this. At least in 3.3, but (without knowing what exactly is involved) I think backporting to 2.7 and 3.2 makes sense too. -- nosy: +gvanrossum ___ Python tracker

[issue12731] python lib re uses obsolete sense of \w in full violation of UTS#18 RL1.2a

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Really? The re module cannot be salvaged and we should add regex but keep the (buggy) re? That does not make a lot of sense to me. I think it should just be fixed in the re module. Or the re module should be *replaced* by the code from

[issue12733] Request for grapheme support in Python re lib

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Again, I would be disappointed if the re (_sre) module could not be fixed. It is a reasonable feature request. -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org

[issue12734] Request for property support in Python re lib

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: +1 on adding the feature to 3.3 in whichever way makes sense. -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12734

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: +1 on the feature request. -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12753 ___

[issue12735] request full Unicode collation support in std python library

2011-08-26 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Sounds like a fair feature request for Python 3.3, as long as the intention is that users must import some module from the standard library and use functions defined in that module. The operations and methods defined for str instances

[issue12735] request full Unicode collation support in std python library

2011-08-26 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I know I sound like NIH, but I'm always reluctant to add a big 3rd party lib like ICU to the permanent dependencies of all future Python distros. If people want to use ICU they already can. OTOH I don't have a better idea. :-( --

  1   2   >