---
name: "pt2to3"
section: "1"
platform: "linux"
package: "python3-tables"
version: "3.10.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pt2to3"
---

# pt2to3(1)

PyTables 2.x -\> 3.x API transition tool.

## NAME

pt2to3 - PyTables 2.x -\> 3.x API transition tool.

## SYNOPSIS

**pt2to3** \[ OPTIONS \] filename\

## DESCRIPTION

This tool displays to standard out, so it is common to pipe this to another file: $ pt2to3 oldfile.py \> newfile.py.

## OPTIONS

A summary of options is included below.

- **-r, --reverse**

  Reverts changes, going from 3.x -\> 2.x.

- **-p, --no-ignore-previous**

  Ignores previous\_api() calls.

- **-o OUTPUT**

  Output file to write to..

- **-i, --inplace**

  Overwrites the file in-place.

- **-h**

  Print help on usage.

## SEE ALSO

[**ptrepack**(1)](/ptrepack/1.md),[**ptdump**(1)](/ptdump/1.md).\
 These utilities are documented fully by *PyTables user's manual*.

## AUTHOR

This manual page was written by Antonio Valentino \<antonio.valentino@tiscali.it\>.
