[issue28326] multiprocessing.Process depends on sys.stdout being open

2017-05-02 Thread Tiago Antao

Changes by Tiago Antao :


--
pull_requests: +1515

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



[issue28326] multiprocessing.Process depends on sys.stdout being open

2017-05-02 Thread Tiago Antao

Changes by Tiago Antao :


--
versions: +Python 3.6, Python 3.7

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



[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao

New submission from Tiago Antao :

2to3 -d sometimes crashes.

The problem seems to be in refactor_doctest. The problematic line is:
if self.log.isEnabledFor(logging.DEBUG):
self.log does not exist. The error, as expected:
  File "/usr/lib/python3.1/lib2to3/refactor.py", line 516, in refactor_doctest
if self.log.isEnabledFor(logging.DEBUG):
AttributeError: 'StdoutRefactoringTool' object has no attribute 'log'

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 109911
nosy: tiagoantao
priority: normal
severity: normal
status: open
title: 2to3 crashes with some doctests
versions: Python 3.1

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



[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao

Changes by Tiago Antao :


--
type:  -> crash

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



[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao

Tiago Antao  added the comment:

Benjamin,

Thanks for the fast answer.
I attach the problematic file.
This file is from Biopython. We are trying to have a Python 3 version of it.

We applied 2to3 (no -d) first (via distutils on setup.py build) and I was 
applying 2to3 -d manually after it.

--
Added file: http://bugs.python.org/file17933/DocSQL.py

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



[issue9217] 2to3 crashes with some doctests

2010-07-10 Thread Tiago Antao

Tiago Antao  added the comment:

BTW, this happens in 2.6 also

--
versions: +Python 2.6

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



[issue9221] 2to3 fails to parse a for construct

2010-07-10 Thread Tiago Antao

New submission from Tiago Antao :

2to3 crashes with a apparently simple for.
An example is presented (the first line is actually enough)

>>> for clade in tree.find_clades(branch_length=True, order='level'):
>>> if (clade.branch_length < .5 and
>>> not clade.is_terminal() and
>>> clade is not self.root):
>>> tree.collapse(clade)

The stack is shown below. It almost seems a problem with newline conversion at 
the end?

RefactoringTool: Can't parse docstring in xx2 line 1: ParseError: bad input: 
type=0, value='', context=('', (2, 0))
RefactoringTool: Can't parse docstring in xx2 line 2: ParseError: bad input: 
type=5, value='', context=('\n', (2, 0))
RefactoringTool: Can't parse docstring in xx2 line 3: ParseError: bad input: 
type=5, value='', context=('\n\n', (3, 0))
RefactoringTool: Can't parse docstring in xx2 line 4: ParseError: bad input: 
type=5, value='', context=('\n\n\n', (4, 0))
RefactoringTool: Can't parse docstring in xx2 line 5: ParseError: bad input: 
type=5, value='', context=('\n\n\n\n', (5, 0))
RefactoringTool: No files need to be modified.

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 109929
nosy: tiagoantao
priority: normal
severity: normal
status: open
title: 2to3 fails to parse a for construct
type: behavior
versions: Python 3.1

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



[issue9217] 2to3 crashes with some doctests

2010-07-11 Thread Tiago Antao

Tiago Antao  added the comment:

A few more problematic examples (hope it helps)
>>> my_mseq = MutableSeq("MKQHKAMIVALIVICITAVVAAL", \
 IUPAC.protein)

Note the line continuation
>>> rec.letter_annotations["secondary_structure"] = \
(The same pattern)

Another (different)
"""Returns a simple text representation of the codon table

e.g.
>>> import Bio.Data.CodonTable
>>> print Bio.Data.CodonTable.standard_dna_table
>>> print Bio.Data.CodonTable.generic_by_id[1]"""

And (the original)
>>> class CreatePeople(DocSQL.Create):
... \"""
... CREATE TEMPORARY TABLE people
... (id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
... last_name TINYTEXT,
... first_name TINYTEXT)
... \"""
...

Hope it helps

--

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



[issue9217] 2to3 crashes with some doctests

2010-07-11 Thread Tiago Antao

Tiago Antao  added the comment:

Another example
>>> records = (record for record in \
SeqIO.parse("Roche/E3MFGYR02_random_10_reads.sff","sff") \
if record.seq[record.annotations["cli [...]

Note that ... does not apply here (it will fail on python2 doctests)

--

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



[issue9217] 2to3 crashes with some doctests

2010-07-14 Thread Tiago Antao

Tiago Antao  added the comment:

I've re-opened this bug because of the late examples that I've included that 
still crash. I can open a new bug if you prefer with the late examples (just 
tell me and I will open a new bug).

This is somewhat important for us: In order to be able to release a Python3 
version of biopython we need to have 2to3 doctest processing working.

--
status: closed -> open

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



[issue9273] 2to to simultaneously do code AND doctests

2010-07-16 Thread Tiago Antao

New submission from Tiago Antao :

Currently 2to3 has to be called twice in order to do a full code conversion: 
one for the code and another for the doctests.

Would it be possible to do both things simultaneously (on passing a flag)?

It would be nice if distutils.command.build_py.build_py_2to3 would also have 
this functionality (ie a single pass for both code and docutils)

Thanks

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 110457
nosy: tiagoantao
priority: normal
severity: normal
status: open
title: 2to to simultaneously do code AND doctests

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



[issue28326] multiprocessing.Process depends on sys.stdout being open

2016-10-01 Thread Tiago Antao

Tiago Antao added the comment:

I made a small patch for this. This is the first time I submit one, so please 
be careful with this...

--
keywords: +patch
nosy: +tiagoantao
Added file: http://bugs.python.org/file44919/mp.patch

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



[issue28326] multiprocessing.Process depends on sys.stdout being open

2016-10-07 Thread Tiago Antao

Tiago Antao added the comment:

This is the first patch that I am submitting. More than willing to do any 
changes deemed necessary...

--

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