On Wednesday, July 23, 2014 4:43:11 AM UTC-4, Leo jay wrote:
But if you use windows and you happen to use multiprocessing,
please be aware of this bug I encountered several years ago.
https://mail.python.org/pipermail/python-dev/2011-December/115071.html
It looks like this was fixed for 3.2.
On 23/07/2014 06:30, Gary Herron wrote:
On 07/22/2014 09:23 PM, Steven D'Aprano wrote:
A little known feature of Python: you can wrap your Python application in
a zip file and distribute it as a single file.
Really! 20 years of Pythoning, and I'd never seen this! When was this
On Wed, Jul 23, 2014 at 2:23 PM, Steven D'Aprano st...@pearwood.info wrote:
On Linux, you can even hack the zip file to include a shebang line!
steve@runes:~$ cat appl
#!/usr/bin/env python
# This is a Python application stored in a ZIP archive.
steve@runes:~$ cat appl.zip appl
Am 23.07.2014 06:23, schrieb Steven D'Aprano:
A little known feature of Python: you can wrap your Python application in
a zip file and distribute it as a single file. The trick to make it
runnable is to put your main function inside a file called __main__.py
inside the zip file.
Look here:
On Wed, Jul 23, 2014 at 12:23 PM, Steven D'Aprano st...@pearwood.info wrote:
A little known feature of Python: you can wrap your Python application in
a zip file and distribute it as a single file. The trick to make it
runnable is to put your main function inside a file called __main__.py
On 07/23/14 07:23, Steven D'Aprano wrote:
A little known feature of Python: you can wrap your Python application in
a zip file and distribute it as a single file. The trick to make it
runnable is to put your main function inside a file called __main__.py
inside the zip file. Here's a basic
On Wed, 23 Jul 2014 15:23:10 +0300, Burak Arslan wrote:
On 07/23/14 07:23, Steven D'Aprano wrote:
A little known feature of Python: you can wrap your Python application
in a zip file and distribute it as a single file.
[...]
does it support package_data? or more specifically, does
A little known feature of Python: you can wrap your Python application in
a zip file and distribute it as a single file. The trick to make it
runnable is to put your main function inside a file called __main__.py
inside the zip file. Here's a basic example:
steve@runes:~$ cat __main__.py
On 07/22/2014 09:23 PM, Steven D'Aprano wrote:
A little known feature of Python: you can wrap your Python application in
a zip file and distribute it as a single file. The trick to make it
runnable is to put your main function inside a file called __main__.py
inside the zip file. Here's a basic
On Tue, Jul 22, 2014 at 9:23 PM, Steven D'Aprano st...@pearwood.info wrote:
A little known feature of Python: you can wrap your Python application in
a zip file and distribute it as a single file. The trick to make it
runnable is to put your main function inside a file called __main__.py
10 matches
Mail list logo