Re: ANN: wxPython 3.0.1.1

2014-09-12 Thread Nathan McCorkle

On Wednesday, September 10, 2014 9:26:26 PM UTC-7, Robin Dunn wrote:


 Announcing 
 -- 

 wxPython 3.0.1.1 (classic) has been released and is now available for 


Other than 3rd-party stuff, has this changed at all since the July 3.0.1 
preview? 
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

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


Re: ANN: wxPython 3.0.1.1

2014-09-12 Thread Nathan McCorkle


On Thursday, September 11, 2014 9:57:15 AM UTC-7, Nathan McCorkle wrote:

 Other than 3rd-party stuff, has this changed at all since the July 3.0.1 
 preview? 

(For MSW) 
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

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


six 1.8.0 released

2014-09-12 Thread Benjamin Peterson
I'm pleased to announce the latest release of six, a Python 2/3
compatibility library. Many more six.moves mappings were added, and a
few bugs were fixed.

Download six from PyPI: https://pypi.python.org/pypi/six

Report bugs: https://bitbucket.org/gutworth/six

Here is the full changelog for this release:

- Issue #90: Add six.moves.shlex_quote.

- Issue #59: Add six.moves.intern.

- Add six.urllib.parse.uses_(fragment|netloc|params|query|relative).

- Issue #88: Fix add_metaclass when the class has __slots__ containing
  __weakref__ or __dict__.

- Issue #89: Make six use absolute imports.

- Issue #85: Always accept *updated* and *assigned* arguments for
wraps().

- Issue #86: In reraise(), instantiate the exception if the second
argument is
  None.

- Pull request #45: Add six.moves.email_mime_nonmultipart.

- Issue #81: Add six.urllib.request.splittag mapping.

- Issue #80: Add six.urllib.request.splituser mapping.
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

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


Pyston 0.2 released

2014-09-12 Thread Kevin Modzelewski
Hi all, we're excited to announce the existence of Pyston 0.2, a
much-improved version of our new Python JIT.  The new
version features greatly improved language support, basic native C API
support, and an experimental GIL-free mode.  Pyston is now in alpha, and is
still not ready for general use, but we have hit a significant milestone of
being able to run a number of existing benchmarks and standard libraries.

Check out our fancy new blog for the full announcement and release notes:
http://blog.pyston.org/2014/09/11/9/

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

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


Karlsruhe (Germany) Python User Group, September 19th 2014, 7pm

2014-09-12 Thread Jürgen A . Erhard
The Karlsruhe Python User Group (KaPy) meets again.

Friday, 2014-09-19 (September 19th) at 19:00 (7pm) in the rooms of Entropia eV
(the local affiliate of the CCC).  See http://entropia.de/wiki/Anfahrt
on how to get there.

For your calendars: meetings are held monthly, on the 3rd Friday.

There's also a mailing list at
https://lists.bl0rg.net/cgi-bin/mailman/listinfo/kapy.
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

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


Re: ANN: wxPython 3.0.1.1

2014-09-12 Thread Marco Prosperi

I'm trying to pass my application from wxpython2.9.4 to 3.0.1 but there 
seems to be still some of the problems that made me skip wxpy2.9.5: when I 
close the main window of my application (windows7-64bit, python 2.7) I get 
exceptions like this below (none with wxpy2.9.4). How can I avoid that my 
users get this? this happens after my OnExit function is completed

Marco

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File C:\Programmi\Python27\lib\atexit.py, line 24, in _run_exitfuncs
func(*targs, **kargs)
PyAssertionError: C++ assertion GetEventHandler() == this failed at 
..\..\src\
common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event 
handle
rs must have been removed
Error in sys.exitfunc:
Traceback (most recent call last):
  File C:\Programmi\Python27\lib\atexit.py, line 24, in _run_exitfuncs
func(*targs, **kargs)
wx._core.PyAssertionError: C++ assertion GetEventHandler() == this failed 
at .
.\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any 
pushed eve
nt handlers must have been removed



On Thursday, September 11, 2014 6:26:26 AM UTC+2, Robin Dunn wrote:


 Announcing 
 -- 

 wxPython 3.0.1.1 (classic) has been released and is now available for 
 download at http://wxpython.org/download.php.  This build adds some 
 updates of the 3rdParty libraries that were left out of the last build 
 by mistake. 

 Various binaries are available for 32-bit and 64-bit Windows, and also 
 for OSX using the Carbon and Cocoa APIs, for Python 2.6 and 2.7. 
 Source code is also available at http://wxpython.org/download.php of 
 course, for building your own. 


 What is wxPython? 
 - 

 wxPython is a GUI toolkit for the Python programming language. It 
 allows Python programmers to create programs with a robust, highly 
 functional graphical user interface, simply and easily. It is 
 implemented as a set of Python extension modules that wrap the GUI 
 components of the popular wxWidgets cross platform library, which is 
 written in C++. 

 wxPython is a cross-platform toolkit. This means that the same program 
 will usually run on multiple platforms without modifications. 
 Currently supported platforms are 32-bit and 64-bit Microsoft Windows, 
 most Linux or other Unix-like systems using GTK2, and Mac OS X 10.4+. 
 In most cases the native widgets are used on each platform to provide 
 a 100% native look and feel for the application. 



 -- 
 Robin Dunn 
 Software Craftsman 
 http://wxPython.org 

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

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


Re: Example of python service running under systemd?

2014-09-12 Thread Ervin Hegedüs
Hi Michael,

On Thu, Sep 11, 2014 at 08:03:54PM -0600, Michael Torrie wrote:
  What I want is to have this startup, after my board has it’s networking 
  layer up and running (and hopefully a valid ip address by then), and to 
  just keep running forever
  
  may be you think about the fork(), eg:
 
 No, you you don't need to do this.  Systemd can handle all of that for
 you.  Read up on the docs on creating systemd services.  Here's a little
 blog post that has some good examples, both a non-daemonizing service
 and a daemonizing service:
 
 http://patrakov.blogspot.com/2011/01/writing-systemd-service-files.html
 
 Any executable file can be turned into a daemon service with systemd
 (whether or not it forks itself into the background).  Thus any python
 script can easily be run from systemd.

thanks a lot, I didn't hear about that feature.


Cheers,

Ervin

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


Re: Example of python service running under systemd?

2014-09-12 Thread Ervin Hegedüs
Hi Chris,

On Fri, Sep 12, 2014 at 12:29:27PM +1000, Chris Angelico wrote:
 On Fri, Sep 12, 2014 at 12:03 PM, Michael Torrie torr...@gmail.com wrote:
 
  Any executable file can be turned into a daemon service with systemd
  (whether or not it forks itself into the background).  Thus any python
  script can easily be run from systemd.
 
 I strongly recommend making a non-daemonizing service. It's so much
 easier to debug - there's one mode of operation, the script just runs.
 You can then run that directly in a terminal, or via tmux, or via
 systemd - and I've done all three with Yosemite. In fact, I think I
 have instances here on the LAN that are doing all three, right now!

is there any other reason outside the debugging?

Of course, I've handled that in a simple way:

parser = optparse.OptionParser()

parser.add_option(-d,
  --debug,
action=count,
dest=debug_mode,
help=Start process in debug mode, not forking.)

