ANN: eGenix PyRun - One file Python Runtime 2.0.0

2014-06-17 Thread eGenix Team: M.-A. Lemburg


ANNOUNCING

 eGenix PyRun - One file Python Runtime

Version 2.0.0


 An easy-to-use single file relocatable Python run-time -
   available for Linux, Mac OS X and Unix platforms,
  with support for Python 2.6, 2.7 and now
   **also for Python 3.4**.


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-PyRun-2.0.0-GA.html



INTRODUCTION

eGenix PyRun is our open source, one file, no installation version of
Python, making the distribution of a Python interpreter to run based
scripts and applications to Unix based systems as simple as copying a
single file.

eGenix PyRun's executable only needs 11MB for Python 2 and 13MB for
Python 3, but still supports most Python application and scripts - and
it can be compressed to just 3-4MB using upx, if needed.

Compared to a regular Python installation of typically 100MB on disk,
eGenix PyRun is ideal for applications and scripts that need to be
distributed to several target machines, client installations or
customers.

It makes installing Python on a Unix based system as simple as
copying a single file.

eGenix has been using the product internally in the mxODBC Connect
Server since 2008 with great success and decided to make it available
as a stand-alone open-source product.

We provide both the source archive to build your own eGenix PyRun, as
well as pre-compiled binaries for Linux, FreeBSD and Mac OS X, as 32-
and 64-bit versions. The binaries can be downloaded manually, or you
can let our automatic install script install-pyrun take care of the
installation: ./install-pyrun dir and you're done.

Please see the product page for more details:

http://www.egenix.com/products/python/PyRun/



NEWS

This is a major release of eGenix PyRun. The most significant step
forward in this release is the addition of Python 3.4 support.

New Features


 * Added Python 3.4 support to eGenix PyRun.

 * eGenix PyRun defaults to PYTHONIOENCODING = utf-8:surrogateescape
   for Python 3.4 to provide a better user experience.

 * Enabled the lib2to3 package to work with eGenix PyRun. This allows
   on-the-fly Python 3 conversions as used by e.g. the setuptools
   package to work with eGenix PyRun.

 * Frozen modules in eGenix PyRun now always have the __file__
   attribute set - unlike in standard Python This increases
   compatibility of pyrun with existing Python software. Submitted as
   http://bugs.python.org/issue21736

Enhancements / Changes
--

 * Added work-around for bug in Python 3.4 modulefinder
   module. Submitted as http://bugs.python.org/issue21707

 * Added work-around for problem with logging package's use of the
   __file__ attribute. Submitted as http://bugs.python.org/issue21709

 * Added work-around for getting runpy.run_path() to work with frozen
   modules in Python 3. This is needed to be able to run packages and
   ZIP files directly from the command line. Submitted as
   http://bugs.python.org/issue21737

 * Turned our pkgutil.py patch to support frozen modules into a real
   patch instead of doing this dynamically. Submitted as
   http://bugs.python.org/issue21749

 * Removed support for Python 2.5 from eGenix PyRun.

install-pyrun Quick Install Enhancements
-

eGenix PyRun includes a shell script called install-pyrun, which
greatly simplifies installation of PyRun. It works much like the
virtualenv shell script used for creating new virtual environments
(except that there's nothing virtual about PyRun environments).

https://downloads.egenix.com/python/install-pyrun

With the script, an eGenix PyRun installation is as simple as running:

./install-pyrun targetdir

This will automatically detect the platform, download and install the
right pyrun version into targetdir.

We have updated this script since the last release:

 * Updated install-pyrun to default to eGenix PyRun 2.0.0 and its
   feature set.

 * install-pyrun will no longer install the latest versions of pip and
   setuptools due to recent incompatible changes in those
   packages. Instead, the script uses fixed defaults and makes it easy
   to override them.

 * install-pyrun now uses pip 1.4.1 and setuptools 2.1 per default
   instead of the latest versions for better backwards compatibility
   with packages not hosted on PyPI.

 * install-pyrun can optionally fetch the latest versions of pip and
   setuptools by using latest as version number for --pip-version
   and --setuptools-version.

 * install-pyrun script is now available in signed and hashed form for
   additional security.


For a complete list of changes, please see the eGenix 

PyCon ZA 2014 - Call for Speakers

2014-06-17 Thread Neil Muller
PyConZA 2014 will take place 2nd  3rd October in Johannesburg, South
Africa.  There will be two days of talks, and we will hold sprints on
the 4th  5th of October.

We are currently accepting proposals for talks. If you would like to
give a presentation, please register at http://za.pycon.org/ and
submit your proposal, following the instructions at
http://za.pycon.org/talks/submit-talk . We hope to notify accepted
presenters by no later than the 7th of September.

The presentation slots will be 30 minutes long, with an additional 10
minutes for discussion at the end. Shared sessions are also possible.
The presentations will be in English.

In addition to talks, we are also looking for proposals for tutorials,
demos and open spaces.

Tutorials are intended to be more in-depth introductions to a topic
with a limited number of attendees. Tutorial sessions can be up to 90
minutes long.

Demos are cool things for attendees to see and interact with.

Open spaces are open discussion forums where communities with a common
interest gather to present views, ask questions and meet people
interested in the topic.

There's no need to register a sprint topic upfront, but doing so
allows us to advertise them during the conference.

-- 
Neil Muller
On behalf of the PyConZA organising committee
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Generate Single PowerPoint from two powerpoints using pywin32(python)

2014-06-17 Thread Jaydeep Patil
Hi,

I have two powerpoints, which consists of images in each slide.
I need to read each powerpoint, copy images from both powerpoint  paste these 
images into output powerpoint side by side. 

How should i do thism using python?
The repoisition of shapes seems to be difficult.


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


Re: Question about asyncio

2014-06-17 Thread Frank Millman

Ian Kelly ian.g.ke...@gmail.com wrote in message 
news:CALwzidmzG_WA5shw+PS4Y976M4DVTOwE=zb+kurvcpj3n+5...@mail.gmail.com...
 On Fri, Jun 13, 2014 at 5:42 AM, Frank Millman fr...@chagford.com wrote:
 Now I want to use the functionality of asyncio by using a 'yield from' to
 suspend the currently executing function at a particular point while it
 waits for some information.
[...]

 If the caller needs to wait on the result, then I don't think you have
 another option but to make it a coroutine also.  However if it doesn't
 need to wait on the result, then you can just schedule it and move on,
 and the caller doesn't need to be a coroutine itself.  Just be aware
 that this could result in different behavior from the threaded
 approach, since whatever the function does after the scheduling will
 happen before the coroutine is started rather than after.

Thanks for the info, Ian. It confirms that I am on the right track by 
converting all functions involved in responding to an HTTP request into a 
chain of coroutines. I don't know if there is any overhead in that but so 
far the response times feel quite crisp.

It took me a while to actually implement what I wanted to do, but I now 
realise that I had not got my head around the 'async' way of thinking. It is 
coming clearer, and I now have a toy example working. For the record, this 
is what I am trying to accomplish.

I have a server, written in python, listening for and responding to HTTP 
requests. I have a browser-based client, written in Javascript. Once past 
the opening connection, all subsequent communication is carried out by 
XMLHttpRequests (Ajax).

Action by a user can trigger one or more messages to be sent to the server. 
They are joined together in a list and sent. The server unpacks the list and 
processes the messages in sequence. Each step in the process can generate 
one or more responses to be sent back to the client. Again they are built up 
in a list, and when the final step is completed, the entire list is sent 
back.

This all works well, but I have now introduced a complication. At any point 
in the server-side process, I want to be able to send a message to the 
client to open a dialog box, wait for the response, and use the response to 
determine how the process must continue.

This was the main reason why I wanted to move to an 'async' approach. I 
create a Task to handle asking the question, and then use asyncio.wait_for() 
to wait for the response. So far it seems to be working.

Thanks for the assistance.

Frank



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


Re: line to argv transformation

2014-06-17 Thread Antoon Pardon
On 16-06-14 13:09, Chris Angelico wrote:
 On Mon, Jun 16, 2014 at 8:51 PM, Tim Chase
 python.l...@tim.thechases.com wrote:
 On 2014-06-16 20:41, Chris Angelico wrote:
 Oops! I made the cardinal error of trying in one and assuming it'd
 work in both. Just needs a b prefix on the split string:

 def shell_split(cmd):
 return subprocess.check_output(python -c 'import sys;
 print(\\0.join(sys.argv[1:]))'
 +cmd,shell=True)[:-1].split(b\0)

 You'll get back a list of byte strings, in any case. Feel free to
 pass them through a decode operation, or to incorporate a .decode()
 into the above stream, as you wish.
 Tested on Win32?  The behavior of shell expansion on Windows
 cmd.exe differs from most *nix shells (i.e., it *doesn't* expand, so
 you have to do it yourself), so Antoon would need to describe the
 desired behavior on Win32.
 Well, his example commands began ls, which is a common Unix command,
 but isn't present on most Windows systems. If he'd started out with
 something that looked more Windowsish, I'd totally understand - you
 start with a single line, and you need to do what the cmd.exe shell
 hasn't done for you. (Although splitting is done, so it still wouldn't
 be quite as clear.) But he said treated as a command line. So that's
 exactly what I did. :) He didn't ask about globbing, he asked about
 doing what the shell does... maybe he wants variable expansion too?

