[ann] pypi2u - Get notified on new version of packages

2014-04-17 Thread Miki Tebeka
Greetings,

http://pypi2u.appspot.com/ is a simple service that notifies you on new 
versions of packages you're interested in.

You can view the code, fill bugs and suggest ideas at 
https://bitbucket.org/tebeka/pypi2u

Hope you find it useful,
--
Miki
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: subprocess help

2014-04-17 Thread Влатко Станковиќ



 -- Forwarded message --
 From: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info
 To: python-list@python.org
 Cc:
 Date: 16 Apr 2014 12:06:16 GMT
 Subject: Re: subprocess help
 On Wed, 16 Apr 2014 12:47:03 +0200, Влатко Станковиќ wrote:
  Hello,
  I'm having some sort of 'problem' when using subprocess calls. This is
  the code snipet that i am using:
 
  capture_server1 = '''xvfb-run --auto-servernum ... '''
  server1_download = subprocess.Popen(shlex.split(capture_server1),
  stdin=subprocess.PIPE,
  stdout=subprocess.PIPE,
  stderr=subprocess.PIPE)
 
  out_s1, err_s1 = server1_download.communicate()
  time.sleep(2)
 What's the difference between the server1 code (shown above) and the
 server2 code (not shown, but identical as far as I can tell)?
 You have to identify what files are remaining open. What does the xvfb-
 run process do? What are the rest of the arguments?
 My guess is that, depending on the arguments, sometimes xvfb-run leaves
 files open even after the process terminates. You should monitor the open
 files with lsof which is available on most Linux systems. I don't know
 how to do that on other operating systems.
 My guess is that, depending on the arguments, sometimes xvfb-run leaves
 files open even after the process terminates. You should monitor the open
 files with lsof which is available on most Linux systems. I don't know
 how to do that on other operating systems.
 --
 Steven


  --

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


 xvfb-run accepts some parameters and calls CutyCapt with parameters for it
The command is this:

xvfb-run --auto-servernum --server-num=55 --server-args -screen 0,
 1024x768x24 {0} --url={1} --private-browsing=on --out={2}


So server1, opens a process with CutyCapt which points to server1
address/url, does its thing and saves the result in out
Server2 in the other hand has a different address/url, different
server-num, and different out

As a workarround i've added close_fds=True, preexec_fn=os.setsid, and
after communicate(), i am doing os.killpg(server1.pid, signal.SIGUSR1)

Although i am not sure if this will work 100% because i have to wait X days
until something crashes

Any ideas are welcomed

P.S. After adding os.killpg, lsof and ps aux dont show more than 4 or 5
xvfb and cutycapt processes while running

Thanks and Regards
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: problem in event handling on change of variable value.

2014-04-17 Thread Bernd . Moennicke
hello sirjee,

i have read You solution for handling of events from CANoe in python.

I've implemented and its work correctly when I waiting in a msgbox (0, 
Finished the Test, Info, 16).
I will implement it in a loop with a sleep time. The standard python 
function of the sleep blocks the actual task and the event handling dosn't 
work.

Now I search for a solution to start the event class in a extra task with 
treahding.Thread. 

I've write a simple claas for testing of this:

class Tester (threading.Thread):

def __init__ (self, variable):
threading.Thread.__init__ (self)
self.__debug = True
self.__env_event = None

self.__appl = win32com.client.Dispatch 
('CANoe.Application')
self.__env = self.__appl.Environment
self.__var_name = variable
self.__var = self.__env.GetVariable (variable)

def run (self):
if self.__var != None:
self.__env_event = win32com.client.WithEvents 
(self.__var, Tester)
print 'run'
i = 0
while True:
pass
time.sleep (10)
print i
i = i + 1

