pyPEG 2 for Python 3.x

2012-05-22 Thread Volker Birk
Python is a nice scripting language. It even gives you access to its own parser and compiler. It also gives you access to different other parsers for special purposes like XML and string templates. But sometimes you may want to have your own parser. This is what's pyPEG for. And pyPEG supports

odt2sphinx 0.1.2 released

2012-05-22 Thread Christophe de Vienne
Hello, odt2sphinx 0.1.2 is now available on pypi : http://pypi.python.org/pypi/odt2sphinx/. Odt2sphinx convert OpenDocument Text file(s) to one or several .rst files suitable for Sphinx. Changes --- * Now handle external images (issue #1). * Handle note, tip and warning styles in lists

Re: 2.x,3.x iOS static build: Fatal Python error: exceptions bootstrapping error.

2012-05-22 Thread angeljanai
well, I dont tested all, but at least error above was fixed by using build script from https://github.com/cobbal/python-for-iphone and patch from http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html -- http://mail.python.org/mailman/listinfo/python-list

Re: escaping/encoding/formatting in python

2012-05-22 Thread rusi
On Apr 6, 10:13 am, Steve Howell showel...@yahoo.com wrote: On Apr 5, 9:59 pm,rusirustompm...@gmail.com wrote: On Apr 6, 6:56 am,SteveHowellshowel...@yahoo.com wrote: One of the biggest nuisances for programmers, just beneath date/time APIs in the pantheon of annoyances, is that we are

Recruiting for Python Developer - Perm

2012-05-22 Thread Python Recruiter
Can any one help? I am looking for a Senior Python Developer - Linux, AppScript, Adobe Illustrator - Bradford, Yorkshire - £45,000 Our marketing and design client is looking to recruit an experienced Python developer for a senior position within their expanding organisation. Working

Re: Recruiting for Python Developer - Perm

2012-05-22 Thread Tim Golden
Someone will soon pop up and tell you that job ads are unwelcome on this list and that you should post to the Python Jobs board -- http://www.python.org/community/jobs/ However, the python-uk list is probably a better place for UK-focused jobs, as long as you have something which is definitely

Re: Recruiting for Python Developer - Perm

2012-05-22 Thread jkn
On May 22, 10:30 am, Python Recruiter ro...@omniumit.com wrote: If any one can recommend, I will pay a £100 recom fee for any successful placements. aHaHaHaHaHa... And what percentage will you be charging your client? 15 percent? 25 percent? Even if you were to offer 15% of your (say) 15%

Re: Unexpected exception thrown in __del__

2012-05-22 Thread Jean-Michel Pichavant
Charles Hixson wrote: On 05/21/2012 08:29 AM, Charles Hixson wrote: message excerpt: flush: sql = insert or replace into persists (id, name, data, rdCnt, rdTim, wrCnt, wrTim, deprecation) values (?, ?, ?, ?, ?, ?, ?, ?) Exception TypeError: 'NoneType' object is not callable in bound method

Re: Advantages of logging vs. print()

2012-05-22 Thread Jean-Michel Pichavant
Giampaolo Rodolà wrote: Hi all, I'm currently working on 1.0.0 release of pyftpdlib module. This new release will introduce some backward incompatible changes in that certain APIs will no longer accept bytes but unicode. While I'm at it, as part of this breackage I was contemplating the

Re: Recruiting for Python Developer - Perm

2012-05-22 Thread Kevin Walzer
On 5/22/12 5:30 AM, Python Recruiter wrote: Key skills required for this role are: 1. Python Development on Linux 2. Experienced Software Developer Desirable: 1. AppScript 2. Adobe Illustrator I'm in the U.S. so would not be applying for your position, but one thing your post neglects to

Re: Wish: Allow all log Handlers to accept the level argument

2012-05-22 Thread Jean-Michel Pichavant
Fayaz Yusuf Khan wrote: ***TRIVIAL ISSUE***, but this has been irking me for a while now. The main logging.Handler class' __init__ accepts a level argument while none of its children do. The poor minions seem to be stuck with the setLevel method which considerably lengthens the code. In