(options, args) = parser.parse_args()

debug_mode = True
if options.debug_mode is None:

debug_mode = False
try:
pid = os.fork()
if pid  0:
   

And of course, I've handled the signals, logfiles and so on...

So, now I can run my app with -d, then it will not do the fork(),
I'll see all messages and feedbacks. Elsewhere, the process will
run in background.

Anyway, thanks all comments from others. May be the life is
easier with systemd, but that was my 5-minutes-finger-exercise
:)


Thanks again,


a.

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


Re: Thread-ID - how much could be?

2014-09-12 Thread Ervin Hegedüs
Hi Steven,

On Fri, Sep 12, 2014 at 11:29:56AM +1000, Steven D'Aprano wrote:
  import sys
  print sys.maxint
  9223372036854775807
  
  the couter could be 9223372036854775807?
  
  And after? :)
 
 Suppose you somehow managed to create 9223372036854775807 threads. If your
 computer has 16 GB of RAM available, that means that at most each thread
 can use:

so, thanks for your and others answers - this was just a
_theoretical_ question. What is the practice - that's an another
thread. :)

I just simply interested about this theory, not more. I don't
care with-how-many-memories-needs-and-how-many-years-to-overflow
that counter, but many people calculates that - thanks :)


Cheers,


a.

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


Re: Example of python service running under systemd?

2014-09-12 Thread Chris Angelico
On Fri, Sep 12, 2014 at 4:18 PM, Ervin Hegedüs airw...@gmail.com wrote:
 is there any other reason outside the debugging?

 Of course, I've handled that in a simple way:

 parser = optparse.OptionParser()

 parser.add_option(-d,
   --debug,
 action=count,
 dest=debug_mode,
 help=Start process in debug mode, not forking.)

 (options, args) = parser.parse_args()

 debug_mode = True
 if options.debug_mode is None:

 debug_mode = False
 try:
 pid = os.fork()
 if pid  0:


 And of course, I've handled the signals, logfiles and so on...

1) You don't need all of the above code.
2) You don't need to test all of that code.

And that code is significantly abbreviated. In reality it's quite a bit longer.

Having less code branches is itself an advantage. If I can accomplish
everything with simple top-down code, why go for a -d option and then
an alternative method that forks, forks again, handles signals, etc,
etc, etc? (Although handling signals may still be important, if I want
some kind of more orderly shutdown on SIGTERM, or if I want SIGHUP to
do some sort of reload - not usually in Python, but my Pike code
generally takes SIGHUP to mean reload your code from the disk.) The
simpler, the better. Less code = less bugs.

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


Re: pythonw.exe has stopped working

2014-09-12 Thread Rahul Bhagat
On Friday, 12 September 2014 11:18:25 UTC+5:30, Rahul Bhagat  wrote:
 Hello Folks,
 
 
 
 I'm using RIDE -- Robot Framework Test Data Editor
 
 RIDE 1.3 running on Python 2.7.6. 
 
 
 
 When I click on some of my test case the RIDE GUI hangs and gives bellow 
 error message.
 
 
 
 
 
 [Window Title]
 
 pythonw.exe
 
 
 
 [Main Instruction]
 
 pythonw.exe has stopped working
 
 
 
 [Content]
 
 A problem caused the program to stop working correctly. Windows will close 
 the program and notify you if a solution is available.
 
 
 
 [Close program]
 
 
 
 
 
 It's strange that while it's able to open other test cases but fails on one 
 particular test case. The distinguishing  fact about the test case is that it 
 is a big one using lots of keywords.
 
 
 
 I know it might work if I split my test case but have any of you encountered 
 this problem and knows how to fix it ? some fix like providing more memory or 
 specifying some parameter when pythonw.exe starts?
 
 
 
 
 
 Thank you very much  in advance.
 
 
 
 Cheers,
 
 
 
 Rahul.



UPDATE:


Additional Windows Log


Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: pythonw.exe
  Application Version:  0.0.0.0
  Application Timestamp:527fcf67
  Fault Module Name:wxmsw28uh_core_vc.dll
  Fault Module Version: 2.8.12.1
  Fault Module Timestamp:   4e21188a
  Exception Code:   c005
  Exception Offset: 0002516e
  OS Version:   6.1.7601.2.1.0.256.48
  Locale ID:1033
  Additional Information 1: af6f
  Additional Information 2: af6f3f0509d68fb0a703e2e9a01d8095
  Additional Information 3: 14ba
  Additional Information 4: 14ba7bfab2274826d4d9f81374905fca

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288clcid=0x0409

If the online privacy statement is not available, please read our privacy 
statement offline:
  C:\Windows\system32\en-US\erofflps.txt
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pythonw.exe has stopped working

2014-09-12 Thread Steven D'Aprano
rahuldbha...@gmail.com wrote:

 It's strange that while it's able to open other test cases but fails on
 one particular test case. The distinguishing  fact about the test case is
 that it is a big one using lots of keywords.

Sounds like you've run out of memory, and Windows has killed the process.

 I know it might work if I split my test case but have any of you
 encountered this problem and knows how to fix it ? some fix like providing
 more memory or specifying some parameter when pythonw.exe starts?

Install more memory?

It might help if you show us the code that crashes.


-- 
Steven

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


Re: Pyston 0.2 released

2014-09-12 Thread serge Guelton
On Thu, Sep 11, 2014 at 12:52:15PM -0700, Kevin Modzelewski wrote:
 
 Hi all, we're excited to announce the existence of Pyston 0.2, a
 much-improved version of our new Python JIT.  The new
 version features greatly improved language support, basic native C API
 support, and an experimental GIL-free mode.  Pyston is now in alpha, and is
 still not ready for general use, but we have hit a significant milestone of
 being able to run a number of existing benchmarks and standard libraries.
 

Hi Kevin,

Great work! I wonder if (in an undetermined future) the following
scenario could stand to optimize calls to native libraries, like numpy:

- compile numpy into LLVM bytecode
- when meeting a function with a bunch of numpy call, instead of using
  the CAPI, directly call functions from the numpy bytecode and optimize
  evertyhing as a whole?

Keep up the good work!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pythonw.exe has stopped working

2014-09-12 Thread Marko Rauhamaa
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info:

 rahuldbha...@gmail.com wrote:
 encountered this problem and knows how to fix it ? some fix like
 providing more memory or specifying some parameter when pythonw.exe
 starts?

 Install more memory?

 It might help if you show us the code that crashes.

Reminds me of a QA column from my university's CS student newsletter in
the 80's. It went something like this:

   Q. I finally managed to save enough money to buy a home computer. I
  read the user manual and wrote my first BASIC program as follows:

 20 GOTO 20

  I started the program with the RUN command, and it has been
  running since. What do I do now?

  I am new to computers, so no tech jargon, please.

   A. You can't expect shorter latencies in a computer in this price
  range. What we suggest, at a bare minimum, is a RAM upgrade to at
  least 64 kilobytes. The CPU might need to be replaced with the
  recently released 8 MHz model as well. [...]


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


Changer le path pour l'accès aux modules

2014-09-12 Thread ast

bonjour

Mon path est:


sys.path