def OnChange (self, value):
if self._debug: print ('VariableEvents:OnChange now called 
with %s' %value)

a = Tester ('dummy')
a.start ()

The run() dosn't work. I can't register the COM event. Have You a solution 
for this?
The claas tester works without self.__env_event = 
win32com.client.WithEvents (self.__var, Tester).

Regards,
Bernd
-- 
https://mail.python.org/mailman/listinfo/python-list


networking question: 2-way messaging w/o wireless modem config?

2014-04-17 Thread haiticare2011
I have a Raspberry Pi board with a wireless usb modem on it.
I wish to be able to message 2-way with the board from 
across the internet, without having to open ports on the wireless modem. Is 
there
 a way to do this? I have been looking at udp, but imagine that a udp packet is 
allowed in, but not out?
The amount of data transmission I want is very small, maybe lt 30 bytes. 
So a client http request could include this data?
I have been looking at messaging systems like MQTT as well, but don't know if 
they require opening a port in the typical modem-router.

Any ideas appreciated!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: networking question: 2-way messaging w/o wireless modem config?

2014-04-17 Thread Mark H Harris

On 4/17/14 11:20 AM, haiticare2...@gmail.com wrote:

I have a Raspberry Pi board with a wireless usb modem on it.
I wish to be able to message 2-way with the board from
across the internet, without having to open ports on the wireless modem. Is 
there
  a way to do this? I have been looking at udp, but imagine that a udp packet is
allowed in, but not out?
The amount of data transmission I want is very small, maybe lt 30 bytes.


The answer depends on how you setup your wireless modem | router. There 
are many ways to set this up depending on your project goals. If you're 
trying to setup a sniffer (well, just don't do that, its not nice).


If you were trying to setup a micro server on my network (for instance), 
well, you couln't, because I don't permit the outgoing connection 
without authorization and port (actually, same is true for incoming 
connections. I would have to setup auth and port for you to connect your 
Pi as a micro server on my wireless network. Most public access points 
are blocked (peer to peer) too (if they're smart).


For legitimate non trivial setups (not experiments) you want to control 
the connection with auth and ports.


A word of caution about udp. If the data you are sending is contained in 
one datagram (one packet), then no problem; however, if you are sending 
multiple packets over the WAN it can be a big problem because the upd 
in|out does not guarantee correct packet ordering.


Is there a python question in here somewhere?

marcus

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


Soap list and soap users on this list

2014-04-17 Thread Joseph L. Casale
Seems the soap list is a little quiet and the moderator is mia regardless.

Are there many soap users on this list familiar with Spyne or does anyone
know the most optimal place to post such questions?

Thanks!
jlc
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Soap list and soap users on this list

2014-04-17 Thread Chris Angelico
On Fri, Apr 18, 2014 at 3:58 AM, Joseph L. Casale
jcas...@activenetwerx.com wrote:
 Seems the soap list is a little quiet and the moderator is mia regardless.

 Are there many soap users on this list familiar with Spyne or does anyone
 know the most optimal place to post such questions?

I've used SOAP, but not with Python. (I've also used soap, but never
with any form of python. Snakes can stay dirty for all I care.)
Wouldn't really call myself a soap user, tbh. Is your question
regarding anything at all Python, or are you just looking for helpful
nerds? :)

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


RE: Soap list and soap users on this list

2014-04-17 Thread Joseph L. Casale
 Is your question
 regarding anything at all Python, or are you just looking for helpful
 nerds? :)

Hi Chris,
Thanks for responding. I've been looking at Spyne to produce a service that
can accept a request formatted as follows:

?xml version='1.0' encoding='UTF-8'?
SOAP-ENV:Envelope xmlns:SOAP-ENV=http://...; xmlns:xsi=http:/... 
xmlns:xsd=http://...;
SOAP-ENV:Body
modifyRequest returnData=everything xmlns=urn:...
  attr ID=.../
  data
  /data
/modifyRequest
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

Where I am interested in the ID attribute of the attr tag as well as _all_ the
varying xml within the data tags.

The docs are good, but a bit thin on more intricate examples. Maybe your 
previous
soap experience might lead you to a tip that would eternally in debt me to 
you:) I
have only ever done the most simplest work with soap and or ajax and hence got
away with not knowing much...

Thanks again for your help!
jlc
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Soap list and soap users on this list

2014-04-17 Thread Mark H Harris

On 4/17/14 12:58 PM, Joseph L. Casale wrote:

Seems the soap list is a little quiet and the moderator is mia regardless.

Are there many soap users on this list familiar with Spyne or does anyone
know the most optimal place to post such questions?


Read first.


You can try :

  http://spyne.io/docs/2.10/

  https://pythonhosted.org/Soapbox/


google is our friend. There are lots of links in the above, tutorials, c.

Also, you might do some additional searching on PyPI... lots of SOAP 
packages (simple object access protocol).  Spyne uses SOAP.



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


RE: Soap list and soap users on this list

2014-04-17 Thread Joseph L. Casale
Read first.


You can try :

   http://spyne.io/docs/2.10/

   https://pythonhosted.org/Soapbox/

Thanks Marcus,
I assure you I have been reading but missed soapbox, I'll keep hacking away, 
thanks for the pointer.

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


Re: networking question: 2-way messaging w/o wireless modem config?

2014-04-17 Thread haiticare2011
On Thursday, April 17, 2014 12:38:46 PM UTC-4, Mark H. Harris wrote:
 On 4/17/14 11:20 AM, hxaiticzzare2...@gmail.com wrote:
 
  I have a Raspberry Pi board with a wireless usb modem on it.
 
  I wish to be able to message 2-way with the board from
 
  across the internet, without having to open ports on the wireless modem. Is 
  there
 
