Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread wxjmfauth
Le mardi 17 décembre 2013 20:00:14 UTC+1, wxjm...@gmail.com a écrit : Le mardi 17 décembre 2013 19:06:35 UTC+1, Michael Torrie a écrit : On 12/17/2013 08:00 AM, Wolfgang Keller wrote: Python is sooo slow when it waits for the human. With Windows systems, I

Re: Is it more CPU-efficient to read/write config file or read/write sqlite database?

2013-12-19 Thread Cameron Simpson
On 18Dec2013 21:50, Chris Angelico ros...@gmail.com wrote: It's fundamentally about crash recovery, [...] Databases protect against that. If you want that protection, use a database. If you don't, use a file. There's nothing wrong with either option. Look, broadly I agree. But this thread was

Re: python - jquery datatables with mongodb(mongoengine)

2013-12-19 Thread Peter Otten
renier de bruyn wrote: UPDATE: So now I got this code: import pymongo from pyramid_mongo import get_db # translation for sorting between datatables api and mongodb order_dict = {'asc': 1, 'desc': -1} class DataTables_Handler(object): def __init__(self, request, columns,

Re: Is it more CPU-efficient to read/write config file or read/write sqlite database?

2013-12-19 Thread Chris Angelico
On Thu, Dec 19, 2013 at 6:56 PM, Cameron Simpson c...@zip.com.au wrote: On 18Dec2013 21:50, Chris Angelico ros...@gmail.com wrote: It's fundamentally about crash recovery, [...] Databases protect against that. If you want that protection, use a database. If you don't, use a file. There's

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread Mark Lawrence
On 19/12/2013 08:10, wxjmfa...@gmail.com wrote: Same experience with PyQt4. Py 3.2 : PyQt4.QtCore.PYQT_VERSION_STR - 4.8.6 Py 3.3 : PyQt4.QtCore.PYQT_VERSION_STR - 4.10 jmf Your point being? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread wxjmfauth
Le jeudi 19 décembre 2013 09:25:14 UTC+1, Mark Lawrence a écrit : On 19/12/2013 08:10, wxjmfa...@gmail.com wrote: Same experience with PyQt4. Py 3.2 : PyQt4.QtCore.PYQT_VERSION_STR - 4.8.6 Py 3.3 : PyQt4.QtCore.PYQT_VERSION_STR - 4.10 jmf Your point

Re: Reading csv file

2013-12-19 Thread Igor Korot
Hi, Peter, Thank you for the great suggestion. I tried to implement you code but failed. Here's what I have: class FileReader: def __init__(self, filename, isSkip): self.path = filename self.isSkip = isSkip @contextmanager def

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread Mark Lawrence
On 19/12/2013 09:10, wxjmfa...@gmail.com wrote: Le jeudi 19 décembre 2013 09:25:14 UTC+1, Mark Lawrence a écrit : On 19/12/2013 08:10, wxjmfa...@gmail.com wrote: Same experience with PyQt4. Py 3.2 : PyQt4.QtCore.PYQT_VERSION_STR - 4.8.6 Py 3.3 : PyQt4.QtCore.PYQT_VERSION_STR -

Re: Reading csv file

2013-12-19 Thread Peter Otten
Igor Korot wrote: Hi, Peter, Thank you for the great suggestion. I tried to implement you code but failed. Here's what I have: class FileReader: def __init__(self, filename, isSkip): self.path = filename self.isSkip = isSkip

Re: Reading csv file

2013-12-19 Thread Scott Jewloszewicz-Clarke
You didn't pass in self as the first arg to open. This is necessary. S On 19 December 2013 09:22, Igor Korot ikoro...@gmail.com wrote: Hi, Peter, Thank you for the great suggestion. I tried to implement you code but failed. Here's what I have: class FileReader: def

Re: win32api.SetCursorPos() question