Re: DIR reports file timestamp and size, but os.path.getctime(), os.path.getsize() raise WindowsError [Error 5] Access is denied

2012-05-22 Thread Emile van Sebille
On 5/21/2012 5:01 PM pyt...@bdurham.com said... Wondering if any of you have stumbled across the following behavior: snip Any ideas on how I can retrieve timestamps and file sizes like DIR without raising exceptions? Beyond the obvious trap the error and use the commands module to run DIR

Re: serial module

2012-05-22 Thread Albert van der Horst
In article jp6gcj$1rij$1...@adenine.netfront.net, Ron Eggler rondotegg...@tscheemail.com wrote: Hoi, I'm trying to connect to a serial port and always get the error serial.serialutil.SerialException: Port is already open. whcih is untrue. I have no serial port open yet, my code looks like this:

Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-22, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: # configure the serial connections (the parameters differs on the device # you are connecting to) ser = serial.Serial( port='/dev/ttyUSB0', baudrate=19200, parity=serial.PARITY_ODD,

Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-18, Ron Eggler rondotegg...@tscheemail.com wrote: I'm trying to connect to a serial port and always get the error serial.serialutil.SerialException: Port is already open. which is untrue. It is true. I have no serial port open yet, my code looks like this: #!/usr/bin/python

Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-19, Paul Simon psi...@sonic.net wrote: Ron Eggler rondotegg...@tscheemail.com wrote: [...] my code looks like this: #!/usr/bin/python [...] port='/dev/ttyUSB0', Sounds like you may be using this on a Windows machine. I don't think so. :) -- Grant Edwards

Re: How to hide console with Popen on Windows?

2012-05-22 Thread xliiv
On Tuesday, May 22, 2012 2:45:11 AM UTC+2, alex23 wrote: On May 22, 3:00 am, xliiv tymoteusz.jankow...@gmail.com wrote: Now I know that my 'solution' is not a solution and problem still bugs me. Any ideas how to deal with it? I haven't tried it but this thread talks about being able to use

Compiling debug Python 2.7 on Windows

2012-05-22 Thread Иван Громов
Hi, I'm trying to compile a debug version of Python 2.7 on Windows, but I've encountered some problems while creating a distribution.\ When I run PCbuild\python.exe setup.py bdist_wininst I get an error error: pyconfig.h: No such file or directory As far as I understand, I need to run something

Re: serial module

2012-05-22 Thread Ron Eggler
Grant Edwards wrote: On 2012-05-19, Paul Simon psi...@sonic.net wrote: Ron Eggler rondotegg...@tscheemail.com wrote: [...] my code looks like this: #!/usr/bin/python [...] port='/dev/ttyUSB0', Sounds like you may be using this on a Windows machine. I don't think so. :)

Re: serial module

