Re: What can Nuitka do?

2014-06-28 Thread Chris Angelico
On Sat, Jun 28, 2014 at 3:40 PM, CM cmpyt...@gmail.com wrote:
 The nuitka file starts with

 #!C:\Python27_32\python.exe

 and is a Python script. It says in a docstring,

 
 This is the main program of Nuitka, it
 checks the options and then translates
 one or more modules to a C++ source code
 using Python C/API in a build directory
 compiles it to either an executable or an
 extension module that can contain other
 modules. 

 I'm confused as to why it's not just a .py
 file.

On a Unix system, you'd execute that with the name nuitka. Although
it seems to have had your Windows Python executable's path patched in,
which presumably would be replaced with /usr/bin/python or something
on Unix.

 The nuitka.bat, aside from some
 remarks, is this:

 @echo off
 setlocal

 %~dp0..\python %~dp0nuitka %*

 endlocal

And that's just calling on Python. I'm not familiar with the %~dp0
notation, but I'd say it's taking %0 (the name of the batch file) and
taking just the drive and path from it. This should work, once you
have your Windows path pointing to this directory.

The one thing I'm seeing here is that your PATH has
C:\Python27\Scripts\ but your script says C:\Python27_32\python.exe -
what is the actual directory name for your Python directory? Did you
rename it? It could be that something unrelated is causing problems.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Fwd: What can Nuitka do?

2014-06-28 Thread Chris “Kwpolska” Warrick
On Sat, Jun 28, 2014 at 7:40 AM, CM cmpyt...@gmail.com wrote:
 I'm confused as to why it's not just a .py file.

On Linux, the `nuitka` script would be run.  Things in $PATH tend not
to have an extension, and you don’t need one to run Python.  (you
can’t import files that don’t end in .py, though)

 The nuitka.bat, aside from some remarks, is this:

 @echo off
 setlocal

 %~dp0..\python %~dp0nuitka %*

 endlocal


This is a very fancy way of running Nuitka in the local python
interpreter, with all the arguments.  For example, this:

C:\Python27\Scripts\nuitka.bat foo bar

will make the script run:

C:\Python27\python C:\Python27\Scripts\nuitka foo bar

This is to make Windows users’ life easier, to provide them
executables that work just as `nuitka` (and not `nuitka.py`).
However, a more modern method than the one used here is setuptools
entrypoints, which produces a nicer .exe file.

--
Chris “Kwpolska” Warrick http://kwpolska.tk
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
-- 
https://mail.python.org/mailman/listinfo/python-list


django models

2014-06-28 Thread ngangsia akumbo
please what field can go within these django models

page, events, news,  offers,  room types, services?
-- 
https://mail.python.org/mailman/listinfo/python-list


nice sex

2014-06-28 Thread osmankhald86

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: print statements and profiling a function slowed performance

2014-06-28 Thread Chris Angelico
On Sat, Jun 28, 2014 at 11:41 PM, Dennis Lee Bieber
wlfr...@ix.netcom.com wrote:
 On Fri, 27 Jun 2014 12:06:54 +1000, Chris Angelico ros...@gmail.com
 declaimed the following:


If x is, say, range(100), a simple for foo in x: pass will
complete fairly quickly (maybe 100ms on my computer), while the
progress-indicated loop will take much longer (about 30 seconds when I
tried it). Obviously you'll be doing more work than just pass, but

 I take it those are subjective feelings of time...

No, they were measured; but the exact difference will depend on Python
version, console, OS, etc, etc, etc, etc, etc, which is why I said
maybe 100ms - on one run it was about that (rounded aggressively to
make for convenient figures), but if I ran the test again, it might
come out at 50ms or 200ms. For what it's worth, I did the test on
Python 3.5(ish) on Linux; since you tested it on Python 2, a closer
comparison would be to use xrange rather than range, to avoid the RAM
overhead.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


why i can't install ez_setup

2014-06-28 Thread 水静流深
I have downloaoded ez_setup.py ,when i install it ,the wrong message:

python  d:\ez_setup.py
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.
zip
Exception calling DownloadFile with 2 argument(s): Unable to connect to th
e remote server
At line:1 char:152
+ [System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.Credential
Cache]::DefaultCredentials; (new-object System.Net.WebClient).DownloadFile 
 ('https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.zip', 'C
:\\Users\\pengsir\\setuptools-5.2.zip')
+ CategoryInfo  : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Traceback (most recent call last):
  File d:\ez_setup.py, line 332, in module
sys.exit(main())
  File d:\ez_setup.py, line 327, in main
downloader_factory=options.downloader_factory,
  File d:\ez_setup.py, line 287, in download_setuptools
downloader(url, saveto)
  File d:\ez_setup.py, line 192, in download_file_powershell
_clean_check(cmd, target)
  File d:\ez_setup.py, line 169, in _clean_check
subprocess.check_call(cmd)
  File d:\Python27\lib\subprocess.py, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['powershell', '-Command', [System.Net.
WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::Default
Credentials; (new-object System.Net.WebClient).DownloadFile('https://pypi.python
.org/packages/source/s/setuptools/setuptools-5.2.zip', 'C:Userspengsir\\
\\setuptools-5.2.zip')]' returned non-zero exit status 1

what is wrong with it?
‍-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What can Nuitka do?

2014-06-28 Thread Gisle Vanem

Chris Angelico ros...@gmail.com wrote:


The only other time I've been waiting for X display was when I was
mobile, on a 3G connection, and using X11 forwarding on an SSH link
back to my home LAN. 


Doing X11 calls over a network could really be a nuisance for others. And 
an archaic design IMHO.


I remember approx. 10 years ago a neighboring dept. at my work effectively 
killed our 10 MB/s Ethernet segment with such traffic (due to a misconfigured 
switch/router?). Running an ethernet analyzer showed a single X11 host-server 
session occupied ~80% bandwidth.  AFAICR, it was a Sun workstation.

A real PITA.

--gv
--
https://mail.python.org/mailman/listinfo/python-list


Re: What can Nuitka do?

2014-06-28 Thread Chris Angelico
On Sat, Jun 28, 2014 at 8:39 PM, Gisle Vanem gva...@yahoo.no wrote:
 Chris Angelico ros...@gmail.com wrote:

 The only other time I've been waiting for X display was when I was
 mobile, on a 3G connection, and using X11 forwarding on an SSH link
 back to my home LAN.


 Doing X11 calls over a network could really be a nuisance for others. And an
 archaic design IMHO.

 I remember approx. 10 years ago a neighboring dept. at my work effectively
 killed our 10 MB/s Ethernet segment with such traffic (due to a
 misconfigured switch/router?). Running an ethernet analyzer showed a single
 X11 host-server session occupied ~80% bandwidth.  AFAICR, it was a Sun
 workstation.
 A real PITA.

Either that was a horribly inefficient X11 connection (as mine was -
the virtual machine sent basically a constantly-updated bitmapped
image to rdesktop, which then couldn't do anything more efficient than
feed that image to the X server), or something was horribly
misconfigured. I've frequently done much more reasonable X11
forwarding, with high success and low traffic; for instance, I have
one Windows computer on which PDF viewing is so broken that it's
actually more efficient to use PuTTY and Xming to run evince on one of
my Linux boxes than to try to get Adobe Reader or equivalent to
actually run under Windows. (Okay, that says more about Windows and
Adobe stupidities than it does about X11 forwarding, but still, it's
not a lot of traffic.)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: why i can't install ez_setup

2014-06-28 Thread Chris “Kwpolska” Warrick
On Sat, Jun 28, 2014 at 1:49 PM, 水静流深 1248283...@qq.com wrote:
 I have downloaoded ez_setup.py ,when i install it ,the wrong message:

python  d:\ez_setup.py
 Downloading
 https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.
 zip
 Exception calling DownloadFile with 2 argument(s): Unable to connect to
 th
 e remote server
 At line:1 char:152
 + [System.Net.WebRequest]::DefaultWebProxy.Credentials =
 [System.Net.Credential
 Cache]::DefaultCredentials; (new-object System.Net.WebClient).DownloadFile
 
  ('https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.zip',
 'C
 :\\Users\\pengsir\\setuptools-5.2.zip')
 + CategoryInfo  : NotSpecified: (:) [],
 MethodInvocationException
 + FullyQualifiedErrorId : DotNetMethodException

 Traceback (most recent call last):
   File d:\ez_setup.py, line 332, in module
 sys.exit(main())
   File d:\ez_setup.py, line 327, in main
 downloader_factory=options.downloader_factory,
   File d:\ez_setup.py, line 287, in download_setuptools
 downloader(url, saveto)
   File d:\ez_setup.py, line 192, in download_file_powershell
 _clean_check(cmd, target)
   File d:\ez_setup.py, line 169, in _clean_check
 subprocess.check_call(cmd)
   File d:\Python27\lib\subprocess.py, line 540, in check_call
 raise CalledProcessError(retcode, cmd)
 subprocess.CalledProcessError: Command '['powershell', '-Command',
 [System.Net.
 WebRequest]::DefaultWebProxy.Credentials =
 [System.Net.CredentialCache]::Default
 Credentials; (new-object
 System.Net.WebClient).DownloadFile('https://pypi.python
 .org/packages/source/s/setuptools/setuptools-5.2.zip',
 'C:Userspengsir\\
 \\setuptools-5.2.zip')]' returned non-zero exit status 1

 what is wrong with it?

Either (a) pypi, or (b) you were offline when trying to install.

Also, you generally want to use get-pip.py instead, it will also get
you pip in addition to setuptools:

https://bootstrap.pypa.io/get-pip.py

-- 
Chris “Kwpolska” Warrick http://kwpolska.tk
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What can Nuitka do?

2014-06-28 Thread Roy Smith
In article mailman.11309.1403968204.18130.python-l...@python.org,
 Gisle Vanem gva...@yahoo.no wrote:

 Chris Angelico ros...@gmail.com wrote:
 
  The only other time I've been waiting for X display was when I was
  mobile, on a 3G connection, and using X11 forwarding on an SSH link
  back to my home LAN. 
 
 Doing X11 calls over a network could really be a nuisance for others. And 
 an archaic design IMHO.
 
 I remember approx. 10 years ago a neighboring dept. at my work effectively 
 killed our 10 MB/s Ethernet segment with such traffic (due to a misconfigured 
 switch/router?). Running an ethernet analyzer showed a single X11 host-server 
 session occupied ~80% bandwidth.  AFAICR, it was a Sun workstation.
 A real PITA.
 
 --gv

NeWS was a technologically better system than X11 (for exactly the 
reasons mentioned above).  It's a pity X11 won.

The idea of NeWS was you push the low-level U/I interaction and 
rendering into the display side.  Better responsiveness, less network 
bandwidth consumed.  Sort of the same thing that's going on with 
javascript apps replacing server side generated HTML these days.

Come to think of it, it's the same idea as IBM-3270 display terminals, 
40 years ago :-)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: why i can't install ez_setup

2014-06-28 Thread Mark Lawrence

On 28/06/2014 16:36, Chris “Kwpolska” Warrick wrote:

On Sat, Jun 28, 2014 at 1:49 PM, 水静流深 1248283...@qq.com wrote:

I have downloaoded ez_setup.py ,when i install it ,the wrong message:


python  d:\ez_setup.py

Downloading
https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.
zip
Exception calling DownloadFile with 2 argument(s): Unable to connect to
th
e remote server
At line:1 char:152
+ [System.Net.WebRequest]::DefaultWebProxy.Credentials =
[System.Net.Credential
Cache]::DefaultCredentials; (new-object System.Net.WebClient).DownloadFile

  ('https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.zip',
'C
:\\Users\\pengsir\\setuptools-5.2.zip')
 + CategoryInfo  : NotSpecified: (:) [],
MethodInvocationException
 + FullyQualifiedErrorId : DotNetMethodException

Traceback (most recent call last):
   File d:\ez_setup.py, line 332, in module
 sys.exit(main())
   File d:\ez_setup.py, line 327, in main
 downloader_factory=options.downloader_factory,
   File d:\ez_setup.py, line 287, in download_setuptools
 downloader(url, saveto)
   File d:\ez_setup.py, line 192, in download_file_powershell
 _clean_check(cmd, target)
   File d:\ez_setup.py, line 169, in _clean_check
 subprocess.check_call(cmd)
   File d:\Python27\lib\subprocess.py, line 540, in check_call
 raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['powershell', '-Command',
[System.Net.
WebRequest]::DefaultWebProxy.Credentials =
[System.Net.CredentialCache]::Default
Credentials; (new-object
System.Net.WebClient).DownloadFile('https://pypi.python
.org/packages/source/s/setuptools/setuptools-5.2.zip',
'C:Userspengsir\\
\\setuptools-5.2.zip')]' returned non-zero exit status 1

what is wrong with it?


Either (a) pypi, or (b) you were offline when trying to install.

Also, you generally want to use get-pip.py instead, it will also get
you pip in addition to setuptools:

https://bootstrap.pypa.io/get-pip.py



Or get Python 3.4 which can get pip for you if you so desire.

--
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.


Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
https://mail.python.org/mailman/listinfo/python-list


Re: why i can't install ez_setup

2014-06-28 Thread Steven D'Aprano
On Sat, 28 Jun 2014 18:24:21 +0100, Mark Lawrence wrote:

[snip]
 Or get Python 3.4 which can get pip for you if you so desire.

Hey Mark, how about trimming your replies a little, please? Thanks.


-- 
Steven
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: why i can't install ez_setup

2014-06-28 Thread Mark Lawrence

On 28/06/2014 19:15, Steven D'Aprano wrote:

On Sat, 28 Jun 2014 18:24:21 +0100, Mark Lawrence wrote:

[snip]

Or get Python 3.4 which can get pip for you if you so desire.


Hey Mark, how about trimming your replies a little, please? Thanks.




Okay, as soon as folks stop using google groups :)

--
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.


Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
https://mail.python.org/mailman/listinfo/python-list


Re: print statements and profiling a function slowed performance

2014-06-28 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com:

 Threading is a focus of so many myths. People who don't understand it
 think that threads are magic pixie dust that fixes everything, or else
 magic pixie dust that breaks everything. Or both, at the same time.
 Neither notion is true.

I'm in the latter camp.

More precisely: threads have their uses but they are used far too much
and not feared nearly enough.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list


回复: why i can't install ez_setup

2014-06-28 Thread 水静流深
I have download the setuptools-5.2.zip  with wget 
1.download  setuptools-5.2.zip‍
‍C:\Users\pengsird:\wget -c 
https://pypi.python.org/packages/source/s/setuptools
/setuptools-5.2.zip
--2014-06-29 06:42:30--  https://pypi.python.org/packages/source/s/setuptools/se
tuptools-5.2.zip
Resolving pypi.python.org... 103.245.222.175
Connecting to pypi.python.org|103.245.222.175|:443... connected.
ERROR: cannot verify pypi.python.org's certificate, issued by `/C=US/O=DigiCert
Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3':
  Unable to locally verify the issuer's authority.
ERROR: certificate common name `*.c.ssl.fastly.net' doesn't match requested host
 name `pypi.python.org'.
To connect to pypi.python.org insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.

C:\Users\pengsird:\wget -c https://pypi.python.org/packages/source/s/setuptools
/setuptools-5.2.zip  --no-check-certificate
--2014-06-29 06:43:02--  https://pypi.python.org/packages/source/s/setuptools/se
tuptools-5.2.zip
Resolving pypi.python.org... 103.245.222.175
Connecting to pypi.python.org|103.245.222.175|:443... connected.
WARNING: cannot verify pypi.python.org's certificate, issued by `/C=US/O=DigiCer
t Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3':
  Unable to locally verify the issuer's authority.
WARNING: certificate common name `*.c.ssl.fastly.net' doesn't match requested ho
st name `pypi.python.org'.
HTTP request sent, awaiting response... 200 OK
Length: 856803 (837K) [application/zip]
Saving to: `setuptools-5.2.zip'

100%[==] 856,803  208K/s   in 4.0s‍

2.install  setuptools
extract all files in d: disk.

C:\Users\pengsirpython  d:\setuptools-5.2\setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied

C:\Users\pengsirpython  d:\setuptools-5.2\easy_install.py
error: No urls, filenames, or requirements specified (see --help)‍

How can i install it now?




-- 原始邮件 --
发件人: Mark Lawrence;breamore...@yahoo.co.uk;
发送时间: 2014年6月29日(星期天) 凌晨1:24
收件人: python-listpython-list@python.org; 

主题: Re: why i can't install ez_setup



On 28/06/2014 16:36, Chris “Kwpolska” Warrick wrote:
 On Sat, Jun 28, 2014 at 1:49 PM, 水静流深 1248283...@qq.com wrote:
 I have downloaoded ez_setup.py ,when i install it ,the wrong message:

 python  d:\ez_setup.py
 Downloading
 https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.
 zip
 Exception calling DownloadFile with 2 argument(s): Unable to connect to
 th
 e remote server
 At line:1 char:152
 + [System.Net.WebRequest]::DefaultWebProxy.Credentials =
 [System.Net.Credential
 Cache]::DefaultCredentials; (new-object System.Net.WebClient).DownloadFile
 
   ('https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.zip',
 'C
 :\\Users\\pengsir\\setuptools-5.2.zip')
  + CategoryInfo  : NotSpecified: (:) [],
 MethodInvocationException
  + FullyQualifiedErrorId : DotNetMethodException

 Traceback (most recent call last):
File d:\ez_setup.py, line 332, in module
  sys.exit(main())
File d:\ez_setup.py, line 327, in main
  downloader_factory=options.downloader_factory,
File d:\ez_setup.py, line 287, in download_setuptools
  downloader(url, saveto)
File d:\ez_setup.py, line 192, in download_file_powershell
  _clean_check(cmd, target)
File d:\ez_setup.py, line 169, in _clean_check
  subprocess.check_call(cmd)
File d:\Python27\lib\subprocess.py, line 540, in check_call
  raise CalledProcessError(retcode, cmd)
 subprocess.CalledProcessError: Command '['powershell', '-Command',
 [System.Net.
 WebRequest]::DefaultWebProxy.Credentials =
 [System.Net.CredentialCache]::Default
 Credentials; (new-object
 System.Net.WebClient).DownloadFile('https://pypi.python
 .org/packages/source/s/setuptools/setuptools-5.2.zip',
 'C:Userspengsir\\
 \\setuptools-5.2.zip')]' returned non-zero exit status 1

 what is wrong with it?

 Either (a) pypi, or (b) you were offline when trying to install.

 Also, you generally want to use get-pip.py instead, it will also get
 you pip in addition to setuptools:

 https://bootstrap.pypa.io/get-pip.py


Or get Python 3.4 which can get pip for you if you so desire.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


-- 
https://mail.python.org/mailman/listinfo/python-list-- 
https://mail.python.org/mailman/listinfo/python-list


Re: print statements and profiling a function slowed performance

2014-06-28 Thread Chris Angelico
On Sun, Jun 29, 2014 at 5:20 AM, Marko Rauhamaa ma...@pacujo.net wrote:
 Chris Angelico ros...@gmail.com:

 Threading is a focus of so many myths. People who don't understand it
 think that threads are magic pixie dust that fixes everything, or else
 magic pixie dust that breaks everything. Or both, at the same time.
 Neither notion is true.

 I'm in the latter camp.

 More precisely: threads have their uses but they are used far too much
 and not feared nearly enough.

And as I've explained several times in response to your other posts,
that's just as much a myth as the opposite extreme :) Fearing a
perfectly safe feature shackles you, which is better than falling
head-over-ears in love with something and using it everywhere, but
it's still limiting what you can do. Threads aren't that scary!

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: why i can't install ez_setup

2014-06-28 Thread Peter Tomcsanyi

I cannot answer the original question.

But: do you need ez_setup at all?

From your text it's clear that you are using Python on Windows.


Therefore I suggest you to forget about the obscure Python installation 
tools and look at:

http://www.lfd.uci.edu/~gohlke/pythonlibs/
Find there the Python modules that you want to install. Then just download 
the proper windows installers (for the module and all its prerequisites) and 
install the modules' binaries in the way which is usual in Windows.


Or are you trying to install a package that is not listed on the 
above-mentioned site?


Peter 



--
https://mail.python.org/mailman/listinfo/python-list


Re: why i can't install ez_setup

2014-06-28 Thread Mark Lawrence

On 29/06/2014 00:50, Peter Tomcsanyi wrote:

I cannot answer the original question.

But: do you need ez_setup at all?
 From your text it's clear that you are using Python on Windows.

Therefore I suggest you to forget about the obscure Python installation
tools and look at:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
Find there the Python modules that you want to install. Then just
download the proper windows installers (for the module and all its
prerequisites) and install the modules' binaries in the way which is
usual in Windows.

Or are you trying to install a package that is not listed on the
above-mentioned site?

Peter



I don't consider that particularly sound adice.  easy_install is hardly 
an obscure Python installation tool.  If you get pip it will look 
after the dependancies for you.  The site you're referenced is 
unofficial.  FWIW I've used it and never had a problem, but it's 
certainly a case of buyer beware.


--
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.


Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
https://mail.python.org/mailman/listinfo/python-list


Re: print statements and profiling a function slowed performance

2014-06-28 Thread Rustom Mody
On Sunday, June 29, 2014 12:50:19 AM UTC+5:30, Marko Rauhamaa wrote:
 Chris Angelico wrote:

  Threading is a focus of so many myths. People who don't understand it
  think that threads are magic pixie dust that fixes everything, or else
  magic pixie dust that breaks everything. Or both, at the same time.
  Neither notion is true.

 I'm in the latter camp.

 More precisely: threads have their uses but they are used far too much
 and not feared nearly enough.

Third Camp:
Since both views are true:

Chris: Threads solve a large class of important problems
Marko: Threads are horribly error prone

lets have a (bondage-and-discipline) language that supports smooth mostly
error-free threads.

Most famous recent example is Go.
More classic (and more bondage-and-discipline) are Erlang, CloudHaskell

PS. I find the success of node.js (async model) scary.
The success is a fact
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: print statements and profiling a function slowed performance

2014-06-28 Thread Chris Angelico
On Sun, Jun 29, 2014 at 12:25 PM, Rustom Mody rustompm...@gmail.com wrote:
 On Sunday, June 29, 2014 12:50:19 AM UTC+5:30, Marko Rauhamaa wrote:
 Chris Angelico wrote:

  Threading is a focus of so many myths. People who don't understand it
  think that threads are magic pixie dust that fixes everything, or else
  magic pixie dust that breaks everything. Or both, at the same time.
  Neither notion is true.

 I'm in the latter camp.

 More precisely: threads have their uses but they are used far too much
 and not feared nearly enough.

 Third Camp:
 Since both views are true:

 Chris: Threads solve a large class of important problems
 Marko: Threads are horribly error prone

Not strictly my view. I said that both extremes (threads fix
everything and threads break everything) are quite wrong; the truth
is that threading is a tool, like any other, and you have to know when
it's appropriate to use each tool.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue21878] wsgi.simple_server's wsgi.input readline waits forever for non-multipart/form-data

2014-06-28 Thread Robin Schoonover

New submission from Robin Schoonover:

In the reference WSGI server in wsgiref.simple_server, wsgi.input's readline() 
hangs if the request body does not actually contain any
newlines.

Consider the following (slightly silly) example:

from wsgiref.simple_server import make_server

def app(environ, start_response):
result = environ['wsgi.input'].readline()

# not reached...
start_response(200 OK, [(Content-Type, text/plain)])
return []

httpd = make_server('', 8000, app)
httpd.serve_forever()

And the following also silly request (the data kwarg makes it a
POST request):

from urllib.request import urlopen

req = urlopen(http://localhost:8000/;, data=b'some bytes')
print(req)

Normally this isn't a problem, as the reference server isn't intended
for production, and typically the only reason .readline() would be
used is with a request body formatted as multipart/form-data, which
uses ample newlines, including with the content boundaries.  However,
for other types of request bodies (such as application/x-www-form-urlencoded)
newlines often wouldn't appear, and using .readline() would wait forever for 
new input.

--
components: Library (Lib)
messages: 221774
nosy: rschoon
priority: normal
severity: normal
status: open
title: wsgi.simple_server's wsgi.input readline waits forever for 
non-multipart/form-data
type: behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21878
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Nick Coghlan

Nick Coghlan added the comment:

For Python 3, I suggest tweaking the code to use shutil.which and see if that 
improves matters.

For Python 2, I'm inclined not to worry about it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12420
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Nick Coghlan

Nick Coghlan added the comment:

Skipping if the compiler isn't available is problematic, since that could 
reflect a real failure mode for the code.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12420
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-28 Thread Jack Andrews

Jack Andrews added the comment:

I'm no longer working on this, but IIRC, my patch is not necessary and
there is no deficiency.

Ta, Jack

On Saturday, June 28, 2014, Mark Lawrence rep...@bugs.python.org wrote:


 Mark Lawrence added the comment:

 Does somebody want to propose a patch to take this forward, or can it be
 closed again, or what?

 --
 nosy: +BreamoreBoy
 versions: +Python 3.5 -Python 3.3

 ___
 Python tracker rep...@bugs.python.org javascript:;
 http://bugs.python.org/issue2571
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2571
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12808] Coverage of codecs.py

2014-06-28 Thread Walter Dörwald

Walter Dörwald added the comment:

The requirement that getstate() returns a (buffer, int) tuple has to do with 
the fact that for text streams seek() and tell() somehow have to take the state 
of the codec into account. See 
_pyio.TextIOWrapper.(seek|tell|_pack_cookie|_unpack_cookie).

However I can't remember the exact history of the specification.

--
nosy: +doerwalter

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12808
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21825] Embedding-Python example code from documentation crashes

2014-06-28 Thread Pat Le Cat

Pat Le Cat added the comment:

When working with the separately installed version of Python 3.4.1, which means 
by not using Py_SetPath() the embedding examples from your webpage work okay. 
So what's wrong with that function and why that allegedly missing module 
encoding that I cannot find anywhere but is obviously not missing when using 
the code without Py_SetPath()? Very confusing...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21825
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21856] memoryview: test slick clamping

2014-06-28 Thread Stefan Krah

Stefan Krah added the comment:

Since the rewrite in 3.3 many memoryview tests are actually in test_buffer.py.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21856
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21873] Tuple comparisons with NaNs are broken

2014-06-28 Thread akira

akira added the comment:

 (a, b)  (c, d) is more like: if a != c: return a  c ...

except CPython behaves (undocumented?) as:

  b  d if a is c or a == c else a  c

the difference is in the presence of `is` operator (identity
comparison instead of `__eq__`). `nan is nan` therefore `b  d` is
called and raises TypeError for `(nan, A())  (nan, A())` expression
where `a = c = nan`, `b = A()`, and `d = A()`.

But `(float(nan), A())  (float(nan), A())` is False (no
TypeError) because `a is not c` in this case and `a  c` is called
instead where `a = float('nan')`, `b = A()`, `c = float('nan')`, and
`d = A()`. Plus `(a, b)  (c, d)` evaluation is lazy (undocumented?)
i.e., once `a  c` determines the final result `b  d` is not called.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21873
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21856] memoryview: test slick clamping

2014-06-28 Thread Stefan Krah

Stefan Krah added the comment:

And Terry is right, the actual slice clamping happens in
PySlice_GetIndicesEx(), which should always produce values
that are in the correct range.  Hence the tests focus on
slices that already are in the correct range.

I'm not sure if PySlice_GetIndicesEx() itself has tests somewhere.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21856
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-28 Thread Vladimir Iofik

Vladimir Iofik added the comment:

Finally I got environment and some time.
Attaching patch.

--
keywords: +patch
Added file: http://bugs.python.org/file35795/21652.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21652
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21872] LZMA library sometimes fails to decompress a file

2014-06-28 Thread Esa Peuha

Esa Peuha added the comment:

This code

import _lzma
with open('22h_ticks_bad.bi5', 'rb') as f:
infile = f.read()
for i in range(8191, 8195):
decompressor = _lzma.LZMADecompressor()
first_out = decompressor.decompress(infile[:i])
first_len = len(first_out)
last_out = decompressor.decompress(infile[i:])
last_len = len(last_out)
print(i, first_len, first_len + last_len, decompressor.eof)

prints this

8191 36243 45480 True
8192 36251 45473 False
8193 36253 45475 False
8194 36260 45480 True

It seems to me that this is a subtle bug in liblzma; if the input stream to the 
incremental decompressor is broken at the wrong place, the internal state of 
the decompressor is corrupted. For this particular file, it happens when the 
break occurs after reading 8192 or 8193 bytes, and lzma.py happens to use a 
buffer of 8192 bytes. There is nothing wrong with the compressed file, since 
lzma.py decompresses it correctly if the buffer size is set to almost any other 
value.

--
nosy: +Esa.Peuha

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21872
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-28 Thread Vladimir Iofik

Vladimir Iofik added the comment:

I have attached patch to #21652 which partly reverts patch applied in #9291. I 
think we'll have to add one more test for this case.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21871
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Given my patch is not necessary and there is no deficiency. from Jack Andrews 
in msg221777 please close as not a bug.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2571
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13354] tcpserver should document non-threaded long-living connections

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Am I barking up the wrong tree, or should the docs now refer to the new asyncio 
module aka Tulip when mentioning asynchronous behaviour?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13354
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10402] sporadic test_bsddb3 failures

2014-06-28 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Closed as requested.

--
resolution:  - out of date
stage: needs patch - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10402
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1438480] shutil.move raises OSError when copystat fails

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

The patch would need changing to allow for the follow_symlinks parameter and 
the backward compatibility issues mention in msg141827.  Do we wait for an 
updated patch, close as won't fix or what?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1438480
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13670] Increase test coverage for pstats.py

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Andrea assuming that you get an answer to the question you posed in msg150292, 
will you follow up on this?

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13670
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10445] _ast py3k : add lineno back to args node

2014-06-28 Thread Claudiu Popa

Claudiu Popa added the comment:

It seems that this was actual the case for Python 3.2 and 3.3, but fixed in 
3.4. Unfortunately, it's too late now to add those fields back, since 3.2 and 
3.3 receives only security updates. So I guess this issue can be closed.

--
resolution:  - out of date
stage: needs patch - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10445
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13421] PyCFunction_* are not documented anywhere

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

ping.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13421
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11279] test_posix and lack of id -G support - less noise required?

2014-06-28 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

I never saw this because I use GNU 'id' on my Solaris 10 machines. Taking care 
of this. Thanks for the report and the persistence :-)

--
assignee:  - jcea
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11279
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9322] Don’t fail silently if ext_modules use absolute paths

2014-06-28 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9322
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13681] Aifc read compressed frames fix

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Oleg #13806 has been closed as fixed so can you take this issue forward?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13681
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-28 Thread Vladimir Iofik

Vladimir Iofik added the comment:

Test added.

--
keywords: +patch
Added file: http://bugs.python.org/file35796/21871.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21871
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21856] memoryview: test slice clamping

2014-06-28 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
title: memoryview: test slick clamping - memoryview: test slice clamping

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21856
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21876] os.rename(src, dst) does nothing when src and dst files are hard-linked

2014-06-28 Thread R. David Murray

R. David Murray added the comment:

It may be a backward compatibility problem to change it, but although the os 
functions tend to be thin wrappers, we also try to be cross platform when 
possible and we tend to follow what the corresponding shell command does rather 
than what the posix API does when there is a conflict.

Clearly this case is a grey area, but it is worth thinking about at least.  
Perhaps the change could be made in the newer and more cross-platform replace.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21876
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21856] memoryview: test slice clamping

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Seaching for PySlice_GetIndicesEx in .../test/*.py with Idle Find in Files 
did not turn up any hits. However, test.test_slice.test_indices() has several 
tests of clamping, including 2**100 in various combinations.  The use of 2**100 
was was added in #14794 to test successful removal of the Overflow that Victor 
requested. I don't see that there is any patch needed.  Victor, if you find a 
deficiency, reopen or open a new issue.

--
resolution:  - not a bug
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21856
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Since Eric assigned this to himself, I will give him a chance to answer. I 
removed the 'easy' tag because it is not clear to me what the remaining issue 
is.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2571
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5638] test_httpservers fails CGI tests if --enable-shared

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

David, Senthil, can either of you make any sense of this? Is the described 
configuration supported? Or should we close this?

--
nosy: +orsenthil, r.david.murray, terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5638
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14534] Add method to mark unittest.TestCases as do not run.

2014-06-28 Thread Victor Zhong

Victor Zhong added the comment:

Hi Zach,

I've pushed a fix here according to your suggestions:
https://bitbucket.org/hllowrld/cpython/commits/fe10b98717a23fd914c91d42dcca383d53e924a8

Please also find attached the diff.

--
hgrepos: +263
Added file: http://bugs.python.org/file35797/unnitest_do_not_run.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14534
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11279] test_posix and lack of id -G support - less noise required?

2014-06-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4ef517041573 by Jesus Cea in branch '2.7':
Closes #11279: test_posix and lack of id -G support - less noise required? 
(Solaris)
http://hg.python.org/cpython/rev/4ef517041573

New changeset 6889fb276d87 by Jesus Cea in branch '3.4':
Closes #11279: test_posix and lack of id -G support - less noise required? 
(Solaris)
http://hg.python.org/cpython/rev/6889fb276d87

New changeset 54f94e753269 by Jesus Cea in branch 'default':
MERGE: Closes #11279: test_posix and lack of id -G support - less noise 
required? (Solaris)
http://hg.python.org/cpython/rev/54f94e753269

--
nosy: +python-dev
resolution:  - fixed
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11279
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I feel that conscientious users who test their installations should get a clean 
test. They cannot be expected to know that this is an 'expected failure' and 
therefore not really a failure.

Test_tools has the following, which indeed works to skip on installed 3.4.1 but 
not on built 3.4.1+.

if not sysconfig.is_python_build():
# XXX some installers do contain the tools, should we detect that
# and run the tests in that case too?
raise unittest.SkipTest('test irrelevant for an installed Python')

How about we decorate the two failing tests
   line 156, in test_optional_extension # or
   line 316, in test_get_outputs
with
@unittest.skipUnless(sysconfig.is_python_build(),
'test irrelevant for an installed Python')  # or modify message
?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12420
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

After updating and rebuilding (32 bit VC express, on 64 bit Win 7), I get the 
same error as in msg210926, with or without -uall, even after turning my 
antivirus off.

  File F:\Python\dev\4\py34\lib\test\test_httpservers.py, line 310, in 
test_invalid_requests
self.check_status_and_reason(response, 501)
  File F:\Python\dev\4\py34\lib\test\test_httpservers.py, line 265, in 
check_status_and_reason
self.assertEqual(response.status, status)
AssertionError: 200 != 501

Is this a failure of the patch or a different issue?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20155
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10850] inconsistent behavior concerning multiprocessing.manager.BaseManager._Server

2014-06-28 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
assignee:  - sbt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10850
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9248] multiprocessing.pool: Proposal: waitforslot

2014-06-28 Thread Richard Oudkerk

Richard Oudkerk added the comment:

Since there are no new features added to Python 2, this would be a Python 3 
only feature.

I think for Python 3 it is better to concentrate on developing 
concurrent.futures rather than multiprocessing.Pool.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9248
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2014-06-28 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
assignee:  - sbt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21779
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21664] multiprocessing leaks temporary directories pymp-xxx

2014-06-28 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
assignee:  - sbt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21664
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5638] test_httpservers fails CGI tests if --enable-shared

2014-06-28 Thread Ned Deily

Ned Deily added the comment:

I don't see where any problems were fixed but I've verified that with current 
default that this case works correctly if you start the tests correctly as 
make test does.

LD_LIBRARY_PATH=$CWD ./python -m test ...

The cgi test cases create a temporary directory, set up a symlink for python 
using the value of sys.executable, which should be ./python, and the 
LD_LIBRARY_PATH environment variable (or equivalent on the platform) is 
inherited in the test cases.  I suppose you could run into trouble *if* there 
already is a Python shared library installed in the prefix location and on the 
platform, directories in LD_LIBRARY_PATH are not searched first.  If that's the 
case, then there's little Python can do and other tests would fail.  In such a 
situation, you would either have to install first or, for test purposes, use a 
temporary value for --prefix when running configure and make a test-only build.

--
nosy: +ned.deily
resolution:  - works for me
stage: test needed - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5638
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13456] Providing a custom HTTPResponse class to HTTPConnection

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

ping.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13456
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12500] Skip test_ssl.test_connect_ex() on connection error

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Victor would you like to follow up with your patch?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12500
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Ezio can you prepare a patch for this?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13272
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13954] Add regrtest option to record test results to a file

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Brett I assume that you'd want to follow up on this.

--
nosy: +BreamoreBoy
type:  - enhancement
versions: +Python 3.5 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13954
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14235] test_cmd.py does not correctly call reload()

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

The patch has not been applied to the default or 3.4 branches.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14235
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12790] doctest.testmod does not run tests in functools.partial functions

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Tim is this something you could take a look at please?

--
nosy: +BreamoreBoy, tim.peters

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12790
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9725] urllib.request.FancyURLopener won't connect to pages requiring username and password

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Senthil can you follow up on this please.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9725
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

A minor change: distutils has is own version of sysconfig*, which is already 
imported into disutils/tests/test_build_ext.py. It has '_python_build' instead 
of 'is_python_build'. With that change, the decorators work as expected to skip 
the tests on installed Windows 3.4.1 either when test_build_ext is run by 
itself as main or as part of test_distutils.

# Seems like a violation of DRY. According to hg revision history, (and 
visually comparing the two, some patches have been applied to just one, some to 
both.

--
stage:  - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12420
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.5 -Python 3.3
Added file: http://bugs.python.org/file35798/distutils-12420.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12420
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21878] wsgi.simple_server's wsgi.input read/readline waits forever in certain circumstances

2014-06-28 Thread Robin Schoonover

Robin Schoonover added the comment:

Issue also occurs if .read() is used with no size.

--
title: wsgi.simple_server's wsgi.input readline waits forever for 
non-multipart/form-data - wsgi.simple_server's wsgi.input read/readline waits 
forever in certain circumstances

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21878
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12808] Coverage of codecs.py

2014-06-28 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

The patch would have to be updated to 3.5 (part of it no longer applies), but 
other than that I think it's fine.

It may make sense to readd the comment for .getstate() to keep the state as 
simple as possible (The implementation should make sure that ``0`` is the most 
common state.), but without requiring a specific number, type, etc.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12808
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1158490] locale fails if LANGUAGE has multiple locales

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

The words here 
https://docs.python.org/3/library/locale.html#locale.getdefaultlocale read in 
part envvars defaults to the search path used in GNU gettext; it must always 
contain the variable name 'LANG'..  I think this means that envvars should 
always contain 'LANG', even if the default is not used, but the code doesn't 
seem to need that.  If somebody can clarify this for me I'll submit a new patch.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1158490
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6094] Python fails to build with Subversion 1.7

2014-06-28 Thread John O'Connor

John O'Connor added the comment:

I encountered the same problem w/ 2.7.7. 

Temporary workaround:
SVNVERSION=Unversioned directory ./configure
make
...

--
nosy: +jcon

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6094
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

2014-06-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
keywords: +easy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13272
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14812] Change file associations to not be a default installer feature

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Is the thinking behind this issue changed in any way by the implementation of 
PEP 397 Python launcher for Windows?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14812
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue828450] sdist generates bad MANIFEST on Windows

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Éric did you ever ask on distutils-sig if MANIFEST is meant to be 
cross-platform?

--
components:  -Distutils2, Windows
nosy: +BreamoreBoy, dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue828450
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12640] test_ctypes seg fault (test_callback_register_double); armv7; gcc 4.5.1

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as out of date as we're now up to 2.7.7?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12640
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6094] Python fails to build with Subversion 1.7

2014-06-28 Thread Ned Deily

Ned Deily added the comment:

Suman, Jon:  This issue was closed five years ago and the fixes for it have 
long been out in the field.  Comments on closed issues are likely to be 
overlooked and not acted on.  If you are having a current problem, you should 
open a new issue, documenting in particular what OS versions and shell you are 
using, the pertinent values (SVNVERSION, HGVERSION) from the generated 
Makefile, and the output from:

echo `LC_ALL=C echo Unversioned directory`

FWIW, I was unable to reproduce the failure on a different Unix platform.

--
nosy: +ned.deily

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6094
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9731] Add ABCMeta.has_methods and tests that use it

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have a formal patch review with a view to committing as this issue is 
referenced from #9859.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9731
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9859] Add tests to verify API match of modules with 2 implementations

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Daniel do you intend putting forward a formal patch on this issue?  I'm asking 
as I think issue9858 is effectively completed and I've just asked for a formal 
patch review on Issue9731.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9859
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8384] Better error message for executables not found

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Éric can you put this on your todo list if it's not already there?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8384
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13055] Distutils tries to handle null versions but fails

2014-06-28 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13055
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2661] Mapping tests cannot be passed by user implementations

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Walter/Raymond as there is still no patch for this issue do you want to leave 
it open just in case anybody wants to work on it, move it to langushing, close 
it or what?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2661
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9960] test_structmembers fails on s390x (bigendian 64-bit): int/Py_ssize_t issue

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

I believe that the change in the later patch has already been applied to the 
2.7 branch.  If I'm correct can we close this please.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9960
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21874] test_strptime fails on rhel/centos/fedora systems

2014-06-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +belopolsky, lemburg

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21874
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2014-06-28 Thread 天一 何

天一 何 added the comment:

Confirmed in Python 3.4.1.

--
nosy: +天一.何
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19003
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2014-06-28 Thread 天一 何

天一 何 added the comment:

This patch added special behavior with MIMEApplication and may fix this issue.
Can be verified with test_email.

--
keywords: +patch
Added file: http://bugs.python.org/file35799/issue19003_email.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19003
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15873] datetime: add ability to parse RFC 3339 dates and times

2014-06-28 Thread karl

karl added the comment:

I had the issue today. I needed to parse a date with the following format.

2014-04-04T23:59:00+09:00

and could not with strptime.

I see a discussion in March 2014 
http://code.activestate.com/lists/python-ideas/26883/ but no followup. 

For references:
http://www.w3.org/TR/NOTE-datetime
http://tools.ietf.org/html/rfc3339

--
nosy: +karlcow

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15873
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15873] datetime: add ability to parse RFC 3339 dates and times

2014-06-28 Thread karl

karl added the comment:

On closer inspection, Anders Hovmöller proposal doesn't work.
https://github.com/boxed/iso8601

At least for the microseconds part. 

In http://tools.ietf.org/html/rfc3339#section-5.6, the microsecond part is 
defined as:

time-secfrac= . 1*DIGIT

In http://www.w3.org/TR/NOTE-datetime, same thing:
 s= one or more digits representing a decimal fraction of a second

Anders considers it to be only six digits. It can be more or it can be less. :) 

Will comment on github too.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15873
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15873] datetime: add ability to parse RFC 3339 dates and times

2014-06-28 Thread karl

karl added the comment:

Noticed some people doing the same thing

https://github.com/tonyg/python-rfc3339
http://home.blarg.net/~steveha/pyfeed.html
https://wiki.python.org/moin/WorkingWithTime

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15873
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com