Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-29 Thread Matt Wheeler
On Sun, 26 Nov 2017, 19:46 ,  wrote:

> On Sunday, November 26, 2017 at 1:00:19 AM UTC+1, Terry Reedy wrote:
> I have to fix a bug in my C extension that appears only in UCS-2 python
> (i.e. Windows). I can reboot to Windows and debug there, but it's pain
> in a neck for various reasons.
>

In my opinion if you want to fix a bug that shows up only on Windows, you
need to test it on Windows.

It's likely that you're right and a narrow build of python 2 on Linux will
expose and enable you to debug the same issue, but have you ruled out the
possibility of any other cross-platform incompatibilities playing a part?

> --

--
Matt Wheeler
http://funkyh.at
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-29 Thread Serhiy Storchaka

26.11.17 21:46, wojtek.m...@gmail.com пише:

On Sunday, November 26, 2017 at 1:00:19 AM UTC+1, Terry Reedy wrote:

You must be trying to compile 2.7.  There may be Linux distributions
that compile this way.


You're right, I need 2.7. Any hint which distro has got these settings?


UCS-2 is used by default. Most Linux distributions build Python with 
UCS-4, but you don't need to change the defaults for building a narrow 
Unicode build.


--
https://mail.python.org/mailman/listinfo/python-list


Re: Python loop and web server (bottle) in the same script (Posting On Python-List Prohibited)