2012-05-22 Thread John Nagle
On 5/22/2012 8:42 AM, Grant Edwards wrote: On 2012-05-22, Albert van der Horstalb...@spenarnc.xs4all.nl wrote: It is anybody's guess what they do in USB. They do exactly what they're supposed to regardless of what sort of bus is used to connect the CPU and the UART (ISA, PCI, PCI-express,

Re: serial module

2012-05-22 Thread Paul Rubin
John Nagle na...@animats.com writes: If a device is registered as /dev/ttyUSBnn, one would hope that the Linux USB insertion event handler, which assigns that name, determined that the device was a serial port emulator. Unfortunately, the USB standard device classes

Re: Django: metaWeblog: dir() doesn't show methods

2012-05-22 Thread .
Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: serial module

2012-05-22 Thread John Nagle
On 5/22/2012 2:07 PM, Paul Rubin wrote: John Naglena...@animats.com writes: If a device is registered as /dev/ttyUSBnn, one would hope that the Linux USB insertion event handler, which assigns that name, determined that the device was a serial port emulator. Unfortunately, the USB

Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-22, John Nagle na...@animats.com wrote: On 5/22/2012 8:42 AM, Grant Edwards wrote: On 2012-05-22, Albert van der Horstalb...@spenarnc.xs4all.nl wrote: It is anybody's guess what they do in USB. They do exactly what they're supposed to regardless of what sort of bus is used to

Re: serial module

2012-05-22 Thread Grant Edwards
On 2012-05-22, Paul Rubin no.email@nospam.invalid wrote: John Nagle na...@animats.com writes: If a device is registered as /dev/ttyUSBnn, one would hope that the Linux USB insertion event handler, which assigns that name, determined that the device was a serial port emulator.

Please use the Python Job Board for recruiting (was: Recruiting for Python Developer - Perm)

2012-05-22 Thread Ben Finney
Python Recruiter ro...@omniumit.com writes: Can any one help? I am looking for a Senior Python Developer Yes, please use the Python Job Board for this purpose instead URL:http://www.python.org/community/jobs/. Good hunting! -- \ “Probably the earliest flyswatters were nothing more than

Re: Please use the Python Job Board for recruiting (was: Recruiting for Python Developer - Perm)

2012-05-22 Thread Dan Stromberg
On Tue, May 22, 2012 at 3:20 PM, Ben Finney ben+pyt...@benfinney.id.auwrote: Python Recruiter ro...@omniumit.com writes: Can any one help? I am looking for a Senior Python Developer Yes, please use the Python Job Board for this purpose instead URL:http://www.python.org/community/jobs/.

virtualenv and jython on Ubuntu 12.04

2012-05-22 Thread Gelonida N
Hi, I wanted to do some first experiments with Jython (which should now be able to run django apps) Thus I wanted to create a virtualenv setup for jython with following command: virtualenv -p jython --no-site-packages ~/mypy However this fails with following output: Running virtualenv

Install python 2.6 and python 2.7 on Windows

2012-05-22 Thread Gelonida N
I'd like to install python 2.6 and 2.7 on Windows? In fact I have already 2.6 installed and would like to additionally install 2.7 When clicking on .py file I'd like to execute it with python 2.6 If I really wanted to run 2.7 I'd call the code with %SystemDrive%\Python27\Python

install python 2.6 on Ubuntu 12.04

2012-05-22 Thread Gelonida N
Hi, On Ubuntu 12.04 python 2.7 is the default version I'd like to install python 2.6 parallel to 2.7 and create a virtualenv for it. The reason is, that I have to write some code, that will be executed under 2.6 and I want to be sure, that I don't accidentally write code, that would no

Re: install python 2.6 on Ubuntu 12.04

2012-05-22 Thread Dan Stromberg
If the pythons you require are in synaptic (sudo to root and run synaptic), you probably can just use them. If not, then you, for each release, need to: 1) download a tarball using a browser or whatever 2) extract the tarball: tar xvfp foo.tar.bz2 3) cd into the newly created, top-level

Re: Install python 2.6 and python 2.7 on Windows

2012-05-22 Thread Andrew Berg
On 5/22/2012 6:44 PM, Gelonida N wrote: I'd like to install python 2.6 and 2.7 on Windows? In fact I have already 2.6 installed and would like to additionally install 2.7 When clicking on .py file I'd like to execute it with python 2.6 There is an checkbox for an option to

Re: install python 2.6 on Ubuntu 12.04

2012-05-22 Thread Benjamin Kaplan
On Tue, May 22, 2012 at 8:09 PM, Dan Stromberg drsali...@gmail.com wrote: If the pythons you require are in synaptic (sudo to root and run synaptic), you probably can just use them. If not, then you, for each release, need to: 1) download a tarball using a browser or whatever 2) extract the

Re: install python 2.6 on Ubuntu 12.04

