Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Rustom Mody
On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: On Mon, May 19, 2014 at 4:53 PM, wrote: Could you kindly help? Sure. Either start writing code and then post when you have problems, or investigate some shell

'Swampy' installation through 'pip'

2014-05-20 Thread Ronak Dhakan
I have just started learning python from How to Think Like a Computer Scientist. It requires me to install 'swampy' (http://www.greenteapress.com/thinkpython/swampy/install.html) which requires me to install 'pip' (https://pip.pypa.io/en/latest/installing.html). I think I was able to

Re: Problem in writing demands to the xml file

2014-05-20 Thread varun7rs
There is no traceback error. But I want to actually fill the demands with certain attributes which I'm not able to do. When I run the program, the xml is written but the demands doesn't have any attributes whatsoever. I could give you a clear idea of what I expect in the demands. For every

Re: Python and Math

2014-05-20 Thread wxjmfauth
Le lundi 19 mai 2014 21:18:54 UTC+2, Tim Golden a écrit : On 19/05/2014 20:07, wxjmfa...@gmail.com wrote: Yesterday, I spent one hour attemepting to install IPython for Py3.3 (win 7), I failed. I do not even succeed to understand how. Pip, setuptools, whl or manualy with from

Re: Python and Math

2014-05-20 Thread Tim Golden
On 20/05/2014 10:19, wxjmfa...@gmail.com wrote: Le lundi 19 mai 2014 21:18:54 UTC+2, Tim Golden a écrit : On 19/05/2014 20:07, wxjmfa...@gmail.com wrote: Yesterday, I spent one hour attemepting to install IPython for Py3.3 (win 7), I failed. I do not even succeed to understand how. Pip,

Re: Python and Math

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: If it's possible, download get-pip.py from here: https://bootstrap.pypa.io/get-pip.py Gives me secure connection failed error (in firefox) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and Math

2014-05-20 Thread Tim Golden
On 20/05/2014 12:20, Rustom Mody wrote: On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: If it's possible, download get-pip.py from here: https://bootstrap.pypa.io/get-pip.py Gives me secure connection failed error (in firefox) I've reported on the PyPA issues list for

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: On Mon, May 19, 2014 at 4:53

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: On Mon, May 19, 2014 at 4:53 PM, wrote: Could you kindly help? Sure. Either start writing

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: On Mon, May 19, 2014 at 4:53

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 5:54:47 PM UTC+5:30, Satish ML wrote: On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: On Monday, May 19, 2014 12:31:05

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread alister
On Tue, 20 May 2014 05:28:09 -0700, Satish ML wrote: On Tuesday, May 20, 2014 5:54:47 PM UTC+5:30, Satish ML wrote: On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: On Monday, May 19, 2014 2:32:36 PM UTC+5:30,

Re: Python and Math

2014-05-20 Thread Frank Millman
Tim Golden m...@timgolden.me.uk wrote in message news:537b42bc.3030...@timgolden.me.uk... On 20/05/2014 12:20, Rustom Mody wrote: On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: If it's possible, download get-pip.py from here: https://bootstrap.pypa.io/get-pip.py Gives me

Re: 'Swampy' installation through 'pip'

2014-05-20 Thread Mark Lawrence
On 20/05/2014 08:11, Ronak Dhakan wrote: I have just started learning python from How to Think Like a Computer Scientist. It requires me to install 'swampy' (http://www.greenteapress.com/thinkpython/swampy/install.html) which requires me to install 'pip'

Re: 'Swampy' installation through 'pip'

2014-05-20 Thread Chris Angelico
On Tue, May 20, 2014 at 11:20 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: I'd recommend reinstalling and use the default settings, putting Python at the top level of the disk and not in Program Files, that's another set of potential set of problems eliminated straight away. Second this

Re: Python and Math

2014-05-20 Thread wxjmfauth
Le mardi 20 mai 2014 12:13:45 UTC+2, Tim Golden a écrit : On 20/05/2014 10:19, wxjmfa...@gmail.com wrote: Le lundi 19 mai 2014 21:18:54 UTC+2, Tim Golden a �crit : On 19/05/2014 20:07, wxjmfa...@gmail.com wrote: Yesterday, I spent one hour attemepting to install IPython for

Re: Python and Math

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 5:25:40 PM UTC+5:30, Tim Golden wrote: On 20/05/2014 12:20, Rustom Mody wrote: On Tuesday, May 20, 2014 3:43:45 PM UTC+5:30, Tim Golden wrote: If it's possible, download get-pip.py from here: https://bootstrap.pypa.io/get-pip.py Gives me secure connection

Re: Python and Math

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 7:12:19 PM UTC+5:30, jmf wrote: I give up. Anyway, thanks. Take a deep breath. Be patient. And post the backtrace (or whatever is the evidence of 'not working') -- https://mail.python.org/mailman/listinfo/python-list

Putting Py 3.4.1 to work.

2014-05-20 Thread wxjmfauth
Experimented users have certainly noticed a lot of things have changed. Short. I installed Py3.4.1, it overwrites c:\Python34 which contained eg. PySide in ...\site-packages. So far, so good. I can launch Python, IDLE and my interactive interpreter I wrote with tkinter via a cmd in dos, .bat,

Basic help

2014-05-20 Thread Pat Fourie
Good Day all. I am new to Python. I need to maintain software written on Python 1.5.2. I will upgrade after learning more. My question is : When compiling, the results of the compile is displayed in the active window. How can I view this window. Many thanks for your assistance. Kind regards

Re: 'Swampy' installation through 'pip'

2014-05-20 Thread Ian Kelly
On May 20, 2014 7:22 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 20/05/2014 08:11, Ronak Dhakan wrote: I have just started learning python from How to Think Like a Computer Scientist. It requires me to install 'swampy' ( http://www.greenteapress.com/thinkpython/swampy/install.html)

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Jagadeesh Malakannavar
Hi Satish, Can you please send python part in plain text format? Python code here is difficult to read. Thanks On Tue, 20 May 2014, Satish ML wrote: | On Tuesday, May 20, 2014 5:54:47 PM UTC+5:30, Satish ML wrote: | On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: On Tuesday,

Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Skip Montanaro
I don't have Windows and since upgrading my Mac to Mavericks I no longer have Excel of any flavor. I have a few Excel spreadsheets in which I store parameters from which I generate other config files. I read those spreadsheets using xlrd. I am so fed up with LibreOffice's inability to properly

Re: Basic help

2014-05-20 Thread Ned Batchelder
On 5/20/14 10:25 AM, Pat Fourie wrote: Good Day all. I am new to Python. I need to maintain software written on Python 1.5.2. I will upgrade after learning more. Pat, you are dealing with a version most people have never even seen! You are brave! :) My question is : When compiling, the

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Chris Angelico
On Wed, May 21, 2014 at 2:38 AM, Skip Montanaro s...@pobox.com wrote: Before someone suggests config parser/Windows INI files... A spreadsheet format is kinda handy in this case because I do use a few formulas to define some of the parameters. Adding a new row (new config file) or column (new

Re: Basic help

2014-05-20 Thread Emile van Sebille
On 5/20/2014 7:25 AM, Pat Fourie wrote: Good Day all. I am new to Python. Welcome -- I need to maintain software written on Python 1.5.2. I'd point you to the tutorial for a start. See the docs at https://docs.python.org/release/1.5.2/ I will upgrade after learning more. My question

Re: Loading modules from files through C++

2014-05-20 Thread Roland Plüss
On 05/19/2014 03:40 AM, Chris Angelico wrote: On Mon, May 19, 2014 at 5:41 AM, Roland Plüss rol...@rptd.ch wrote: This exec source_code in module.__dict__ , should this not also be doable with PyEval_EvalCode? General principle: The more code you write in Python and the less in C/C++, the

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread John Gordon
In d195c26b-62f9-4240-8f3e-c579a2889...@googlegroups.com wxjmfa...@gmail.com writes: sys.path ['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip', 'C:\\Python34\\DLLs\\DLLs', 'C:\\Python34\\DLLs\\lib', 'C:\\Python34\\DLLs', 'C:\\Python34\\DLLs\\lib\\site-packages',

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Ian Kelly
On Tue, May 20, 2014 at 11:14 AM, John Gordon gor...@panix.com wrote: In d195c26b-62f9-4240-8f3e-c579a2889...@googlegroups.com wxjmfa...@gmail.com writes: sys.path ['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip', 'C:\\Python34\\DLLs\\DLLs',

Re: Loading modules from files through C++

2014-05-20 Thread Chris Angelico
On Wed, May 21, 2014 at 3:17 AM, Roland Plüss rol...@rptd.ch wrote: The important part are the last two lines. An important module is lacking the __builtins__ dictionary member so I had to add it. Hopefully this works also in Py3 should I switch some time later. But I guess it should seeing

Code a web service with python/postgis

2014-05-20 Thread image
Dear all, I would like code a web service with python. I have already imported several vector data (land cover) and one Digital Elevation Model (raster layer) into my postgresql/postgis database (server side). I succeed in connecting to my pg db via psycopg2. Client side, operators use a

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Vincent Vande Vyvre
Le 20/05/2014 19:38, Ian Kelly a écrit : On Tue, May 20, 2014 at 11:14 AM, John Gordon gor...@panix.com wrote: In d195c26b-62f9-4240-8f3e-c579a2889...@googlegroups.com wxjmfa...@gmail.com writes: sys.path ['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Chris Angelico
On Wed, May 21, 2014 at 4:02 AM, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: from pyside import QtCore, QtGui Is it pyside or PySide? There seems to be some inconsistency here. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Mark Lawrence
On 20/05/2014 18:38, Ian Kelly wrote: On Tue, May 20, 2014 at 11:14 AM, John Gordon gor...@panix.com wrote: In d195c26b-62f9-4240-8f3e-c579a2889...@googlegroups.com wxjmfa...@gmail.com writes: sys.path ['D:\\jm\\jmpy\\smid\\smid50beta1', 'C:\\Windows\\system32\\python34.zip',

Code a web service with python/postgis

2014-05-20 Thread lcelati
Dear all, I would like code a web service with python. I have already imported several vector data (land cover) and one Digital Elevation Model (raster layer) into my postgresql/postgis database (server side). I succeed in connecting to my pg db via psycopg2. Client side, operators use a

PyDev 3.5.0 Released

2014-05-20 Thread Fabio Zadrozny
What is PyDev? --- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Vincent Vande Vyvre
Le 20/05/2014 20:12, Chris Angelico a écrit : On Wed, May 21, 2014 at 4:02 AM, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: from pyside import QtCore, QtGui Is it pyside or PySide? There seems to be some inconsistency here. ChrisA Yes PySide, off course. Sorry. -- Vincent V.V.

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread wxjmfauth
- Complete (re)Fresh install Stop Python34, PySide ok Stop cx_freeze 4.3.3 for py34 seems to suffer, again, from the same desease as with cx_freeze 4.3.2, Py 3.4.0 leading to a Py crash Stop Python, PySide, cx_freeze, Windows issue? No idea Stop Have some idea about the guilty msi installer

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Martin Manns
On Tue, 20 May 2014 11:38:06 -0500 Skip Montanaro s...@pobox.com wrote: I am so fed up with LibreOffice's inability to properly support really basic Excel capabilities, I'm about ready to throw my computer out the Could you please give some examples, what basic Excel capabilities you are

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Zachary Ware
On Tue, May 20, 2014 at 9:31 AM, wxjmfa...@gmail.com wrote: Experimented users have certainly noticed a lot of things have changed. Short. I installed Py3.4.1, it overwrites c:\Python34 which contained eg. PySide in ...\site-packages. So far, so good. I can launch Python, IDLE and my

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Skip Montanaro
On Tue, May 20, 2014 at 2:45 PM, Martin Manns mma...@gmx.net wrote: I am so fed up with LibreOffice's inability to properly support really basic Excel capabilities, I'm about ready to throw my computer out the Could you please give some examples, what basic Excel capabilities you are missing?

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread Terry Reedy
On 5/20/2014 4:55 PM, Zachary Ware wrote: On Tue, May 20, 2014 at 9:31 AM, wxjmfa...@gmail.com wrote: Experimented users have certainly noticed a lot of things have changed. Short. I installed Py3.4.1, it overwrites c:\Python34 which contained eg. PySide in ...\site-packages. I installed

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Skip Montanaro
On Tue, May 20, 2014 at 11:49 AM, Chris Angelico ros...@gmail.com wrote: Okay, I won't suggest Windows INI files, but I'll still suggest taking a step back and figuring out exactly what you're trying to accomplish. Can you separate out the real data from the formula-derived info, put the

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 10:08:06 PM UTC+5:30, Skip Montanaro wrote: I don't have Windows and since upgrading my Mac to Mavericks I no longer have Excel of any flavor. I have a few Excel spreadsheets in which I store parameters from which I generate other config files. I read those

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Rustom Mody
On Tuesday, May 20, 2014 9:35:10 PM UTC+5:30, Jagadeesh N. Malakannavar wrote: Hi Satish, Can you please send python part in plain text format? Python code here is difficult to read. It would be helpful to read https://wiki.python.org/moin/GoogleGroupsPython#Posting_from_Google_Groups

Re: Reading OpenOffice spreadsheet in Python?

2014-05-20 Thread Skip Montanaro
Are you familiar with emacs' org mode tables? http://orgmode.org/org.html#Tables No. Thanks for the pointer. S -- https://mail.python.org/mailman/listinfo/python-list

Re: Putting Py 3.4.1 to work.

2014-05-20 Thread wxjmfauth
Le mercredi 21 mai 2014 00:19:37 UTC+2, Terry Reedy a écrit : On 5/20/2014 4:55 PM, Zachary Ware wrote: On Tue, May 20, 2014 at 9:31 AM, wxjmfa...@gmail.com wrote: Experimented users have certainly noticed a lot of things have changed. This looks like something went weird

[issue21540] PEP 8 should recommend is not and not in

2014-05-20 Thread Florent Xicluna
New submission from Florent Xicluna: Python accepts both syntaxes: if not item in some_list and not item is None: return item and if item not in some_list and item is not None: return item In the first form, you identify 5 operators: not, in, and, not and in In the

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch with test. -- stage: test needed - patch review Added file: http://bugs.python.org/file35300/plistlib_read_refs_2.patch ___ Python tracker rep...@bugs.python.org

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file35299/plistlib_read_refs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21538 ___

[issue21540] PEP 8 should recommend is not and not in

2014-05-20 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- assignee: docs@python - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21540 ___ ___

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-05-20 Thread Simon de Vlieger
Changes by Simon de Vlieger si...@ikanobori.jp: -- nosy: +ikanobori ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21052 ___ ___ Python-bugs-list

[issue21477] Idle: improve idle_test.htest

2014-05-20 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Adds spec dicts for aboutDialog, ClassBrowser, PathBrowser, textView and configHelpSourceEdit and modifies the related modules appropriately. The spec dicts(and the tests relating to) for editorwindow and help dialog have not been modified in this patch.

[issue21477] Idle: improve idle_test.htest

2014-05-20 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Removed file: http://bugs.python.org/file35301/about+classbrowser+cfghelpsrcedit+pathbrowser+textview.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21477

[issue21477] Idle: improve idle_test.htest

2014-05-20 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file35302/about+classbrowser+cfghelpsrcedit+pathbrowser+textview.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21477

[issue21527] concurrent.futures.ThreadPoolExecutor does not use a default value

2014-05-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: +1. Makes it easier to swap Executors (which is a big selling point for the Executor framework), and number of cores is a reasonable default value. -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org

[issue21539] pathlib's Path.mkdir() should allow for mkdir -p functionality

2014-05-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21539 ___ ___ Python-bugs-list mailing

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

2014-05-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: @tholzer, to clarify Charles-François's comment: EINTR should be handled in socket.connect() and socket.getaddrinfo() (the two syscalls called by create_connection(), AFAIR). -- ___ Python tracker

[issue21539] pathlib's Path.mkdir() should allow for mkdir -p functionality

2014-05-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think we can a new `exist_ok` parameter indeed. It should probably be False by default, though. -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21539

[issue21539] pathlib's Path.mkdir() should allow for mkdir -p functionality

2014-05-20 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- keywords: +patch nosy: +berker.peksag Added file: http://bugs.python.org/file35303/issue21539.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21539

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2014-05-20 Thread Facundo Batista
Changes by Facundo Batista facu...@taniquetil.com.ar: -- stage: resolved - patch review versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866 ___

[issue21540] PEP 8 should recommend is not and not in

2014-05-20 Thread Steven Myint
Changes by Steven Myint c...@stevenmyint.com: -- nosy: +myint ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21540 ___ ___ Python-bugs-list mailing

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2014-05-20 Thread Pavel Machyniak
Pavel Machyniak added the comment: Unfortunately this patch will not work if there is other (system) openssl installed in the default locations (`/usr/include`, `/usr/lib`) because this patch only add another path at the end of the search list. Instead of this I will make a ticket for

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread Pavel Machyniak
New submission from Pavel Machyniak: There is no easy way to build python with custom openssl build. This can lead to miscellaneous problems (like segmentation faults) in various situations/configurations (see eg.

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread R. David Murray
R. David Murray added the comment: Aren't things like this normally accomplished by editing Modules/Setup? Granted, that's not the most convenient build API... -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue21540] PEP 8 should recommend is not and not in

2014-05-20 Thread Ian Cordasco
Changes by Ian Cordasco graffatcolmin...@gmail.com: -- nosy: +icordasc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21540 ___ ___

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread Pavel Machyniak
Pavel Machyniak added the comment: This is the proposed patch (compared 2 trees src upd where src is latest release 3.4.1, upd is my working). Changes are in: configure, setup.py. Please review it and hopefully integrate to future releases. -- keywords: +patch versions: +Python 3.4

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-05-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch fails to invoke exec() with the locals argument set to the current frame locals. The attached patch fixes this, and test_pdb runs now fine with it. -- Added file: http://bugs.python.org/file35305/default.patch

[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict

2014-05-20 Thread Ram Rachum
New submission from Ram Rachum: pprint doesn't work well for counters, sometimes shows them like a dict Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. dd={'a':

[issue21543] json library fails to serialize objects such as datetime

2014-05-20 Thread Dann Ke
New submission from Dann Ke: I'm using the json library to serialize objects out for web use. Whenever I serialize a datetime or other included python library object (uuid as another example), it fails with TypeError: datetime.datetime(2014, 5, 20, 9, 37, 56, 133627) is not JSON

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-20 Thread John Lehr
John Lehr added the comment: Serhiy, I applied the patch and can confirm this is a fix (three previous failing loads of History.plists from three different devices now load successfully). Thank you, I would not likely have identified the issue myself. On Mon, May 19, 2014 at 11:08 PM, Serhiy

[issue21528] Fix a number of typos in the documentation

2014-05-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset db302b88fdb6 by Donald Stufft in branch 'default': Fix Issue #21528 - Fix documentation typos http://hg.python.org/cpython/rev/db302b88fdb6 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue21528] Fix a number of typos in the documentation

2014-05-20 Thread Donald Stufft
Changes by Donald Stufft don...@stufft.io: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21528 ___

[issue21543] json library fails to serialize objects such as datetime

2014-05-20 Thread akira
akira added the comment: json module already allows you to customize the serialization: see *default* parameter for json.dumps [1] [1] https://docs.python.org/3/library/json.html#json.dump -- nosy: +akira ___ Python tracker rep...@bugs.python.org

[issue21543] json library fails to serialize objects such as datetime

2014-05-20 Thread Dann Ke
Dann Ke added the comment: I was reading the older 2.7 docs and it didn't click that default() was what I wanted. Thank you for clarifying. On Tue, May 20, 2014 at 10:09 AM, akira rep...@bugs.python.org wrote: akira added the comment: json module already allows you to customize the

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-20 Thread John Lehr
John Lehr added the comment: Patch plistlib_read_refs_2.patch corrects load error for iOS Safari History.plist. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21538

[issue21543] json library fails to serialize objects such as datetime

2014-05-20 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21543 ___

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue shouldn't be closed as resolved until patch is committed. Ronald, is it good to you? -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21538

[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict

2014-05-20 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21542 ___ ___ Python-bugs-list mailing list

[issue21544] Spam

2014-05-20 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- Removed message: http://bugs.python.org/msg218856 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21544 ___

[issue21544] Spam

2014-05-20 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -bill.little resolution: - not a bug status: open - closed title: Did y ou call me - Spam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21544

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-20 Thread Terry J. Reedy
New submission from Terry J. Reedy: The Tutorial section More on Lists https://docs.python.org/3.4/tutorial/datastructures.html#more-on-lists includes list.pop but ignores it in the example and final comment. I think the examples should be augmented and the comment modified. 1. (simplest) End

[issue21540] PEP 8 should recommend is not and not in

2014-05-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Agreed! I'll update the PEP. Thanks. -- assignee: - barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21540 ___

[issue21540] PEP 8 should recommend is not and not in

2014-05-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21540 ___

[issue21545] Tutorial: examples and comment about mutation methods

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

[issue21546] int('\0') gives wrong error message

2014-05-20 Thread Kurt Rose
New submission from Kurt Rose: int() ignores everything after a null byte when reporting an error message. Here you can see an example of how this manifests, and why could be a problem. Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit(Intel)] on win32 Type help, copyright,

[issue21088] curses addch() argument position reverses in Python3.4.0

2014-05-20 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto light2happy@gmail.com: -- nosy: -masamoto ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21088 ___ ___

[issue21546] int('\0') gives wrong error message

2014-05-20 Thread STINNER Victor
STINNER Victor added the comment: It looks like the issue was already fixed in Python 3: Python 3.5.0a0 (default:61d9aa8be445, May 20 2014, 16:03:51) int('a') Traceback (most recent call last): File stdin, line 1, in module ValueError: invalid literal for int() with base 10: 'a' int('\0a')

[issue17421] Drop restriction that meta.__prepare__() must return a dict (subclass)

2014-05-20 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17421 ___ ___ Python-bugs-list

[issue1191964] asynchronous Subprocess

2014-05-20 Thread STINNER Victor
STINNER Victor added the comment: @Josiah: Modifications of the asyncio module should be done first in the Tulip project because we try to keep the same code base in Tulip, Python 3.4 and 3.5. You may duplicate the code the avoid this dependency? For the documentation, I don't think that you

[issue21546] int('\0') gives wrong error message

2014-05-20 Thread eryksun
eryksun added the comment: See issue 16741. This is fixed in 3.3, but 2.7 intentionally keeps the old behavior. -- nosy: +eryksun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21546 ___

[issue12806] argparse: Hybrid help text formatter

2014-05-20 Thread paul j3
Changes by paul j3 ajipa...@gmail.com: Added file: http://bugs.python.org/file35306/wrap_sample.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12806 ___

[issue12806] argparse: Hybrid help text formatter

2014-05-20 Thread paul j3
Changes by paul j3 ajipa...@gmail.com: Removed file: http://bugs.python.org/file35236/wrap_sample.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12806 ___