[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread axel


New submission from axel :

The python interpreter segfaults when running in a miniconda environment on a 
fresh install of ubuntu 20.04.2. This seems to happen intermittently, both 
while running "pip" during the conda setup of an environment and during the 
execution of code like below. The issue is most have mostly been reproduced 
with conda, but seems to happen regardless, which is why I suspect it is a 
python bug. It is very odd that I can't seem to find anyone else with the same 
issue.

The segfault always occurs when running the following code, which reads texts 
from files and tokenizes the result. The segfault location changes from run to 
run. Also the exact same code can run on another computer with the same conda 
environment on a ubuntu 18.04.

The core dumps always points to some function in the unicodeobject.c file in 
python but the exact function changes from crash to crash. At least one crash 
has a clear dereferenced pointer 0x0 where the "unicode object" should be.

My guess is that something causes the python interpreter to throw away the 
pointed to unicode object while it is still being worked on causing a segfault. 
But any bug in the interpreter or NLTK should have been noticed by more users, 
and I cannot find anyone with similar issues. 

Things tried that didn't fix the issue:
1. Reformatting and reinstalling ubuntu
2. Switched to ubuntu 18.04 (on this computer, another computer with 18.04 can 
run the code just fine)
3. Replacing hardware, to ensure that RAM, or SSD disk isn't broken
4. Changing to python versions 3.8.6, 3.8.8, 3.9.2
5. Cloning the conda environment from a working computer to the broken one

Attached is one stacktrace of the fault handler along with it's corresponding 
core dump stack trace from gdb.

```
(eo) axel@minimind:~/test$ python tokenizer_mini.py 
2021-03-30 11:10:15.588399: W 
tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load 
dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open 
shared object file: No such file or directory
2021-03-30 11:10:15.588426: I 
tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror 
if you do not have a GPU set up on your machine.
Fatal Python error: Segmentation fault

Current thread 0x7faa73bbe740 (most recent call first):
  File "tokenizer_mini.py", line 36 in preprocess_string
  File "tokenizer_mini.py", line 51 in 
Segmentation fault (core dumped)
```

```
#0  raise (sig=) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  
#2  find_maxchar_surrogates (num_surrogates=, 
maxchar=, 
end=0x4 , begin=0x0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/unicodeobject.c:1703
#3  _PyUnicode_Ready (unicode=0x7f7e4e04d7f0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/unicodeobject.c:1742
#4  0x55cd65f6df6a in PyUnicode_RichCompare (left=0x7f7e4cf43fb0, 
right=, op=2)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/unicodeobject.c:11205
#5  0x55cd6601712a in do_richcompare (op=2, w=0x7f7e4e04d7f0, 
v=0x7f7e4cf43fb0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/object.c:726
#6  PyObject_RichCompare (op=2, w=0x7f7e4e04d7f0, v=0x7f7e4cf43fb0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/object.c:774
#7  PyObject_RichCompareBool (op=2, w=0x7f7e4e04d7f0, v=0x7f7e4cf43fb0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/object.c:796
#8  list_contains (a=0x7f7e4e04b4c0, el=0x7f7e4cf43fb0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/listobject.c:455
#9  0x55cd660be41b in PySequence_Contains (ob=0x7f7e4cf43fb0, 
seq=0x7f7e4e04b4c0)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/abstract.c:2083
#10 cmp_outcome (w=0x7f7e4e04b4c0, v=0x7f7e4cf43fb0, op=, 
tstate=)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Python/ceval.c:5082
#11 _PyEval_EvalFrameDefault (f=, throwflag=)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Python/ceval.c:2977
#12 0x55cd6609f706 in PyEval_EvalFrameEx (throwflag=0, f=0x7f7e4f4d3c40)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Python/ceval.c:738
#13 function_code_fastcall (globals=, nargs=, 
args=, co=)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/call.c:284
#14 _PyFunction_Vectorcall (func=, stack=, 
nargsf=, kwnames=)
at 
/home/conda/feedstock_root/build_artifacts/python-split_1613835706476/work/Objects/call.c:411
#15 0x55cd660be54f in _PyObject_Vectorcall (kwnames=0x0, nargsf=, args=0x7f7f391985b8, callable=0x7f7f39084160)
at 

[issue43668] Segfault with for fresh ubuntu 20.04 install

2021-03-30 Thread axel


axel  added the comment:

Thanks for the reply, I don't know exactly what you mean by making a simpler 
reproducer, but as I wrote in the original post, just using pip will cause this 
issue to happen from time to time, which is why I find it unlikely to be caused 
by third party libs. 

I will try to cause a reproduction without 3rd party libs but since I don't 
have a good idea of what is causing it, I'm not really sure where to start.

--

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



[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread Axel


New submission from Axel :

Example source:
from argparse import ArgumentParser, SUPPRESS
==
parser = ArgumentParser()
parser.add_argument('i', nargs='?', type=int, default=SUPPRESS)
args = parser.parse_args([])
==
results in:
error: argument integer: invalid int value: '==SUPPRESS=='

Expected: args = Namespace()


In Lib/argparse.py:
line 2399 in _get_value: result = type_func(arg_string)
with arg_string = SUPPRESS = '==SUPPRESS=='

called by ... line 1836 in take_action: argument_values = 
self._get_values(action, argument_strings)
which is done before checking for SUPPRESS in line 1851:
if argument_values is not SUPPRESS:
   action(...)

--
components: Library (Lib)
messages: 336314
nosy: n8falke
priority: normal
severity: normal
status: open
title: argparse: positional with type=int, default=SUPPRESS raise ValueError
type: behavior
versions: Python 3.8

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



[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread Axel


Axel  added the comment:

Some more details:
The problem is not the order of assignment in take_action:
Defaults have been set by:
def parse_known_args(self, args=None, namespace=None):
...
# add any action defaults that aren't present
for action in self._actions:
if action.dest is not SUPPRESS:
if not hasattr(namespace, action.dest):
if action.default is not SUPPRESS:
setattr(namespace, action.dest, action.default)

Assignment without argument should not happen, like the example shows:
==
from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument('i', action="count", default=42)
args = parser.parse_args([])
print(repr(args))
==
Namespace(i=43)
==

--
nosy:  -paul.j3

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



[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-22 Thread Axel


Change by Axel :


--
nosy: +paul.j3

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



[issue36078] argparse: positional with type=int, default=SUPPRESS raise ValueError

2019-02-25 Thread Axel


Axel  added the comment:

Thanks for so fast looking into this.

Good idea to use the workaround with a own conversion function. I'll use this 
for now.

To see what's happening, I tried a own Action with print in __call__ and a own 
conversion function with printing. I found following workflow:
1) direct assignment of unconverted default value (if not SUPPRESS, in 
parse_known_args)
2) conversion of argument string into given type
3) call to Action.__call__ which sets the converted value
4) only in edge cases: Convert default into given type and set in target

When there is no option there is only:
default  | arg, narg = '?' | --opt  | arg, narg = '*'
-
None | 1), 3)  | 1) | 1), 2) with []
SUPPRESS | 2)! || 
str  | 1), 2), 3)  | 1) | 1), 2)
not str* | 1), 3)  | 1), 4) | 1), 2)

*can be int, float or other calss

It gets more complex the deeper I get into the source...

Yes, your second choice has probably less side effects.

--

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



[issue11837] smtplib._quote_periods triggers spurious type error in re.sub

2011-04-12 Thread Axel Rau

New submission from Axel Rau :

While debugging this
  http://article.gmane.org/gmane.comp.python.general/687767
email problem, I'm getting:
---
 File 
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/smtplib.py", 
line 794, in send_message
rcpt_options)
  File 
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/smtplib.py", 
line 762, in sendmail
(code, resp) = self.data(msg)
  File 
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/smtplib.py", 
line 518, in data
q = _quote_periods(msg)
  File 
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/smtplib.py", 
line 166, in _quote_periods
return re.sub(br'(?m)^\.', '..', bindata)
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/re.py", 
line 168, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: sequence item 1: expected bytes, str found
---
The following instrumentation:
---
def sub(pattern, repl, string, count=0, flags=0):
print('re.sub: pattern=%s, repl=%s, string=%s' % 
(pattern.__class__.__name__, repl.__class__.__name__, 
string.__class__.__name__))
return _compile(pattern, flags).sub(repl, string, count)
---
shows (in my test case with 2nd mail):
---
re.sub: pattern=bytes, repl=str, string=bytes
---
Changing smtplib._quote_periods(bindata) from
---
def _quote_periods(bindata):
return re.sub(br'(?m)^\.', '..', bindata)
---
to:
---
def _quote_periods(bindata):
return re.sub(br'(?m)^\.', b'..', bindata)
---
Fixes the problem for me.

Platform is Mac OS X 10.6.7, 64-bit.
Problem happens always on 2nd mail being sent.
Problem still exists with python 3.2.1a

--
components: Library (Lib)
messages: 133590
nosy: axel
priority: normal
severity: normal
status: open
title: smtplib._quote_periods triggers spurious type error in re.sub
type: behavior
versions: Python 3.2

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



[issue11837] smtplib._quote_periods triggers spurious type error in re.sub

2011-04-12 Thread Axel Rau

Changes by Axel Rau :


--
type: behavior -> crash

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



[issue11837] smtplib._quote_periods triggers spurious type error in re.sub

2011-04-19 Thread Axel Rau

Axel Rau  added the comment:

One more hint: The bug does not happen with plain text mails, but can easily be 
reproduced with MIME attachments.

--

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



[issue42267] Python 3.9 broken installer

2020-11-04 Thread Axel Grullón

New submission from Axel Grullón :

Initially the Python 3.9 installer worked perfectly, I had every tool at my 
disposal and every component installed.

After I tried installing discord.py an error was shown and it was about certain 
components that were missing. To my ignorance I uninstalled Python 3.9 and 
deleted every key and sub-key related to it thinking it would allow me to do a 
fresh install of Python 3.9 and fix the issue.

What I get now is a disastrous incomplete installation when I try to install 
this Python version, a programmer with knowledge on it told me that no matter 
the registry keys deleted the installer should be able to install the version 
without issues.

Without further ado, this is the error I get:

Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = 'python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python39\\python.exe'
  sys.base_prefix = ''
  sys.base_exec_prefix = ''
  sys.platlibdir = 'lib'
  sys.executable = 
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python39\\python.exe'
  sys.prefix = ''
  sys.exec_prefix = ''
  sys.path = [
'C:\\WINDOWS\\SYSTEM32\\python39.zip',
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python39\\Lib\\',
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python39\\DLLs\\',
'C:\\Program Files\\Python39\\Lib\\',
'C:\\Program Files\\Python39\\DLLs\\',
'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python39',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the 
filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x2254 (most recent call first):


But of course I get such error because a plethora of essential files are 
missing.

 
C:\Users\user\AppData\Local\Programs\Python\Python39>tree /f
Folder PATH listing
Volume serial number is 8820-2829
C:.
│   LICENSE.txt
│   NEWS.txt
│   python.exe
│   pythonw.exe
│   vcruntime140.dll
│   vcruntime140_1.dll
│
├───DLLs
│   py.ico
│   pyc.ico
│   pyd.ico
│   tcl86t.dll
│   tk86t.dll
│   _tkinter.pyd
│
├───Doc
│   python390.chm
│
├───Lib
│   ├───idlelib
│   │   │   autocomplete.py
│   │   │   autocomplete_w.py
│   │   │   autoexpand.py
│   │   │   browser.py
│   │   │   calltip.py
│   │   │   calltip_w.py
│   │   │   ChangeLog
│   │   │   codecontext.py
│   │   │   colorizer.py
│   │   │   config-extensions.def
│   │   │   config-highlight.def
│   │   │   config-keys.def
│   │   │   config-main.def
│   │   │   config.py
│   │   │   configdialog.py
│   │   │   config_key.py
│   │   │   CREDITS.txt
│   │   │   debugger.py
│   │   │   debugger_r.py
│   │   │   debugobj.py
│   │   │   debugobj_r.py
│   │   │   delegator.py
│   │   │   dynoption.py
│   │   │   editor.py
│   │   │   extend.txt
│   │   │   filelist.py
│   │   │   format.py
│   │   │   grep.py
│   │   │   help.html
│   │   │   help.py
│   │   │   help_about.py
│   │   │   history.py
│   │   │   HISTORY.txt
│   │   │   hyperparser.py
│   │   │   idle.bat
│   │   │   idle.py
│   │   │   idle.pyw
│   │   │   iomenu.py
│   │   │   macosx.py
│   │   │   mainmenu.py
│   │   │   multicall.py
│   │   │   NEWS.txt
│   │   │   NEWS2x.txt
│   │   │   outwin.py
│   │   │   parenmatch.py
│   │   │   pathbrowser.py
│   │   │   percolator.py
│   │   │   pyparse.py
│   │   │   pyshell.py
│   │   │   query.py
│   │   │   README.txt
│   │   │   redirector.py
│   │   │   replace.py
│   │   │   rpc.py
│   │   │   run.py
│   │   │   runscript.py
│   │   │   scrolledlist.py
│   │   │   search.py
│   │   │   searchbase.py
│   │   │   searchengine.py
│   │   │   sidebar.py
│   │   │   squeezer.py
│   │   │   stackviewer.py
│   │   │   statusbar.py
│   │   │   textview.py
│   │   │   TODO.txt
│   │   │   tooltip.py
│   │   │   tree.py
│   │   │   undo.py
│   │   │   window.py
│   │   │   zoomheight.py
│   │   │   zzdummy.py
│   │   │   __init__.py
│   │   │   __main__.py
│   │   │
│   │   ├───Icons
│   │   │   folder.gif
│   │   │   idle.ico
│   │   │   idle_16.gif
│   │   │   idle_16.png
│   │   │   idle_256.png
│   │   │   idle_32.gif
│   │   │   idle_32.png
│   │   │   idle_48.gif
│   │   │   idle_48.png
│   │   │   minusnode.gif
│   │   │   openfolder.gif
│   │   │   plusnode.gif
│   │   │   python.gif
│   │   │   README.txt
│   │   │   tk.gif
│   │   │
│   │   ├───idle_test
│   │   │   │   htest.py
│   │   │   │   mock_idle.py
│   │   │   │   mock_tk.py
│   │   │   │   README.txt
│   │   │   │   template.py
│   │   │   │   test_autocomplete.py
│   │   │   │   test_autocomplete_w.py
│   │   │   │   test_autoexpand.py
│   │   │   │ 

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-07-02 Thread Axel Wegen

Changes by Axel Wegen :


--
nosy: +Axel.Wegen

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



[issue12716] Reorganize os docs for files/dirs/fds

2012-07-02 Thread Axel Wegen

Changes by Axel Wegen :


--
nosy: +Axel.Wegen

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



[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-10 Thread Axel Haustant

New submission from Axel Haustant:

Because of the Python 3.2 configparser renaming/refactoring, string 
interpolation has been enabled into distutils config parsing and so fails to 
read any setup.cfg with percent signs (try to perform string interpolation and 
fails).


To reproduce: create a project with a percent sign anywhere in the setup.cfg 
file and execute python setup.py egg_info.
It will pass on Python 2.x and fails on Python 3.x.

The attached patch suimply disable string interpolation in distutils config 
parsing.

That would be awesome to have this applied on any 3.x version (because project 
using tox to test against different Python versions also fails with the same 
issue Python 3.x and PyPI 3.x)

--
components: Distutils
files: disable-distutils-string-interpolation.patch
keywords: patch
messages: 282865
nosy: Axel Haustant, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: distutils use ConfigParser in Python 3.x and fails to parse setup.cfg 
with percent sign
type: crash
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7
Added file: 
http://bugs.python.org/file45839/disable-distutils-string-interpolation.patch

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



[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Axel Haustant

Axel Haustant added the comment:

You're welcome.

I understand the backward compatibility point. But I think that the current 
state is breaking existing code as it's not documented anywhere and it's a 
side-effect of another change, not something intentionnal.
(this is why I submitted this issue because I'm developing a tool which use the 
setup.cfg file to store data and it is broken in Python 3. I saw a lot of bug 
reports on different tools with the same issue (ex: nosetest configuration)

I cannot use %% for many reason:
- it will not work with Python 2.x (problematic for 2/3 cross compatibility)
- it needs every tools to know that in Python 3, they have to change their 
parser

Right now, I'm supporting configuration into an external file for Python 3.x

Thanks for your response ! I hope that it can be integrated into future 
releases (noted the point on 3.3/3.4).

--

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



[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Axel Haustant

Axel Haustant added the comment:

No it's not. Same problem but on a different part: the two cited issues are 
about the .pypirc file not the setup.cfg.
The parsing does not occurs at the same place and the fix does not works for 
setup.cfg (I tried before submitting this issue).

In this specific case, setuptools calls distutils to parse the file so the fix 
has to be in distutils not setuptools (whereas for .pypirc, this is setuptools 
which is parsing the file)

--

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



[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Axel Haustant

Axel Haustant added the comment:

Sorry, it is effectively a duplicate of the second one.
But I submitted a patch which is not present in the other.
What should I do ? (I'll attach the patch to the other one instead)

--

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



[issue20754] Distribution.parse_config_files uses interpolation since Python 3

2016-12-12 Thread Axel Haustant

Axel Haustant added the comment:

I just attached the patch submitted on issue28935.

The fix is to simply give interpolation=None as ConfigParser parameter (as 
documented in the official Python 3.x ConfigParser documentation)

--
keywords: +patch
nosy: +noirbizarre
Added file: 
http://bugs.python.org/file45859/disable-distutils-string-interpolation.patch

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



[issue26665] pip is not bootstrapped by default

2016-03-29 Thread Axel Luttgens

New submission from Axel Luttgens:

Relevant page:

https://docs.python.org/2/library/ensurepip.html

One may read:

In most cases, end users of Python shouldn’t need to invoke
this module directly (as pip should be bootstrapped by default),
but it may be needed if installing pip was skipped when
installing Python (or when creating a virtual environment) or
after explicitly uninstalling pip.

As far as I correctly read the configure file that comes with the 2.7.11 
tarball, the default is to behave as if --with-ensurepip=no had been passed.

As a result, that sentence fragment:

(as pip should be bootstrapped by default)

may appear somewhat ambiguous for those compiling Python themselves.

Perhaps could this one avoid some head scratching:

(as packagers are expected to have bootstrapped pip)

HTH,
Axel

--
assignee: docs@python
components: Documentation
messages: 262610
nosy: Axel, docs@python
priority: normal
severity: normal
status: open
title: pip is not bootstrapped by default
type: enhancement
versions: Python 2.7

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



[issue26665] pip is not bootstrapped by default on 2.7

2016-03-29 Thread Axel Luttgens

Changes by Axel Luttgens :


--
title: pip is not bootstrapped by default -> pip is not bootstrapped by default 
on 2.7

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



[issue26672] regrtest missing in the module name

2016-03-30 Thread Axel Luttgens

New submission from Axel Luttgens:

Relevant page:

https://docs.python.org/2/library/test.html

One may read (section 25.5.2):

Specifying all as the value for the -u option enables all
possible resources: python -m test -uall.

I guess this should be:

Specifying all as the value for the -u option enables all
possible resources: python -m test.regrtest -uall.

HTH,
Axel

--
assignee: docs@python
components: Documentation
messages: 262661
nosy: Axel, docs@python
priority: normal
severity: normal
status: open
title: regrtest missing in the module name
type: enhancement
versions: Python 2.7

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



[issue3722] print followed by exception eats print with doctest

2008-12-05 Thread Charles-Axel Dein

Charles-Axel Dein <[EMAIL PROTECTED]> added the comment:

This is a bug. This is not a good behavior.

If I would like to temporarily print a variable to see its content, in 
order to debug my code, doctest will eat its output. Thus I will be make 
to use pdb or to use logging, or to get rid of doctest. This will be far 
more complicated.

See attached file.

--
nosy: +charlax
type: feature request -> behavior
Added file: http://bugs.python.org/file12238/proof_of_concept_doctest.py

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3722>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35404] Document how to import _structure in email.message

2018-12-04 Thread Charles-Axel Dein


New submission from Charles-Axel Dein :

The example for `walk()` in `email.message.EmailMessage` makes use of the 
`_structure` function but does not clarify how to import it.

I can make a patch adding a line:

  from email.iterators import _structure

--
assignee: docs@python
components: Documentation
messages: 331018
nosy: charlax, docs@python
priority: normal
severity: normal
status: open
title: Document how to import _structure in email.message
type: enhancement
versions: Python 3.7

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-04-10 Thread Charles-Axel Dein

Charles-Axel Dein added the comment:

Hey - is there anything else I need to do here?

--

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-04-18 Thread Charles-Axel Dein

Charles-Axel Dein added the comment:

New version of the patch.

--
Added file: http://bugs.python.org/file34969/add_csvdict_examples.patch

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-06-26 Thread Charles-Axel Dein

Charles-Axel Dein added the comment:

Updated patch following review.

--
Added file: http://bugs.python.org/file35790/add_csvdict_examples.patch

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-07-28 Thread Charles-Axel Dein

Charles-Axel Dein added the comment:

Anything else I need to do?

--

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



[issue20310] Recommend using pprint for deterministic doctest

2014-01-19 Thread Charles-Axel Dein

New submission from Charles-Axel Dein:

I just thought that using pprint.pprint was an elegant solution to the 
non-deterministic order of repr(dict) in doctest. See for instance 
http://bugs.python.org/issue3332

Contrary to sorted(foo().items()):

- It provides a nice output that is exactly like a dict.
- It supports any number of nested dicts.
- It can be used in other cases as well to make doctests elegant.

--
assignee: docs@python
components: Documentation
files: pprint_doctest.patch
keywords: patch
messages: 208526
nosy: charlax, docs@python
priority: normal
severity: normal
status: open
title: Recommend using pprint for deterministic doctest
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file33560/pprint_doctest.patch

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-01-22 Thread Charles-Axel Dein

New submission from Charles-Axel Dein:

IMO csv.DictWriter and csv.DictReader provides a nicer interface for complex 
CSV file. I see some people reinventing the DictReader and DictWriter pretty 
frequently, because when they rapidly scan the documentation all examples are 
about csv.reader and csv.writer.

This patch adds examples.

--
assignee: docs@python
components: Documentation
files: add_csvdict_examples.patch
keywords: patch
messages: 208835
nosy: charlax, docs@python
priority: normal
severity: normal
status: open
title: Add doc examples for DictReader and DictWriter
Added file: http://bugs.python.org/file33629/add_csvdict_examples.patch

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-02-16 Thread Charles-Axel Dein

Charles-Axel Dein added the comment:

Updated patch following review.

--
Added file: http://bugs.python.org/file34110/add_csvdict_examples.patch

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-03-04 Thread Charles-Axel Dein

Charles-Axel Dein added the comment:

Any update?

--

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



[issue20351] Add doc examples for DictReader and DictWriter

2014-11-02 Thread Charles-Axel Dein

Charles-Axel Dein added the comment:

Sounds good. Do you know when this will get merged?

--

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



[issue23586] Add classproperty to the builtin functions

2015-03-04 Thread Charles-Axel Dein

New submission from Charles-Axel Dein:

Similar to http://bugs.python.org/issue20659

Having a behavior that is similar to a property on a class seems intuitive 
enough. Is there any specific reason why it does not exist?

--
messages: 237227
nosy: charlax
priority: normal
severity: normal
status: open
title: Add classproperty to the builtin functions
type: enhancement

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