[issue24881] _pyio checks that `os.name == 'win32'` instead of 'nt'

2015-08-21 Thread eryksun
eryksun added the comment: It is not clear why the absence of _setmode(fd, os.O_BINARY) is not detected by tests. It's only a problem when an existing text-mode file descriptor is passed in. For example, in text mode the CRT handles b'\x1a' as an EOF marker: Python 3.5.0b4

Re: Bug!

2015-08-21 Thread Rustom Mody
On Saturday, August 22, 2015 at 6:32:56 AM UTC+5:30, Chris Angelico wrote: On Sat, Aug 22, 2015 at 9:53 AM, sohcahtoa82 wrote: On Friday, August 21, 2015 at 3:42:36 PM UTC-7, hamilton wrote: On 8/21/2015 1:41 PM, Chris Angelico wrote: Python 3.5 does not support Windows XP. Is there a

Re: Bug!

2015-08-21 Thread Chris Angelico
On Sat, Aug 22, 2015 at 2:37 PM, Rustom Mody rustompm...@gmail.com wrote: One of the charms of linux used to be (dunno how true today) that it could run reasonably well on extremely underpowered hardware Still true, although it's not so much Linux is better than Windows as Linux is more modular

Re: Bug!

2015-08-21 Thread hamilton
On 8/21/2015 7:02 PM, Chris Angelico wrote: On Sat, Aug 22, 2015 at 9:53 AM, sohcahto...@gmail.com wrote: On Friday, August 21, 2015 at 3:42:36 PM UTC-7, hamilton wrote: On 8/21/2015 1:41 PM, Chris Angelico wrote: Python 3.5 does not support Windows XP. Is there a simple explanation for

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-21 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.r ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24305 ___ ___

[issue24908] sysconfig.py and distutils.sysconfig.py disagree on directory spelling on Windows

2015-08-21 Thread Hartmut Niemann
New submission from Hartmut Niemann: Lib\sysconfig.py uses '{installed_base}/Include' as the include directory on Windows, Lib\distutils\sysconfig.py uses elif os.name == nt: return os.path.join(prefix, include) which is normally harmless because windows file systems are

[issue24352] Provide a way for assertLogs to optionally not hide the logging output

2015-08-21 Thread R. David Murray
R. David Murray added the comment: My test harness already dumps the logging buffer on test failure. What I need this for is debugging. My test harness verbose = 2 flag turns on logging globally, and I need to see the logging from the code under test correctly interspersed with the other

[issue1384175] random module - Provider DLL failed to initialize correctly