That would be interresting too. The problem with your solution would be
that it would only substitute environment variables, and not shell variables
within the interactive session. Of course I could use os.putenv to put all
those variables in the environment but that might have troublesome effects
on other subprocesses.

-- 
Antoon Pardon

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


ANN: eGenix PyRun - One file Python Runtime 2.0.0

2014-06-17 Thread eGenix Team: M.-A. Lemburg


ANNOUNCING

 eGenix PyRun - One file Python Runtime

Version 2.0.0


 An easy-to-use single file relocatable Python run-time -
   available for Linux, Mac OS X and Unix platforms,
  with support for Python 2.6, 2.7 and now
   **also for Python 3.4**.


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-PyRun-2.0.0-GA.html



INTRODUCTION

eGenix PyRun is our open source, one file, no installation version of
Python, making the distribution of a Python interpreter to run based
scripts and applications to Unix based systems as simple as copying a
single file.

eGenix PyRun's executable only needs 11MB for Python 2 and 13MB for
Python 3, but still supports most Python application and scripts - and
it can be compressed to just 3-4MB using upx, if needed.

Compared to a regular Python installation of typically 100MB on disk,
eGenix PyRun is ideal for applications and scripts that need to be
distributed to several target machines, client installations or
customers.

It makes installing Python on a Unix based system as simple as
copying a single file.

eGenix has been using the product internally in the mxODBC Connect
Server since 2008 with great success and decided to make it available
as a stand-alone open-source product.

We provide both the source archive to build your own eGenix PyRun, as
well as pre-compiled binaries for Linux, FreeBSD and Mac OS X, as 32-
and 64-bit versions. The binaries can be downloaded manually, or you
can let our automatic install script install-pyrun take care of the
installation: ./install-pyrun dir and you're done.

Please see the product page for more details:

http://www.egenix.com/products/python/PyRun/



NEWS

This is a major release of eGenix PyRun. The most significant step
forward in this release is the addition of Python 3.4 support.

New Features


 * Added Python 3.4 support to eGenix PyRun.

 * eGenix PyRun defaults to PYTHONIOENCODING = utf-8:surrogateescape
   for Python 3.4 to provide a better user experience.

 * Enabled the lib2to3 package to work with eGenix PyRun. This allows
   on-the-fly Python 3 conversions as used by e.g. the setuptools
   package to work with eGenix PyRun.

 * Frozen modules in eGenix PyRun now always have the __file__
   attribute set - unlike in standard Python This increases
   compatibility of pyrun with existing Python software. Submitted as
   http://bugs.python.org/issue21736

Enhancements / Changes
--

 * Added work-around for bug in Python 3.4 modulefinder
   module. Submitted as http://bugs.python.org/issue21707

 * Added work-around for problem with logging package's use of the
   __file__ attribute. Submitted as http://bugs.python.org/issue21709

 * Added work-around for getting runpy.run_path() to work with frozen
   modules in Python 3. This is needed to be able to run packages and
   ZIP files directly from the command line. Submitted as
   http://bugs.python.org/issue21737

 * Turned our pkgutil.py patch to support frozen modules into a real
   patch instead of doing this dynamically. Submitted as
   http://bugs.python.org/issue21749

 * Removed support for Python 2.5 from eGenix PyRun.

install-pyrun Quick Install Enhancements
-

eGenix PyRun includes a shell script called install-pyrun, which
greatly simplifies installation of PyRun. It works much like the
virtualenv shell script used for creating new virtual environments
(except that there's nothing virtual about PyRun environments).

https://downloads.egenix.com/python/install-pyrun

With the script, an eGenix PyRun installation is as simple as running:

./install-pyrun targetdir

This will automatically detect the platform, download and install the
right pyrun version into targetdir.

We have updated this script since the last release:

 * Updated install-pyrun to default to eGenix PyRun 2.0.0 and its
   feature set.

 * install-pyrun will no longer install the latest versions of pip and
   setuptools due to recent incompatible changes in those
   packages. Instead, the script uses fixed defaults and makes it easy
   to override them.

 * install-pyrun now uses pip 1.4.1 and setuptools 2.1 per default
   instead of the latest versions for better backwards compatibility
   with packages not hosted on PyPI.

 * install-pyrun can optionally fetch the latest versions of pip and
   setuptools by using latest as version number for --pip-version
   and --setuptools-version.

 * install-pyrun script is now available in signed and hashed form for
   additional security.


For a complete list of changes, please see the eGenix 

Re: OT: This Swift thing

2014-06-17 Thread alister
On Tue, 17 Jun 2014 08:34:13 +1000, Chris Angelico wrote:

 
 Partly that. But also, people want to know how long that will *really*
 last. For instance, 10 hours of battery life... doing what? Can I really
 hop on a plane for ten hours and write code the whole way without
 external power? Or will each minute spent recompiling Python (with the
 CPU pegged) cost 2-3 minutes out of those ten hours? What if I watch
 videos (on headphones, probably, given how noisy airliners are!)?
 That'll surely take more power than the manufacturers estimate.
 And what happens six months from now? Will battery life decay to the
 point where it's no longer interesting? (Obviously it'll decay some. But
 how much?)
 

