[issue27378] remove ref to Phil Schwartz's 'Kodos' in regex HOWTO

2016-06-23 Thread Matt Morrison

New submission from Matt Morrison:

In the Regular Expressions HOWTO 
(https://docs.python.org/3/howto/regex.html#performing-matches, 
Doc/howto/regex.rst), there is the following paragraph:

=
You can learn about this by interactively experimenting with the :mod:`re`
module.  If you have :mod:`tkinter` available, you may also want to look at
:source:`Tools/demo/redemo.py`, a demonstration program included with the
Python distribution.  It allows you to enter REs and strings, and displays
whether the RE matches or fails. :file:`redemo.py` can be quite useful when
trying to debug a complicated RE.  Phil Schwartz's `Kodos
<http://kodos.sourceforge.net/>`_ is also an interactive tool for developing and
testing RE patterns.
=

I checked the Kodos site on SourceForge, and the latest release is exactly 10 
years old. I couldn't get it to work with 2.7.11 on Ubuntu 16.04 and PyQt4 - 
Qt3 is one of its requirements. I didn't bother running 2to3 on it. I propose 
we delete the last sentence of the above paragraph altogether. There are many 
good regex sites out there, including regex101, regexr, Debuggex, regexpal, and 
more (those are just the first few in my bookmarks list), and I don't feel we 
should be promoting one outdated tool.

Here is the diff:
=
@@ -374,9 +374,7 @@
 :source:`Tools/demo/redemo.py`, a demonstration program included with the
 Python distribution.  It allows you to enter REs and strings, and displays
 whether the RE matches or fails. :file:`redemo.py` can be quite useful when
-trying to debug a complicated RE.  Phil Schwartz's `Kodos
-<http://kodos.sourceforge.net/>`_ is also an interactive tool for developing 
and
-testing RE patterns.
+trying to debug a complicated RE.

 This HOWTO uses the standard Python interpreter for its examples. First, run 
the
 Python interpreter, import the :mod:`re` module, and compile a RE::

=

I've also attached it as a file.

--
assignee: docs@python
components: Documentation
files: regex.diff
keywords: patch
messages: 269142
nosy: MattDMo, docs@python
priority: normal
severity: normal
status: open
title: remove ref to Phil Schwartz's 'Kodos' in regex HOWTO
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file43525/regex.diff

___
Python tracker 
<http://bugs.python.org/issue27378>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27884] during 'make install', pre-existing site-packages residents are recompiled. Twice.

2016-08-28 Thread Matt Morrison

New submission from Matt Morrison:

I've been building Python 3 from source on Linux for a long time (at least 
since 3.2 days), and I honestly can't remember if this has happened before 3.6 
or not, which is why I'm only tagging this 3.6. 

Basically, when running 'make install' (after building either static or shared, 
I haven't been messing around with any other options except install prefix - 
$HOME) you'll start seeing messages like:

=
Listing 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/__init__.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/anova_nistcertified.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/ar_panel.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/example_kernridge.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/gmm.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/kernridgeregress_class.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/ols_anova_original.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/onewaygls.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/penalized.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/predstd.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/runmnl.py'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/sympy_diff.py'...
Listing 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/tests'...
Compiling 
'/home/mattdmo/lib/python3.6/site-packages/statsmodels/sandbox/regression/tests/__init__.py'...
=

and on and on and on. I usually don't pay much attention to them, but since I 
have nothing better to do I just stare idly at them and watch as all my 
third-party modules in 'site-packages' scroll by in alphabetical order very 
quickly. For the last few builds of 3.6, though, I've noticed that the modules 
get gone through twice. I have a pretty large number of modules (341, according 
to `ls | wc -l`), so it takes a while to go through them, and they're 
definitely being repeated.

Unfortunately, I don't know a whole lot about Makefiles or the internals of the 
installation process, so I don't have the slightest idea of where to begin even 
looking for the bug. But, I bet you ladies and gentlemen do :)

If it's necessary, I can rebuild and pipe all the output into a file for you to 
examine. Just let me know.

--
components: Build, Extension Modules, Installation
messages: 273824
nosy: MattDMo
priority: normal
severity: normal
status: open
title: during 'make install', pre-existing site-packages residents are 
recompiled. Twice.
versions: Python 3.6

___
Python tracker 
<https://bugs.python.org/issue27884>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com