a way to do this? I have been looking at udp, but imagine that a udp 
  packet is
 
  allowed in, but not out?
 
  The amount of data transmission I want is very small, maybe lt 30 bytes.
 
 
 
 The answer depends on how you setup your wireless modem | router. There 
 
 are many ways to set this up depending on your project goals. If you're 
 
 trying to setup a sniffer (well, just don't do that, its not nice).
 
 
 
 If you were trying to setup a micro server on my network (for instance), 
 
 well, you couln't, because I don't permit the outgoing connection 
 
 without authorization and port (actually, same is true for incoming 
 
 connections. I would have to setup auth and port for you to connect your 
 
 Pi as a micro server on my wireless network. Most public access points 
 
 are blocked (peer to peer) too (if they're smart).
 
 
 
 For legitimate non trivial setups (not experiments) you want to control 
 
 the connection with auth and ports.
 
 
 
 A word of caution about udp. If the data you are sending is contained in 
 
 one datagram (one packet), then no problem; however, if you are sending 
 
 multiple packets over the WAN it can be a big problem because the upd 
 
 in|out does not guarantee correct packet ordering.
 
 
 
 Is there a python question in here somewhere?
 
 
 
 marcus

Thanks - I am just trying to design a consumer product where the consumer
does not have to fiddle with their modem, ie, plug'n'play. Usually, with 
consumer modems, you can do http client activity. (just connect another PC to 
the local network.) So I guess I could iniate a http request from the Pi. I
 just wondered if there were other protocols that would allow me to just
 communicate with the Pi.

As far as sniffers etc., I adhere to a complete personal honesty - that's my
 policy, as anything else just won't do. I hope to program the item in Python, 
though I'm wondering if C is better for network programming.

Thanks for help.
jb
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: networking question: 2-way messaging w/o wireless modem config?

2014-04-17 Thread Chris Angelico
On Fri, Apr 18, 2014 at 12:56 PM,  haiticare2...@gmail.com wrote:
 As far as sniffers etc., I adhere to a complete personal honesty - that's my
  policy, as anything else just won't do. I hope to program the item in Python,
 though I'm wondering if C is better for network programming.

Not at all. I'd definitely recommend doing networking code in Python.
You can do basic TCP/IP sockets pretty much the same way in every
language, but with high level languages like Python, you get extra
facilities that C won't give - most notably, the urllib.request module
[1]. Same goes for quite a few other high level protocols. Take the
easy way out!

ChrisA

[1] https://docs.python.org/3/library/urllib.request.html
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue5904] strftime docs do not explain locale effect on result string

2014-04-17 Thread Éric Araujo

Éric Araujo added the comment:

This may help: 
http://blog.codekills.net/2013/04/13/strftime--table-of-locale-aware-formatters-in-different-locales/

--
nosy: +wolever

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



[issue21240] Add an abstactmethod directive to the Python ReST domain

2014-04-17 Thread Georg Brandl

Georg Brandl added the comment:

LGTM without having tested it.

--

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



[issue5904] strftime docs do not explain locale effect on result string

2014-04-17 Thread David Wolever

David Wolever added the comment:

It may also be worth noting that the strftime formatters table now includes 
examples from different locales: 
https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior

This change was introduced about a year ago.

--

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



[issue21106] Updated Mac folder icon

2014-04-17 Thread Vivek Jain

Vivek Jain added the comment:

No reply from Apple yet, so I'm guessing at this stage they won't be 
responding. Does anyone have any contacts at Apple they could nudge to have a 
look at this? :) The other option is to recreate something that looks like 
Apple's folder icon but isn't. There is a tutorial at 
http://www.tutorial9.net/tutorials/photoshop-tutorials/photoshop-tutorial-design-the-mac-os-x-leopard-folder/
 (I actually used the tutorial to create the current icon, but I only used step 
10).

--

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-04-17 Thread Martin Panter

Martin Panter added the comment:

I don’t think these ones could be so easily fixed, but on my computer “pydoc” 
references:

* library/importlib.machinery.html (ideally should be 
library/importlib.html#module-importlib.machinery)
* library/tkinter.font.html (not in Python documentation at all that I am 
aware, except for brief mention in §25.1.1)

--
nosy: +vadmium

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



[issue1191964] asynchronous Subprocess

2014-04-17 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

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



[issue21108] Add examples for importlib in doc

2014-04-17 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

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



[issue21207] urandom persistent fd - not re-openned after fd close

2014-04-17 Thread Charles-François Natali

Charles-François Natali added the comment:

I was expecting to see such a report :-)

I'm al for the st_ino+st_dev check, it can't hurt.

But everybody must keep in mind that if another thread messes with the
FD between the check and the read, there's nothing we can do...

--

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



[issue1191964] asynchronous Subprocess

2014-04-17 Thread Josiah Carlson

Josiah Carlson added the comment:

Victor, I addressed the majority of your comments except for a couple stylistic 
pieces. Your annoyance with the short poll time for Windows made me re-read the 
docs from MS, which made me realize that my interpretation was wrong. It also 
made me confirm Richard Oudkerk's earlier note about ReadFile on overlapped IOs.

I left similar notes next to your comments.

On the method naming side of things, note that you can only write to stdin, 
and you can only read from stdout or stderr. This is documented behavior, 
so I believe the method names are already quite reasonable (and BDFL approved 
;)).

--
Added file: http://bugs.python.org/file34941/subprocess_6.patch

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



