From: Rocky Bernstein Date: 2012-08-07T22:48:55+09:00 Subject: [ruby-core:47054] Re: (Half-baked DRAFT) new `require' framework --e89a8ff1c38839ae2004c6ad4102 Content-Type: text/plain; charset=ISO-8859-1 If one is considering importing archive files like zip, tar, jar, or gem, I suggest that some thought also be given on how to report this extended location beyond "file and line" to include the location of the archive. For example inside a Ruby backtrace. On Mon, Aug 6, 2012 at 10:45 PM, SASADA Koichi wrote: > (2012/07/31 21:29), SASADA Koichi wrote: > > > > === Python: PEP-273, PEP-302 > > > > Python can import file from Java file (described in PEP-273). > > Python extends PEP-273 to import any format file by PEP-302. > > This proposal (Proposal1) is based on PEP-302. > > > > However, PEP-302 can only support to import `.py' and `.pyc' files, not > > other file format. > > Thanks Python hackers. They give us the nice comments on it: > > > http://programmers.stackexchange.com/questions/154247/experience-of-pythons-pep-302-new-import-hooks > > -- > // SASADA Koichi at atdot dot net > > --e89a8ff1c38839ae2004c6ad4102 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If one is considering importing archive files like zip, tar, jar, or gem, I= suggest that some thought also be given on how to report this extended loc= ation beyond "file and line" to include the location of the archi= ve. For example inside a Ruby backtrace.

On Mon, Aug 6, 2012 at 10:45 PM, SASADA Koic= hi <ko1@atdot.net> wrote:
(2012/07/31 21:29), SASADA Koichi wrote:
>
> =3D=3D=3D Python: PEP-273, PEP-302
>
> Python can import file from Java file (described in PEP-273).
> Python extends PEP-273 to import any format file by PEP-302.
> This proposal (Proposal1) is based on PEP-302.
>
> However, PEP-302 can only support to import `.py' and `.pyc' f= iles, not
> other file format.

Thanks Python hackers. =A0They give us the nice comments on it:

http://programmers.= stackexchange.com/questions/154247/experience-of-pythons-pep-302-new-import= -hooks

--
// SASADA Koichi at atdot dot net


--e89a8ff1c38839ae2004c6ad4102--