Re: fexit: file transfer of ANY size

2015-11-27 Thread paul.hermeneutic
> And what is F*EX?
> ==> Frams' Fast File EXchange, a service for transfering files of ANY size
> from any user A to any user B in the internet.
> For details see: http://fex.rus.uni-stuttgart.de/
>
> I am now looking for beta testers. If you are interested, send me a mail.

Can you tell us a git or svn repository from which the kit is available?
Or, is this a proprietary product?
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Windows 10 and PYODBC

2015-12-15 Thread paul.hermeneutic
On Dec 13, 2015 7:20 AM, "William Abdo"  wrote:
>
> Problem Resolved.
> I have fixed the Oracle connection issue under Windows 10 with cx_Oracle .
> PYODBC was only failing on the Oracle connection and worked fine on MS
SQL under Windows 10.

Please tell us what the fix is. Thanks.
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Windows 10 and PYODBC

2015-12-15 Thread paul.hermeneutic
On Dec 15, 2015 9:22 AM, "William Abdo"  wrote:
>
> So I started a search for an Oracle based ODBC client since PYODBC is
still working with the Microsoft DB’s, I tried cx_Oracle and it worked
perfectly after I managed to get the parameters correct on the call,

It sounds like PYODBC cannot connect to Oracle on Windows 10. Is that
correct?
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Windows 10 and PYODBC

2015-12-15 Thread paul.hermeneutic
On Dec 15, 2015 10:34 AM, "William Abdo"  wrote:
>
> Yes Paul Hermeneutic , that is correct.
>
> I tried everything I could  however,  I was unable to make PYODBC  talk
to Oracle under Windows 10.

It would be of help to everyone if you would file a bug report on the issue
tracker. http://bugs.python.org/
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Windows 10 and PYODBC

2015-12-15 Thread paul.hermeneutic
On Dec 15, 2015 12:00 PM, "William Abdo"  wrote:
>
> As you wish,
>
> [issue577] PYODBC will not talk to Oracle under Windows 10.

Where is this issue filed? I do not see it on http://bugs.python.org/
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Windows 10 and PYODBC

2015-12-16 Thread paul.hermeneutic
On Dec 15, 2015 1:32 PM, "William Abdo"  wrote:
>
> issue 25875 created
> I put it in the wrong area the first time.
> First time bug tracker user errors.

My apologies, William. I thought bugs.python.org would be the right place
to put it. I was wrong.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re:

2016-01-09 Thread paul.hermeneutic
On Jan 9, 2016 7:56 AM, "tommy roberts"  wrote:
>
> It will not allow my to run python 3.5.1

Python 3.4 is the last version that will run on Windows XP.

If this is not your problem, please provide more information.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Stop writing Python 4 incompatible code

2016-01-14 Thread paul.hermeneutic
I am confident that in a few years there will be sufficient new
developments in language design that some degree of backward compatibility
would be worth dropping in order to provide greater capabilities. If it
needs to fork and become another language, that's OK.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: "x == None" vs "x is None"

2016-01-17 Thread paul.hermeneutic
I prefer (x is None) and (x is not None).

This matches the SQL concept of NULL.

(X = NULL) is not valid since NULL is not a value and cannot be compared
with anything.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: psss...I want to move from Perl to Python

2016-02-02 Thread paul.hermeneutic
On Jan 29, 2016 6:51 AM, "Dennis Lee Bieber"  wrote:
>
>
http://www.barnesandnoble.com/w/perl-to-python-migration-martin-c-brown/1004847881?ean=9780201734881

Given that this was published in 2001, surely it is time for a second
edition.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Packaging and deployment of standalone Python applications?

2015-09-15 Thread paul.hermeneutic
This might be helpful.

https://docs.python.org/3/distributing/index.html

See also

https://docs.python.org/3/library/venv.html?highlight=venv#module-venv
Folks;

coming from a server-sided Java background, I'm recently exploring
frameworks such as cherrypy or webpy for building RESTful services, which
is quite a breeze and a pretty pleasant experience; however one thing so
far bugs me: Using Java tooling and libraries such as DropWizard, it is
pretty straightforward to build an "all-inclusive" application containing
(a) all code of my own, (b) all required dependencies, (c) all other
resources and, if required, even (d) a Java virtual machine in one large
.zip file which can easily be copied to a clean Linux VM, unzipped and
started there.

Are there ways of doing so using Python, too? I'd like to set up a project
structure / working environment that includes all Python 3rd party
libraries, my own code and maybe even a "standard" Python runtime for 64bit
Linux systems (to not depend too much on what version a certain Linux
distribution actually ships) and focus on doing deployment to various
machines at best by simply copying these packages around.