2015-08-21 Thread eryksun
eryksun added the comment: I forgot to set errcheck: import ctypes userenv = ctypes.WinDLL('userenv', use_last_error=True) def errcheck_bool(result, func, args): if not result: raise ctypes.WinError(ctypes.get_last_error()) return args

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2015-08-21 Thread Mark Roseman
Mark Roseman added the comment: Just came across this one (Terry I'm sure can figure out why). I'm sympathetic with Guilherme's wish that Tk had done this one differently, as an option to specify an existing text widget peer when creating a text widget, rather than having the original spawn a

[issue24903] Do not verify destdir argument to compileall

2015-08-21 Thread Jake Garver
Jake Garver added the comment: I agree. I couldn't find a use for the check, so I removed it entirely in the provided patch. I'm running that way now with success, but of course I'm covering just one use case. Digging back a bit further, the isdir() check came in here:

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Cyd Haselton
Cyd Haselton added the comment: Question for Ryan Gonzalez: Given this information... On August 20, 2015 8:03:13 PM CDT, Russell Keith-Magee rep...@bugs.python.org wrote: Russell Keith-Magee added the comment: What hardware architecture are you compiling for? If it's ARM64, and you're not

Re: SQLite3 and web server

2015-08-21 Thread Michael Torrie
On 08/21/2015 03:44 AM, Cecil Westerhof wrote: Interesting, but it does not help me. I need to know how to server data from SQLite instead of static files. Is your program already working with data coming from your Python dict? If so, you would just replace the python dict lookups with a call

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: On August 21, 2015 9:25:10 AM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: Question for Ryan Gonzalez: Given this information... On August 20, 2015 8:03:13 PM CDT, Russell Keith-Magee rep...@bugs.python.org wrote: Russell

[issue1384175] random module - Provider DLL failed to initialize correctly

2015-08-21 Thread eryksun
eryksun added the comment: Albert, this issue was opened for Python 2.4 and was closed over 6 years ago. Open a new issue if you believe there's a bug or room for improvement in a currently supported Python version. FYI, on Windows _PyOS_URandom first initializes the Crypto API by calling

Re: Parametrized Unit Tests

2015-08-21 Thread Laura Creighton
In a message of Fri, 21 Aug 2015 08:17:32 -0700, rambius writes: Although I developed these tests as unit tests they are more of integration tests. Is there an integration testing framework that supports a more convenient passing of test parameters / data? Thank you in advance for your

[issue1384175] random module - Provider DLL failed to initialize correctly

2015-08-21 Thread Albert Zeyer
Albert Zeyer added the comment: Ah thanks, that explains why it failed for me, and why it works after my fix, which was anyway what I intended. I mostly posted my comment here in case someone else hits this, so he has another thing to check/debug. I don't think that there is a bug on

Parametrized Unit Tests

2015-08-21 Thread rambius
Hello, I am running one and the same unit tests that test some web application. I would like to execute them against different servers that may host different instances of the application. So far I have something like #!/usr/bin/env python import unittest server = user = password =

Re: SQLite3 and web server

2015-08-21 Thread Cecil Westerhof
On Friday 21 Aug 2015 16:19 CEST, Michael Torrie wrote: On 08/21/2015 03:44 AM, Cecil Westerhof wrote: Interesting, but it does not help me. I need to know how to server data from SQLite instead of static files. Is your program already working with data coming from your Python dict? If so,

Re: SQLite3 and web server

2015-08-21 Thread Cecil Westerhof
On Friday 21 Aug 2015 11:32 CEST, Peter Otten wrote: Cecil Westerhof wrote: At the moment I serve a AngularJS web application with: python3 -m http-server This only servers static html pages with the data contained in js files, like: $scope.links = [ { desc: 'Album',url: {

[issue24908] sysconfig.py and distutils.sysconfig.py disagree on directory spelling on Windows

2015-08-21 Thread eryksun
eryksun added the comment: Within the standard library, I think only the site module uses the top-level sysconfig module, which IIRC it uses to set up sys.path. Note that WINDOWS_SCHEME in distutils.command.install uses Include. Also for virtual environments,

[issue24903] Do not verify destdir argument to compileall

2015-08-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24903 ___ ___

[issue19084] No way to use TLS-PSK from python ssl

2015-08-21 Thread Nicolas Jouanin
Changes by Nicolas Jouanin n...@beerfactory.org: -- nosy: +njouanin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19084 ___ ___ Python-bugs-list

Re: Every character of a string becomes a binding

2015-08-21 Thread Zachary Ware
On Fri, Aug 21, 2015 at 11:39 AM, Cecil Westerhof ce...@decebal.nl wrote: I have the following with sqlite3: urls = c.execute('SELECT URL FROM LINKS WHERE URL = ?', url).fetchall() But this gives: Traceback (most recent call last): File ./createDB.py, line 52, in module urls =

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread Adam Meily
Adam Meily added the comment: Attached is a test Python script that you can run to see the race condition in action. There are two Python scripts: pipe.py and reader.py. - pipe.py: make two subprocess.Popen() calls from two different threads. - reader.py: (its content is in the bottom

Re: SQLite3 and web server

2015-08-21 Thread Michael Torrie
On 08/21/2015 08:19 AM, Michael Torrie wrote: But of course you can use straight CGI with Apache too. Probably this is the easiest way for you to get started. Don't try to run your own http server. That's just a waste of time and effort. Run the CGIs under Apache. Google for Apache CGI to

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2015-08-21 Thread Nicolas Jouanin
Changes by Nicolas Jouanin n...@beerfactory.org: -- nosy: +njouanin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11943 ___ ___ Python-bugs-list

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread Adam Meily
New submission from Adam Meily: ** This issue and attached patch only affect Windows ** Currently, the Popen constructor will duplicate any stdout, stdin, and/or stderr handle passed in and make them inheritable, by calling DuplicateHandle. If two threads call Popen at the same time, the

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread R. David Murray
R. David Murray added the comment: Is it possible to construct a test for this? -- components: +Windows nosy: +gregory.p.smith, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware stage: - patch review versions: -Python 3.2, Python 3.3

[issue24903] Do not verify destdir argument to compileall

2015-08-21 Thread R. David Murray
R. David Murray added the comment: OK, so I think the goal was to prevent more than one *directory* from being specified, since as I said earlier that wouldn't make sense given we have only a single destdir path. However, for backward compatibility reasons we should probably not restrict it,

[issue24907] Module location load order is not respected if pkg_resources is imported and a namespace is declared

2015-08-21 Thread R. David Murray
R. David Murray added the comment: pkg_resources is 3rd party code (from the point of view of this tracker). If you are saying its code is revealing a bug in python, can you expand on what exactly the bug is? -- nosy: +r.david.murray ___ Python

Every character of a string becomes a binding

2015-08-21 Thread Cecil Westerhof
I have the following with sqlite3: urls = c.execute('SELECT URL FROM LINKS WHERE URL = ?', url).fetchall() But this gives: Traceback (most recent call last): File ./createDB.py, line 52, in module urls = c.execute('SELECT URL FROM LINKS WHERE URL = ?', url).fetchall()

Re: Bug!

2015-08-21 Thread Chris Angelico
On Sat, Aug 22, 2015 at 5:31 AM, Miguel Alejandro Fernandez alejandrogr...@hotmail.com wrote: hello, python3.5rc1 when trying to install , the installer did not show the button to start installing , to click in the middle he started ; after installing I thought that everything would work fine

Re: Bug!

2015-08-21 Thread Oscar Benjamin
On Fri, 21 Aug 2015 20:43 Chris Angelico ros...@gmail.com wrote: On Sat, Aug 22, 2015 at 5:31 AM, Miguel Alejandro Fernandez alejandrogr...@hotmail.com wrote: *use a computer with WindowsXP Python 3.5 does not support Windows XP. I suggest installing a better-supported operating system (or

[issue24881] _pyio checks that `os.name == 'win32'` instead of 'nt'

2015-08-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +haypo, serhiy.storchaka versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24881 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Bus error is basically unaligned memory access. ... ...do you feel like trying to get a backtrace from GDB again? :) (The last time likely didn't end well because the machine stack got somehow corrupted.) On Fri, Aug 21, 2015 at 2:04 PM, Cyd Haselton

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread Adam Meily
Adam Meily added the comment: Ok, I can re-implement the patch to meet what you all are looking for. I just want to double check that I'm on the same page: I'll get rid of the lock, because the fix should really be done in the call to CreateProcessW. I imagine that I'll be editing

Bug!

2015-08-21 Thread Miguel Alejandro Fernandez
hello, python3.5rc1 when trying to install , the installer did not show the button to start installing , to click in the middle he started ; after installing I thought that everything would work fine but I could never run it, telling me ' this is not a valid Win32 application ' *use a computer

[issue24881] _pyio checks that `os.name == 'win32'` instead of 'nt'

2015-08-21 Thread Akira Li
Akira Li added the comment: To make _pyio correspond to the C version I've added sys.platform in {'win32', 'cygwin'} condition. See the attached pyio_setmode.diff It is not clear why the absence of _setmode(fd, os.O_BINARY) is not detected by tests. (a) a corresponding test should be

[issue19469] Duplicate namespace package portions (but not on Windows)

2015-08-21 Thread Brett Cannon
Brett Cannon added the comment: I can't reproduce under Python 3.4.3, the 3.4 branch, 3.5 branch, or default with a plain namespace package. Can anyone come up with a test case that can reproduce this problem? Otherwise I'll assume it was a bug that got fixed in 3.4.2. -- status:

[issue17945] tkinter: change API of non-functioning peer_create, does not instantiate Text

2015-08-21 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +serhiy.storchaka title: tkinter/Python 3.3.0: peer_create doesn't instantiate Text - tkinter: change API of non-functioning peer_create, does not instantiate Text type: behavior - enhancement versions: +Python 3.6 -Python 3.3,

[issue24848] Warts in UTF-7 error handling

2015-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is a reason for behavior in case 2. This is likely a truncated data and it is safer to raise an exception than silently produce lone surrogate. Current UTF-7 encoder always adds '-' after ending shift sequence. I suppose this is not a bug. However

[issue24911] Context manager of socket.socket is not documented

2015-08-21 Thread zodalahtathi
New submission from zodalahtathi: socket.socket has a context manager to automatically close the socket with the `with` statement: https://hg.python.org/cpython/file/d1bf181afa82/Lib/socket.py#l138 However it is not documented, unlike socket.create_connection. -- assignee:

[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-21 Thread Chris Hogan
Chris Hogan added the comment: Here's a change that might fix the trailing backslash problem for now without breaking anything. libpath-fix.patch only affects arguments that we know are paths. This happens before anything is quoted. This avoids the problem when something like 'C:\path with

Re: Every character of a string becomes a binding

2015-08-21 Thread John Gordon
In 871tewppdr@equus.decebal.nl Cecil Westerhof ce...@decebal.nl writes: I have the following with sqlite3: urls = c.execute('SELECT URL FROM LINKS WHERE URL = ?', url).fetchall() But this gives: Traceback (most recent call last): File ./createDB.py, line 52, in module urls =

[issue24907] Module location load order is not respected if pkg_resources is imported and a namespace is declared

2015-08-21 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24907 ___ ___ Python-bugs-list

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2015-08-21 Thread Mark Roseman
Mark Roseman added the comment: Did a quick check... this approach seems to work. Only change was in step 4 should set both ._w and ._name for the widget object -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17945

[issue24910] Windows MSIs don't have unique display names

2015-08-21 Thread Steve Dower
New submission from Steve Dower: The MSIs for debug symbols and binaries have the same descriptions as the main installers, so you can't distinguish between the packages in lists like (get-package python).Name (in Powershell): Python 3.5.0rc1 Development Libraries (64-bit) Python 3.5.0rc1

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread STINNER Victor
STINNER Victor added the comment: Yeah, when stdin, stdout or stderr is a pipe, subprocess.Popen() calls CreateProcess() with the STARTF_USESTDHANDLES flag and bInheritHandles=TRUE. This issue was fixed on UNIX for file descriptor inheritance. The fix is a major change: Python 3.4 now only

Re: Every character of a string becomes a binding

2015-08-21 Thread Cecil Westerhof
On Friday 21 Aug 2015 18:50 CEST, Zachary Ware wrote: On Fri, Aug 21, 2015 at 11:39 AM, Cecil Westerhof ce...@decebal.nl wrote: I have the following with sqlite3: urls = c.execute('SELECT URL FROM LINKS WHERE URL = ?', url).fetchall() But this gives: Traceback (most recent call last): File

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread Adam Meily
Adam Meily added the comment: @r.david.murray: Yes I could make a test. @haypo: I did not know about the PROC_THREAD_ATTRIBUTE_HANDLE_LIST structure, thanks for the heads up. You pointed me in the right direction, and I see now that you've been following this, and similar, subprocessing

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread STINNER Victor
STINNER Victor added the comment: Yeah, when stdin, stdout or stderr is a pipe, subprocess.Popen() calls CreateProcess() with the STARTF_USESTDHANDLES flag and bInheritHandles=TRUE. This issue was fixed on UNIX for file descriptor inheritance. The fix is a major change: Python 3.4 now only

[issue993766] bdist_dumb and --relative on Windows fails

2015-08-21 Thread Chris Hogan
Chris Hogan added the comment: I think ensure_relative is incorrect. The comment in the function states: Take the full path 'path', and make it a relative path. This is useful to make 'path' the second argument to os.path.join(). However, according to the docs for os.path.join, if a

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread STINNER Victor
STINNER Victor added the comment: It looks like the structure you reference to, PROC_THREAD_ATTRIBUTE_HANDLE_LIST (STARTUPINFOEX), is only available in Windows Vista and after. Which means that Windows XP/Server 2003 would still have this issue. Windows XP is no more supported in Python

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-21 Thread Cyd Haselton
Cyd Haselton added the comment: Thanks Ryan. Running ./python -m test (with the edit to the __init__.py for ctypes) produces the following error: [151/390/18] test_hash Fatal Python error: Bus error Current thread 0xb6f72ec8 (most recent call first): File

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- Removed message: http://bugs.python.org/msg248964 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24909 ___

[issue19469] Duplicate namespace package portions (but not on Windows)

2015-08-21 Thread Carl Meyer
Carl Meyer added the comment: FWIW, this bug has bitten Django; see https://code.djangoproject.com/ticket/25246 We can easily work around it for future versions, but we have code in released versions that assumed that `__path__` wouldn't contain dupes; it causes us to raise an error in a

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread Zachary Ware
Zachary Ware added the comment: STINNER Victor added the comment: For Windows Server 2003, yes, we will have to keep the current code which has the race condition. Server 2003 is also unsupported in 3.5+ (MS extended support ended in July). --

Re: Bug!

2015-08-21 Thread Terry Reedy
On 8/21/2015 4:36 PM, Oscar Benjamin wrote: On Fri, 21 Aug 2015 20:43 Chris Angelico ros...@gmail.com mailto:ros...@gmail.com wrote: On Sat, Aug 22, 2015 at 5:31 AM, Miguel Alejandro Fernandez alejandrogr...@hotmail.com mailto:alejandrogr...@hotmail.com wrote: *use a computer

Sometimes bottle takes a lot of time

2015-08-21 Thread gst
What if you try with all the SQLite code commented ? -- https://mail.python.org/mailman/listinfo/python-list

Sometimes bottle takes a lot of time

2015-08-21 Thread Cecil Westerhof
I created a simple application with bottle: https://github.com/CecilWesterhof/PublishedPhotos But sometimes it needs a lot of time. For example: 127.0.0.1 - - [21/Aug/2015 23:16:40] GET / HTTP/1.1 304 0 127.0.0.1 - - [21/Aug/2015 23:16:40] GET /static/css/default.css HTTP/1.1 304 0 127.0.0.1

Re: Python Developer- [LOCATION DELETED]

2015-08-21 Thread Rob Gaddi
On Fri, 21 Aug 2015 14:26:36 -0700, appthought1 wrote: Hi, Hope you are doing well !!! My name is Siva and I'm a recruiter at TheAppliedthought , a global staffing and IT consulting company. Siva seems to have no professional regrets about spamming people on a worldwide professional mailing

Re: Bug!

2015-08-21 Thread hamilton
On 8/21/2015 1:41 PM, Chris Angelico wrote: Python 3.5 does not support Windows XP. Is there a simple explanation for this ? Or is it just is. -- https://mail.python.org/mailman/listinfo/python-list

Python Developer- Houston, TX

2015-08-21 Thread appthought1
Hi, Hope you are doing well !!! My name is Siva and I'm a recruiter at TheAppliedthought , a global staffing and IT consulting company. Please find the below job description which may suits any of your consultants who are available in market or who are looking for change, please send me latest

Re: Bug!

2015-08-21 Thread sohcahtoa82
On Friday, August 21, 2015 at 3:42:36 PM UTC-7, hamilton wrote: On 8/21/2015 1:41 PM, Chris Angelico wrote: Python 3.5 does not support Windows XP. Is there a simple explanation for this ? Or is it just is. I have no relationship with the Python developers, but I would say that running

Re: Bug!

2015-08-21 Thread Chris Angelico
On Sat, Aug 22, 2015 at 9:53 AM, sohcahto...@gmail.com wrote: On Friday, August 21, 2015 at 3:42:36 PM UTC-7, hamilton wrote: On 8/21/2015 1:41 PM, Chris Angelico wrote: Python 3.5 does not support Windows XP. Is there a simple explanation for this ? Or is it just is. I have no

[issue24913] newblock() Uninitialized Variable

2015-08-21 Thread John Leitch
New submission from John Leitch: Python 3.5 suffers from a vulnerability caused by the behavior of the newblock() function used by the collections.deque module. When called, newblock() allocates memory using PyMem_Malloc() and does not initialize it: static block * newblock(Py_ssize_t len) {

[issue24913] newblock() Uninitialized Variable

2015-08-21 Thread John Leitch
Changes by John Leitch john.leit...@gmail.com: Added file: http://bugs.python.org/file40225/newblock_Uninitialized_variable.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24913 ___

Re: Bug!

2015-08-21 Thread Zachary Ware
On Fri, Aug 21, 2015 at 5:42 PM, hamilton hamil...@nothere.com wrote: On 8/21/2015 1:41 PM, Chris Angelico wrote: Python 3.5 does not support Windows XP. Is there a simple explanation for this ? Or is it just is. We don't see the need to be burdened by supporting versions of Windows that

[issue24913] newblock() Uninitialized Variable

2015-08-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24913 ___ ___

Re: Every character of a string becomes a binding

2015-08-21 Thread Chris Angelico
On Sat, Aug 22, 2015 at 10:47 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Fri, 21 Aug 2015 18:39:28 +0200, Cecil Westerhof ce...@decebal.nl declaimed the following: I have the following with sqlite3: urls = c.execute('SELECT URL FROM LINKS WHERE URL = ?', url).fetchall()

Re: Parametrized Unit Tests

2015-08-21 Thread Ben Finney
rambius rambiusparkisan...@gmail.com writes: I am running one and the same unit tests that test some web application. I would like to execute them against different servers that may host different instances of the application. Those aren't unit tests, then. A unit test, by definition, tests a

ANN: MicroPython 1.4.5

2015-08-21 Thread Paul Sokolovsky
Hello, MicroPython is an implementation of a subset of Python 3.5 which is optimised for systems with minimal resources, including microcontrollers and embedded/IoT systems. https://github.com/micropython/micropython Changes in this release include: py core: - use wrapper to check self

Re: SQLite3 and web server

2015-08-21 Thread Steven D'Aprano
On Fri, 21 Aug 2015 04:11 pm, Cecil Westerhof wrote: At the moment I serve a AngularJS web application with: python3 -m http-server This only servers static html pages with the data contained in js files, Ah, so you're one of *them*. People who serve static content out of Javascript,

Re: pysqlite 2.8.0 released

2015-08-21 Thread zzzeek
Hi Gerhard - is the download missing? On Pypi I see 2.8.0 is registered but no download file: https://pypi.python.org/pypi/pysqlite/2.8.0 pip fails: $ ./bin/pip install pysqlite==2.8.0 --upgrade --force Collecting pysqlite==2.8.0 Could not find a version that satisfies the requirement

[issue24907] Module location load order is not respected if pkg_resources is imported and a namespace is declared

2015-08-21 Thread Vadim Kantorov
New submission from Vadim Kantorov: If module's __init__.py contains __import__('pkg_resources').declare_namespace(__name__), the module is not loaded, even though it's located in the current directory and should mask other modules. Originally I stumbled upon this issue while installing a

Re: SQLite3 and web server

2015-08-21 Thread Peter Otten
Cecil Westerhof wrote: At the moment I serve a AngularJS web application with: python3 -m http-server This only servers static html pages with the data contained in js files, like: $scope.links = [ { desc: 'Album',url: {

Re: SQLite3 and web server

2015-08-21 Thread Cecil Westerhof
On Friday 21 Aug 2015 09:27 CEST, Chris Angelico wrote: On Fri, Aug 21, 2015 at 5:13 PM, Cecil Westerhof ce...@decebal.nl wrote: I know how to work with SQLite. What I do not know how to make a python web-server that accepts a request from the JavaScript code and responds with data from the

[issue24906] asyncore asynchat hanging on ssl

2015-08-21 Thread Michele Comitini
New submission from Michele Comitini: When sending a message larger than 4096 bytes with smtpd on a ssl socket, everything hangs. This is due to polling before synchronizing the SSL channel with the underlying socket. The issue can be solved by properly modifying the poll function and

[issue1384175] random module - Provider DLL failed to initialize correctly

2015-08-21 Thread Albert Zeyer
Albert Zeyer added the comment: Note that there are still people who get this error in some strange cases, me included. E.g.: http://stackoverflow.com/questions/27904936/python-exe-file-crashes-while-launching-on-windows-xp/32137554#32137554 This happened at a call to `os.urandom` for me.

Re: SQLite3 and web server

2015-08-21 Thread Cecil Westerhof
On Friday 21 Aug 2015 08:50 CEST, Steven D'Aprano wrote: I would like to retrieve the information out a SQLite3 database. I did some Googling, but until now I did not find something useful. How would I implement this? I feel that by answering this question, I'm in the same position as

Re: SQLite3 and web server

2015-08-21 Thread Chris Angelico
On Fri, Aug 21, 2015 at 5:13 PM, Cecil Westerhof ce...@decebal.nl wrote: I know how to work with SQLite. What I do not know how to make a python web-server that accepts a request from the JavaScript code and responds with data from the SQLite3 database. The request from JS will be some sort of

[issue24905] Allow incremental I/O to blobs in sqlite3

2015-08-21 Thread Jim Minter
New submission from Jim Minter: SQLite supports incremental I/O to blobs, i.e. the capability to stream reads and writes to blobs without having to load the entire blob into memory first. See https://www.sqlite.org/c3ref/blob_open.html for more details on the C API. It'd be nice if it were

SQLite3 and web server

2015-08-21 Thread Cecil Westerhof
At the moment I serve a AngularJS web application with: python3 -m http-server This only servers static html pages with the data contained in js files, like: $scope.links = [ { desc: 'Album',url: 'https://plus.google.com/collection/MuwPX' },

Wing IDE 5.1.6 released

2015-08-21 Thread Wingware
Hi, Wingware has released version 5.1.6 of Wing IDE, our cross-platform integrated development environment for the Python programming language. Wing IDE features a professional code editor with vi, emacs, visual studio, and other key bindings, auto-completion, call tips, context-sensitive

Re: [python-sqlite] Re: pysqlite 2.8.0 released

2015-08-21 Thread Gerhard Häring
Yes, I forgot to setup.py sdist upload. It's fixed now. Sorry for the trouble. I'm of course looking forward to hear if SQLAlchemy still works ok with this release. On Wed, Aug 19, 2015 at 10:10 PM, zzz...@gmail.com wrote: Hi Gerhard - is the download missing? On Pypi I see 2.8.0 is