Re: How to check in script if Python or Jython is used

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 11:22 CEST, Laura Creighton wrote: In a message of Sun, 21 Jun 2015 10:12:06 +0200, Cecil Westerhof writes: I installed Jython and will start playing with it. There probably will be differences between Python and Jython. Is there a way to determine if a script is run by

Re: Using Jython for Android development?

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 11:26 CEST, Laura Creighton wrote: In a message of Sun, 21 Jun 2015 10:14:15 +0200, Cecil Westerhof writes: I have no experience yet with Jython or Android development. But I was wondering: would it be possible to write applications for Android with Jython? You normally

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: Do you have Jython 2.7 released a few weeks ago? Yes, but I was dumb enough to start the old version when I did this. :-( There is still one problem: == from __future__

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 12:21:03 +0200, Cecil Westerhof writes: On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: Do you have Jython 2.7 released a few weeks ago? Yes, but I was dumb enough to start the old version when I did this. :-( There is still one problem:

[issue24484] multiprocessing cleanup occasionally throws exception

2015-06-21 Thread Jorge Herskovic
New submission from Jorge Herskovic: I'm writing a library on top of multiprocessing. As part of the test suite, I create and destroy dozens of processes repeatedly. About once in 50 runs, the tests complete successfully but the program crashes with: Error in atexit._run_exitfuncs: Traceback

Re: How to check in script if Python or Jython is used

2015-06-21 Thread Thomas 'PointedEars' Lahn
Cecil Westerhof wrote: I installed Jython and will start playing with it. There probably will be differences between Python and Jython. Is there a way to determine if a script is run by Python or Jython? Then different execution paths could be taken. With sys.version(_info) you do not get

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Is it expected? No, it is a bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___ ___

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
Changes by Dmitry Odzerikho dmitry.odzeri...@gmail.com: Added file: http://bugs.python.org/file39757/test_segfault.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___

Re: Jython and can't write cache file

2015-06-21 Thread Johannes Bauer
On 21.06.2015 11:40, Cecil Westerhof wrote: Thanks. Good that I asked it. :-D Good for you that you found someone able to enter words into a Google query. That's a skill you might want to acquire some time in the future. Cheers, Johannes -- Wo hattest Du das Beben nochmal GENAU

Re: How to construct matrix from vectors?

2015-06-21 Thread lanuradha
On Sunday, 21 June 2015 20:43:15 UTC+5:30, Dennis Lee Bieber wrote: On Sun, 21 Jun 2015 09:32:55 +0100, Mark Lawrence declaimed the following: On 21/06/2015 04:47, Nasser M. Abbasi wrote: But it is not as intuitive as with Matlab For those of us who don't know would you be kind

[issue23883] __all__ lists are incomplete

2015-06-21 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: I've added previously missing test and docs for test.support.check__all__ in Issue23883_support_check__all__.v2.patch . Awaiting review. :) -- Added file: http://bugs.python.org/file39760/Issue23883_support_check__all__.v2.patch

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't reproduce the crash in 3.3+ (this doesn't matter the bug is gone), but can reproduce in 2.7 and 3.2. Here is a reproducer that compatible with 2.7 and 3.x. -- Added file: http://bugs.python.org/file39762/test_segfault.py

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2015-06-21 Thread Martin Panter
Martin Panter added the comment: See Issue 1186900 about the NNTP client raising EOFError. As for the “cannot read from timed out object” errors (also reported in Issue 19613), I think the test classes are bad. The test logs don’t seem to be available, but I reckon that the previous test to

[issue24426] re.split performance degraded significantly by capturing group

2015-06-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24426 ___

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___ ___

[issue24408] tkinter.font.Font.measure() broken in 3.5

2015-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e90f3ffa784 by Serhiy Storchaka in branch '2.7': Issue #24408: Fixed test for tkinter.Font on OS X. https://hg.python.org/cpython/rev/8e90f3ffa784 New changeset 014ee2df443a by Serhiy Storchaka in branch '3.4': Issue #24408: Fixed test for

[issue24408] tkinter.font.Font.measure() broken in 3.5

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ned and Martin. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24408

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: There is a difference between Python and C implementations of functools.lru_cache(). Python implementation caches the hash of the key, C implementation doesn't. May be this is not too important (at least I have no an example that shows the benefit of

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f659b9f7fbc by Serhiy Storchaka in branch '3.4': Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add. https://hg.python.org/cpython/rev/6f659b9f7fbc New changeset 9602b8313dd5 by Serhiy Storchaka in branch '3.5': Issue

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Michael. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24436

[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-06-21 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Nick, thank you for a review, I have made a new patch with all the previous comments taken into account. -- Added file: http://bugs.python.org/file39759/classdoc-v4.patch ___ Python tracker rep...@bugs.python.org

Re: JSON Object to CSV File Troubleshooting

2015-06-21 Thread Sahlusar
On Sunday, 21 June 2015 02:54:48 UTC-4, Denis McMahon wrote: On Thu, 18 Jun 2015 18:47:30 -0700, Sahlusar wrote: I have a conundrum regarding JSON objects and converting them to CSV: I think your conundrum is that you've taken on a coding task beyond your abilities to comprehend, and as

Re: JSON Object to CSV file

2015-06-21 Thread Sahlusar
On Sunday, June 21, 2015 at 2:47:31 AM UTC-4, Denis McMahon wrote: On Wed, 17 Jun 2015 08:00:11 -0700, Saran A wrote: I would like to have this JSON object written out to a CSV file so that the keys are header fields (for each of the columns) and the values are values that are associated

Re: Lawful != Mutable (was Can Python function return multiple data?)

2015-06-21 Thread Ron Adam
On 06/20/2015 10:50 PM, Rustom Mody wrote: Here is Eric Snow: | Keep in mind that by immutability I'm talking about*really* | immutable, perhaps going so far as treating the full memory space | associated with an object as frozen. For instance, we'd have to | ensure that immutable Python

Re: JSON Object to CSV File Troubleshooting

2015-06-21 Thread Sahlusar
It is difficult to explain this to someone asynchronously and without an in person meeting. Moreover, the strict guidelines for disclosing information make it difficult for me to explain the client's requirements and the problems that they face. I do agree with you Denis that this is an

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New patch adds _PyDict_DelItem_KnownHash() and uses it to guarantee that the hash is only calculated once. -- Added file: http://bugs.python.org/file39761/clru_cache_known_hash_2.patch ___ Python tracker

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
New submission from Dmitry Odzerikho: Hi, I'm using iterators returned by itertools.tee in different threads. The original iterator passed to itertools.tee is thread-safe, however, it doesn't guarantees that the cloned iterators are thread safe too. However the equivalent implementation of

Re: HOPE: A Python just-in-time compiler for astrophysical computations

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 10:29:32 +0100, BartC writes: It also puts in a good dig at PyPy by including one benchmark where it is 6 times as slow as CPython! It's not clear why it's particularly useful for astrophysics. -- Bartc It's not that good a dig, as they say that it took less

[issue24464] Got warning when compiling sqlite3 module on Mac OSX

2015-06-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: https://www.sqlite.org/c3ref/enable_shared_cache.html appears to indicate that the function is deprecated on OSX 10.7 and iOS 5.0, but looking at the latest sources on sqlite.org that's not the case, the warning in the documentation appears to be for the

Re: JSON Object to CSV file

2015-06-21 Thread Sahlusar
On Sunday, June 21, 2015 at 2:47:31 AM UTC-4, Denis McMahon wrote: On Wed, 17 Jun 2015 08:00:11 -0700, Saran A wrote: I would like to have this JSON object written out to a CSV file so that the keys are header fields (for each of the columns) and the values are values that are associated

Re: JSON Object to CSV file

2015-06-21 Thread Ned Batchelder
On Sunday, June 21, 2015 at 10:54:44 AM UTC-4, Sahlusar wrote: This is a duplicate to the post titled: JSON to CSV Troubleshooting: Please don't do that. --Ned. -- https://mail.python.org/mailman/listinfo/python-list

Python functionality in Javascript

2015-06-21 Thread jonas . thornvall
Check this out using a 8 digit base with a 100 digit number no problem. http://jt.node365.se/baseconversion3.html -- https://mail.python.org/mailman/listinfo/python-list

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24436 ___ ___

Re: JSON Object to CSV file

2015-06-21 Thread sahluwalia
On Sunday, 21 June 2015 02:47:31 UTC-4, Denis McMahon wrote: On Wed, 17 Jun 2015 08:00:11 -0700, Saran A wrote: I would like to have this JSON object written out to a CSV file so that the keys are header fields (for each of the columns) and the values are values that are associated with

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is important. -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24483 ___ ___

[issue14373] C implementation of functools.lru_cache

2015-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: If the C version is to remain in Python3.5, please make sure it provides all of the carefully designed features of the pure python version: * The hash function is called no more than once per element * The key is constructed to be flat as possible

[issue24309] string.Template should be using str.format and/or deprecated

2015-06-21 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24309 ___ ___ Python-bugs-list

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Dmitry Odzerikho
Changes by Dmitry Odzerikho dmitry.odzeri...@gmail.com: Removed file: http://bugs.python.org/file39756/test_segfault.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___

Re: How to check in script if Python or Jython is used

2015-06-21 Thread Albert-Jan Roskam via Python-list
Sun, Jun 21, 2015 12:24 PM CEST Cecil Westerhof wrote: On Sunday 21 Jun 2015 11:22 CEST, Laura Creighton wrote: In a message of Sun, 21 Jun 2015 10:12:06 +0200, Cecil Westerhof writes: I installed Jython and will start playing with it. There probably will be

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24436 ___ ___

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 12:54 CEST, Laura Creighton wrote: In a message of Sun, 21 Jun 2015 12:21:03 +0200, Cecil Westerhof writes: On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: Do you have Jython 2.7 released a few weeks ago? Yes, but I was dumb enough to start the old version

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like the full functionality of the Python version to be implemented. Guaranteeing that the hash is only calculated once prevents a reentrancy hole and provides a speed benefit as well. Please implement exactly what the pure python version does

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- Removed message: http://bugs.python.org/msg245600 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24483 ___

[issue24482] itertools.tee causes segfault in a multithreading environment, while the equivalent implementation doesn't

2015-06-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +rhettinger stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24482 ___

[issue24426] re.split performance degraded significantly by capturing group

2015-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e46a503dd16 by Serhiy Storchaka in branch 'default': Issue #24426: Fast searching optimization in regular expressions now works https://hg.python.org/cpython/rev/7e46a503dd16 -- nosy: +python-dev ___

Re: How to construct matrix from vectors?

2015-06-21 Thread Dave Farrance
Fabien fabien.mauss...@gmail.com wrote: another solution with less (([[]])), and less ;. There are way too many ; in Matlab ;) import numpy as np v1 = [1, 2, 3] v2 = [4, 5, 6] v3 = [7, 8, 9] v4 = [10, 11, 12] np.hstack([[v1, v2], [v3, v4]]).T Out[]: array([[ 1, 4], [ 2, 5], [

Re: JSON Object to CSV file

2015-06-21 Thread Sahlusar
On Sunday, 21 June 2015 11:31:44 UTC-4, Ned Batchelder wrote: On Sunday, June 21, 2015 at 10:54:44 AM UTC-4, Sahlusar wrote: This is a duplicate to the post titled: JSON to CSV Troubleshooting: Please don't do that. --Ned. My apologies - is it possible to delete one of my posts? --

[issue1182143] making builtin exceptions more informative

2015-06-21 Thread George Jenkins
George Jenkins added the comment: Reviewer please :) (or, advice on how I can get this to proceed, thx) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1182143 ___

[issue1182143] making builtin exceptions more informative

2015-06-21 Thread R. David Murray
R. David Murray added the comment: What does your patch implement? It's not clear from the issue discussion that an API was decided on. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1182143

Re: JSON Object to CSV File Troubleshooting

2015-06-21 Thread Sahlusar
On Sunday, June 21, 2015 at 5:56:00 PM UTC-4, Waffle wrote: On 21 June 2015 at 17:38, Sahlusar ahlusar.ahluwa...@gmail.com wrote: [snip] I do agree with you Denis that this is an unconventional approach. I was wondering then that perhaps I should add additional functionality at the

Re: JSON Object to CSV file

2015-06-21 Thread Sahlusar
On Sunday, June 21, 2015 at 4:54:27 PM UTC-4, Denis McMahon wrote: On Sun, 21 Jun 2015 06:57:01 -0700, sahluwalia wrote: On Sunday, 21 June 2015 02:47:31 UTC-4, Denis McMahon wrote: On Wed, 17 Jun 2015 08:00:11 -0700, Saran A wrote: I would like to have this JSON object written out

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Chris Angelico
On Mon, Jun 22, 2015 at 9:54 AM, C.D. Reimer ch...@cdreimer.com wrote: On 6/21/2015 3:02 PM, Marko Rauhamaa wrote: As they say, tell that to the judge. More than likely, the original copyright owner can issue an DMCA take down notice and that will be end of that. Or, alternatively, the

[issue24439] Feedback for awaitable coroutine documentation

2015-06-21 Thread Yury Selivanov
Yury Selivanov added the comment: Martin, if you want to help with the documentation, it would be great if you can help me with updating asyncio coroutines section: https://docs.python.org/3.5/library/asyncio-task.html#coroutines -- ___ Python

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Steven D'Aprano
On Mon, 22 Jun 2015 09:54 am, C.D. Reimer wrote: On 6/21/2015 3:02 PM, Marko Rauhamaa wrote: As they say, tell that to the judge. More than likely, the original copyright owner can issue an DMCA take down notice and that will be end of that. The way the DMCA is implemented in practice,

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Steven D'Aprano
On Mon, 22 Jun 2015 07:28 am, Michael Torrie wrote: As to the question of assigning a copyright license to code, in this case I suggest just releasing the code marked as public domain. Public domain is not a licence, and many places (including the US) do not allow individuals to put works into

[issue24479] Support LMMS project files in mimetypes.guess_type

2015-06-21 Thread Andreas Nilsson
Andreas Nilsson added the comment: Here is a decompressed example (use lmms -d file to decompress). Shouldn't this be parsed as XML? Here's a log of my experiment with it: Python 2.7.9 (default, Apr 2 2015, 15:33:21) [GCC 4.9.2] on linux2 Type help, copyright, credits or license for more

[issue14373] C implementation of functools.lru_cache

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If the C version is to remain in Python3.5, please make sure it provides all of the carefully designed features of the pure python version: * The hash function is called no more than once per element Will be satisfied by issue24483. I think all other

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread C.D. Reimer
On 6/21/2015 3:02 PM, Marko Rauhamaa wrote: As they say, tell that to the judge. More than likely, the original copyright owner can issue an DMCA take down notice and that will be end of that. Thanks, Chris R. -- https://mail.python.org/mailman/listinfo/python-list

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New patch touches also unbounded cache version. Larry, do you allow to commit such patch in 3.5? -- nosy: +larry versions: +Python 3.5 Added file: http://bugs.python.org/file39766/clru_cache_known_hash_3.patch ___

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Michael Torrie
On 06/21/2015 08:27 PM, Steven D'Aprano wrote: Public domain is not a licence, and many places (including the US) do not allow individuals to put works into the public domain. (US government works are a special case.) Some places will not recognise a public domain dedication, and will treat

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Chris Angelico
On Mon, Jun 22, 2015 at 2:23 PM, Michael Torrie torr...@gmail.com wrote: From some brief research, it appears there is some question about the ability to declare something to be in the public domain, but it is by no means a sure thing and lots of people feel it's just fine to declare something

Re: JSON Object to CSV File Troubleshooting

2015-06-21 Thread Sahlusar
On Sunday, June 21, 2015 at 7:34:47 PM UTC-4, Denis McMahon wrote: On Mon, 22 Jun 2015 00:55:11 +0300, Joonas Liik wrote: In xml for instance this is valid: a b1/b /a .. and so is this: a b1/b b2/b /a What the OP needs to do is sit down with the XML and work out how it

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-21 Thread Yury Selivanov
Yury Selivanov added the comment: An updated patch is attached. I'll commit it tomorrow morning. -- Added file: http://bugs.python.org/file39764/corotype.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24400

[issue24408] tkinter.font.Font.measure() broken in 3.5

2015-06-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20c9290a5de4 by Ned Deily in branch '2.7': Issue #24408: Prevent test_font failures with non-ascii font names. https://hg.python.org/cpython/rev/20c9290a5de4 -- ___ Python tracker rep...@bugs.python.org

Re: JSON Object to CSV file

2015-06-21 Thread Denis McMahon
On Sun, 21 Jun 2015 06:57:01 -0700, sahluwalia wrote: On Sunday, 21 June 2015 02:47:31 UTC-4, Denis McMahon wrote: On Wed, 17 Jun 2015 08:00:11 -0700, Saran A wrote: I would like to have this JSON object written out to a CSV file so that the keys are header fields (for each of the

Re: JSON Object to CSV File Troubleshooting

2015-06-21 Thread Joonas Liik
On 21 June 2015 at 17:38, Sahlusar ahlusar.ahluwa...@gmail.com wrote: [snip] I do agree with you Denis that this is an unconventional approach. I was wondering then that perhaps I should add additional functionality at the XML to JSON step? So far, with JSON objects without nested lists (as

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Michael Torrie
On 06/21/2015 03:52 PM, C.D. Reimer wrote: The copyright applies to the book (Do not redistribute, mirror, or copy this *online book*.) and any derivative work is based on the book. Using the video output from the BASIC games in the book could fall underneath the fair use provision, which

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Michael Torrie
On 06/21/2015 02:58 PM, Marko Rauhamaa wrote: Laura Creighton l...@openend.se: In a message of Sun, 21 Jun 2015 12:32:46 -0700, C.D. Reimer writes: Do I need to release my scripts under a license? If so, which one? You should, because if you don't you could pop up some day and assert

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread C.D. Reimer
On 6/21/2015 1:58 PM, Marko Rauhamaa wrote: Converting BASIC games to Python results in derived works, which are under the original copyright of the BASIC games. From the given link: BASIC Computer Games is copyright © 1978 by David H. Ahl, and is posted on www.atariarchives.org

Re: JSON Object to CSV File Troubleshooting

2015-06-21 Thread Denis McMahon
On Mon, 22 Jun 2015 00:55:11 +0300, Joonas Liik wrote: In xml for instance this is valid: a b1/b /a .. and so is this: a b1/b b2/b /a What the OP needs to do is sit down with the XML and work out how it needs to be represented in CSV terms, and then code that transformation, but it

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 12:32:46 -0700, C.D. Reimer writes: Do I need to release my scripts under a license? If so, which one? You should, because if you don't you could pop up some day and assert copyright and sue the hell out of people who use your code, which means that many people

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Marko Rauhamaa
Laura Creighton l...@openend.se: In a message of Sun, 21 Jun 2015 12:32:46 -0700, C.D. Reimer writes: Do I need to release my scripts under a license? If so, which one? You should, because if you don't you could pop up some day and assert copyright and sue the hell out of people who use your

[issue24484] multiprocessing cleanup occasionally throws exception

2015-06-21 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +davin, sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24484 ___ ___ Python-bugs-list mailing list

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Marko Rauhamaa
C.D. Reimer ch...@cdreimer.com: Using the video output from the BASIC games in the book could fall underneath the fair use provision, which allows me to use a small portion of the book without infringing on the copyright. I'm not publishing a book. I just want to put my code on a website as

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Marko Rauhamaa
Michael Torrie torr...@gmail.com: On 06/21/2015 02:58 PM, Marko Rauhamaa wrote: Converting BASIC games to Python results in derived works, which are under the original copyright of the BASIC games. [...] I disagree. Especially where the resulting python program is not a transliteration

[issue23531] SSL operations cause entire process to hang

2015-06-21 Thread johnkw
johnkw added the comment: This bug is not present on Python 2.7.10 on 64-bit Linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23531 ___ ___

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread C.D. Reimer
On 6/21/2015 1:00 PM, Laura Creighton wrote: In a message of Sun, 21 Jun 2015 12:32:46 -0700, C.D. Reimer writes: Do I need to release my scripts under a license? If so, which one? You should, because if you don't you could pop up some day and assert copyright and sue the hell out of people

Re: Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread Mark Lawrence
On 21/06/2015 22:52, C.D. Reimer wrote: On 6/21/2015 1:58 PM, Marko Rauhamaa wrote: Converting BASIC games to Python results in derived works, which are under the original copyright of the BASIC games. From the given link: BASIC Computer Games is copyright © 1978 by David H. Ahl, and

[issue24464] Got warning when compiling sqlite3 module on Mac OS X

2015-06-21 Thread Ned Deily
Ned Deily added the comment: I agree with Ronald that the proposed patch should not be applied as is. For example, the Pythons installed by the current python.org OS X installers build and link with a newer version of libsqlite3. This is one of several examples of third-party libraries for

Do I need license to release the Python version of old BASIC games?

2015-06-21 Thread C.D. Reimer
Greetings, I'm in the process of converting 101 old BASIC games into Python (see link below). http://www.atariarchives.org/basicgames/ The short term goal is to learn the finer aspects of the Python language and reliving my misbegotten past on the Commodore 64. The long term goal is to use

Re: Catching exceptions with multi-processing

2015-06-21 Thread Paul Rubin
Fabien fabien.mauss...@gmail.com writes: I am developing a tool which works on individual entities (glaciers) and do a lot of operations on them. There are many tasks to do, one after each other, and each task follows the same interface: ... If most of the resources will be spent on

Re: JSON Object to CSV File Troubleshooting

2015-06-21 Thread Denis McMahon
On Sun, 21 Jun 2015 07:38:13 -0700, Sahlusar wrote: It is difficult to explain this to someone asynchronously and without an in person meeting. Moreover, the strict guidelines for disclosing information make it difficult for me to explain the client's requirements and the problems that they

Re: JSON Object to CSV File Troubleshooting

2015-06-21 Thread Denis McMahon
On Thu, 18 Jun 2015 18:47:30 -0700, Sahlusar wrote: I have a conundrum regarding JSON objects and converting them to CSV: I think your conundrum is that you've taken on a coding task beyond your abilities to comprehend, and as a result not only can you not code it, you can't even adequately

[issue16095] urllib2 failing with squid proxy and digest authentication

2015-06-21 Thread Martin Panter
Martin Panter added the comment: There are two problems with the test case, and one bug in Python: 1. HTTPPasswordMgr doesn’t handle realm=None; it has to be a string. You can use HTTPPasswordMgrWithDefaultRealm though. 2. The password managers won’t match a proxy with a non-standard port

[issue16095] urllib2 failing with squid proxy and digest authentication

2015-06-21 Thread Martin Panter
Martin Panter added the comment: I should point out my patch also adds add_password() methods for the authentication handlers to the documentation. These were only documented by example, but everyone seems to prefer using them rather than the equivalent password manager method. --

Jython and can't write cache file

2015-06-21 Thread Cecil Westerhof
On openSUSE there is a very old version of Jython installed (2.2.1), so I installed the latest version (2.7.0). But when starting this I get: *sys-package-mgr*: can't write cache file for '/var/lib/h2/h2-1.3.176/bin/h2-1.3.176.jar' *sys-package-mgr*: can't write cache file for

No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
When I execute in the latest Jython: from __future__ import print_function I get: Traceback (innermost last): (no code object) at line 0 File console, line 1 SyntaxError: future feature print_function is not defined This is not implemented in the latest jython? I prefer to

Re: Classic OOP in Python

2015-06-21 Thread Laura Creighton
Ah, turns out there was an entry. I updated it. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: How to construct matrix from vectors?

2015-06-21 Thread Mark Lawrence
On 21/06/2015 04:47, Nasser M. Abbasi wrote: But it is not as intuitive as with Matlab For those of us who don't know would you be kind enough to do a cost comparison of Matlab vs Python licenses? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for

How to check in script if Python or Jython is used

2015-06-21 Thread Cecil Westerhof
I installed Jython and will start playing with it. There probably will be differences between Python and Jython. Is there a way to determine if a script is run by Python or Jython? Then different execution paths could be taken. With sys.version(_info) you do not get this information. -- Cecil

cx_Oracle 5.2

2015-06-21 Thread Anthony Tuininga
What is cx_Oracle? cx_Oracle is a Python extension module that enables access to Oracle for Python 2.x and 3.x and conforms to the Python database API 2.0 specifications with a number of enhancements. Where do I get it? http://cx-oracle.sourceforge.net What's new?

Re: JSON Object to CSV file

2015-06-21 Thread Denis McMahon
On Wed, 17 Jun 2015 08:00:11 -0700, Saran A wrote: I would like to have this JSON object written out to a CSV file so that the keys are header fields (for each of the columns) and the values are values that are associated with each header field. { CF: { ... CF: Fee, Your json object

Re: JSON Object to CSV File Troubleshooting

2015-06-21 Thread Denis McMahon
On Thu, 18 Jun 2015 18:47:30 -0700, Sahlusar wrote: I have a conundrum regarding JSON objects and converting them to CSV: Context I am converting XML files to a JSON object (please see snippet below) and then finally producing a CSV file. Here is a an example JSON object: This is where

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 09:56 CEST, Cecil Westerhof wrote: When I execute in the latest Jython: from __future__ import print_function I get: Traceback (innermost last): (no code object) at line 0 File console, line 1 SyntaxError: future feature print_function is not defined This is not

Using Jython for Android development?

2015-06-21 Thread Cecil Westerhof
I have no experience yet with Jython or Android development. But I was wondering: would it be possible to write applications for Android with Jython? You normally use Java for it, but I think I would like Jython more. :-D -- Cecil Westerhof Senior Software Engineer LinkedIn:

Re: How to construct matrix from vectors?

2015-06-21 Thread Fabien
On 06/21/2015 07:21 AM, Nasser M. Abbasi wrote: v1=np.array([(1,2,3)]).T v2=np.array([(4,5,6)]).T v3=np.array([(7,8,9)]).T v4=np.array([(10,11,12)]).T mat =np.hstack(( np.vstack((v1,v3)), np.vstack((v2,v4))) ) Out[236]: array([[ 1, 4], [ 2, 5], [ 3, 6], [ 7, 10],

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-06-21 Thread Martin Panter
Martin Panter added the comment: From the current documentation and limited experience with the module, ReadError (or a subclass) sounds best. I would only expect OSError only for OS-level things, like file not found, disk error, etc. The patches look good. One last suggestion is to use

Re: Jython and can't write cache file

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 09:53:23 +0200, Cecil Westerhof writes: On openSUSE there is a very old version of Jython installed (2.2.1), so I installed the latest version (2.7.0). But when starting this I get: *sys-package-mgr*: can't write cache file for

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-21 Thread Stefan Behnel
Stefan Behnel added the comment: I added three more comments to the review. The rest looks good to me, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24400 ___

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Laura Creighton
Do you have Jython 2.7 released a few weeks ago? Laura -- https://mail.python.org/mailman/listinfo/python-list

  1   2   >