Any pointers, ideas, inspirations on that greatly appreciated - even in
total different ways if what I am about to do is completely off anyone
would do it in a Python environment. ;)

TIA and all the best,
Kristian
--
https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: broken install?

2015-09-16 Thread paul.hermeneutic
The installer should detect that it is being run on an unsupported system
and do something helpful.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Idiosyncratic python

2015-09-24 Thread paul.hermeneutic
> A lot of our in base weird python comes from heavily C-wired people:
>
> The classic
> for i in range(len(alist)):
>   print alist[i]
>
> with its twin brother
>
> i=0
> while i < len(alist):
>   print alist[i]
>   i += 1
>
> And the even more annoying
>
> result = Result()
> getResult(result)
>
> JM

Please follow up with good ways to write these. I hear that creating one
really good way is a Python maxim.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python, convert an integer into an index?

2015-09-24 Thread paul.hermeneutic
>> I'm suprised. Why not just:
>>
>> list(str(results))
>>
>> In other words, is there something else the list constructor should do
>> with a string other than convert it to a list?
>>
> The OP wanted the result to be a list of ints, not a list of strings.

[int(x) for x in list(str(results))]
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python, convert an integer into an index?

2015-09-24 Thread paul.hermeneutic
Good idea.

>>> [int(x) for x in str(results)]
[1, 2, 3]
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: reg multiple login python

2015-10-01 Thread paul.hermeneutic
On Oct 1, 2015 1:06 AM,  wrote:
>
> Hi All,
>
> Is there anyway i can login to remote servers at once and do the
activity, i can do one by one using for loop..
>
If you want to start them all at the same time, look into subprocess and
popen.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: The Nikola project is deprecating Python 2.7 (+2.x/3.x user survey results)

2015-10-01 Thread paul.hermeneutic
Python 3 has venv in the kit. Is there a reason users should get the
virtualenv add-on?
On Oct 1, 2015 10:28 AM, "Chris Warrick"  wrote:

> The Nikola developers decided to deprecate Python 2.7 support.
> Starting with v7.7.2, Nikola will display a warning if Python 2.7 is
> used (but it will still be fully supported). In early 2016, Nikola
> v8.0.0 will come out, and that release will not support Python 2.7
> officially.
>
> The decision was made on the basis of a user survey, with 138
> participants. The vast majority of them claimed that they either use
> Python 3 already, or can switch really easily. The main reason for the
> switch was the fact that supporting both requires a lot of extra
> effort, especially because Python 2.7’s Unicode support is abysmal.
>
> Full results:
> https://getnikola.com/blog/env-survey-results-and-the-future-of-python-27.html
>
> What is Nikola?
> ===
>
> Nikola is a static site and blog generator, written in Python.
> It can use Mako and Jinja2 templates, and input in many popular markup
> formats, such as reStructuredText and Markdown — and can even turn
> Jupyter (IPython) Notebooks into blog posts! It also supports image
> galleries, and is multilingual. Nikola is flexible, and page builds
> are extremely fast, courtesy of doit (which is rebuilding only what
> has been changed).
>
> Find out more at the website: https://getnikola.com/
>
> --
> Chris Warrick 
> PGP: 5EAAEA16
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread paul.hermeneutic
On Oct 2, 2015 12:31 PM, "Kenneth L"  wrote:

> I'm not sure about the plugin route. I'm not looking to build a plug,
lol. Just a finger to point me where to go/start.

Writing a plug-in for an existing open source project would be a good
starting point to see how others have approached graphics applications. You
probably have something good to contribute to the community.

You might start by searching pypi.python.org for "graphics" to see if
something there  catches your interest.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Installation problem

2015-10-08 Thread paul.hermeneutic
On Oct 8, 2015 7:31 AM, "MICHAEL"  wrote:
>
> Hello,
>
> Please forgive a new user's ignorance.
>
> I am trying to install Python 3.5.0 on my laptop (Windows 10). The
default installation directory is shown as c:\Users\(my user
name)\AppData\Local\Programs\Python\Python35-32. However, if I select
Custom Install then the default installation directory is c:\Program
Files(x86)\Python3.5.
>

I would like to see Python in use as much as anyone. However, I am not sure
we are doing users or ourselves much of a favor encouraging pieces of the
language be distributed in so many kits.

I do not know, but it does not seem that Java has much of this problem.
Everyone seems to know that Java should be installed on the system. There
is a clear way to have multiple versions of Java on one system.

There would be benefits in having a well structured way to do it. I am not
suggesting that other ways should be prohibited.

This approach would fit well with the Python maxim to pick one really good
way to do it.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: request