2012-05-22 Thread Sebastien Douche
On Wed, May 23, 2012 at 1:47 AM, Gelonida N gelon...@gmail.com wrote: What would be the recommended way to install (compile) 2.6 on 12.04? Hi, I manage my own Python interpreters with Pythonbrew (I don't use the global Python): http://pypi.python.org/pypi/pythonbrew/ -- Sebastien Douche

Re: Compiling debug Python 2.7 on Windows

2012-05-22 Thread Mark Hammond
On 23/05/2012 2:42 AM, Иван Громов wrote: Hi, I'm trying to compile a debug version of Python 2.7 on Windows, but I've encountered some problems while creating a distribution.\ When I run PCbuild\python.exe setup.py bdist_wininst I get an error error: pyconfig.h: No such file or directory As

[issue14866] 2.x, 3.x iOS static build: Fatal Python error: exceptions bootstrapping error.

2012-05-22 Thread ドミトリ ステパヌシキン
ドミトリ ステパヌシキン angelja...@gmail.com added the comment: actually I changed all, that was needed to build Python static library for iOS device(BTW it doesn't work for simulator, I got configure errors, I can't(or have no time if u want) to resolve), but not much changes. Want to see working

[issue14879] invalid docs for subprocess exceptions with shell=True

2012-05-22 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: http://docs.python.org/library/subprocess.html#exceptions documentation is wrong at least for the case when shell=True on Linux. An attempt to execute a non-existent file with: process = subprocess.Popen(sdfsdf, shell=True,

[issue14866] 2.x, 3.x iOS static build: Fatal Python error: exceptions bootstrapping error.

2012-05-22 Thread ドミトリ ステパヌシキン
ドミトリ ステパヌシキン angelja...@gmail.com added the comment: I embedded 2.7.2 static in iOS test app, and, at least print something is worked. Now I *sigh* need to make it compile and work on iPhone Simulator. I'll try hard, and upload working script, if I'll can fix this mess. --

[issue14873] Windows devguide: clarification for build errors due to missing optional dependencies

2012-05-22 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: Thanks for your responses! @Ezio: 1) I can see your point. On the other hand, I also think it is helpful to have a prominent note on this - the first thing people see after following the instructions is a huge list of build errors (see

[issue14880] csv.reader and .writer use wrong kwargs notation in 2.7 docs

2012-05-22 Thread Hynek Schlawack
New submission from Hynek Schlawack h...@ox.cx: It says csv.reader(csvfile[, dialect='excel'][, fmtparam]) csv.writer(csvfile[, dialect='excel'][, fmtparam]) in 2.7. I presume it should be like in 3.x: csv.reader(csvfile, dialect='excel', **fmtparams) csv.writer(csvfile, dialect='excel',

[issue14880] csv.reader and .writer use wrong kwargs notation in 2.7 docs

2012-05-22 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: I verified from the source that it should be **fmtparams also in 2.7. Make sure you change the description texts, too, to s/fmtparam/fmtparams/. -- nosy: +petri.lehtinen ___ Python tracker

[issue14866] 2.x, 3.x iOS static build: Fatal Python error: exceptions bootstrapping error.

2012-05-22 Thread ドミトリ ステパヌシキン
ドミトリ ステパヌシキン angelja...@gmail.com added the comment: fixed it for build BIG FAT binary. attached. -- Added file: http://bugs.python.org/file25672/iOS-build272.sh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14866

[issue14804] Wrong defaults args notation in docs

2012-05-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a3c52115 by Hynek Schlawack in branch '2.7': #14804: Remove [] around optional arguments with default values http://hg.python.org/cpython/rev/a3c52115 -- ___

[issue14804] Wrong defaults args notation in docs

2012-05-22 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: The problematic cases have been outsourced to Issue14880 Issue14870. Closing this one. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue14872] subprocess is not safe from deadlocks

2012-05-22 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: See also issue1260171. Closing as a duplicate of that. -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - subprocess: more general (non-buffering) communication type: - enhancement

[issue1260171] subprocess: more general (non-buffering) communication

2012-05-22 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Closed issue14872 as a duplicate of this. -- assignee: astrand - nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1260171

[issue14881] multiprocessing.dummy craches when self._parent._children does not exist

2012-05-22 Thread Itay Brandes
New submission from Itay Brandes akari...@gmail.com: multiprocessing.dummy crashes when attempting to create a ThreadPool from a Thread. The following code will crush on 2.7.3: import multiprocessing.dummy import threading class Worker(threading.Thread): def

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-22 Thread stw
stw sil...@googlemail.com added the comment: I'd come to the same conclusion - as the new dict is built up (using batch build) it keeps appearing in generation 0, and the gc has to walk over it to determine that it should be untracked. However, this only seems to be true if the pickle file

[issue14881] multiprocessing.dummy craches when self._parent._children does not exist

2012-05-22 Thread Itay Brandes
Changes by Itay Brandes akari...@gmail.com: -- components: +Library (Lib) -None ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14881 ___ ___

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2012-05-22 Thread Phil Daintree
Phil Daintree phildaint...@gmail.com added the comment: Another example - the following xml returned and displayed from verbose mode: ?xml version=1.0? methodResponse params param valuearray data valuestring0001/string/value valuestring001/string/value valuestring002/string/value

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2012-05-22 Thread Phil Daintree
Phil Daintree phildaint...@gmail.com added the comment: The xml parses happily at http://www.w3schools.com/xml/xml_validator.asp -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11804 ___

[issue1260171] subprocess: more general (non-buffering) communication

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

[issue14844] netrc does not handle accentuated characters

2012-05-22 Thread Raphaël Droz
Raphaël Droz raphael.droz+fl...@gmail.com added the comment: $ python -c import netrc; print netrc.netrc('/dev/stdin').authenticators('a')machine a login b password c ('b', None, 'c') $ python -c import netrc; print netrc.netrc('/dev/stdin').authenticators('a')machine a login b password héhé

[issue1191964] asynchronous Subprocess

2012-05-22 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- assignee: astrand - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1191964 ___ ___

[issue1191964] asynchronous Subprocess

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

[issue14882] Link/Compile Error on Sun Sparc Solaris10 with gcc3.4.3----python2.6.8

2012-05-22 Thread Chang Xiaojiang
New submission from Chang Xiaojiang chang...@oki.com: I download the source package of python2.6.8from http://www.python.org/getit/releases/2.6.8/, and start a build on my Sun Sparc Solaris10 with gcc3.4.3 which is preinstalled.But the following error logs are reported. gcc -shared

[issue14881] multiprocessing.dummy craches when self._parent._children does not exist

2012-05-22 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14881 ___ ___ Python-bugs-list mailing

[issue14876] IDLE highlighting theme does not preview with user-selected fonts

2012-05-22 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: That sounds like a reasonable enhancement. Attached is a patch against 3.3.0a3 to change the font of highlighting sample to match the font selected in the font tab. The actual highlighting text sample has 11 line of text which is why the

[issue11804] expat parser not xml 1.1 (breaks xmlrpclib)

2012-05-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: In sample above, is \x87 one character, or 4 ascii characters? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11804

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: However, this only seems to be true if the pickle file is created using pickle - it doesn't happen with files generated with cPickle. With cPickle the dict remains tracked, and passes from generation 0 to 1 to 2. The only difference is that

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-22 Thread stw
stw sil...@googlemail.com added the comment: Probably because memoization itself uses a dict. Right, but as far as I can tell it's not the memo dict that keeps being tracked/untracked. Rather, it's the dict that is being unpickled. Anyway, I suppose the point is that the issue of whether an

[issue14882] Link/Compile Error on Sun Sparc Solaris10 with gcc3.4.3----python2.6.8

2012-05-22 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Since most of the Python devs and I don't understand Chinese, can you please show the errors in English by compiling Python with LANG=C . Thanks for the bug report. -- nosy: +ramchandra.apte

[issue14844] netrc does not handle accentuated characters

2012-05-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is presumably going to turn out to be a problem with shlex's handling of non-ascii characters. I believe there are open issues about that, but I'm not sure of the status. -- nosy: +r.david.murray

[issue14883] html documentation does not show comments in code blocks

2012-05-22 Thread Alex Garel
New submission from Alex Garel alex.ga...@gmail.com: Just under http://docs.python.org/library/doctest.html#doctest.REPORTING_FLAGS documentation speaks about how Doctest directives maybe expressed as special Python comments. There are some example along with the narrative story, however

[issue1191964] asynchronous Subprocess

2012-05-22 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Comments on Josiah's patch: * It uses pywin32 for PeekNamedPipe -- this is now available from _winapi. * I don't think send(), recv() and recv_exact() will work correctly if buffering is used -- an error should be raised in this case. *

[issue14883] html documentation does not show comments in code blocks

2012-05-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is a duplicate of #12947. -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - doctest directive examples in library/doctest.html lack the flags

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2012-05-22 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: OK, I did some quick tests. Given a samba share with the following files A (contents: 'test: A') a (contents: 'test: a') B (contents: 'test: B') 1) opening \\share\files\A or \\share\files\a opens the same file - in my case 'test: A' 2)