2013-12-19 Thread 桌面事业部
You should write like that: win32api.SetCursorPos((100,100)) (100,100) is a point value -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Dave Angel
On Thu, 19 Dec 2013 19:41:00 +1300, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: But it's not above inferring a dereferencing operation when you call a function via a pointer. If f is a pointer to a function, then f(a) is equivalent to (*f)(a) If the compiler can do

Use of Python for teaching geometry.

2013-12-19 Thread Roy Smith
https://www.facebook.com/photo.php?fbid=688904791141196set=a.46529938016 8406.10.465298390168505type=1theater Shortened version: http://tinyurl.com/kvtcye9 -- https://mail.python.org/mailman/listinfo/python-list

Re: request for guidance

2013-12-19 Thread Wolfgang Keller
I am a novice who is really interested in contributing to Python projects. How and where do I begin? You're looking for work? Try: https://wiki.python.org/moin/PythonProjects http://www.python.org/about/apps/ https://wiki.python.org/moin/Applications

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Wolfgang Keller
I find it frustrating that Pythonistas shy away from regex as much as they do. I find regular expression syntax frustrating. ;- As long as I have the choice, I still prefer syntax like e.g. VerbalExpressions. That's made for actual humans like me. Sincerely, Wolfgang --

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread Wolfgang Keller
All Java GUI frameworks I know of are ridiculous garbage. Not only that Java per se is obscenely fat (and unresponsive), but the GUI frameworks leak like bottomless barrels and the look and feel is so hideous that I would say from personal experience with numerous Java applications

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Wolfgang Keller
I've never heard C syntax reviled quite so intensely. What syntax do you like, out of curiosity? Pascal, Python, if written by someone who uses semantic identifiers and avoids to use C(++)/Java-isms. I've seen Eiffel as well (without understanding it) and it didn't look ridiculous to me.

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread Ned Batchelder
On 12/19/13 10:10 AM, Wolfgang Keller wrote: All Java GUI frameworks I know of are ridiculous garbage. Not only that Java per se is obscenely fat (and unresponsive), but the GUI frameworks leak like bottomless barrels and the look and feel is so hideous that I would say from personal experience

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread Wolfgang Keller
With Windows systems, I waste something like 90% of my work time waiting for that system to stop Not Responding. And no, it's not a matter of hardware. Something is wrong then. You bet. Windows has its issues, and it does slow down over time as cruft in the system accumulates. And

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 2:32 AM, Wolfgang Keller felip...@gmx.net wrote: With Windows it *is* normal. An experienced software developer once even explained the reason to me. When a single process on Windows does I/O, then the system essentially falls back to single tasking. Or

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Wed, 18 Dec 2013 07:23:54 -0800, Ethan Furman wrote: On 12/18/2013 12:18 AM, Steven D'Aprano wrote: And yes, I'm being pedantic. No, you're being an ass. My my, it doesn't take much of a challenge to the Holy Church Of C to bring out the personal attacks. -- Steven --

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Wed, 18 Dec 2013 19:51:26 +1100, Chris Angelico wrote: On Wed, Dec 18, 2013 at 7:18 PM, Steven D'Aprano st...@pearwood.info wrote: You want to know why programs written in C are so often full of security holes? One reason is undefined behaviour. The C language doesn't give a damn about

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 3:20 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 18 Dec 2013 19:51:26 +1100, Chris Angelico wrote: On Wed, Dec 18, 2013 at 7:18 PM, Steven D'Aprano st...@pearwood.info wrote: You want to know why programs written in C are so often full of

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Wed, 18 Dec 2013 17:33:49 -0500, Terry Reedy wrote: On 12/18/2013 3:18 AM, Steven D'Aprano wrote: We don't know what locals()['spam'] = 42 will do inside a function, I am mystified that you would write this. Context is everything. locals() doesn't just return any old dictionary. It

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Wed, 18 Dec 2013 17:15:30 +, Mark Lawrence wrote: On 18/12/2013 08:18, Steven D'Aprano wrote: The C99 standard lists 191 different kinds of undefined behavior, including what happens when there is an unmatched ' or on a line of source code. No compile-time error, no run-time error,

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 4:06 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Should some implementation decide to compile that away as dead code, it would be perfectly allowed to. (Well, assuming that it determined first that locals() actually was the built-in and not some

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread rusi
On Thursday, December 19, 2013 9:46:26 AM UTC+5:30, Roy Smith wrote: rusi wrote: Soon the foo has to split into foo1.c and foo2.c. And suddenly you need to understand: 1. Separate compilation 2. Make (which is separate from 'separate compilation') 3. Header files and

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 4:12 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: But why is so much non-performance critical code written in C? Why so many user-space applications? Very good question! I don't have an answer. There are a few maybe-answers, but they mostly come down

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Neil Cerutti
On 2013-12-19, Chris Angelico ros...@gmail.com wrote: On Fri, Dec 20, 2013 at 4:12 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: But why is so much non-performance critical code written in C? Why so many user-space applications? Very good question! I don't have an answer.

Re: PDFMiner install question

2013-12-19 Thread Jason Mellone
MRAB: Thank you your exact solution worked perfectly. Now I am trying to run some code from (http://www.unixuser.org/~euske/python/pdfminer/programming.html) under basic usage. If I try to run code from pdfminer.pdfparser import PDFParser from pdfminer.pdfdocument import PDFDocument from

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 5:40 AM, Neil Cerutti ne...@norwich.edu wrote: And another thing: How many other languages have their very own calling convention? Pascal does (sometimes called the Win32 convention). ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Gregory Ewing
Wolfgang Keller wrote: In fact, thinking of it, a really good language should imho *require* verbosity (how about a *minimum* length - or maybe even a dictionary-based sanity check - for identifiers?), since that already keeps all those lazy morons away who think that shortcuts are cool. No,

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 7:42 AM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: A piece of code such as for (i = 0; i numThings; i++) total[i] += things[i]; is NOT improved by rewriting it as for (theLoopIndex = 0; theLoopIndex numThings; theLoopIndex++)

Re: PDFMiner install question

2013-12-19 Thread MRAB
On 19/12/2013 19:36, Jason Mellone wrote: MRAB: Thank you your exact solution worked perfectly. Now I am trying to run some code from (http://www.unixuser.org/~euske/python/pdfminer/programming.html) under basic usage. If I try to run code from pdfminer.pdfparser import PDFParser from

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Thu, 19 Dec 2013 04:50:54 +, Mark Lawrence wrote: If C is such a crap language, what does it says for the thousands of languages that never got anywhere? Or did C simply have a far larger sales and marketing budget? :) The sociology of computer languages is a fascinating topic. Like

Re: Determining whether a glyph is available in Tkinter

2013-12-19 Thread wmcbrine
On Monday, December 16, 2013 10:58:06 PM UTC-5, Terry Reedy wrote: I would not assume that the default covers more than ascii. In this case, I already know that the glyphs I chose work with the default fonts for OS X 10.4+ and Windows 7+, but not for (for example) Win XP. But to answer your

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Roy Smith
In article 52b365b6$0$6512$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: [some stuff] where Unix went, so did C; [some more stuff] What he said. -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Roy Smith
In article 52b328f7$0$6512$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Correct. The *great deal of trouble* part is important. Things which are the responsibility of the language and compiler in (say) Java, D, Rust, Go, etc. are the

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Rhodri James
On Fri, 20 Dec 2013 00:38:51 -, Roy Smith r...@panix.com wrote: I disagree entirely (but respectfully). If you want to get down to the hardware where you can fiddle bits, you want as little getting between you and the silicon as possible. Every time you add a safety feature, you put

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-19 Thread Steven D'Aprano
On Thu, 19 Dec 2013 19:38:51 -0500, Roy Smith wrote: In article 52b328f7$0$6512$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Correct. The *great deal of trouble* part is important. Things which are the responsibility of the language and

Regular Expression : Bad Character Range

2013-12-19 Thread Frank Cui
Hey guys, I'm trying to compile a regular Expression while encountering the following issue, any hints ? is hyphen - or underscore _ considered any meta character which is not allowed when putting into the range ? Thanks Frank In [2]: re.compile([\w-_]+)

RE: Regular Expression : Bad Character Range

2013-12-19 Thread Frank Cui
should have escaped hyphen as it could be used for ranging. sorry for the bother... From: y...@outlook.com To: python-list@python.org Subject: Regular Expression : Bad Character Range Date: Thu, 19 Dec 2013 23:50:52 -0300 Hey guys, I'm trying to compile a regular Expression while

How to use the method loadtxt() of numpy neatly?

2013-12-19 Thread chao dong
HI, everybody. When I try to use numpy to deal with my dataset in the style of csv, I face a little problem. In my dataset of the csv file, some columns are string that can not convert to float easily. Some of them can ignore, but other columns I need to change the data to a enum

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread Dave Angel
On Thu, 19 Dec 2013 16:32:37 +0100, Wolfgang Keller felip...@gmx.net wrote: With Windows it *is* normal. An experienced software developer once even explained the reason to me. When a single process on Windows does I/O, then the system essentially falls back to single tasking. Or

Re: Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-19 Thread Chris Angelico
On Fri, Dec 20, 2013 at 5:30 PM, Dave Angel da...@davea.name wrote: On Thu, 19 Dec 2013 16:32:37 +0100, Wolfgang Keller felip...@gmx.net wrote: With Windows it *is* normal. An experienced software developer once even explained the reason to me. When a single process on Windows does I/O,

[issue16074] Bad error message in os.rename, os.link, and os.symlink

2013-12-19 Thread Vajrasky Kok
Vajrasky Kok added the comment: Is there any possibility this ticket could be committed in Python 3.4? If yes, it would be good because we would have a good foundation for creating better error message in Python 3.5. Anyway, I check Python's competitors' behaviour. Ruby displays both files.

[issue20019] platform.py line _sys_version function

2013-12-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Closing, since there's nothing much we can do about the problem. -- resolution: - invalid status: open - closed versions: +3rd party -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue20022] modernize the Mac bundlebuilder.py script

2013-12-19 Thread Ned Deily
Ned Deily added the comment: bundlebuild.py is a deprecated legacy tool that has been superseded by the third-party py2app. AFAIK, its only use in Python 3 is to build PythonLauncher.app; it is not included in a Python installation. Rather than refactor it, its use should be eliminated in

[issue14455] plistlib unable to read json and binary plist files

2013-12-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm working on an update for your patch that addresses these comments: * I don't like supporting 128 bit integers because Apple's public APIs don't support those values. That is, the value 'kCFNumberSInt128Type' is not in a public header for the OSX 10.9

[issue20023] _csv.Dialect() does not check type for delimiter, escapechar and quotechar fields

2013-12-19 Thread STINNER Victor
New submission from STINNER Victor: Example: $ ./python -c import _csv; _csv.Dialect(escapechar=b'x') python: Python/ceval.c:4262: call_function: Assertion `(x != ((void *)0) !PyErr_Occurred()) || (x == ((void *)0) PyErr_Occurred())' failed. Abandon (core dumped) Attached patch should fix

[issue14455] plistlib unable to read json and binary plist files

2013-12-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch should fix the open issues: * Negative integers are supported (based on Serhiy's patch), but without support for 128-bit integer (as per my previous comment) * Test updates for this * Updated version tags in the documentation *

[issue14455] plistlib unable to read json and binary plist files

2013-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: * I don't like supporting 128 bit integers because Apple's public APIs don't support those values. That is, the value 'kCFNumberSInt128Type' is not in a public header for the OSX 10.9 SDK. At least we should support integers from -2**63 to 2**64-1

[issue7464] circular reference in HTTPResponse by urllib2

2013-12-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Here it is. Notice the incredible nesting depth in python 2.7. The socket itself is found at response.fp._sock.fp._sock There are two socket._fileobjects in use! -- Added file: http://bugs.python.org/file33205/httpleak.py

[issue20023] _csv.Dialect() does not check type for delimiter, escapechar and quotechar fields

2013-12-19 Thread Vajrasky Kok
Vajrasky Kok added the comment: Bear in the mind, the bug is only reproducible with debug flag (--with-pydebug). Victor, we have a more complete solution for this problem in #18829. -- nosy: +vajrasky ___ Python tracker rep...@bugs.python.org

[issue20023] _csv.Dialect() does not check type for delimiter, escapechar and quotechar fields

2013-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue18829. -- resolution: - duplicate superseder: - csv produces confusing error message when passed a non-string delimiter ___ Python tracker rep...@bugs.python.org

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18829 ___ ___

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-19 Thread Nick Coghlan
Nick Coghlan added the comment: Please don't emit a deprecation warning for loaders that only implement load_module - there are still things load_module can do that create/exec can't, and it's still possible it will remain the long term API for those use cases. Plus builtins and extensions

[issue14455] plistlib unable to read json and binary plist files

2013-12-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Attached a script (using PyObjC) that demonstrates the behavior of Apple's Foundation framework with large integers. The same behavior should occur when the script is rewritten in Objective-C. -- Added file:

[issue14455] plistlib unable to read json and binary plist files

2013-12-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Updated patch. -- Added file: http://bugs.python.org/file33207/negative_int_support-2.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___

[issue20024] Py_BuildValue() can call Python code with an exception set

2013-12-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file33209/parsermodule.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20024 ___

[issue20024] Py_BuildValue() can call Python code with an exception set

2013-12-19 Thread STINNER Victor
New submission from STINNER Victor: In Python 3.4, an assertion now checks that no exception is set when arbitrary Python code is called. Python code may suppress the exception. When Py_BuildValue() is used to build a tuple and an error when the creation of an item failed, the function may

[issue20024] Py_BuildValue() can call Python code with an exception set

2013-12-19 Thread STINNER Victor
STINNER Victor added the comment: parsermodule.patch: fix usage of Py_BuildValue() in the parser module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20024 ___

[issue20025] ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() don't check if num is negative

2013-12-19 Thread STINNER Victor
New submission from STINNER Victor: ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() should raise a ValueError, not a SystemError, if num is negative. Attached patch fixes that. -- files: ssl_rand.patch keywords: patch messages: 206604 nosy: christian.heimes, haypo, serhiy.storchaka

[issue20025] ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() don't check if num is negative

2013-12-19 Thread Christian Heimes
Christian Heimes added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20025 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19902] logging docs don't document integer constants

2013-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16bfddf5a091 by Vinay Sajip in branch '2.7': Issue #19902: Added list of logging levels. http://hg.python.org/cpython/rev/16bfddf5a091 New changeset e812094d42f9 by Vinay Sajip in branch '3.3': Issue #19902: Added list of logging levels.

[issue19946] Handle a non-importable __main__ in multiprocessing

2013-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 460961e80e31 by Nick Coghlan in branch 'default': Issue #19946: appropriately skip new multiprocessing tests http://hg.python.org/cpython/rev/460961e80e31 -- ___ Python tracker rep...@bugs.python.org

[issue20020] modernize the modulefinder module

2013-12-19 Thread Thomas Heller
Thomas Heller added the comment: I have written a new modulefinder based on importlib. It is not a refactoring of the old one, so it is no plug-in replacement. Instead it has some new features: - Better logging output - collects dependencies (self._depgraph maps module names to callers) -

[issue20022] modernize the Mac bundlebuilder.py script

2013-12-19 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- keywords: +needs review, patch stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20022 ___

[issue20022] modernize the Mac bundlebuilder.py script

2013-12-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Removing bundle builder should be easy enough if it is only used to create the PythonLauncher application bundle: that bundle does not contain python code at all and constructing it is just a matter of copying files to the right location. The attached patch

[issue20026] sqlite: handle correctly invalid isolation_level

2013-12-19 Thread STINNER Victor
New submission from STINNER Victor: The C function pysqlite_connection_init() doesn't check if pysqlite_connection_set_isolation_level() failed or not. Attached patch fixes that. -- files: sqlite.patch keywords: patch messages: 206610 nosy: haypo priority: normal severity: normal

[issue20026] sqlite: handle correctly invalid isolation_level

2013-12-19 Thread STINNER Victor
STINNER Victor added the comment: $ python Python 3.4.0b1 (default:298d98486794+, Dec 19 2013, 13:45:07) [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux Type help, copyright, credits or license for more information. import sqlite3 con=sqlite3.connect(:memory:, isolation_level=3) python:

[issue16136] Removal of VMS support

2013-12-19 Thread Christian Heimes
Christian Heimes added the comment: Unless somebody says otherwise I'm going to remove VMS-related code over the course of the next couple of days. PEP 11 says: Name: VMS (issue 16136) Unsupported in: Python 3.3 Code removed in: Python 3.4 -- ___

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ed75e36be8e by Serhiy Storchaka in branch '2.7': Issue #18829: csv.Dialect() now checks type for delimiter, escapechar and http://hg.python.org/cpython/rev/5ed75e36be8e New changeset 52d03fbdf67a by Serhiy Storchaka in branch '3.3': Issue #18829:

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Vajrasky for your patch. I have simplified and fixed (escapechar can be empty) it. Reverted ValueError back to TypeError because ord() raises TypeError for non-1-character strings. -- ___ Python tracker

[issue18829] csv produces confusing error message when passed a non-string delimiter

2013-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18829

[issue14455] plistlib unable to read json and binary plist files

2013-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't test on OSX, but I see that Apple's code can write any 128-bit integers and read signed and unsigned 64-bit integers. Can Apple's utilities read this file? What is a result? -- Added file:

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-19 Thread gudge
gudge added the comment: 1) Can I get a list of failures. The summary of test results which I compare on my machine. 2) - import ssl ssl.cert_time_to_seconds(May 9 00:00:00 2007 GMT)

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-19 Thread gudge
gudge added the comment: Sorry I think I did not read msg205774 (1st comment) correctly. It clearly says: cert_time_to_seconds() uses `time.mktime()` [1] to convert utc time tuple to seconds since epoch. `mktime()` works with local time. It should use `calendar.timegm()` analog instead. So

[issue20019] platform.py line _sys_version function

2013-12-19 Thread Wes
Wes added the comment: I'll submit this to Continuum Analytics so they know it's their issue. On Thu, Dec 19, 2013 at 3:06 AM, Marc-Andre Lemburg rep...@bugs.python.orgwrote: Marc-Andre Lemburg added the comment: Closing, since there's nothing much we can do about the problem. --

[issue14455] plistlib unable to read json and binary plist files

2013-12-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Conversion to XML results in: $ plutil -convert xml1 -o - 18446744073709551615.plist ?xml version=1.0 encoding=UTF-8? !DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd; plist version=1.0 dict keya/key

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: So the function cert_time_to_seconds() has to be fixed? Yes! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19940 ___

[issue20026] sqlite: handle correctly invalid isolation_level

2013-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: - haypo components: +Library (Lib) nosy: +serhiy.storchaka stage: - commit review type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20026

[issue20025] ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() don't check if num is negative

2013-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - haypo stage: - commit review type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20025 ___

[issue20026] sqlite: handle correctly invalid isolation_level

2013-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11a161cf0e5d by Victor Stinner in branch '3.3': Issue #20026: Fix the sqlite module to handle correctly invalid isolation level http://hg.python.org/cpython/rev/11a161cf0e5d New changeset f9b6c8ef55b6 by Victor Stinner in branch 'default': (Merge

[issue20026] sqlite: handle correctly invalid isolation_level

2013-12-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - pending versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20026 ___

[issue20026] sqlite: handle correctly invalid isolation_level

2013-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 572e4b054899 by Victor Stinner in branch '2.7': Issue #20026: Fix the sqlite module to handle correctly invalid isolation level http://hg.python.org/cpython/rev/572e4b054899 -- ___ Python tracker

[issue20023] _csv.Dialect() does not check type for delimiter, escapechar and quotechar fields

2013-12-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20023 ___ ___

[issue20025] ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() don't check if num is negative

2013-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68ec8949dbf1 by Victor Stinner in branch '3.3': Issue #20025: ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() now raise a http://hg.python.org/cpython/rev/68ec8949dbf1 New changeset c1d2c90ece99 by Victor Stinner in branch 'default': (Merge 3.3) Issue

[issue20025] ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() don't check if num is negative

2013-12-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20025 ___

[issue19967] asyncio: remove _TracebackLogger

2013-12-19 Thread STINNER Victor
STINNER Victor added the comment: Updated patch to address Guido's comments. -- Added file: http://bugs.python.org/file33214/asyncio_log_traceback-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19967

[issue20024] Py_BuildValue() can call Python code with an exception set

2013-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20024 ___ ___

[issue19983] Ctrl-C at startup can end in a Py_FatalError call

2013-12-19 Thread STINNER Victor
STINNER Victor added the comment: init_error.patch: modify Py_Initialize() to exit with exit(1) instead of abort(), to not call the sytem fault handler (ex: dump a coredump on Linux, or open a popup on Windows). The patch calls also initsigs() before initfsencoding(), because

[issue19997] imghdr.what doesn't accept bytes paths

2013-12-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- dependencies: +Add unittests for imghdr module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19997 ___

[issue19967] asyncio: remove _TracebackLogger

2013-12-19 Thread Guido van Rossum
Guido van Rossum added the comment: So the new patch is fine, but I still think it's confusing that the _tb_logger variable has a different type depending on the Python version. If you really don't want to fix this, just go ahead and check in, it's not a blocker. --

[issue19493] Report skipped ctypes tests as skipped

2013-12-19 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Added file: http://bugs.python.org/file33216/skip_tests_ctypes.v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19493 ___

[issue19493] Report skipped ctypes tests as skipped

2013-12-19 Thread Zachary Ware
Zachary Ware added the comment: Here's a new patch addressing your review comment, Serhiy. It also addresses some failures on Windows in test_values: Win_ValuesTestCase depends on 'pydll' being defined in the module toplevel and shadowing ctypes.pydll; this definition was removed some years

[issue19940] ssl.cert_time_to_seconds() returns wrong results if local timezone is not UTC

2013-12-19 Thread gudge
gudge added the comment: Patch is uploaded. I will also copy paste it. I have created the patch with git. Let me know if it is okay with you. If it is unacceptable I will try and create one for mercury Patch: -- diff --combined

[issue18576] Rename and document test.script_helper as test.support.script_helper

2013-12-19 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18576 ___ ___ Python-bugs-list

[issue16492] Add a load_parents argument to importlib.find_loader()

2013-12-19 Thread Eric Snow
Eric Snow added the comment: find_loader() is now deprecated and we're going to support auto-importing parent modules in find_spec() (see #19944) -- nosy: +eric.snow resolution: - duplicate stage: test needed - committed/rejected status: open - closed superseder: - Make

[issue19944] Make importlib.find_spec load packages as needed

2013-12-19 Thread Eric Snow
Eric Snow added the comment: I've closed #16492 in favor of this ticket. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19944 ___ ___

  1   2   >