2015-10-13 Thread paul.hermeneutic
On Oct 13, 2015 1:16 PM, "Uday Pethakamsetty" 
wrote:

> The problem is that when I installed python 3.5, all the pip installs are
directing to python 3.5, instead of my native python 2.7.
>

Probably, this is because the Python 3 directories appears first in the
PATH variable.

Python 3 has venv. I always use venv and never put Python in the PATH
variable.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Execute Python Scripts

2015-10-14 Thread paul.hermeneutic
> Where do I find the "command line" ?

Welcome to Python.

Starting a command shell depends on which operating system you are running.

If you are on Microsoft Windows, choose the Start button, then type "cmd"
into the edit control, then press Enter.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-14 Thread paul.hermeneutic
> Where can I find that folder? Or can I just ignore it for now (and get
the documentation elsewhere)?

If the install was done for "all users" on the machine, then the Python
installation directory will be under " %SystemRoot%\Program Files\" for
64-bit or "%SystemRoot%\Program Files (x86)\" for 32-bit Python.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python 2 vs Python 3 for teaching

2015-11-01 Thread paul.hermeneutic
On Nov 1, 2015 2:45 AM, "Chris Angelico"  wrote:
>
> I'm proud to say that a Python tutoring company has just converted its
> course over from teaching Python 2.7 to teaching 3.x. For the
> naysayers out there, it actually wasn't much of a transition;

This would make an excellent opportunity to develop a curriculum to teach
students how to maintain a 2.x and 3.x code base using 2to3.

2.x is not going away as fast as some would like.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: new to python, help please !!

2015-11-12 Thread paul.hermeneutic
Would some form of subprocess.Popen() on cmp or fc /b be easier?
On Nov 12, 2015 7:13 AM, "Tim Chase"  wrote:

> On 2015-11-12 08:21, Marko Rauhamaa wrote:
> > And if you really wanted to compare two files that are known to
> > contain MD5 checksums, the simplest way is:
> >
> >with open('f1.md5') as f1, open('f2.md5') as f2:
> >if f1.read() == f2.read():
> >...
> >else:
> >...
>
> Though that suffers if the files are large.  Might try
>
>   CHUNK_SIZE = 4 * 1024 # read 4k chunks
>   # chunk_offset = 0
>   with open('f1.md5') as f1, open('f2.md5') as f2:
> while True:
>   c1 = f1.read(CHUNK_SIZE)
>   c2 = f2.read(CHUNK_SIZE)
>   if c1 or c2:
> # chunk_offset += 1
> if c1 != c2:
>   not_the_same(c1, c2)
>   # not_the_same(chunk_offset * CHUNK_SIZE, c1, c2)
>   break
>   else: # EOF
> the_same()
> break
>
> which should perform better if the files are huge
>
> -tkc
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What meaning is of '#!python'?

2015-11-15 Thread paul.hermeneutic
The installer of some applications will replace the shebang to refer to a
specific version of Python. By doing so, it avoids problems when someone
upgrades the default Python version in the PATH.
On Nov 14, 2015 11:00 PM, "eryksun"  wrote:

> On Sat, Nov 14, 2015 at 8:26 PM, Zachary Ware
>  wrote:
> >
> > "#!python" is a valid shebang for the Python Launcher for Windows.
> > It's also a not-too-terrible placeholder for a Unix shebang meaning
> > "whichever Python you want it to be".  The better choice for use with
> > both platforms would be "#!/usr/bin/env python", though.
>
> The "/usr/bin/env python" virtual command searches the directories in
> PATH, trying each file extension from PATHEXT such as "python.COM",
> "python.EXE", and so on. You can also search for other programs such
> as "pypy". Note that qualifying "python" (but not other names) as
> "python2" or "python3.5" makes the launcher use the registry instead
> of searching PATH.
>
> "#!/usr/bin/python" may be better in some cases. This defaults to the
> latest installed version of 2.x (or 3.x if no 2.x is installed) that's
> configured in the Windows registry. Or specify "python2" or "python3"
> to use the latest 2.x or 3.x. These commands can be configured to use
> a particular major[.minor[-32]] version via the environment variables
> PY_PYTHON, PY_PYTHON2, and PY_PYTHON3. Or you can configure them
> instead by setting the "python", "python2" and "python3" keys in the
> [defaults] section of the configuration file "%LOCALAPPDATA%\py.ini".
> Note that the environment variable overrides the corresponding py.ini
> key.
>
> When portability isn't a concern you can use a Windows path in the
> shebang such as "#!C:\pypy40\pypy.exe".
>
> https://docs.python.org/3/using/windows.html#shebang-lines
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list