I bought a 12 cell battery for my Acer Once netbook  did exactly that 
(LHR to LAX), listening to music playing supertuxcart  reading ebooks 
for most of the flight.

It was a life saver as the on-board entertainment from American Airlines 
was terrible, next time i will happily pay the extra 100 for a Virgin 
flight LWG to LAS instead.




-- 
Distance doesn't make you any smaller, but it does make you part of a
larger picture.
-- 
https://mail.python.org/mailman/listinfo/python-list


State of Nuitka

2014-06-17 Thread Mark Lawrence
I thought this might be of interest 
http://nuitka.net/posts/state-of-nuitka.html


--
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


ANN: driver to convert LaTeX math to MathML, using Tralics

2014-06-17 Thread Tim
This is an announcement of a python driver to convert LaTeX math snippets to 
MathML (tralics_driver, MIT license). 

It may be of interest to Python developers who work with LaTeX and MathML.

There are several tools to convert LaTeX math to MathML; this tool is a driver 
that uses Tralics: Tralics is free software whose purpose is to convert a LaTeX 
document into an XML file, from http://www-sop.inria.fr/marelle/tralics/

This tool is not affiliated with Tralics or the Tralics team, it is only a 
driver.

The driver is written in and meant to be used from Python. It requires:

 * Python pexpect package
 * Tralics installation
 * Python lxml package (elementtree could be used as well)

The driver is available on GitHub; the documentation is here: 
http://tiarno.github.io/tralics_driver/

thanks, 
--Tim Arnold
-- 
https://mail.python.org/mailman/listinfo/python-list


Create flowcharts from Python

2014-06-17 Thread Nagy László Zsolt


Is there a library for Python that can easily create flowcharts using a 
simple API? I have a set of business rules that can be represented by a 
flowchart. These rules are stored in a database, and I need to display 
them for the end user. It is not a fixed set of rules, the users are 
going to change them frequently. I already have a rather difficult GUI 
where nodes and links are listed and they can be configured. But the 
users want to see this as a  visual flowchart too. It would be the best 
to have it automatically arranged; or at least open it an editor so they 
can move the nodes and see how they are connected.


Is there such thing for Python?

Thanks,

   Laszlo

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


Python Noob, open file dialog

2014-06-17 Thread cutey Love
My first attempt at Python,

I'm using Tkinter and all is going well except when I'm using 

file_path = tkFileDialog.askopenfilename()
print test

opens great and lets me select a file, the problem is it then pauses? instead 
of continuing with the function? until I close, then it goes and completes the 
function?

Why is this and how do I fix it?

Full code

import Tkinter, tkFileDialog

from Tkinter import *

emails = []

def askFile():
file_path = tkFileDialog.askopenfilename()
print test


window = Tkinter.Tk()
window.title(Super Star)

window.geometry(600x600)

menubar = Menu(window)
filemenu = Menu(menubar, tearoff=0)
filemenu.add_command(label=New, command=askFile)

menubar.add_cascade(label=File, menu=filemenu)

window.config(menu=menubar)

window.mainloop()
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python Noob, open file dialog

2014-06-17 Thread MRAB

On 2014-06-17 17:49, cutey Love wrote:

My first attempt at Python,

I'm using Tkinter and all is going well except when I'm using

 file_path = tkFileDialog.askopenfilename()
 print test

opens great and lets me select a file, the problem is it then pauses? instead 
of continuing with the function? until I close, then it goes and completes the 
function?

Why is this and how do I fix it?


It's waiting for you to click the Open button to confirm your
selection. That's normal behaviour for such a dialog box.


Full code

import Tkinter, tkFileDialog

from Tkinter import *

emails = []

def askFile():
 file_path = tkFileDialog.askopenfilename()
 print test


window = Tkinter.Tk()
window.title(Super Star)

window.geometry(600x600)

menubar = Menu(window)
filemenu = Menu(menubar, tearoff=0)
filemenu.add_command(label=New, command=askFile)

menubar.add_cascade(label=File, menu=filemenu)

window.config(menu=menubar)

window.mainloop()



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


Backport fix on #16611 to Python 2.7

2014-06-17 Thread Makoto Kuwata
Hi,

I found a bug on SimpleCookie#load() which doesn't parse
'secure' and 'httponly' attributes correctly.

try:
from Cookie import SimpleCookie
except:
from http.cookies import SimpleCookie
ck = SimpleCookie()
ck.load('name1=value1; Path=/xxx; httponly; secure')
print(ck.output())  #= Set-Cookie: name1=value1; Path=/xxx
# (Missing 'httponly' and 'secure' attributes on Python 
3.3.2!)


This bug has been registered as #16611, and fixed on 3.3.3.
But it is not backported into Python 2.7.
http://bugs.python.org/issue16611

My question: Is there any plan to backport the fix to Python 2.7?

--
regards,
makoto kuwata
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Backport fix on #16611 to Python 2.7

2014-06-17 Thread Mark Lawrence

On 18/06/2014 01:56, Makoto Kuwata wrote:

Hi,

I found a bug on SimpleCookie#load() which doesn't parse
'secure' and 'httponly' attributes correctly.

 try:
 from Cookie import SimpleCookie
 except:
 from http.cookies import SimpleCookie
 ck = SimpleCookie()
 ck.load('name1=value1; Path=/xxx; httponly; secure')
 print(ck.output())  #= Set-Cookie: name1=value1; Path=/xxx
 # (Missing 'httponly' and 'secure' attributes on Python 
3.3.2!)


This bug has been registered as #16611, and fixed on 3.3.3.
But it is not backported into Python 2.7.
http://bugs.python.org/issue16611

My question: Is there any plan to backport the fix to Python 2.7?

--
regards,
makoto kuwata



The simple answer is no.  The longer answer is, if you want to propose a 
patch to backport the fix, it's more likely that somebody will do the 
work to commit it as support for 2.7 has been extended until 2020. 
Please note that I said more likely, there's no guarantee given that 
Python relies so much on volunteers.


--
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: Create flowcharts from Python

2014-06-17 Thread alex23

On 18/06/2014 1:32 AM, Nagy László Zsolt wrote:


Is there a library for Python that can easily create flowcharts using a
simple API?


The diagram application Dia comes with a Python API:

https://wiki.gnome.org/Apps/Dia/Python

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


Re: Backport fix on #16611 to Python 2.7

2014-06-17 Thread Terry Reedy

On 6/17/2014 9:08 PM, Mark Lawrence wrote:

On 18/06/2014 01:56, Makoto Kuwata wrote:

Hi,