[issue12931] xmlrpclib confuses unicode and string

2012-05-22 Thread Ulrich Seidl
Ulrich Seidl ulrich.se...@muneda.com added the comment: The change set committed for 2.7 introduces another problem. At the beginning of xmlrpclib.py, there is an explicit test for the availability of unicode: try: unicode except NameError: unicode = None # unicode support not

[issue1191964] asynchronous Subprocess

2012-05-22 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Personally, I would factor out the code for Popen.communicate() in to a Communicator class which wraps a Popen object and has a method communicate(input, timeout=None) - (bytes_written, output, error) On Windows this would use threads,

[issue4841] io's close() not handling errors correctly

2012-05-22 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: The reasoning is reasonable, the patch trivial LGTM, the test suite passes. Anything I’m missing, why this is still open? -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org

[issue4841] io's close() not handling errors correctly

2012-05-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hynek, no obvious reason, it probably slipped through :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4841 ___

[issue14856] argparse: creating an already defined subparsers does not raises an exception

2012-05-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the report and patch. However, since there is no del_parser method, I'm inclined to think that this is not a bug. That is, the ability to overwrite a previously defined subparser could be considered a feature. If Steven

[issue4033] python search path - .pth recursion

2012-05-22 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: The docs for 2.7 are a little more clear: http://docs.python.org/install/index.html#inst-search-path says it is not recursive. And looking at the code (http://hg.python.org/cpython/file/086afe7b61f5/Lib/site.py#l184) backs that up. --