2017-11-29 Thread zljubisic
Processing is I/O and CPU bound. :(
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Pros and cons of Python sources?

2017-11-29 Thread Martin Schöön
Den 2017-11-28 skrev Cameron Simpson :
> On 28Nov2017 21:23, Martin Schöön  wrote:
>>The reason I think all is not well is the fact that pip list no only
>>results in a list of packages but at the end of the list (which does
>>not look complete) there is a bunch of error messages.
>
> Please post them. Maybe someone has some insight. (Also post the pip command 
> itself producing the messages.)
>
From pip.log:

/usr/bin/pip run on Tue Nov 28 22:54:09 2017
apptools (4.2.1)
apt-xapian-index (0.47)
arandr (0.1.7.1)
argparse (1.2.1)



pip (1.5.6)
Pivy (0.5.0)
ply (3.4)
Pmw (1.3.2)
pyalsaaudio (0.7)
pyasn1 (0.1.7)
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122,
  in main
status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/list.py",
  line 80, in run self.run_listing(options)
  File "/usr/lib/python2.7/dist-packages/pip/commands/list.py",
   line 142, in run_listing
self.output_package_listing(installed_packages)
  File "/usr/lib/python2.7/dist-packages/pip/commands/list.py", 
line 151, in output_package_listing
if dist_is_editable(dist):
  File "/usr/lib/python2.7/dist-packages/pip/util.py",
  line 367, in dist_is_editable
req = FrozenRequirement.from_dist(dist,[])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py",
 line 299, in from_dist
assert len(specs) == 1 and specs[0][0] == '=='
AssertionError

The line breaks of the error messages are mangled but I hope it makes
sense.

>>Running Python scripts has worked without issues so far.
>
> Fingers crossed.

Indeed.

/Martin
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Has anyone worked on docker with windows

2017-11-29 Thread Irving Duran
I attempted configuring docker on Win, but quit.  This was like six months
ago, I will assume that the install and integration with the VM is smoother
now, but still not native to Win.


Thank You,

Irving Duran

On Wed, Nov 29, 2017 at 1:05 AM, Robert Clove  wrote:

> i was also of the same opinion , but docker is available on windows too
> https://www.docker.com/docker-windows
>
>
> On Wed, Nov 29, 2017 at 12:22 PM, Percival John Hackworth <
> p...@nanoworks.com
> > wrote:
>
> > On 28-Nov-2017, Robert Clove wrote
> > (in article):
> >
> > > Hi,
> > >
> > > what am i trying to achieve is, container of windows with an
> application
> > > like slack on it.
> > > Does window container has an UI?
> > >
> > > Has anyone worked on it, is it feasible?
> >
> > AFAIK, docker is linux/CoreOS only. Ask docker.com this question. AFAIK,
> > the
> > only way to get docker to run on Windows is to run docker-machine with
> > virtual box. That's a coreOS VM.
> >
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> >
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


PyDev 6.2.0 released

2017-11-29 Thread Fabio Zadrozny
PyDev 6.2.0 Release Highlights

   -

   *Interactive Console*
   - It's possible to use word-wrapping in the PyDev interactive console (
  *#PyDev-862*).
   -

   *Code Completion*
   - Checking list unpacking with user specified types.
  - Code completion aware of variable typing from Python 3.6 (
  *#PyDev-866*).
   -

   *Others*
   - Properly terminating child processes of launched python processes on
  Linux with Java 9 (*#PyDev-871*).
  - Comments with 3 dashes properly appear in outline in all cases (
  *#PyDev-868*).
  - Properly hyperlinking pytest output.
  - Accepting *noqa* as a way to skip errors (*#PyDev-814*).
  - If there's a *flake8: noqa* in the first 3 lines of the file, don't
  analyze it (*#PyDev-814*).
  - Fixed issue where a closing peer character was skiped when it was
  actually not a matching closing peer (*#PyDev-869*).
  - Fixed issue where line indentation was not correct on a new line
  with multiple open parenthesis.

What is PyDev?

PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and
IronPython development.

It comes with goodies such as code completion, syntax highlighting, syntax
analysis, code analysis, refactor, debug, interactive console, etc.

Details on PyDev: http://pydev.org
Details on its development: http://pydev.blogspot.com
What is LiClipse?

LiClipse is a PyDev standalone with goodies such as support for Multiple
cursors, theming, TextMate bundles and a number of other languages such as
Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript,
etc.

It's also a commercial counterpart which helps supporting the development
of PyDev.

Details on LiClipse: http://www.liclipse.com/

Cheers,

--
Fabio Zadrozny
--

Software Developer

LiClipse
http://www.liclipse.com

PyDev - Python Development Environment for Eclipse
http://pydev.org
http://pydev.blogspot.com

PyVmMonitor - Python Profiler

http://www.pyvmmonitor.com/​
-- 
https://mail.python.org/mailman/listinfo/python-list


How to upload to Pythonhosted.org

2017-11-29 Thread waylan
I've been hosting documentation for many years on pythonhosted.org. However, I 
can't seem to upload any updates recently. The homepage at 
http://pythonhosted.org states:

> To upload documentation, go to your package edit page 
> (http://pypi.python.org/pypi?%3Aaction=pkg_edit&name=yourpackage), and fill 
> out the form at the bottom of the page.

However, there is no longer a form at the bottom of the edit page for uploading 
documentation. Instead I only see:

> If you would like to DESTROY any existing documentation hosted at 
> http://pythonhosted.org/ProjectName Use this button, There is no undo.
>
> [Destroy Documentation]

I also went to pypi.org and logged in there. But I don't see any options for 
editing my projects or uploading documentation on that site.

So, how do I upload an update to my documentation?

Waylan
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to upload to Pythonhosted.org

2017-11-29 Thread Irmen de Jong
On 11/30/2017 02:06 AM, waylan wrote:
> I've been hosting documentation for many years on pythonhosted.org. However, 
> I can't seem to upload any updates recently. The homepage at 
> http://pythonhosted.org states:
> 
>> To upload documentation, go to your package edit page 
>> (http://pypi.python.org/pypi?%3Aaction=pkg_edit&name=yourpackage), and fill 
>> out the form at the bottom of the page.
> 
> However, there is no longer a form at the bottom of the edit page for 
> uploading documentation. Instead I only see:
> 
>> If you would like to DESTROY any existing documentation hosted at 
>> http://pythonhosted.org/ProjectName Use this button, There is no undo.
>>
>> [Destroy Documentation]
> 
> I also went to pypi.org and logged in there. But I don't see any options for 
> editing my projects or uploading documentation on that site.
> 
> So, how do I upload an update to my documentation?
> 
> Waylan
> 


I ran into the same issue. From what I gathered, Pythonhosted.org is in the 
process of
being dismantled and it hasn't allowed new doc uploads for quite some time now.
I switched to using readthedocs.io instead. That one is faster and has the 
additional
benefit that you can configure it in such a way that you don't have to upload 
docs
yourself anymore; it can rebuild them on the fly when it detects a change in 
your github
repo

Irmen

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to upload to Pythonhosted.org

2017-11-29 Thread Ben Finney
Irmen de Jong  writes:

> On 11/30/2017 02:06 AM, waylan wrote:
> > So, how do I upload an update to my documentation?
>
> I ran into the same issue. From what I gathered, Pythonhosted.org is
> in the process of being dismantled and it hasn't allowed new doc
> uploads for quite some time now. I switched to using readthedocs.io
> instead.

The issue that many are facing is how to update the pages *at the
existing URL* to tell visitors where to go next. Cool URIs don't change
https://www.w3.org/Provider/Style/URI.html> but, when they do, we
are obliged to update the existing pages to point to the new ones.

So, if pythonhosted.org is indeed being dismantled, there should be a
way to update the pages there for informing visitor where they should go
next.

If that's not possible and instead the service is just locked down,
that's IMO a mistake.

-- 
 \“You can't have everything; where would you put it?” —Steven |
  `\Wright |
_o__)  |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Has anyone worked on docker with windows

2017-11-29 Thread Percival John Hackworth
On 28-Nov-2017, Robert Clove wrote
(in article):

> i was also of the same opinion , but docker is available on windows too
> https://www.docker.com/docker-windows
>
> On Wed, Nov 29, 2017 at 12:22 PM, Percival John Hackworth > wrote:
>
> > On 28-Nov-2017, Robert Clove wrote
> > (in article):
> >
> > > Hi,
> > >
> > > what am i trying to achieve is, container of windows with an application
> > > like slack on it.
> > > Does window container has an UI?
> > >
> > > Has anyone worked on it, is it feasible?
> >
> > AFAIK, docker is linux/CoreOS only. Ask docker.com this question. AFAIK,
> > the
> > only way to get docker to run on Windows is to run docker-machine with
> > virtual box. That's a coreOS VM.
> >
> > --
> > https://mail.python.org/mailman/listinfo/python-list

To clarify, I think the OP was asking if they could Windows inside a Docker 
container. Since Docker uses the kernel of the OS it's running on, that would 
mean it would have to run natively on Windows.

Back in January, it didn't run on Windows. Now apparently you can run a 
Windows 10 or Server 2016 environment in a container. I would think, given 
the architecture of Docker, that you can only do this on a Windows machine, 
not a Linux box. So the ability to containerize an application on Linux and 
run it anywhere Docker is installed (even MacOS) only applicable to Linux 
apps.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Has anyone worked on docker with windows

2017-11-29 Thread Percival John Hackworth
On 29-Nov-2017, Irving Duran wrote
(in article):

> I attempted configuring docker on Win, but quit. This was like six months
> ago, I will assume that the install and integration with the VM is smoother
> now, but still not native to Win.
>
> Thank You,
>
> Irving Duran
>
> On Wed, Nov 29, 2017 at 1:05 AM, Robert Clove  wrote:
>
> > i was also of the same opinion , but docker is available on windows too
> > https://www.docker.com/docker-windows
> >
> >
> > On Wed, Nov 29, 2017 at 12:22 PM, Percival John Hackworth<
> > p...@nanoworks.com
> > > wrote:
> >
> > > On 28-Nov-2017, Robert Clove wrote
> > > (in article):
> > >
> > > > Hi,
> > > >
> > > > what am i trying to achieve is, container of windows with an
> > application
> > > > like slack on it.
> > > > Does window container has an UI?
> > > >
> > > > Has anyone worked on it, is it feasible?
> > >
> > > AFAIK, docker is linux/CoreOS only. Ask docker.com this question. AFAIK,
> > > the
> > > only way to get docker to run on Windows is to run docker-machine with
> > > virtual box. That's a coreOS VM.
> > >
> > > --
> > > https://mail.python.org/mailman/listinfo/python-list
> > --
> > https://mail.python.org/mailman/listinfo/python-list

According to the Docker.io web site, Docker on Windows is native, like the 
MacOS version of docker. But you can probably only run Windows containers on 
a windows machine, not a Linux machine. I don't know if you can build a Linux 
container on Windows and have it work on a Linux box. If Docker for Windows 
only works on Windows 10 or Server 2016, that may work. I read that there's a 
linux that runs under Windows 10, so Docker is probably using that.

-- 
https://mail.python.org/mailman/listinfo/python-list