[' ', 'C:\\Python33\\Lib\\idlelib', 'C:\\Windows\\system32\\python33.zip',
'C:\\Python33\\DLLs', 'C:\\Python33\\lib', 'C:\\Python33',
'C:\\Python33\\lib\\site-packages', 'mypath']

Tout d'abord à quoi correspond le ' ' vide au tout début ?
Pourquoi y a t'il deux backslashs \\ entre les répertoires ?
(sous windows normalement c'est un seul)

Ensuite j'aimerais ajouter un répertoire de façon définitive,
donc pas en utilisant sys.path.append(... après chaque ouverture
d'un shell.

J'ai lu qu'il fallait changer une variable $PYTHONFILE
mais ou exactement ? Je suis sous Windows Vista.

Merci


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


Re: Changer le path pour l'accès aux modules

2014-09-12 Thread ast


ast nom...@invalid.com a écrit dans le message de 
news:5412f2cb$0$2069$426a3...@news.free.fr...

bonjour

Mon path est:


sys.path

[' ', 'C:\\Python33\\Lib\\idlelib', 'C:\\Windows\\system32\\python33.zip',
'C:\\Python33\\DLLs', 'C:\\Python33\\lib', 'C:\\Python33',
'C:\\Python33\\lib\\site-packages', 'mypath']

Tout d'abord à quoi correspond le ' ' vide au tout début ?
Pourquoi y a t'il deux backslashs \\ entre les répertoires ?
(sous windows normalement c'est un seul)

Ensuite j'aimerais ajouter un répertoire de façon définitive,
donc pas en utilisant sys.path.append(... après chaque ouverture
d'un shell.

J'ai lu qu'il fallait changer une variable $PYTHONFILE
mais ou exactement ? Je suis sous Windows Vista.

Merci



Sorry I sent this message in the wrong forum.
I intended to send it to fr.comp.lang.python 


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


Re: Changer le path pour l'accès aux modules

2014-09-12 Thread Chris Angelico
2014-09-12 23:19 GMT+10:00 ast nom...@invalid.com:
 Tout d'abord à quoi correspond le ' ' vide au tout début ?
 Pourquoi y a t'il deux backslashs \\ entre les répertoires ?
 (sous windows normalement c'est un seul)

Hi! I'm afraid my French isn't very good, but Google Translate
suggests you're asking about why there are two backslashes rather than
one. I hope your English is good enough to comprehend my response;
otherwise, you may find more help on a dedicated French language forum
- sorry!

The backslash has special meaning to Python strings. When they're
displayed in a list, like that, strings get special characters marked.
For instance, quotes and apostrophes will have backslashes in front of
them. That means that the backslash has to be marked too - so it'll be
shown with a second backslash.

Try this instead:

for path in sys.path: print(path)

That'll show them with only one backslash, one per line.

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


Re: Changer le path pour l'accès aux modules

2014-09-12 Thread Chris Angelico
2014-09-12 23:20 GMT+10:00 ast nom...@invalid.com:
 Sorry I sent this message in the wrong forum.
 I intended to send it to fr.comp.lang.python

Ah! Okay. That works too :)

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


Re: Why command os.popen works in python interactive mode but not in script debugger mode?

2014-09-12 Thread Viet Nguyen
On Thursday, September 11, 2014 10:15:57 PM UTC-7, Viet Nguyen wrote:
 Can anyone give me hint or reason why same command behaves differently in 
 debugger mode from interactive mode:
 
 
 
 From interactive mode:
 
 
 
  import os
 
  p = os.popen('date')
 
  p.read()
 
 'Thu Sep 11 11:18:07 PDT 2014\n'
 
 
 
 But from debugger mode in a script:
 
  import os
 
 (Pdb) p = os.popen('date')
 
 *** SyntaxError: SyntaxError('invalid syntax', ('string', 1, 1, = 
 os.popen('date')))
 
 
 
 
 
 Can anyone help me why there is syntax here?
 
 
 
 Thanks,
 
 Viet

Thank you for your help.  That resolved the issue.
-- 
https://mail.python.org/mailman/listinfo/python-list


pylint for cython?

2014-09-12 Thread Skip Montanaro
I have slowly been converting some Python source to Cython. I'm pretty
conservative in what changes I make, mostly sprinkling a few cdef,
float and int declarations around the pyx file. Still, conservative or
not, it's enough to choke pylint. Rather than have to maintain a pure
Python version of my code, it would be nice if pylint had a flag or if
there was a cylint tool available.

A few Google and PyPi searches failed to reveal anything. Is there
something out there?

Thanks,

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


very lightweight gui for win32 + python 3.4

2014-09-12 Thread Nagy László Zsolt
I wrote a small program that copies some files between directories. This 
is a special utility program for a particular customer. I could compile 
the program into a portable exe with cx_freeze, and the total size is 
below 10MB. This customer wants to use this utility on many computers.  
He wants me to display a dialog with a progress bar and possibly a label 
with some messages while files are copied, and also let the user answer 
a question by clicking a button instead of typing in yes or no into 
the console.


So I need to create a GUI mode version of my program. That the customer 
should be able to see a progress bar. What kind of GUI toolkit should I 
use for this? I would like this to be lightweight, preferably under 5MB 
with a very easy API for simple things like create a dialog, put some 
labels and a progress bar on it, and finally close the dialog when the 
program is finished. (And of course, needs to work with cx Freeze.)


I do not need a full featured cross platform GUI toolkit. What are my 
options?


I have been looking at this:

https://wiki.python.org/moin/GuiProgramming

The only Windows specific lightweight frameworks are venster and Ocean 
but they have not been updated since ages. I know that I can do this 
using the win32 API, but I don't really want to learn how to build a 
dialog using win32 API calls and then process window message queues  
wxPython and Qt are well known but they are not exactly lightweight.


What are my best options?

Thanks,

   Laszlo


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: very lightweight gui for win32 + python 3.4

2014-09-12 Thread Chris Angelico
On Sat, Sep 13, 2014 at 2:35 AM, Nagy László Zsolt gand...@shopzeus.com wrote:
 So I need to create a GUI mode version of my program. That the customer
 should be able to see a progress bar. What kind of GUI toolkit should I use
 for this? I would like this to be lightweight, preferably under 5MB with a
 very easy API for simple things like create a dialog, put some labels and a
 progress bar on it, and finally close the dialog when the program is
 finished. (And of course, needs to work with cx Freeze.)

 I do not need a full featured cross platform GUI toolkit. What are my
 options?

 I have been looking at this:

 https://wiki.python.org/moin/GuiProgramming

 The only Windows specific lightweight frameworks are venster and Ocean but
 they have not been updated since ages. I know that I can do this using the
 win32 API, but I don't really want to learn how to build a dialog using
 win32 API calls and then process window message queues  wxPython and Qt
 are well known but they are not exactly lightweight.

There's absolutely no reason to go Windows-specific. Use Tkinter -
it's pretty light-weight. Comes with most Python distros. See how it
goes in terms of code size - if it's unsuitable, then look at others,
but start with the obvious option.

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


Re: pylint for cython?

2014-09-12 Thread Stefan Behnel
Skip Montanaro schrieb am 12.09.2014 um 17:52:
 I have slowly been converting some Python source to Cython. I'm pretty
 conservative in what changes I make, mostly sprinkling a few cdef,
 float and int declarations around the pyx file. Still, conservative or
 not, it's enough to choke pylint. Rather than have to maintain a pure
 Python version of my code, it would be nice if pylint had a flag or if
 there was a cylint tool available.

If you really just do things like cdef int x, I recommend using pure
Python syntax for it (in a .py file). That way, you can just run pylint
over it as before.

http://docs.cython.org/src/tutorial/pure.html#static-typing

Specifically, the @cython.locals() decorator might be all you need, or
maybe some of the other things like @cython.cfunc.

Stefan


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


Marco's atexit issue was: Re: ANN: wxPython 3.0.1.1

2014-09-12 Thread Nathan McCorkle


On Friday, September 12, 2014 1:14:41 AM UTC-7, Marco Prosperi wrote:


 I'm trying to pass my application from wxpython2.9.4 to 3.0.1 but there 
 seems to be still some of the problems that made me skip wxpy2.9.5: when I 
 close the main window of my application (windows7-64bit, python 2.7) I get 
 exceptions like this below (none with wxpy2.9.4). How can I avoid that my 
 users get this? this happens after my OnExit function is completed 

 Marco 

 Error in atexit._run_exitfuncs: 
 Traceback (most recent call last): 
   File C:\Programmi\Python27\lib\atexit.py, line 24, in _run_exitfuncs 
 func(*targs, **kargs) 
 PyAssertionError: C++ assertion GetEventHandler() == this failed at 
 ..\..\src\ 
 common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event 
 handle 
 rs must have been removed 
 Error in sys.exitfunc: 
 Traceback (most recent call last): 
   File C:\Programmi\Python27\lib\atexit.py, line 24, in _run_exitfuncs 
 func(*targs, **kargs) 
 wx._core.PyAssertionError: C++ assertion GetEventHandler() == this 
 failed 
 at . 
 .\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any 
 pushed eve 
 nt handlers must have been removed 



Post some code? Sounds like you're trying to interact with a wxPython 
object in a function using atexit.register(AtExit)... which likely is 
always going to happen after the wx Destroy method is all done.
 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: very lightweight gui for win32 + python 3.4

2014-09-12 Thread Mark Lawrence

On 12/09/2014 17:38, Chris Angelico wrote:

On Sat, Sep 13, 2014 at 2:35 AM, Nagy László Zsolt gand...@shopzeus.com wrote:

So I need to create a GUI mode version of my program. That the customer
should be able to see a progress bar. What kind of GUI toolkit should I use
for this? I would like this to be lightweight, preferably under 5MB with a
very easy API for simple things like create a dialog, put some labels and a
progress bar on it, and finally close the dialog when the program is
finished. (And of course, needs to work with cx Freeze.)

I do not need a full featured cross platform GUI toolkit. What are my
options?

I have been looking at this:

https://wiki.python.org/moin/GuiProgramming

The only Windows specific lightweight frameworks are venster and Ocean but
they have not been updated since ages. I know that I can do this using the
win32 API, but I don't really want to learn how to build a dialog using
win32 API calls and then process window message queues  wxPython and Qt
are well known but they are not exactly lightweight.


There's absolutely no reason to go Windows-specific. Use Tkinter -
it's pretty light-weight. Comes with most Python distros. See how it
goes in terms of code size - if it's unsuitable, then look at others,
but start with the obvious option.

ChrisA



As IDLE comes with all Python distros shouldn't the same apply to 
tkinter as that's what IDLE is based around?


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

Mark Lawrence

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


Re: very lightweight gui for win32 + python 3.4

2014-09-12 Thread Chris Angelico
On Sat, Sep 13, 2014 at 3:08 AM, Mark Lawrence breamore...@yahoo.co.uk wrote:
 There's absolutely no reason to go Windows-specific. Use Tkinter -
 it's pretty light-weight. Comes with most Python distros. See how it
 goes in terms of code size - if it's unsuitable, then look at others,
 but start with the obvious option.

 ChrisA


 As IDLE comes with all Python distros shouldn't the same apply to tkinter as
 that's what IDLE is based around?

It doesn't, though. It comes with most. It's perfectly possible to
have a minimal Python with no Tkinter and therefore no Idle; on my
Debian systems, there's a separate python-tk package on which idle
depends, but python doesn't.

rosuav@dewey:~$ python
Python 2.7.8 (default, Aug 18 2014, 10:01:58)
[GCC 4.9.1] on linux2
Type help, copyright, credits or license for more information.
 import Tkinter
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python2.7/lib-tk/Tkinter.py, line 42, in module
raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package

I believe Tkinter and Idle come with all Windows MSI installers
downloaded from python.org, but I can't state even that with
certainty, so I just kept it to most for safety. If I'd said all,
I'm pretty sure something would have proven me wrong, and knowing my
luck, it would have been the OP's system :)

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


Re: very lightweight gui for win32 + python 3.4

2014-09-12 Thread Thomas Heller

Am 12.09.2014 18:38, schrieb Chris Angelico:

On Sat, Sep 13, 2014 at 2:35 AM, Nagy László Zsolt gand...@shopzeus.com wrote:

So I need to create a GUI mode version of my program. That the customer
should be able to see a progress bar. What kind of GUI toolkit should I use
for this? I would like this to be lightweight, preferably under 5MB with a
very easy API for simple things like create a dialog, put some labels and a
progress bar on it, and finally close the dialog when the program is
finished. (And of course, needs to work with cx Freeze.)

I do not need a full featured cross platform GUI toolkit. What are my
options?

I have been looking at this:

https://wiki.python.org/moin/GuiProgramming

The only Windows specific lightweight frameworks are venster and Ocean but
they have not been updated since ages. I know that I can do this using the
win32 API, but I don't really want to learn how to build a dialog using
win32 API calls and then process window message queues  wxPython and Qt
are well known but they are not exactly lightweight.




I would recommend to look into Pyglet - it uses the native windows api
via ctypes calls (and is cross-platform as well).
I have never used it myself, all this info is from the web pages.


There's absolutely no reason to go Windows-specific. Use Tkinter -
it's pretty light-weight. Comes with most Python distros. See how it
goes in terms of code size - if it's unsuitable, then look at others,
but start with the obvious option.


Does Tkinter really work well with cx_Freeze?  I doubt it (from my 
experiences with py2exe).



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


Python stdout goes where under systemd? (Was: Example of python service running under systemd?)

2014-09-12 Thread Travis Griggs
Thanks all for the help/advice. I’m getting there.

To experiment/learn, I made a simple python program (/Foo/cyclic.py):
 
#!/usr/bin/env python3

import time

while True:
time.sleep(5)   
with open('sound', 'r') as file:
currentValue = file.read()
otherValue = 'tick' if currentValue == 'tock' else 'tock'
with open('sound', 'w') as file:
file.write(otherValue)
print(currentValue, '-', otherValue)

Run from the command line, this tick-tocks nicely, both outputting, as well as 
updating the ‘/Foo/sound’ file on a 5 second period.

I then created a simple .service file:

[Unit]
Description=Foo for learning service
After=network-online.target

[Service]
Type=simple
ExecStart=/Foo/cyclic.py
WorkingDirectory=/Foo
StandardOutput=journal

[Install]
WantedBy=multi-user.target

I chose to be “explicit” with some of the default options (Type and 
StandardOutput).
I finally executed:

systemctl --system daemon-reload
systemctl enable foo
systemctl start foo

It seems to work. Almost. The file is being updated regularly (watch cat 
/Foo/sound shows the change happening). But I can’t seem to find the output 
from my print() statement. journalctl -f doesn’t show anything. Nor does tail 
-f /var/log/syslog or any of the others. It just seems to be going nowhere? Is 
there something I need to do special to get the print() output going somewhere 
logable?

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


Re: very lightweight gui for win32 + python 3.4

2014-09-12 Thread Zachary Ware
On Fri, Sep 12, 2014 at 1:35 PM, Thomas Heller thel...@ctypes.org wrote:
 Does Tkinter really work well with cx_Freeze?  I doubt it (from my
 experiences with py2exe).

Just to give anecdotal evidence, I have used Tkinter successfully
without much headache with both cx_Freeze (with Python 2.7 and
3.1-3.2) and py2exe (with Python 3.4).

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


Re: Example of python service running under systemd?

2014-09-12 Thread CHIN Dihedral
On Friday, September 12, 2014 1:48:37 AM UTC+8, Travis Griggs wrote:
 I've been reading lots of systemd docs. And blogs. Etc. At this point, I 
 think I would benefit from learning by example...
 
 
 
 Does anyone have an example .service file that they use to launch a long 
 running service written as a python program?
 
 
 
 If there is any example of what you changed to your python program itself, 
 that to would be really instructional for me.

Please check the examples in wxpython
and boa.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python stdout goes where under systemd? (Was: Example of python service running under systemd?)

2014-09-12 Thread Travis Griggs

On Sep 12, 2014, at 12:05 PM, Travis Griggs travisgri...@gmail.com wrote:

 Thanks all for the help/advice. I’m getting there.
 
 To experiment/learn, I made a simple python program (/Foo/cyclic.py):
 
#!/usr/bin/env python3
 
import time
 
while True:
time.sleep(5)  
with open('sound', 'r') as file:
currentValue = file.read()
otherValue = 'tick' if currentValue == 'tock' else 'tock'
with open('sound', 'w') as file:
file.write(otherValue)
print(currentValue, '-', otherValue)
 
 Run from the command line, this tick-tocks nicely, both outputting, as well 
 as updating the ‘/Foo/sound’ file on a 5 second period.
 
 I then created a simple .service file:
 
[Unit]
Description=Foo for learning service
After=network-online.target
 
[Service]
Type=simple
ExecStart=/Foo/cyclic.py
WorkingDirectory=/Foo
StandardOutput=journal
 
[Install]
WantedBy=multi-user.target
 
 I chose to be “explicit” with some of the default options (Type and 
 StandardOutput).
 I finally executed:
 
systemctl --system daemon-reload
systemctl enable foo
systemctl start foo
 
 It seems to work. Almost. The file is being updated regularly (watch cat 
 /Foo/sound shows the change happening). But I can’t seem to find the output 
 from my print() statement. journalctl -f doesn’t show anything. Nor does tail 
 -f /var/log/syslog or any of the others. It just seems to be going nowhere? 
 Is there something I need to do special to get the print() output going 
 somewhere logable?
 

Arghhh… I’ll answer my own question here. I wasn’t patient enough, when I 
checked after lunch, I found I had a mountain of tick/tock entries in 
journalctl -f. Python print() is buffered, so it wasn’t showing up except in 
huge blocks. Changed the .service file to start with -u and everything works as 
expected now.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pythonw.exe has stopped working

2014-09-12 Thread Terry Reedy

On 9/12/2014 1:48 AM, rahuldbha...@gmail.com wrote:



Hello Folks,

I'm using RIDE -- Robot Framework Test Data Editor RIDE 1.3 running
on Python 2.7.6.

When I click on some of my test case the RIDE GUI hangs and gives
bellow error message.


Run RIDE with python, not pythonw, from a command prompt, and you should 
be error messages from python.



--
Terry Jan Reedy

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


Re: very lightweight gui for win32 + python 3.4

2014-09-12 Thread Grant Edwards
On 2014-09-12, Thomas Heller thel...@ctypes.org wrote:
 Am 12.09.2014 18:38, schrieb Chris Angelico:

 Does Tkinter really work well with cx_Freeze?  I doubt it (from my 
 experiences with py2exe).

I never had any problems with Tkinter and py2exe, but you do get
a considerably larger distribution than you do with wxWindows.

-- 
Grant


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


Re: Python stdout goes where under systemd? (Was: Example of python service running under systemd?)

2014-09-12 Thread Chris Angelico
On Sat, Sep 13, 2014 at 7:45 AM, Travis Griggs travisgri...@gmail.com wrote:
 Python print() is buffered, so it wasn’t showing up except in huge blocks. 
 Changed the .service file to start with -u and everything works as expected 
 now.

Ah, yes, that'll happen any time stdout isn't connected to a tty.
Nothing to do with systemd or journal.

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


Re: Example of python service running under systemd?

2014-09-12 Thread Michael Torrie
On 09/12/2014 02:05 PM, CHIN Dihedral wrote:
 Please check the examples in wxpython and boa.

Oh funny.  Just when I think the bot is ready to pass a turing test we
get a regression.

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


Re: Example of python service running under systemd?

2014-09-12 Thread Chris Angelico
On Sat, Sep 13, 2014 at 12:36 PM, Michael Torrie torr...@gmail.com wrote:
 Oh funny.  Just when I think the bot is ready to pass a turing test we
 get a regression.

Ah, the Turing test... everyone loves it. I had some really naughty
fun with that name a while ago. In my DD world themed on Wonderland,
there are two rival manufacturers who produce a drinkable form of
intelligence. One form is drained from real people, stolen from our
world (they send them back with empty liquor bottles and nobody
notices the difference - or else they just take from middle
management, and again, nobody notices), and the other produces an
artificial form, which is dangerously addictive. The test of
addictiveness is how it tours, and when eventually a safer form of
manufactured stuff was developed, it was hailed as artificial
intelligence that passes the touring test...

Yeah, they listened to rumours in the tavern, and that was their pun-ishment...

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


find the error

2014-09-12 Thread daoudimca
Dear friends when i used 
import urllib, re, sys

symbol = sys.argv[1]  this function is show -- symbol = sys.argv[1]
IndexError: list index out of range 

kindly find the solution of this
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: find the error

2014-09-12 Thread Chris Angelico
On Sat, Sep 13, 2014 at 3:47 PM,  daoudi...@gmail.com wrote:
 Dear friends when i used
 import urllib, re, sys

 symbol = sys.argv[1]  this function is show -- symbol = sys.argv[1]
 IndexError: list index out of range

 kindly find the solution of this

If you're using sys.argv, you need to provide arguments to your
script. You provided no arguments, so the list doesn't have elements
for you to find.

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


[issue22379] Empty exception message of str.join

2014-09-12 Thread Yongzhi Pan

Changes by Yongzhi Pan fossi...@users.sourceforge.net:


--
versions: +Python 3.5
Added file: http://bugs.python.org/file36604/str_join_exception_message_1.diff

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



[issue22379] Empty exception message of str.join

2014-09-12 Thread Yongzhi Pan

Yongzhi Pan added the comment:

I updated the patches. Since exceptions in 3 do not have a message attribute, I 
did not check them. Are they OK?

--
Added file: http://bugs.python.org/file36605/test_for_35.diff

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



[issue22362] Warn about octal escapes 0o377 in re

2014-09-12 Thread STINNER Victor

STINNER Victor added the comment:

re_octal_escape_overflow_raise.patch: you should write a subfunction to not 
repeat the error message 3 times.

+if c  0o377:

Hum, I never use octal. 255 instead of 0o377 would be less surprising :-p By 
the way, you should also check for negative numbers.

 -3  0xff
253

Before,  0xff also converted negative numbers to positive in range 0..255.

--
nosy: +haypo

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



[issue22389] Generalize contextlib.redirect_stdout

2014-09-12 Thread Raymond Hettinger

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


--
assignee:  - ncoghlan
nosy: +ncoghlan

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



[issue22389] Generalize contextlib.redirect_stdout

2014-09-12 Thread Raymond Hettinger

Raymond Hettinger added the comment:

+1 on Victor's suggestion.  I don't think hypergeneralizing it is the way to 
go.  That adds too much complexity for too little benefit.

--
nosy: +rhettinger

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



[issue22389] Generalize contextlib.redirect_stdout

2014-09-12 Thread STINNER Victor

STINNER Victor added the comment:

redirect_stdout(stderr, stream) looks wrong to be: you want to redirect 
stdout or stderr?

If you want to redirect something else (ex: stdin), you can still implement the 
very simple pattern:

old_stdin = sys.stdin
try:
  sys.stdin = mock_input
  ...
finally:
  sys.stdin = old_stdin

By the way, I'm not convinced that we should add redirect_stderr.

@Barry: How many usage of this new functions do you see in the standard library?

--

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



[issue19232] Speed up _decimal import

2014-09-12 Thread STINNER Victor

STINNER Victor added the comment:

We could speed up the import further by not importing collections
in _decimal.  That could be done once structseq fully implements
the namedtuple protocol (for DecimalTuple).

I suggest to close this issue. I guess that importing decimal is already fast 
enough, and enhance structseq is a completly different issue. (Is there an open 
issue, just to get the link?)

--

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



[issue22348] Documentation of asyncio.StreamWriter.drain()

2014-09-12 Thread STINNER Victor

STINNER Victor added the comment:

IMO we should mention the write buffer limits (high- and low-water limits for 
write flow control). get_write_buffer_limits() and set_write_buffer_limits() 
methods of the transport are public, there is no reason to hide them.

--

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



[issue22389] Generalize contextlib.redirect_stdout

2014-09-12 Thread Nick Coghlan

Nick Coghlan added the comment:

I'm fine with adding redirect_stderr - better to have the obvious
counterpart, rather than hypergeneralising, or having to explain why it's
missing. It's *currently* missing largely on a wait for someone to ask
basis, and Barry asked.

(Tangentially related, I should do a contextlib2 release at some point, but
my previous CI provider shut down...)

--

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



[issue22348] Documentation of asyncio.StreamWriter.drain()

2014-09-12 Thread Martin Richard

Martin Richard added the comment:

Here is an other patch which mentions high and low water limits. I think it's 
better to talk about it, since it tells extactly what a full buffer and 
partially drained means.

On the other hand, StreamWriter wraps the transport but does not expose the 
set/get_write_buffer_limits() directly, you reach then through 
stream_writer.transport (which makes sense, StreamWriter is here to help 
writing, not to do plumbery) - so I did not mention the functions.

--
Added file: 
http://bugs.python.org/file36606/asyncio-streams-drain-doc-water-limits.patch

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



[issue19232] Speed up _decimal import

2014-09-12 Thread Stefan Krah

Stefan Krah added the comment:

I'm fine with closing this. The structseq issue is #1820.

--
resolution:  - fixed
stage: patch review - resolved
status: open - closed
versions: +Python 3.5 -Python 3.4

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



[issue22378] SO_MARK support for Linux

2014-09-12 Thread Antoine Pitrou

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


--
nosy: +neologix

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



[issue20631] python readline module crashing on NULL access

2014-09-12 Thread Ismail Donmez

Ismail Donmez added the comment:

Can we please get a review on this?

--
nosy: +cartman

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



[issue20631] python readline module crashing on NULL access

2014-09-12 Thread STINNER Victor

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


--
nosy: +haypo

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



[issue22379] Empty exception message of str.join

2014-09-12 Thread R. David Murray

R. David Murray added the comment:

You can check .args[0] in python3.

Can you include a complete patch for python3?  Your test_for_35 only has a 
change for test_bytes, not the ones for string_tests.

--

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



[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional

2014-09-12 Thread Michał Górny

Michał Górny added the comment:

 In CPython, the _ssl module is compiled in C. How can we check if libssl 
 provides RAND_egd() or not at compile time?

How about... checking whether the function is provided? Unless I'm missing some 
major point, AC_CHECK_FUNC should be good enough.

 Is there a way to check if libssl is OpenSSL or LibreSSL?

Why would you want to do that? Do you want to make silly assumptions on API 
depending on provider name, and then add extra conditionals for versions?

--
nosy: +mgorny

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



[issue20334] make inspect Signature hashable

2014-09-12 Thread Yury Selivanov

Yury Selivanov added the comment:

Antonie, I'm attaching a patch (issue20334-2.01.patch) to this issue which 
should fix the problem. Please review.

--
Added file: http://bugs.python.org/file36607/issue20334-2.01.patch

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



[issue22394] Update documentation building to use venv and pip

2014-09-12 Thread Brett Cannon

New submission from Brett Cannon:

Now that we have ensurepip, is there any reason to not have the Doc/ Makefile 
create a venv for building the docs instead of requiring people to install 
sphinx into either their global Python interpreter or some venv outside of 
their checkout? Basically it would be like going back to the old Makefile of 
checking out the code but instead do a better isolation job and let pip manage 
fetching everything, updating the projects, etc.

--
assignee: docs@python
components: Documentation
messages: 226821
nosy: brett.cannon, docs@python
priority: low
severity: normal
stage: needs patch
status: open
title: Update documentation building to use venv and pip
type: enhancement
versions: Python 3.5

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



[issue16104] Compileall script: add option to use multiple cores

2014-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9efefcab817e by Brett Cannon in branch 'default':
Issue #16104: Allow compileall to do parallel bytecode compilation.
http://hg.python.org/cpython/rev/9efefcab817e

--
nosy: +python-dev

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



[issue16104] Compileall script: add option to use multiple cores

2014-09-12 Thread Brett Cannon

Brett Cannon added the comment:

Thanks for the patch, Claudiu!

--
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[issue16104] Compileall script: add option to use multiple cores

2014-09-12 Thread Claudiu Popa

Claudiu Popa added the comment:

Thank you for committing it. :-)

--

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



[issue22381] update zlib in 2.7 to 1.2.8

2014-09-12 Thread Matthias Klose

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


--
resolution:  - fixed
status: open - closed

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



[issue22389] Generalize contextlib.redirect_stdout

2014-09-12 Thread Berker Peksag

Berker Peksag added the comment:

Here's a simple implementation. I will add tests and update the documentation.

--
keywords: +patch
nosy: +berker.peksag
stage:  - patch review
Added file: http://bugs.python.org/file36608/issue22389.diff

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



[issue22362] Warn about octal escapes 0o377 in re

2014-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 By the way, you should also check for negative numbers.

Not in this case. You can't construct negative number from three octal digits.

--

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



[issue22253] ConfigParser does not handle files without sections

2014-09-12 Thread kernc

kernc added the comment:


 I am dubious that there are any with a mixture of both sections and
 additional option lines at the top without a section.


rsyncd.conf [1] is one such example, and I wouldn't say there aren't
countless more in the wild.

 Anyone writing an app and planning to parse a .ini file can add [Start] or
 [Setup] at the top.


Indeed. Here lies the problem of this unfortunate issue:
MissingSectionHeaderError is only ever caught [9] to mitigate this **awful
default behavior** and attach a dummy section at the top, as you say. Or
can anyone care to propose another relevant use case for this poorly (un-)
thought through exception?

 I think a more useful new configparser feature would be to keep comment
 lines and write them back out after a configuration is changed.


While this is very much off-topic, configobj [3] does too seem to have done
so since ages.

--

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



[issue22395] test_pathlib error for complex symlinks on Windows

2014-09-12 Thread Justin Foo

New submission from Justin Foo:

The _check_complex_symlinks function compares paths for string equality instead 
of using the assertSame helper function. Patch attached.

--
components: Tests
messages: 226828
nosy: jfoo
priority: normal
severity: normal
status: open
title: test_pathlib error for complex symlinks on Windows
type: enhancement
versions: Python 3.5

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



[issue22395] test_pathlib error for complex symlinks on Windows

2014-09-12 Thread Justin Foo

Justin Foo added the comment:

The _check_complex_symlinks function compares stringified paths for string 
equality instead of using the assertSame helper method. Patch attached.

--
keywords: +patch
Added file: http://bugs.python.org/file36609/issue22395.patch

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



[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970

2014-09-12 Thread Chris Rebert

Changes by Chris Rebert pyb...@rebertia.com:


--
nosy: +cvrebert

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



[issue22393] multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly

2014-09-12 Thread Chris Rebert

Changes by Chris Rebert pyb...@rebertia.com:


--
nosy: +cvrebert

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



[issue22379] Empty exception message of str.join

2014-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 You can check .args[0] in python3.

Or str(cm.exception). This works on 2.7 too.

--
nosy: +serhiy.storchaka

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



[issue22395] test_pathlib error for complex symlinks on Windows

2014-09-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +pitrou

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



[issue20334] make inspect Signature hashable

2014-09-12 Thread Antony Lee

Antony Lee added the comment:

While your patch works, I think it is a good opportunity to simplify the 
implementation of Signature.__eq__, which is *much* more complicated than what 
it should be.
Please comment on the attached patch, which uses the helper method approach I 
suggested.

--
Added file: http://bugs.python.org/file36610/signature-hash-and-equality.patch

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



[issue22395] test_pathlib error for complex symlinks on Windows

2014-09-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Can you explain in which case the assertion breaks?

--

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



[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional

2014-09-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Unless I'm missing some major point, AC_CHECK_FUNC should be good enough.

Building extension modules such as ssl doesn't involve autoconf.

 Do you want to make silly assumptions on API depending on provider name, and 
 then add extra conditionals for versions?

Arguably it would be better if LibreSSL exposed the same API as OpenSSL. We're 
not responsible for the discrepancy here.

--

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



[issue22396] AIX posix_fadvise and posix_fallocate

2014-09-12 Thread David Edelsohn

New submission from David Edelsohn:

As with Solaris and Issue10812, test_posix fadvise and fallocate fail on AIX.  
Python is compiled with _LARGE_FILES, which changes the function signature for 
posix_fadvise and posix_fallocate so that off_t is long long on 32 bit system 
passed in two registers.  The Python call to those functions does not place the 
arguments in the correct registers, causing an EINVAL error.  This patch fixes 
the failures in a similar way to Solaris ZFS kludge for Issue10812.

--
components: Tests
files: 10812_aix.patch
keywords: patch
messages: 226834
nosy: David.Edelsohn, pitrou
priority: normal
severity: normal
status: open
title: AIX posix_fadvise and posix_fallocate
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36611/10812_aix.patch

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



[issue22253] ConfigParser does not handle files without sections

2014-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Microsoft Windows INI files, POSIX-compatible config files, and other formats 
(e.g. Java properties files) use different methods for escaping, quoting, line 
continuing, interpolations, etc. Actually there are more differences than 
similarity between them.

--
nosy: +serhiy.storchaka

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



[issue22396] AIX posix_fadvise and posix_fallocate

2014-09-12 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 The Python call to those functions does not place the arguments in the 
 correct registers

Well... isn't there a way to fix this? I don't understand how this issue can 
come up.

--

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



[issue22397] test_socket failure on AIX

2014-09-12 Thread David Edelsohn

New submission from David Edelsohn:

AIX has the same test_socket problem with FDPassSeparate as Darwin in 
Issue12958 so skip some tests.

--
components: Library (Lib)
files: 12958_aix.patch
keywords: patch
messages: 226837
nosy: David.Edelsohn, pitrou
priority: normal
severity: normal
status: open
title: test_socket failure on AIX
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36612/12958_aix.patch

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



[issue22396] AIX posix_fadvise and posix_fallocate

2014-09-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See similar Ruby issue: https://bugs.ruby-lang.org/issues/9914 .

As workaround we can redeclare posix_fadvise as int posix_fadvise(int fd, long 
offset, long len, int advice) on 32-bit AIX with enabled _LARGE_FILES. More 
safe option is to disable posix_fadvise in such case (as Ruby had done).

--
nosy: +serhiy.storchaka

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



[issue22398] Tools/msi enhancements for 2.7

2014-09-12 Thread Steve Dower

New submission from Steve Dower:

This patch has some minor changes to the build scripts for Python 2.7 on 
Windows. They're fully tested on my build machine, but I wanted someone who's 
more familiar with how the buildbots are set up to either confirm that the 
Tools/msi scripts are not used or that the changes won't have an impact.

The Tools/msi/msi.py changes to use environment variables are mostly to make my 
life easier. Apparently the old way was to actually modify the file before 
making an official release...

The Tools/msi/msilib.py fix is necessary because of some new files that were 
added for 2.7.9. Technically it's a release blocker, though it won't actually 
hold anything up since I spotted it.

--
assignee: steve.dower
components: Installation, Windows
files: Tool_msi_27.patch
keywords: patch
messages: 226839
nosy: pitrou, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Tools/msi enhancements for 2.7
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file36613/Tool_msi_27.patch

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



[issue22397] test_socket failure on AIX

2014-09-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +ncoghlan

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



[issue20334] make inspect Signature hashable

2014-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3b974b61e74d by Yury Selivanov in branch 'default':
inspect.Signature: Fix discrepancy between __eq__ and __hash__.
http://hg.python.org/cpython/rev/3b974b61e74d

--

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



[issue20334] make inspect Signature hashable

2014-09-12 Thread Yury Selivanov

Yury Selivanov added the comment:

Antony, I've tweaked the patch a bit and it's now in default branch. Thank you!

--

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



[issue22343] Install bash activate script on Windows when using venv

2014-09-12 Thread Terry J. Reedy

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


--
stage:  - test needed
versions: +Python 3.5 -Python 3.4

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



[issue22398] Tools/msi enhancements for 2.7

2014-09-12 Thread Zachary Ware

Zachary Ware added the comment:

Actually, I think the method Martin used was to create a local config.py in 
Tools/msi/, which provided the proper settings for the release.  See 
http://hg.python.org/cpython/file/2.7/Tools/msi/msi.py#l37

Either way, the buildbots are completely unaffected by Tools/msi, and I don't 
think anything actually uses PCbuild/build_tkinter.py (unless you do :)), so 
since the script is now yours, I'd say you're clear to change as you like.

--

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



[issue22351] NNTP constructor exception leaves socket for garbage collector

2014-09-12 Thread Terry J. Reedy

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


--
nosy: +pitrou

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



[issue22398] Tools/msi enhancements for 2.7

2014-09-12 Thread Steve Dower

Steve Dower added the comment:

Thanks for confirming. Somehow I never noticed the import config line - guess 
that's a pattern I'm not really used to seeing. Still, I prefer having the env 
variables there as I invoke the scripts through some batch files (very specific 
to my machine, unfortunately, but the 3.5 ones will be more generic).

And since you mention it, apparently I'm not using build_tkinter.py any more 
either. I was at one point, hence the fix. I'll leave it in there - we can 
probably remove the file completely but no harm in leaving it.

--

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



[issue22398] Tools/msi enhancements for 2.7

2014-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5c55a7bfec0c by Steve Dower in branch '2.7':
#22398 Tools/msi enhancements for 2.7
http://hg.python.org/cpython/rev/5c55a7bfec0c

--
nosy: +python-dev

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



[issue22398] Tools/msi enhancements for 2.7

2014-09-12 Thread Steve Dower

Changes by Steve Dower steve.do...@microsoft.com:


--
resolution:  - fixed
status: open - closed

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



[issue22399] Doc: missing anchor for dict in library/functions.html

2014-09-12 Thread Philippe Dessauw

New submission from Philippe Dessauw:

There is a missing anchor for the dict functions in the documentation at 
library/functions.html. It is present in the documentation of all python 
version.

It seems to impact cross-referencing in Sphinx (using intersphinx).

--
assignee: docs@python
components: Documentation
messages: 226845
nosy: docs@python, pdessauw
priority: normal
severity: normal
status: open
title: Doc: missing anchor for dict in library/functions.html
type: enhancement
versions: Python 2.7

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



[issue22354] Idle: highlite tabs

2014-09-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree that this is an issue, and I believe others have made similar comments 
or requests, but I cannot find an existing issue for this.

By experiment, it is possible to tag a tab and change the background color for 
the spaces a tab is visually converted to.  

import tkinter as tk
root = tk.Tk()
text = tk.Text(root)
text.pack()
text.insert('insert', 'a\tb')
text.tag_add('TAB', 1.1, 1.2)
text.tag_config('TAB', background='#ffd')  # light yellow, or
text.tag_config('TAB', background='#eee')  # light gray

http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/text-methods.html
The other tag configuration options that refer to text, such as overstrike and 
underline, have no visual effect. Neither does non-zero borderwidth.

I am reluctant to add visible characters. The need to delete them would 
complicate converting tabs to spaces and saving files.  Since Idle normally 
converts tabs to spaces on input, they are not common in edited files.  The 
main issue, as you mention, is code imported from elsewhere.

Some issue remain.

1. Tagging tabs: I presume this is no problem, but will not know until there is 
a patch.

2. The priority of the TAB tag relative to others. The importance of this 
depends on the next question.

3. Should tab space in comments and strings be shaded?  I think so.  If so, 
should the shading match the comment/string foreground color?

--
nosy: +terry.reedy
stage:  - test needed
title: Highlite tabs in the IDLE - Idle: highlite tabs
versions:  -Python 3.1, Python 3.2, Python 3.3

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



[issue22355] inconsistent results with inspect.getsource / .getsourcelines

2014-09-12 Thread Terry J. Reedy

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


--
title: inconsistent results with inspect.getsource() / inspect.getsourcelines() 
- inconsistent results with inspect.getsource / .getsourcelines
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.3

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



[issue22360] Adding manually offset parameter to str/bytes split function

2014-09-12 Thread Terry J. Reedy

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


--
resolution:  - rejected
status: open - closed

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



[issue22364] Unify error messages of re and regex

2014-09-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I prefer cannot for error messages. Can't is an informal version of 
cannot, used in speech, dialog representing speech, and 'informal' writing.  
It looks wrong to me in this context.

--
nosy: +terry.reedy

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



[issue22375] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect results

2014-09-12 Thread Terry J. Reedy

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


--
resolution:  - duplicate
stage:  - resolved
superseder:  - urllib2.urlopen().read().splitlines() opening a directory in a 
FTP server randomly returns incorrect result

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



[issue22376] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect result

2014-09-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

You should have just added a new message to #22375 with the revision.

#15002 ends with This is fixed in 3.4 and 3.5. I will backport to 2.7 ( I 
think, it is worth it). Please check whether the backport has been done or 
whether current you still have a problem with the latest 2.7.8.  If so, did the 
3.4 patch, included in 3.4.1, fix the issue (ie, install 3.4.1 and test).  If 
you code works on 3.4.1 and not on 2.7.8, you could add a request for a 
backport to #15002.

--
nosy: +terry.reedy

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



[issue22378] SO_MARK support for Linux

2014-09-12 Thread Terry J. Reedy

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


--
stage:  - test needed
versions: +Python 3.5 -Python 2.7, Python 3.4

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



[issue17120] Mishandled _POSIX_C_SOURCE and _XOPEN_SOURCE in pyconfig.h

2014-09-12 Thread koobs

koobs added the comment:

See also:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192365

--
nosy: +koobs

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



[issue22388] Unify style of Contributed by notes

2014-09-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree with making a complete and separate sentence.  There are 3 variations.
--
Add parenthetical note after last sentence.  (Contributed by me.)
--
Add note on next line after short line.
(Contributed by me.
--
Add note after a blank line.

(Contributed by me.)
--

I guess version 2 will be formatted the same as version 1. In 3.4 What's New I 
only say one instance of the 3rd, blank line style, for the multi-paragraph 
Improvements to Codec Handling, which it arguable was appropriate.

--
nosy: +terry.reedy

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



[issue20537] logging exc_info parameter should accept exception instances

2014-09-12 Thread Yury Selivanov

Yury Selivanov added the comment:

Vinay,

Please take a look at the second patch -- 'logging_02.patch' -- with updated 
docs

--
Added file: http://bugs.python.org/file36614/logging_02.patch

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



[issue22394] Update documentation building to use venv and pip

2014-09-12 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue22351] NNTP constructor exception leaves socket for garbage collector

2014-09-12 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
keywords: +easy

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



  1   2   >