[issue14866] 2.x, 3.x iOS static build: Fatal Python error: exceptions bootstrapping error.

2012-05-22 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Thanks for posting a working script. I was mostly interested in this because I'll likely need this functionality myself in the near future ;-) -- ___ Python tracker rep...@bugs.python.org

[issue1191964] asynchronous Subprocess

2012-05-22 Thread Eric Pruitt
Eric Pruitt eric.pru...@gmail.com added the comment: There's documentation, but you have to switch to the Python 3k branch -- http://code.google.com/p/subprocdev/source/browse/?name=python3k#hg%2Fdoc. As for the other criticisms, I'm sure there are plenty of things that need to be improved

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Also, am I right in thinking that whether a container gets untracked or not depends not only on its contents, but also on the order of the objects in the gc list? That is, all of the contents of a container must get untracked before the

[issue14878] send statement from PEP342 is poorly documented.

2012-05-22 Thread Stephen Lacy
Stephen Lacy sl...@slacy.com added the comment: okay, found the documentation I was looking for here: http://docs.python.org/reference/expressions.html#yield-expressions which appears to be copied and pasted and modified version of the docs here:

[issue14472] .gitignore is outdated

2012-05-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fb5da2a5d9da by Petri Lehtinen in branch 'default': #14472: Update .gitignore http://hg.python.org/cpython/rev/fb5da2a5d9da -- nosy: +python-dev ___ Python tracker

[issue14472] .gitignore is outdated

2012-05-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8652dd5c2a14 by Petri Lehtinen in branch '3.2': #14472: Update .gitignore http://hg.python.org/cpython/rev/8652dd5c2a14 -- ___ Python tracker rep...@bugs.python.org

[issue14472] .gitignore is outdated

2012-05-22 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Fixed in default and 3.2 branches, which are quite similar. Thanks for the patch! Closing now. Feel free to reopen if you want to provide a patch for the 2.7 branch, too. -- resolution: - fixed status: open - closed versions: +Python