I found a bug on SimpleCookie#load() which doesn't parse
'secure' and 'httponly' attributes correctly.

 try:
 from Cookie import SimpleCookie
 except:
 from http.cookies import SimpleCookie
 ck = SimpleCookie()
 ck.load('name1=value1; Path=/xxx; httponly; secure')
 print(ck.output())  #= Set-Cookie: name1=value1; Path=/xxx
 # (Missing 'httponly' and 'secure' attributes on Python 
3.3.2!)


This bug has been registered as #16611, and fixed on 3.3.3.
But it is not backported into Python 2.7.
http://bugs.python.org/issue16611

My question: Is there any plan to backport the fix to Python 2.7?


Do you have any plan to upgrade to 3.4, so you get *all* the bugfixes 
possible?



The simple answer is no.  The longer answer is, if you want to propose a
patch to backport the fix, it's more likely that somebody will do the
work to commit it as support for 2.7 has been extended until 2020.
Please note that I said more likely, there's no guarantee given that
Python relies so much on volunteers.


The extended support is mostly focused on build (compiler) and security 
(internet) issues, to support software already written and *working* on 2.7.


That said, if someone were to modify the patch to it could be imported 
to 2.7 (at least changing file names) or make changes to the relevant 
files by hand; run the tests, with whatever changes are needed so that 
they do run; and change the code as needed so all tests pass; sign the 
contributor agreement; and post a properly formatted test to the tracker 
and indicate a readiness to respond to comments; then it might get some 
attention.


--
Terry Jan Reedy

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


Re: Create flowcharts from Python

2014-06-17 Thread Miki Tebeka

 Is there a library for Python that can easily create flowcharts using a 
 simple API?
Maybe https://code.google.com/p/pydot/ ?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Generate Single PowerPoint from two powerpoints using pywin32(python)

2014-06-17 Thread Jaydeep Patil
On Tuesday, 17 June 2014 11:50:38 UTC+5:30, Jaydeep Patil  wrote:
 Hi,
 
 
 
 I have two powerpoints, which consists of images in each slide.
 
 I need to read each powerpoint, copy images from both powerpoint  paste 
 these images into output powerpoint side by side. 
 
 
 
 How should i do thism using python?
 
 The repoisition of shapes seems to be difficult.
 
 
 
 
 
 Regards
 
 Jaydeep



On Tuesday, 17 June 2014 11:50:38 UTC+5:30, Jaydeep Patil  wrote:
 Hi,
 
 
 
 I have two powerpoints, which consists of images in each slide.
 
 I need to read each powerpoint, copy images from both powerpoint  paste 
 these images into output powerpoint side by side. 
 
 
 
 How should i do thism using python?
 
 The repoisition of shapes seems to be difficult.
 
 
 
 
 
 Regards
 
 Jaydeep



On Tuesday, 17 June 2014 11:50:38 UTC+5:30, Jaydeep Patil  wrote:
 Hi,
 
 
 
 I have two powerpoints, which consists of images in each slide.
 
 I need to read each powerpoint, copy images from both powerpoint  paste 
 these images into output powerpoint side by side. 
 
 
 
 How should i do thism using python?
 
 The repoisition of shapes seems to be difficult.
 
 
 
 
 
 Regards
 
 Jaydeep



Anybody please help me?


Regards
Jaydeep Patil
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread Demian Brecht

Changes by Demian Brecht demianbre...@gmail.com:


--
nosy: +dbrecht

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