[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2014-04-17 Thread Alex Lord

Alex Lord added the comment:

Have a unit test that replicates this bug. Working on the C code to fix it 
right now.

--
nosy: +Alex.Lord

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



[issue4744] asynchat documentation needs to be more precise

2014-04-17 Thread Nitika Agarwal

Nitika Agarwal added the comment:

But then I have submitted another patch issue4744_3 with the corrections.Please 
review my patch issue4744_3.patch

--

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Charles-François Natali

Charles-François Natali added the comment:

Do you have benchmarks?

(I'm not looking for an improvement, just no regression.)

--

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



[issue1191964] asynchronous Subprocess

2014-04-17 Thread Richard Oudkerk

Richard Oudkerk added the comment:

If you use the short timeouts to make the wait interruptible then you can
use waitformultipleobjects (which automatically waits on an extra event
object) instead of waitforsingleobject.

--

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



[issue21106] Updated Mac folder icon

2014-04-17 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I see. I read the tutorial as actually giving permission to use these very 
shapes and forms for an icon. So if the resulting icon is (or could be) the 
result of following these steps, my layman's interpretation is that we have 
permission to use it.

However, the PSF has legal council for exactly this question. Please ask 
p...@python.org (with reference to this issue) whether they want to have a say 
in this, and if so, what their legal advise is.

--

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



[issue17213] ctypes loads wrong version of C runtime, leading to error message box from system

2014-04-17 Thread Christoph Gohlke

Changes by Christoph Gohlke cgoh...@uci.edu:


--
nosy: +cgohlke

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Julian Taylor

Julian Taylor added the comment:

won't replacing _PyObject_GC_Malloc with a calloc cause Var objects 
(PyObject_NewVar) to be completely zeroed which I think they didn't before?
Some numeric programs stuff a lot of data into var objects and could care about 
python suddenly setting them to zero when they don't need it.
An example would be tinyarray.

--
nosy: +jtaylor

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



[issue21280] shutil.make_archive() with default root_dir parameter raises FileNotFoundError: [Errno 2] No such file or directory: ''

2014-04-17 Thread Martin Panter

New submission from Martin Panter:

 from shutil import make_archive; make_archive(a, tar)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python3.4/shutil.py, line 783, in make_archive
filename = func(base_name, base_dir, **kwargs)
  File /usr/lib/python3.4/shutil.py, line 605, in _make_tarball
os.makedirs(archive_dir)
  File /usr/lib/python3.4/os.py, line 244, in makedirs
mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: ''

Looking at the code, it calls os.path.dirname(a.tar) - , which would be 
the cause of this bug.

The workaround for me was adding an explicit make_archive(root_dir=.) 
parameter.

I was also surprised to see the code calling os.makedirs(archive_dir). Usually 
if you try to make a file in a non-existent directory, it fails, rather than 
automatically creating the directory for you. But maybe that’s just a general 
spirit of the “shutil” module that I didn’t pick up on.

--
components: Library (Lib)
messages: 216672
nosy: vadmium
priority: normal
severity: normal
status: open
title: shutil.make_archive() with default root_dir parameter raises 
FileNotFoundError: [Errno 2] No such file or directory: ''
versions: Python 2.7, Python 3.4

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



[issue5150] IDLE to support reindent.py

2014-04-17 Thread Ned Deily

Ned Deily added the comment:

The code needs to be updated for Python 3 and it needs a test.  I'm deassigning 
it in the hopes that someone will feel free to pick it up.

--
assignee: ned.deily - 
stage: commit review - patch review
versions: +Python 3.5 -Python 3.2

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



[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2014-04-17 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Interesting, I wasn't aware of this FTP(S) feature.
Unfortunately RFC-4217 really doesn't say much about how this should be done 
but it definitively looks like something worth having.
AFAIU this looks like something which should be implemented by servers though, 
not clients.

--
nosy: +giampaolo.rodola
versions:  -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue21109] tarfile: Traversal attack vulnerability

2014-04-17 Thread Martin Panter

Martin Panter added the comment:

Seems like shutil._unpack_tarfile() is affected. I guess it could at least do 
with one of those warnings in the documentation for make_archive().

The patch for this bug looks a bit over enthusiastic, for example 
skip_prefixes(blaua../stuff) would incorrectly strip the first bit and just 
return stuff.

It seems there might already be plenty of existing code to check for bad paths. 
Examples that come to mind:

* http.server.SimpleHTTPRequestHandler.translate_path()
* zipfile.ZipFile._extract_member()
* shutil._unpack_zipfile()

This code either ignores the bad path elements, or ignores the whole path. 
Perhaps some of it could be recycled into a common function somewhere, rather 
than implementing it all over again for tar files.

I have written my own function joinpath() to do this sort of checking, which 
you are welcome to use:

https://bitbucket.org/vadmium/pyrescene/src/34264f6/rescene/utility.py#cl-217

You would call it with something like joinpath(tarpath.split(/), osdir).

--
nosy: +vadmium

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



[issue20309] Not all method descriptors are callable

2014-04-17 Thread eryksun

eryksun added the comment:

classmethod_descriptor instances such as vars(dict)['fromkeys'] are callable. 
The first argument has to be a subclass of __objclass__:

 vars(dict)['fromkeys'].__objclass__
class 'dict'

Calling the descriptor creates a bound built-in method; slices the args to 
remove the class; and calls it with the args and kwds.

 vars(dict)['fromkeys'](dict, 'abc')
{'a': None, 'b': None, 'c': None}

source: classmethoddescr_call
http://hg.python.org/cpython/file/04f714765c13/Objects/descrobject.c#l256

While the classmethod and staticmethod types that are defined in funcobject.c 
aren't callable, they do expose a __func__ member.

--
nosy: +eryksun

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



[issue21281] DEBUGGING: Simultaneous stopping of all threads on breakpoint and switching between threads

2014-04-17 Thread Sebastian Jylanki

New submission from Sebastian Jylanki:

When debugging with some of the other very popular tools like GDB all the 
threads are halted when a breakpoint is hit on any of the threads. Then threads 
can be switched and analyzed separately at the current state of execution.

When debugging with PDB only the thread that hits the breakpoint is halted. 
This makes it quite hard to debug multi-threaded programs (like IO based 
programs). Also it's annoying that the console output will be shown from other 
threads when the debugger is stopped.

I think it would be extremely helpful for many people to have PDB behave like 
GDB when debugging multithreaded applications: halt execution on all threads 
when breakpoint is hit and continue execution on all threads when execution is 
continued from the debugger.

--
components: Interpreter Core
messages: 216677
nosy: azyr
priority: normal
severity: normal
status: open
title: DEBUGGING: Simultaneous stopping of all threads on breakpoint and 
switching between threads
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

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



[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2014-04-17 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

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



[issue5150] IDLE to support reindent.py

2014-04-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I use rstrip routinely when editing idlelib files, before committing, so it has 
been useful for that purpose.

I do not happen to know what reindent.py does that the current format options 
do not.

#18704 was about integrating the pep8 style checker. That was closed in favor 
of adding a generic facility to run external analysis tools. There is not an 
open issue for that yet, but I expect it to happen, perhaps this summer. 
Reindent.py, if maybe improved, might be a candidate, though I will also try to 
look at the patch sometime.

--

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



[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2014-04-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Yuck. Is there a public FTP server available somewhere with this feature?

--
nosy: +pitrou

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



[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2014-04-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The RFC is unhelpfully lousy. It's not enough to process a 522 error, since 
that can be triggered for different reasons. You also somehow have to interpret 
the error text to detect that session reuse is indeed mandated by the server.

Regardless, to progress with this we would first need to implement client-side 
SSL session reuse, which necessitates a bunch of additional APIs (since which 
session is to be reused is a decision made by user code), and a new opaque type 
to carry SSL_SESSION objects...

(see issue #8106)

--
nosy: +christian.heimes, dstufft, janssen

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Julian: No. See the diff: 
http://bugs.python.org/review/21233/diff/11644/Objects/typeobject.c

The original GC_Malloc was explicitly memset-ing after confirming that it 
received a non-NULL pointer from the underlying malloc call; that memset is 
removed in favor of using the calloc call.

--

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Well, to be more specific, PyType_GenericAlloc was originally calling one of 
two methods that didn't zero the memory (one of which was GC_Malloc), then 
memset-ing. Just realized you're talking about something else; not sure if 
you're correct about this now, but I have to get to work, will check later if 
no one else does.

--

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



[issue21279] str.translate documentation incomplete

2014-04-17 Thread Josh Rosenberg

Josh Rosenberg added the comment:

For the record, I have intentionally used bytes.maketrans to make translation 
table for str.translate for precisely this reason; it's much faster to look up 
a ordinal in a bytes object than in a dictionary. Before the recent (partial) 
patch for str.translate performance (#21118), this was a huge improvement if 
you only needed to worry about latin-1 characters (though encoding to latin-1, 
using bytes.translate, then decoding again was still faster). It's still faster 
than using a dictionary even with the patch from #21118, but it's not nearly as 
significant.

--
nosy: +josh.rosenberg

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



[issue8106] SSL session management

2014-04-17 Thread Antoine Pitrou

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


--
versions: +Python 3.5 -Python 3.3

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



[issue8106] SSL session management

2014-04-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, I propose the following plan:
- add a new opaque type allowing to wrap a SSL_SESSION
- add a get_session() method to SSLSocket, returning the current session
- add an optional session=... parameter to SSLContext.wrap_socket, allowing 
to specify a session which we hope to reuse during the handshake

There is however, one complication (from OpenSSL man pages):

SSL_SESSION objects keep internal link information about the session cache 
list, when being inserted into one SSL_CTX object's session cache. One 
SSL_SESSION object, regardless of its reference count, must therefore only be 
used with one SSL_CTX object (and the SSL objects created from this SSL_CTX 
object).

So we would somehow also need to keep a pointer to the SSL context in our 
session object wrapper, and check that the session isn't reused with another 
context... (yuck)

--

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



[issue21282] setup.py: More informative error msg for modules which built but failed import check

2014-04-17 Thread Lukas Vacek

New submission from Lukas Vacek:

Hey,

Currently when a module builds successfully during cpython build but it can't 
be imported (import check around line 330 in setup.py) the module shows in 
Failed to build these modules:  which can be misleading.

Especially when linking against libraries in non-standard locations the user 
would set LD_FLAGS and CPPFLAGS and then ... wonder why the cpython build 
process is not picking the libraries up and the module is not built.

I think the modules which *have built* but were removed because of a failed 
import check should be marked as such so the user knows what happens and can 
take appropriate actions (set LD_LIBRARY_PATH as well, for example).

A patch attached - it's a very simple change (about 10 lines), created with hg 
export.

Thanks,
Lucas

--
components: Build
files: setup_failed_import_hgexport
messages: 216684
nosy: Lukas.Vacek
priority: normal
severity: normal
status: open
title: setup.py: More informative error msg for modules which built but failed 
import check
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34942/setup_failed_import_hgexport

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



[issue21281] DEBUGGING: Simultaneous stopping of all threads on breakpoint and switching between threads

2014-04-17 Thread Antoine Pitrou

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


--
nosy: +georg.brandl

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



[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-17 Thread Julian Taylor

Julian Taylor added the comment:

I just tested it, PyObject_NewVar seems to use RawMalloc not the GC malloc so 
its probably fine.

--

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



[issue21283] A escape character is used when a REGEXP is an argument of strip string function

2014-04-17 Thread Tito Bouzout

New submission from Tito Bouzout:

Hello!

I got a report that the character \ was removed from a string using the 
following code

 \\server\path\to.strip(r'\'') 

At first insight, looks like a bug, because I don't expect the use of the 
escape character at all. Then I noticed, that our mistake there is that the 
strip argument should be a string not a REGEXP.

Kinda weird to read, and I've no idea if this is expected behaviour in Python, 
as I'm relatively very new. So just informing, 

Kind regards, 

-- 
Tito

--
components: Regular Expressions
messages: 216687
nosy: Tito.Bouzout, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: A escape character is used when a REGEXP is an argument of strip 
string function
type: behavior
versions: Python 3.3

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



[issue21283] A escape character is used when a REGEXP is an argument of strip string function

2014-04-17 Thread Matthew Barnett

Matthew Barnett added the comment:

The argument isn't a regex, it's a raw string literal consisting of the 
characters  (quote), \ (backslash), ' (apostrophe),  (less than) and  
(greater than).

--

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



[issue15276] unicode format does not really work in Python 2.x

2014-04-17 Thread Petr Dlouhý

Petr Dlouhý added the comment:

For anyone stuck on Python 2.x, here is an workaround (maybe it could find it's 
way to documentation also):

  def fix_grouping(bytestring):
  try:
  return unicode(bytestring)
  except UnicodeDecodeError:
  return bytestring.decode(utf-8)

--
nosy: +petr.dlo...@email.cz

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Christian Theune added the comment:

So, in addition to +/ and -_ there are quite a few base64 variants. Worst 
thing: there are the two ambigious variants -_ and _-, even though _- 
supposedly is non-standard for its use.

See http://en.wikipedia.org/wiki/Base64

The shortest fix I can see would be to not use binascii directly from the email 
module but go through the base64 module (as pointed out by the blogpost) and 
call the urlsafe version. That should catch both cases.

Preparing a patch right now.

--
nosy: +ctheune, r.david.murray

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



[issue21273] don't defined socket constants which are not implemented for GNU/Hurd

2014-04-17 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I'm not sure this is a good idea. In general, we expose whatever libc defines, 
and let it give ENOSYS (or similar) errors if the underlying system doesn't 
actually support the behavior. Presumably, the Hurd might implement 
SO_REUSEPORT at some point.

--
nosy: +benjamin.peterson

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



[issue1191964] asynchronous Subprocess

2014-04-17 Thread Josiah Carlson

Josiah Carlson added the comment:

Richard: short timeouts are no longer an issue. Nothing to worry about :)

--

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos: +239
versions: +Python 3.4, Python 3.5

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos: +240

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



[issue21273] don't defined socket constants which are not implemented for GNU/Hurd

2014-04-17 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Indeed, this complicates the conditional defines for no obvious benefit.

--
nosy: +pitrou

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



[issue21283] A escape character is used when a REGEXP is an argument of strip string function

2014-04-17 Thread Eric V. Smith

Eric V. Smith added the comment:

In addition, you probably want \\server\path\to to be a raw string, too. That 
way, the backslashes are not given special meaning. Notice the difference in 
output between these two:

 \\server\path\to.strip(r'\'') 
'server\\path\to'
 r\\server\path\to.strip(r'\'') 
'server\\path\\to'

In the first one, '\t' is being treated as a tab character, in the second one 
you see a backslash followed by a 't'.

My rule of thumb is: any time you have a string with a filename containing 
backslashes, you want it to be a raw string.

--
components:  -Regular Expressions
nosy: +eric.smith
resolution:  - not a bug
stage:  - committed/rejected
status: open - closed

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


Added file: http://bugs.python.org/file34944/732e7d4515c0.diff

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
keywords: +patch
Added file: http://bugs.python.org/file34943/62b280b61de7.diff

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



[issue21284] IDLE reformat tests fail in presence of non-default FormatParagraph setting

2014-04-17 Thread Raymond Hettinger

New submission from Raymond Hettinger:

When a user sets FormatParagraph to anything other than 70,
test_idle.py has 4 failing tests:

test_comment_block (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... 
FAIL
test_long_line (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... FAIL
test_multiple_lines (idlelib.idle_test.test_formatparagraph.FormatEventTest) 
... FAIL
test_short_line (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... 
FAIL

The solution is to make these tests setup by:
  1) save the user's default configuration
  2) set the paragraph reformat width to 70
and tear-down by:
  1) restoring the user's default configuration

--
components: IDLE
keywords: easy
messages: 216695
nosy: rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE reformat tests fail in presence of non-default FormatParagraph 
setting
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

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



[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

2014-04-17 Thread Sam Kimbrel

Sam Kimbrel added the comment:

Here's a patch that corrects col_offset for binops in both the ast module and 
in the compiler proper. I've incorporated Aivar's test into test_ast.py; if 
there are test suites for compile.c please let me know and I can add something 
there too.

--
keywords: +patch
nosy: +sam.kimbrel
Added file: 
http://bugs.python.org/file34945/18374-binop-col-offset-with-test.diff

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



[issue1514420] Missing module code does spurious file search

2014-04-17 Thread Christian Theune

Christian Theune added the comment:

I don't think the security risk exists due to this bug. As Python is searching 
for various places anyway, an attacker could just symlink one of those places 
anyway instead of 'stdin'.

--
nosy: +ctheune

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



[issue16285] Update urllib to RFC 3986

2014-04-17 Thread Christian Theune

Christian Theune added the comment:

I'll update this.

--
nosy: +ctheune

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



[issue21259] replace except: pass by except Exception: pass

2014-04-17 Thread Berker Peksag

Berker Peksag added the comment:

This looks like a duplicate of issue 16261.

--
nosy: +berker.peksag

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



[issue15234] avoid runtime library path for extensions found in system directories

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

updated patch, reviewed by Thomas, checked that rpath is not added, and the the 
extensions still build.

--
nosy: +twouters
Added file: http://bugs.python.org/file34946/avoid-rpath.diff

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



[issue15234] avoid runtime library path for extensions found in system directories

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


Removed file: http://bugs.python.org/file26222/rpath.diff

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



[issue15234] avoid runtime library path for extensions found in system directories

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1a00e04a233d by doko in branch '3.4':
- Issue #15234: For BerkelyDB and Sqlite, only add the found library and
http://hg.python.org/cpython/rev/1a00e04a233d

--
nosy: +python-dev

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



[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2014-04-17 Thread Antoine Pitrou

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


--
stage:  - needs patch
type: enhancement - behavior
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue15234] avoid runtime library path for extensions found in system directories

2014-04-17 Thread Matthias Klose

Matthias Klose added the comment:

fixed

--
resolution:  - fixed
status: open - closed

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



[issue9364] some problems with the documentation of pydoc

2014-04-17 Thread Glenn Jones

Changes by Glenn Jones gl...@millenniumhand.co.uk:


Added file: http://bugs.python.org/file34948/pydoc-2.patch

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



[issue9364] some problems with the documentation of pydoc

2014-04-17 Thread Glenn Jones

Changes by Glenn Jones gl...@millenniumhand.co.uk:


Added file: http://bugs.python.org/file34947/_sitebuiltins-2.patch

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



[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue9364] some problems with the documentation of pydoc

2014-04-17 Thread Glenn Jones

Glenn Jones added the comment:

I have added patches that replace the previous ones and apply to head. It 
appears that the other changes discussed (crosslinking and improving 
documentation) have already been done.

--
nosy: +Glenn.Jones

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
title: Update urllib to RFC 3986 - Update urllib quoting to RFC 3986

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



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue21277] don't try to link _ctypes with a ffi_convenience library

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue16285] Update urllib to RFC 3986

2014-04-17 Thread Antoine Pitrou

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


--
nosy: +ncoghlan

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos: +241

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



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Matthias Klose

New submission from Matthias Klose:

this refactors the curses configure checks, and fixes the build with ncursesw.  
In it's current form the curses feature checks are run without the additional 
include path which leads to wrong results if the only the nurses headers are 
installed.

--
components: Build
files: ncurses-configure.diff
keywords: patch
messages: 216704
nosy: doko
priority: normal
severity: normal
status: open
title: refactor anfd fix curses configure checks
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file34949/ncurses-configure.diff

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



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
versions: +Python 2.7

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



[issue21285] refactor anfd fix curses configure checks

2014-04-17 Thread Matthias Klose

Changes by Matthias Klose d...@debian.org:


--
nosy: +twouters

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-04-17 Thread Éric Araujo

Éric Araujo added the comment:

Brett, any opposition to moving the doc about importlib submodules to separate 
files?

--
nosy: +brett.cannon
versions: +Python 3.5 -Python 3.3

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



[issue12489] email.errors.HeaderParseError if base64url is used

2014-04-17 Thread R. David Murray

R. David Murray added the comment:

The patch looks good.  I'd like the comment to say We use urlsafe_b64decode 
here because some mailers apparently use the urlsafe b64 alphabet, and 
urlsafe_b64decode will correctly decode both the urlsafe and regular alphabets.

Also, the new header parser doesn't handle this case either, and furthermore it 
doesn't handle binascii errors at all (my comment in the code indicates I 
didn't think it could ever raise there).  The fact that it doesn't handle the 
error at all can be considered a different issue, but it would be nice to add 
the same decode fix (and a test in test_email/test_headerregistry.py) for the 
new header parser.  Here's one way to reproduce the issue:

 from email import message_from_string as mfs
 from email.policy import default
 m = mfs(From: 
 =?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=\n\n, 
 policy=default)
 m['From']
Traceback (most recent call last):
  File /home/rdmurray/python/p34/Lib/email/_encoded_words.py, line 109, in 
decode_b
return base64.b64decode(padded_encoded, validate=True), defects
  File /home/rdmurray/python/p34/Lib/base64.py, line 89, in b64decode
raise binascii.Error('Non-base64 digit found')
binascii.Error: Non-base64 digit found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/rdmurray/python/p34/Lib/email/message.py, line 391, in 
__getitem__
return self.get(name)
  File /home/rdmurray/python/p34/Lib/email/message.py, line 471, in get
return self.policy.header_fetch_parse(k, v)
  File /home/rdmurray/python/p34/Lib/email/policy.py, line 145, in 
header_fetch_parse
return self.header_factory(name, ''.join(value.splitlines()))
  File /home/rdmurray/python/p34/Lib/email/headerregistry.py, line 583, in 
__call__
return self[name](name, value)
  File /home/rdmurray/python/p34/Lib/email/headerregistry.py, line 194, in 
__new__
cls.parse(value, kwds)
  File /home/rdmurray/python/p34/Lib/email/headerregistry.py, line 334, in 
parse
kwds['parse_tree'] = address_list = cls.value_parser(value)
  File /home/rdmurray/python/p34/Lib/email/headerregistry.py, line 325, in 
value_parser
address_list, value = parser.get_address_list(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
2313, in get_address_list
token, value = get_address(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
2290, in get_address
token, value = get_group(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
2246, in get_group
token, value = get_display_name(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
2072, in get_display_name
token, value = get_phrase(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
1747, in get_phrase
token, value = get_word(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
1728, in get_word
token, value = get_atom(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
1645, in get_atom
token, value = get_encoded_word(value)
  File /home/rdmurray/python/p34/Lib/email/_header_value_parser.py, line 
1421, in get_encoded_word
text, charset, lang, defects = _ew.decode('=?' + tok + '?=')
  File /home/rdmurray/python/p34/Lib/email/_encoded_words.py, line 166, in 
decode
bstring, defects = _cte_decoders[cte](bstring)
  File /home/rdmurray/python/p34/Lib/email/_encoded_words.py, line 124, in 
decode_b
raise AssertionError(unexpected binascii.Error)
AssertionError: unexpected binascii.Error

--

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



[issue21268] Update pydoc module docstring

2014-04-17 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
resolution:  - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder:  - some problems with the documentation of pydoc

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



[issue21286] Refcounting information missing in docs for Python 3.4 and above.

2014-04-17 Thread Mark Dickinson

New submission from Mark Dickinson:

It looks as though the information from refcounts.dat isn't making it into the 
online docs for 3.4 and 3.5.  See e.g., the documentation for PyList_GetItem.  
For 3.3 [2], there's a Return value: Borrowed reference. annotation supplied 
by Sphinx's refcounting extension.  For the 3.4 and 3.5 docs that annotation is 
missing.

Issue originally reported by Jianfeng Mao on the python-dev mailing list [1].

[1] https://mail.python.org/pipermail/python-dev/2014-April/134089.html
[2] 
https://docs.python.org/3.3/c-api/list.html?highlight=pylist_getitem#PyList_GetItem

--
assignee: docs@python
components: Documentation
messages: 216707
nosy: docs@python, mark.dickinson
priority: normal
severity: normal
status: open
title: Refcounting information missing in docs for Python 3.4 and above.
versions: Python 3.4, Python 3.5

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



[issue21286] Refcounting information missing in docs for Python 3.4 and above.

2014-04-17 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-04-17 Thread Brett Cannon

Brett Cannon added the comment:

No, I have no objections.

--

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



[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-17 Thread Mark Dickinson

Mark Dickinson added the comment:

Yay! Thanks, Benjamin.

--

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos:  -242

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
hgrepos: +242

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



[issue21286] Refcounting information missing in docs for Python 3.4 and above.

2014-04-17 Thread Mark Dickinson

Mark Dickinson added the comment:

N.B.  When I build the docs locally on the default branch (using 'make html' 
from the Docs directory on a clean checkout), I *do* see the refcounting 
annotations in the html output.

--

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
versions: +Python 3.5 -Python 3.4

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



[issue16285] Update urllib quoting to RFC 3986

2014-04-17 Thread Christian Theune

Changes by Christian Theune c...@gocept.com:


--
keywords: +patch
Added file: http://bugs.python.org/file34950/0be3805cade1.diff

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



[issue20434] Fix error handler of _PyString_Resize() on allocation failure

2014-04-17 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Add comments and explicit (void) on the ignored value from _PyString_Resize as 
suggested by Victor

--
Added file: http://bugs.python.org/file34951/string_resize.patch

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



[issue21274] define PATH_MAX for GNU/Hurd in Python/pythonrun.c

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

You should put the definition closer to the Windows one (right after or before 
it) rather than further down the file. Other than that, looks good.

--

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



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

Looks good.

--

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



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Thomas Wouters

Thomas Wouters added the comment:

Looks good.

--

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



[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Chris Monsanto

Chris Monsanto added the comment:

This issue has been open for 4 years, last update was 2 months ago.

Lack of transactional DDL is a big deal for Python programs that use SQLite 
heavily.

We have a patch for Python 3 that applies cleanly and as far as I can tell 
works fine. I've been using it in testing for months, and I'm about to deploy 
it in production.

What's the next step here? What do we need to do to get something merged?

--
nosy: +monsanto

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



[issue21276] don't define USE_XATTRS on kfreebsd and the Hurd

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca2edbefca35 by doko in branch '3.4':
Fixes for KFreeBSD and the Hurd:
http://hg.python.org/cpython/rev/ca2edbefca35

--
nosy: +python-dev

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



[issue21275] fix a socket test on KFreeBSD

2014-04-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca2edbefca35 by doko in branch '3.4':
Fixes for KFreeBSD and the Hurd:
http://hg.python.org/cpython/rev/ca2edbefca35

--
nosy: +python-dev

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



  1   2   >