[issue12014] str.format parses replacement field incorrectly

2012-05-22 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Ben, As I've said, I think that we should go for the documented behavior with the addition of not allowing braces inside the format string (with the exception of format_spec). So AFAICS, index_string would become index_string ::= any

[issue14075] argparse: unused method?

2012-05-22 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Nobody's really sure whether it's safe to remove, so let it be there. Leaving it can be justified by symmetry with _get_kwargs. Closing. -- resolution: - wont fix stage: - committed/rejected status: open - closed

[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2012-05-22 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Still waiting for the info about whether this can be done at run-time. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13445

[issue13934] sqlite3 test typo

2012-05-22 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Both patches LGTM. -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13934 ___

[issue13400] packaging: build command should have options to control byte-compilation

2012-05-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: One thing just came to my mind: if we change option names and people use the new names in setup.cfg or ~/.pydistutils.cfg, then the file will stop being compatible with distutils. -- ___ Python

[issue14884] Windows Build instruction typo

2012-05-22 Thread Michael Driscoll
New submission from Michael Driscoll m...@pythonlibrary.org: In http://docs.python.org/devguide/setup.html#windows the devguide mentions that the user must go to the Build menu to run Build Solution. When I tried doing that with Visual C++ 2010 per the instructions, I discovered that there is

[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2012-05-22 Thread Lauren Foutz
Lauren Foutz lauren.fo...@gmail.com added the comment: It is not possible to compile pysqlite to link with both, and even if it was it would not be a good idea, since databases created by bdbsql cannot be accessed by sqlite, and visa versa. Because of the incompatibility I think a runtime flag

[issue11685] possible SQL injection into db APIs via table names... sqlite3

2012-05-22 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11685 ___ ___ Python-bugs-list

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-22 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Thank Nick for pointing to Terry's review! I'm attaching here a patch addressing the points Terry highlighed. probably we should review this patch before moving forward with the API doc? -- Added file:

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-22 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: $ ./python -m test -v test_shutil ...[snip]... == ERROR: test_copy2_xattr (test.test_shutil.TestShutil)

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-22 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Could you give me your precise platform information please? Including full kernel version and mount output? Also, could you check whether test_os fails too? Thanks! -- assignee: - hynek ___ Python

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-22 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: $ uname -a Linux tshepang 3.2.0-2-amd64 #1 SMP Mon Apr 30 05:20:23 UTC 2012 x86_64 GNU/Linux $ mount udev on /dev type devtmpfs (rw,relatime,size=1889948k,nr_inodes=472487,mode=755) devpts on /dev/pts type devpts

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: [Agreed that spacing comments were bogus.] As for the rest, patch looks good except for 'is is' in +ValueError: If the integer is is negative or... I am glad I could help improve things a bit. I will try to look at the how-to by

[issue14880] csv.reader and .writer use wrong kwargs notation in 2.7 docs

2012-05-22 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14880 ___ ___ Python-bugs-list

[issue14617] confusing docs with regard to __hash__

2012-05-22 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14617 ___ ___ Python-bugs-list

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-22 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: looks easy enough for me; I've marked a bunch of minor issues with the code review tool -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814

[issue1191964] asynchronous Subprocess

2012-05-22 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1191964 ___ ___ Python-bugs-list

[issue1260171] subprocess: more general (non-buffering) communication

2012-05-22 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1260171 ___ ___ Python-bugs-list

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-22 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I think the problem is that the xattr decorator checks only the file system with TESTFN for xattrs and the shutil functions use real temp files that live e.g. under /tmp. Please try whether this patch helps. -- keywords: +patch Added

[issue12014] str.format parses replacement field incorrectly

2012-05-22 Thread Ben Wolfson
Ben Wolfson wolf...@gmail.com added the comment: Are you still willing to rework the patches? Sure. Now that I've actually looked at unicode_format.h it looks like the biggest (relevant) difference might just be that the file isn't named string_format.h, so I suspect it will be pretty

  1   2   >