[issue21739] Add hint about expression in list comprehensions (https://docs.python.org/2/tutorial/datastructures.html#list-comprehensions)

2014-06-17 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee: rhettinger - r.david.murray

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



[issue21686] IDLE - Test hyperparser

2014-06-17 Thread Tal Einat

Tal Einat added the comment:

Ouch. I hadn't thought about the Ellipsis literal!

That would be sensibly possible, yes, but not simple. I think opening a 
separate issue for this would be prudent.

--

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



[issue1336] subprocess.Popen hangs when child writes to stderr

2014-06-17 Thread Torsten Landschoff

Torsten Landschoff added the comment:

 ita1024: please don't post to closed issues; your message here will be 
 ignored.

Bugs for Python 2 will be ignored anyway so what can you do? I am currently 
fighting with the effects of using threads, subprocess.Popen and sqlite in 
Python2 and found this bug report.

Among other issues (like a hang for still unknown reasons when calling 
subprocess.Popen) I have also seen gc getting disabled for a long running 
process which has multiple threads and starts processes via subprocess.Popen 
from different threads.

The attached example subprocess_demo.py reproduces disabling GC for me in 
Python 2.7.6. I checked with Python 3.4 and it is fixed there. Looking at the 
source, Python 3 implements subprocess.Popen correctly by doing fork + execve 
at the C side, unless the caller really wants to run a preexec_fn and is 
prepared for the failure.

Another case for using Python 3...

--
nosy: +torsten
Added file: http://bugs.python.org/file35668/subprocess_demo.py

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



[issue21787] Idle: make 3.x Hyperparser.get_expression recognize ...

2014-06-17 Thread Terry J. Reedy

New submission from Terry J. Reedy:

3.0 introduced ... as Ellipsis literal. Test: add '...\n' to the end of the 
test code.  In test_get_expression, add at the end
p = get('12.3')
self.assertEqual(p.get_expression(), '...')
which now fails with AssertionError: '' != '...'.

--
messages: 220800
nosy: taleinat, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Idle: make 3.x  Hyperparser.get_expression recognize ...
type: enhancement
versions: Python 3.4, Python 3.5

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



[issue21686] IDLE - Test hyperparser

2014-06-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#21787 Idle: make 3.x  Hyperparser.get_expression recognize ...

--

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



[issue21784] __init__.py can be a directory

2014-06-17 Thread Berker Peksag

Berker Peksag added the comment:

I think this is related to PEP 420.

$ tree pkg/
pkg/
├── foobar.py

$ python3.2 -c from pkg import foobar
Traceback (most recent call last):
  File string, line 1, in module
ImportError: No module named pkg

But, with Python 3.3 and newer:

$ python3.3 -c from pkg import foobar
hello

See 
https://docs.python.org/3/whatsnew/3.3.html#pep-420-implicit-namespace-packages 
for the whatsnew entry.

--
nosy: +berker.peksag, eric.smith
resolution:  - not a bug
stage:  - resolved
status: open - pending

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2014-06-17 Thread STINNER Victor

STINNER Victor added the comment:

 sys.platform == cli or sys.platform == silverlight

It cannot happen in CPython, so I think that it's fine to leave CPython stdlib 
unchanged. I consider that the issue is fixed because the bug report was for 
IronPython and the bug was fixed there.

--
nosy: +haypo
resolution:  - fixed
status: open - closed

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



[issue21788] Rework Python finalization

2014-06-17 Thread STINNER Victor

New submission from STINNER Victor:

Hi,

During the development of Python 3.4, I tried to emit warnings if a file is 
destroyed without being explicitly closed. The warnings were not emited in 
threads during Python finalization. Here are related changes:

- Issue #19421: FileIO destructor imports indirectly the io module at exit
- Issue #19424: _warnings: patch to avoid conversions from/to UTF-8
- Issue #19442: Python crashes when a warning is emitted during shutdown
- Change in Python shutdown: issue #19466 Clear state of threads earlier in 
Python shutdown
- Regression = issue #20526

The change #19466 had to be reverted a few days before the release of Python 
3.4.0 because it caused the regression #20526.

I'm still not convinced that #20526 was a new bug. IMO the bug still exists, 
but it is just less likely without the change #19466.

There is still something wrong in Python finalization, so I open this issue to 
rework it.

The goal is to get warnings in test_4_daemon_threads() of test_threading. I 
attached the test as a Python script.

--
files: test_4_daemon_threads.py
messages: 220804
nosy: benjamin.peterson, haypo
priority: normal
severity: normal
status: open
title: Rework Python finalization
versions: Python 3.5
Added file: http://bugs.python.org/file35669/test_4_daemon_threads.py

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



[issue21788] Rework Python finalization

2014-06-17 Thread STINNER Victor

STINNER Victor added the comment:

Benjamin changed ThreadState_DeleteCurrent() to fix an issue in this part of 
the code, but then reverted his change:
revert tstate_delete_common, since it's pretty much wrong
http://hg.python.org/cpython/rev/3ce746735b99

(Yeah this part of the code is really tricky, likely to deadlock.)

--

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



[issue21785] __getitem__ and __setitem__ try to be smart when invoked with negative slice indices

2014-06-17 Thread Konstantin Tretyakov

Konstantin Tretyakov added the comment:

Do note that things are not as simple as slices with negative indices are 
treated differently from scalar negative indicies.

Namely, behaviour differs whether you use [] or .__getitem__, and whether you 
use [a:b] or [slice(a,b)]. This does not make sense from a specification 
perspective, but has to be made clear in the docs then.

Besides, Jython does not have this problem and I presume other Python 
implementations might also be fine (e.g. PyPy or whatever else there exists, 
couldn't test now).

Hence, although fixing the docs does seem like a simple solution, if you want 
to regard the docs as a specification of the Python language rather than a 
list of particular CPython features, this won't be reasonable.

--

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



[issue21788] Rework Python finalization

2014-06-17 Thread STINNER Victor

STINNER Victor added the comment:

Charles-François Natali wrote a general comment about daemon threads:
http://bugs.python.org/issue19466#msg206028

--

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



[issue21785] __getitem__ and __setitem__ try to be smart when invoked with negative slice indices

2014-06-17 Thread eryksun

eryksun added the comment:

Refer to the documentation for deprecated __getslice__ when slicing an instance 
of a classic class:

https://docs.python.org/2/reference/datamodel.html#object.__getslice__

The SLICE+3 implementation (apply_slice) calls PySequence_GetSlice if both 
index values can be converted to Py_ssize_t integers and if the type defines 
sq_slice (instance_slice for the instance type). The instance type is used 
for an instance of a classic class. This predates unification of Python classes 
and types.

apply_slice
http://hg.python.org/cpython/file/f89216059edf/Python/ceval.c#l4383

PySequence_GetSlice
http://hg.python.org/cpython/file/f89216059edf/Objects/abstract.c#l1995

instance_slice
http://hg.python.org/cpython/file/f89216059edf/Objects/classobject.c#l1177

A new-style class, i.e. a class that subclasses object, would have to define or 
inherit __getslice__ in order for the C sq_slice slot to be defined. But 
__getslice__ is deprecated and shouldn't be implemented  unless you have to 
override it in a subclass of a built-in type. 

When sq_slice doesn't exist, apply_slice instead calls PyObject_GetItem with a 
slice object:

class A(object):
def __getitem__(self, index):
return index.start
def __len__(self):
return 10

 A()[-1:10]
-1

By the way, you don't observe the behavior in Python 3 because it doesn't have 
classic classes, and the __getslice__, __setslice__, and __delslice__ methods 
are not in its data model.

--
components: +Interpreter Core -Documentation
nosy: +eryksun

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



[issue21785] __getitem__ and __setitem__ try to be smart when invoked with negative slice indices

2014-06-17 Thread Konstantin Tretyakov

Konstantin Tretyakov added the comment:

Aha, I see. I knew I'd get bitten by not explicitly subclassing (object) one 
day.

In any case, adding a reference to this issue into the docs of __getitem__ and 
__setitem__ would probably save someone some hours of utter confusion in the 
future.

--

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



[issue21679] Prevent extraneous fstat during open()

2014-06-17 Thread Bohuslav Slavek Kabrda

Bohuslav Slavek Kabrda added the comment:

Thanks, Antoine. So, is there anything else that should be done about the patch 
so that it gets accepted?

--

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



[issue21772] platform.uname() not EINTR safe

2014-06-17 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

I'm not sure whether using os.fsencoding() is a good idea. The encoding used by 
uname is not defined anywhere and it's possible that Python using a wrong 
encoding may cause the call to fail (e.g. in case the host name includes 
non-ASCII chars).

Then again: _syscmd_uname() is currently only used to determine the processor, 
which will most likely always be ASCII.

BTW: It would be good to replace all other calls to os.popen() by subprocess as 
well. platform.py in Python 3 no longer has the requirement to stay compatible 
with earlier Python 2 releases.

--

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



[issue21772] platform.uname() not EINTR safe

2014-06-17 Thread STINNER Victor

STINNER Victor added the comment:

I'm not sure whether using os.fsencoding() is a good idea. The encoding used 
by uname is not defined anywhere and it's possible that Python using a wrong 
encoding may cause the call to fail (e.g. in case the host name includes 
non-ASCII chars).

I also expect ASCII, but I prefer os.fsdecode() because it's the encoding used 
almost everywhere in Python 3. It's for example the encoding (and error 
handler) currently used by _syscmd_uname() indirectly by TextIOWrapper.

--

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



[issue21772] platform.uname() not EINTR safe

2014-06-17 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 17.06.2014 11:21, STINNER Victor wrote:
 
 STINNER Victor added the comment:
 
 I'm not sure whether using os.fsencoding() is a good idea. The encoding used 
 by uname is not defined anywhere and it's possible that Python using a wrong 
 encoding may cause the call to fail (e.g. in case the host name includes 
 non-ASCII chars).
 
 I also expect ASCII, but I prefer os.fsdecode() because it's the encoding 
 used almost everywhere in Python 3. It's for example the encoding (and error 
 handler) currently used by _syscmd_uname() indirectly by TextIOWrapper.

Ok.

--

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



[issue21772] platform.uname() not EINTR safe

2014-06-17 Thread STINNER Victor

STINNER Victor added the comment:

2.7.6 or 3.4.1 with OS X 10.8. I can only reproduce it an automated test 
environment when the load is high on the machine. I've also seen it with 
10.6/10.7. It's definitely inconsistently reproducible.

I'm surprised that the Python read() method doesn't handle EINTR internally.

I'm in favor of handling EINTR internally almost everywhere, I mean in the 
Python modules implemented in the C, not in each call using these C methods. 
handling EINTR means calling PyErr_CheckSignals() which may raises a Python 
exception (ex: KeyboardInterrupt).

--

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



[issue15582] Enhance inspect.getdoc to follow inheritance chains

2014-06-17 Thread Claudiu Popa

Changes by Claudiu Popa pcmantic...@gmail.com:


--
stage: needs patch - patch review

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



[issue7982] extend captured_output to simulate different stdout.encoding

2014-06-17 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
versions:  -Python 2.7

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



[issue4887] environment inspection and manipulation API is buggy, inconsistent with Python philosophy for wrapping native APIs

2014-06-17 Thread Jean-Paul Calderone

Jean-Paul Calderone added the comment:

What are the chances a future Python 2.x release will include any fix developed 
for this issue?

--

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



[issue4887] environment inspection and manipulation API is buggy, inconsistent with Python philosophy for wrapping native APIs

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Good as 2.7 is in support until 2020.

--
versions: +Python 2.7, Python 3.5

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



[issue11100] test_fdopen: close failed in file object destructor

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

I'm assuming that this is no longer an issue as we're now at Python 2.7.7 and 
Solaris 11.

--
nosy: +BreamoreBoy

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



[issue10612] StopTestRun exception to halt test run

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Slipped under the radar?

--
nosy: +BreamoreBoy

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



[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Could someone do a patch review on this please.

--
nosy: +BreamoreBoy

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



[issue10608] Add a section to Windows FAQ explaining os.symlink

2014-06-17 Thread Mark Lawrence

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


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

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



[issue10595] Adding a syslog.conf reader in syslog

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

I'm assuming that this can go into 2.7 and 3.5 if anybody is prepared to work 
on a patch.

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

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



[issue21789] Broken link to PEP 263 in Python 2.7 error message

2014-06-17 Thread Jan Varho

New submission from Jan Varho:

When trying to run a file with non-ASCII symbols without declaring an encoding, 
python 2.7 gives the following error:

  File foo.py, line 2
SyntaxError: Non-ASCII character '\xc3' in file fo.py on line 2, but no 
encoding declared; see http://www.python.org/peps/pep-0263.html for details

That link is broken, however. The attached patch fixes the link.

Python 3 (.4) has the correct link already.

--
files: 0001-Fix-link-to-PEP-263-in-encoding-error-message.patch
keywords: patch
messages: 220821
nosy: otus
priority: normal
severity: normal
status: open
title: Broken link to PEP 263 in Python 2.7 error message
versions: Python 2.7
Added file: 
http://bugs.python.org/file35670/0001-Fix-link-to-PEP-263-in-encoding-error-message.patch

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



[issue21789] Broken link to PEP 263 in Python 2.7 error message

2014-06-17 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 17.06.2014 15:03, M.-A. Lemburg wrote:
 On 17.06.2014 15:00, Jan Varho wrote:

 New submission from Jan Varho:

 When trying to run a file with non-ASCII symbols without declaring an 
 encoding, python 2.7 gives the following error:

   File foo.py, line 2
 SyntaxError: Non-ASCII character '\xc3' in file fo.py on line 2, but no 
 encoding declared; see http://www.python.org/peps/pep-0263.html for details

 That link is broken, however. The attached patch fixes the link.
 
 Are you sure ? The links works for me.

Ah, sorry. The links does work, but doesn't redirect to the
correct PEP.

 BTW: This is more a case for a python.org bug report than one
 for Python itself.

--

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



[issue10582] PyErr_PrintEx exits silently when passed SystemExit exception

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

@Marc please accept our apologies for having missed this. Can you still 
reproduce the problem?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 2.6

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



[issue21789] Broken link to PEP 263 in Python 2.7 error message

2014-06-17 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

On 17.06.2014 15:00, Jan Varho wrote:
 
 New submission from Jan Varho:
 
 When trying to run a file with non-ASCII symbols without declaring an 
 encoding, python 2.7 gives the following error:
 
   File foo.py, line 2
 SyntaxError: Non-ASCII character '\xc3' in file fo.py on line 2, but no 
 encoding declared; see http://www.python.org/peps/pep-0263.html for details
 
 That link is broken, however. The attached patch fixes the link.

Are you sure ? The links works for me.

BTW: This is more a case for a python.org bug report than one
for Python itself.

--
nosy: +lemburg

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21789
___
___
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-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Could somebody please review the attached patch.

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

___
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



[issue21741] Convert most of the test suite to using unittest.main()

2014-06-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I compared tests output with and without patch and noticed only one significant 
difference.

ForkWait is imported in Lib/test/test_wait3.py, Lib/test/test_wait4.py and 
Lib/test/test_fork1.py and now it is executed 4 times. Either this class 
should be turned into mixing, or it shouldn't be imported (import a module 
instead).

--

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



[issue6682] Default traceback does not handle PEP302 loaded modules

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Who is best placed to look at an issue about import hooks and default 
tracebacks?

--
nosy: +BreamoreBoy

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



[issue9191] winreg.c:Reg2Py() may leak memory (in unusual circumstances)

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Can somebody answer the question about PyMem versus malloc/free functions.

--
nosy: +BreamoreBoy

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



[issue10582] PyErr_PrintEx exits silently when passed SystemExit exception

2014-06-17 Thread STINNER Victor

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


--
nosy: +haypo

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



[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread Senthil Kumaran

Senthil Kumaran added the comment:

I believe, repr() is the correct call here. You should know the proper  end of 
line characters like \n, \r\n which were sent in the request while debugging. A 
pretty print here, while look good, might remove that capability and thus may 
not add any value in my opinion.

--

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



[issue21763] Clarify requirements for file-like objects

2014-06-17 Thread R. David Murray

R. David Murray added the comment:

Nikolaus: while I agree that Raymond's comments were a bit strongly worded, it 
doesn't read to me as if the thread you link to is on point for this issue.  
The thread was focused on a *specific* question, that of calling close twice.  
The question of what the docs mean by a file like object is a different 
question.  Specifically, you will note that duck typing never came up in that 
thread (as far as I remember).

As Raymond indicated, a glossary entry would be appropriate, and would 
reference the ABCs.

This entry already exists; although it is labeled file object, it mentions 
that they are also called file like objects.  It would be appropriate to link 
mentions of the phrase file like object in the docs to this glossary term, if 
they aren't already.

--

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2014-06-17 Thread R. David Murray

R. David Murray added the comment:

It doesn't matter that it can't happen in CPython.  The idea is that IronPython 
should be able to copy as much of the stdlib as possible without having to 
change it.

That said, I'm not going to object if people decide this is in some sense a 
step too far in that direction.  So I'm +0.5, Brain is +1, and Victor is -1.  
Any other votes?  (Obviously IronPython hasn't wanted it enough to push it, so 
that could be considered as weighing on the negative side.)

--
resolution: fixed - 
status: closed - open

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



[issue21784] __init__.py can be a directory

2014-06-17 Thread abraithwaite

abraithwaite added the comment:

Interesting.  I saw the same behavior on 2.7.7 as well:

$ python2
Python 2.7.7 (default, Jun  3 2014, 01:46:20) 
[GCC 4.9.0 20140521 (prerelease)] on linux2
Type help, copyright, credits or license for more information.
 from pkg import foobar
 foobar
module 'pkg.foobar' from 'pkg/foobar.py'
 

Anyways, it doesn't bother me too much.  I opened a ticket because I couldn't 
find an already open bug about it or any reference to it on google (although 
the keywords aren't great for google searches).

Cheers!

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

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

The important line from the link in msg122717 is :-

mswindows = (sys.platform == win32 or (sys.platform == cli and os.name == 
'nt'))

so +1 from me unless someone can show one or more problems with it.

--
nosy: +BreamoreBoy

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



[issue12933] Update or remove claims that distutils requires external programs

2014-06-17 Thread Vishal Lal

Vishal Lal added the comment:

ping

--

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2014-06-17 Thread STINNER Victor

STINNER Victor added the comment:

Oh oh, new try in english:

I vote -0, I don't really care :-) It's just that the issue is old and didn't 
get much attention.

--

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



[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread Demian Brecht

Demian Brecht added the comment:

I have a few questions about this one:

1. Why is print used to begin with? Surely this should use debug logging. Using 
print, you lose the benefits of logging: Timestamps, if used in the configured 
logger, can be invaluable to match up against logs generated by another server. 
There's also the additional utilities such as logging handlers that you don't 
get when using print.

1a. If logging should be used instead of debuglevel, it would stand to reason 
that debuglevel would be useless from the context of httplib. However, as there 
may be custom implementations that are dependent on this parameter, it should 
remain and be passed through as to not break backwards compatibility.

2. What is the preferred output: Pretty printed or raw values? As Senthil 
mentions, to me, seeing the raw request/response is much more valuable than 
seeing a pretty representation. Additionally, if you're logging a fair number 
of requests/responses, pretty printed output would make for an eyesore pretty 
quickly (at least it would for me).

3. I might be missing something, but it seems to me that receiving prints out 
the status line and headers while parsing per-line reads through the fp, but 
sending just sends un-parsed chunked data, so differentiating between status 
line, headers and body would take some additional work. Additionally, if the 
data being sent originates from a file-like object, readline() is not used as 
it is when receiving data, but it seems to naively send the data in chunks of 
what should be system page size.


To address the specific problem reported (make the receive/send logs 
consistent), I think that an easy, interim solution would be to buffer the 
expected output log during receiving when debuglevel  0 until after the 
headers are parsed and then flush through a print() or logging.debug(). I'd 
have to try it out to be sure, but I believe this would still leave the 
inconsistency of request bodies being logged but not response, but that could 
be tackled independently of this issue.

--

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



[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread Terry J. Reedy

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


--
nosy:  -terry.reedy

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



[issue8110] subprocess.py doesn't correctly detect Windows machines

2014-06-17 Thread STINNER Victor

STINNER Victor added the comment:

I'm -0, I don't really care :-) I just that the issue is old and
didn't get much attention.

--

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



[issue19917] [httplib] logging information for request is not pretty printed

2014-06-17 Thread R. David Murray

R. David Murray added the comment:

It doesn't use logging because (I think) logging didn't exist when it was 
implemented.  Whether or not we want to change that is a more complicated 
question, I think.  Probably we don't, for backward compatibility reasons.

--

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



[issue21790] Change blocksize in http.client to the value of resource.getpagesize

2014-06-17 Thread Demian Brecht

New submission from Demian Brecht:

When sending data, the blocksize is currently hardcoded to 8192. It should 
likely be set to the value of resource.getpagesize().

--
components: Library (Lib)
files: set_blocksize_to_getpagesize.diff
keywords: patch
messages: 220839
nosy: dbrecht
priority: normal
severity: normal
status: open
title: Change blocksize in http.client to the value of resource.getpagesize
versions: Python 3.5
Added file: http://bugs.python.org/file35671/set_blocksize_to_getpagesize.diff

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



[issue21723] Float maxsize is treated as infinity in asyncio.Queue

2014-06-17 Thread Guido van Rossum

Guido van Rossum added the comment:

The patch looks fine to me.

--

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



[issue21784] __init__.py can be a directory

2014-06-17 Thread STINNER Victor

STINNER Victor added the comment:

See also the issue #7732.

--
nosy: +haypo

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



[issue21784] __init__.py can be a directory

2014-06-17 Thread STINNER Victor

STINNER Victor added the comment:

I remember that I added an check in Python 3.2 on the file type to explicitly 
reject directories:
http://hg.python.org/cpython/rev/125887a41a6f

+if (stat(buf, statbuf) == 0  S_ISDIR(statbuf.st_mode))
+/* it's a directory */
+fp = NULL;
+else

I wrote this change in the C code, I didn't report the change to the Python 
code (importlib).

A huge work was also done in importlib to reduce the number of calls to stat(). 
So maybe a check was dropped by mistake?

--

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



[issue21791] Proper return status of os.WNOHANG is not always (0, 0)

2014-06-17 Thread Eric Radman

New submission from Eric Radman:

The documentation for the WNOHANG flag 
(https://docs.python.org/3.4/library/os.html#os.WNOHANG) suggests that a return 
value of (0, 0) indicates success. This is not always true, the second value 
may contain a value even on success. On OpenBSD 5.5 this is an exaple status of 
a process that is still running:

pid, status = os.waitpid(pid, os.WNOHANG)
(0, -168927460)

It would be more accurate to say that if pid==0 then the process is running and 
that status is platform dependent.

--
assignee: docs@python
components: Documentation
messages: 220843
nosy: docs@python, eradman
priority: normal
severity: normal
status: open
title: Proper return status of os.WNOHANG is not always (0, 0)
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/issue21791
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2014-06-17 Thread Claudiu Popa

Changes by Claudiu Popa pcmantic...@gmail.com:


--
stage: test needed - patch review
versions: +Python 3.5 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7769
___
___
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-17 Thread Zachary Ware

Zachary Ware added the comment:

What if we simply rename the current unittest.TestCase class to 
unittest.BaseTestCase, and define unittest.TestCase as class 
TestCase(BaseTestCase): pass?  Then mixin classes can derive from BaseTestCase 
and have all of the TestCase methods available (for auto-completion, etc.), but 
won't be picked up by discovery.  Real test classes would derive from TestCase 
as usual (but would still have to do so explicitly when also using a mixin), 
and all current code should work without modification.

--
nosy: +zach.ware

___
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



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

2014-06-17 Thread Michael Foord

Michael Foord added the comment:

If you're writing a mixin you don't need to derive from TestCase, you just 
derive from object. The point of this feature is to allow TestCase subclasses 
to be base classes instead of being used as a mixin.

--

___
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



[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2014-06-17 Thread Claudiu Popa

Changes by Claudiu Popa pcmantic...@gmail.com:


--
nosy: +Claudiu.Popa

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



[issue9499] Python C/API Execution namespace undocumented. (patch included)

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Can somebody review this small patch please.

--
nosy: +BreamoreBoy

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



[issue8997] Write documentation for codecs.readbuffer_encode()

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Slipped under the radar?

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

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



[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

2014-06-17 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +r.david.murray

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



[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2014-06-17 Thread Stefan Krah

Stefan Krah added the comment:

I guess the tests --without-doc-strings are broken:

http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/6900/steps/test/logs/stdio

--
nosy: +skrah

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



[issue9698] When reusing an handler, urllib(2)'s digest authentication fails after multiple regative replies

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Could we have a response to this please as a way to reproduce the problem is 
given in the attached patch and a suggested solution is inline.

--
nosy: +BreamoreBoy

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



[issue9714] urllib2 digest authentication doesn't work when connecting to a Catalyst server.

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Could we have a response to this problem please.

--
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/issue9714
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9727] Add callbacks to be invoked when locale changes

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

@Nick is this something you'd like to pick up on, and are there any other 
Windows gurus who should be added to the nosy list?

--
nosy: +BreamoreBoy

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



[issue9770] curses.isblank function doesn't match ctype.h

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

The problem and fix are simple but who is best placed to take a look at this?

--
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/issue9770
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9976] Make TestCase._formatMessage public

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Slipped under the radar?

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9976
___
___
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-17 Thread Zachary Ware

Zachary Ware added the comment:

Right, but in my experience, it seems like a lot of people do inherit from 
TestCase in their mixin anyway, possibly just to have the TestCase methods 
available for auto-completion in their IDE.  I've done the same, though I've 
remembered after writing the tests that I could remove TestCase as a base on 
the mixin.

On the other hand, I may be getting base class and mixin confused in this 
context and completely misunderstanding some aspect of the issue :)

Anyway, my suggestion was just the simplest change I could come up with makes 
the situation better from my point of view, but I do actually like the 
decorate-the-base-class method better anyway.

--

___
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



[issue10009] Automated MSI installation does not work

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we close this as out of date as we're already working on msi for 3.5?

--
nosy: +BreamoreBoy

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



[issue21792] Invitation to connect on LinkedIn

2014-06-17 Thread Nathanel Titane

New submission from Nathanel Titane:

LinkedIn


Python,

I'd like to add you to my professional network on LinkedIn.

- Nathanel

Nathanel Titane
Industrial Designer at TNDesigns Industrial + Graphic design solutions
Montreal, Canada Area

Confirm that you know Nathanel Titane:
https://www.linkedin.com/e/-3qcne3-hwjk4065-6h/isd/5884736256985808896/G43uJ4zE/?hs=falsetok=0jzJwnzwAxPSg1

--
You are receiving Invitation to Connect emails. Click to unsubscribe:
http://www.linkedin.com/e/-3qcne3-hwjk4065-6h/z2oU7dKDzpt2G7xQz2FC2SclHmnUGzmsk0c/goo/report%40bugs%2Epython%2Eorg/20061/I7283032682_1/?hs=falsetok=05rqftCWUxPSg1

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.

--
messages: 220856
nosy: nathanel.titane
priority: normal
severity: normal
status: open
title: Invitation to connect on LinkedIn

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



[issue21792] Invitation to connect on LinkedIn

2014-06-17 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


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

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



[issue10136] kill_python doesn't work with short path

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Can somebody review the attached patch please.

--
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/issue10136
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21792] Spam

2014-06-17 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
title: Invitation to connect on LinkedIn - Spam

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



[issue21792] Spam

2014-06-17 Thread Zachary Ware

Changes by Zachary Ware zachary.w...@gmail.com:


--
Removed message: http://bugs.python.org/msg220856

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



[issue10170] Relationship between turtle speed setting and actual speed is not documented

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

IIRC somebody has been working on the turtle code and/or docs recently, if I'm 
correct presumably they could pick this issue up?

--
nosy: +BreamoreBoy

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



[issue10310] signed:1 bitfields rarely make sense

2014-06-17 Thread Mark Lawrence

Mark Lawrence added the comment:

Could we have a patch review on this please.

--
nosy: +BreamoreBoy

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



[issue9191] winreg.c:Reg2Py() may leak memory (in unusual circumstances)

2014-06-17 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue21793] httplib client/server status refactor

2014-06-17 Thread Demian Brecht

New submission from Demian Brecht:

This patch is a follow up to an out of scope comment made by R. David Murray in 
#20898 (http://bugs.python.org/issue20898#msg213771).

In a nutshell, there is some redundancy between http.client and http.server 
insofar as the definition of http status code, names and descriptions go. The 
included patch is a stab at cleaning some of this up while remaining backwards 
compatible and is intended to solicit feedback before finishing work.

TODOs:
* Populate descriptions for status codes
* Documentation
* Tests (?)

--
components: Library (Lib)
files: refactor_http_status_codes.patch
keywords: patch
messages: 220860
nosy: dbrecht, r.david.murray
priority: normal
severity: normal
status: open
title: httplib client/server status refactor
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35672/refactor_http_status_codes.patch

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



[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-17 Thread Andy Maier

Andy Maier added the comment:

Attaching the patch for pydoc.py, relative to the tip of 2.7. the patch 
contains just the proposed fix, and no longer the debug prints.

--
keywords: +patch
Added file: http://bugs.python.org/file35673/pydoc.py.patch

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



[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-17 Thread Andy Maier

Andy Maier added the comment:

Attaching the patch for Lib/test/test_pydoc.py, relative to the tip of 2.7. The 
patch adds a testcase test_class_with_metaclass(), which defines a class that 
provokes the buggy behavior, and verifies the fix.

--
Added file: http://bugs.python.org/file35674/test_pydoc.py.patch

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



[issue21794] stack frame contains name of wrapper method, not that of wrapped method

2014-06-17 Thread the mulhern

New submission from the mulhern:

 def decorator(f):
... @functools.wraps(f)
... def new_func(self, junk):
... stack = inspect.stack()
... for i, frame in enumerate(stack):
... print(%s % frame[3])
... f(self, junk)
... return new_func
... 
 @decorator
... def junk(self, p):
... print(%s % junk.__name__)
... 
 junk(a, b)
new_func
module
junk
 junk.__name__
'junk'


Note that the wrapper function itself inspects the stack, printing out the 
names of methods on the stack.
Note that junk, the name of the wrapped function does not appear on the 
stack, it is only printed out by the junk method itself.

I think that the name of the function at the top of the stack should be the 
name of the wrapped function, not of its wrapper. The name of the wrapper 
function should not appear at all.

--
components: Interpreter Core
messages: 220863
nosy: the.mulhern
priority: normal
severity: normal
status: open
title: stack frame contains name of wrapper method, not that of wrapped method
type: behavior
versions: Python 2.7

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



[issue10170] Relationship between turtle speed setting and actual speed is not documented

2014-06-17 Thread Terry J. Reedy

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


--
versions: +Python 3.5 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10170
___
___
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-17 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Michael's suggestion looks too sophisticated and confusing to me.

--
nosy: +serhiy.storchaka

___
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



  1   2   >