Re: [RELEASED] Python 3.4.8 and Python 3.5.5 are now available

2018-02-10 Thread Serhiy Storchaka

05.02.18 02:35, Larry Hastings пише:
On behalf of the Python development community, I'm happy to announce the 
availability of Python 3.4.8 and Python 3.5.5.


Both Python 3.4 and 3.5 are in "security fixes only" mode.  Both 
versions only accept security fixes, not conventional bug fixes, and 
both releases are source-only.



You can find Python 3.4.8 here:

    https://www.python.org/downloads/release/python-348/


And you can find Python 3.5.5 here:

    https://www.python.org/downloads/release/python-355/


Online documentation for 3.5 is not updated yet.


https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-5

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


Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-10 Thread Gene Heskett
On Friday 09 February 2018 23:44:54 Steven D'Aprano wrote:

> On Fri, 09 Feb 2018 17:30:57 -0800, codewizard wrote:
> > Regardless of what the policies are and how well they're enforced,
> > if the mailing list is cut off from GG, I will stop reading it.
>
> There is *absolutely nothing* we can do about that. Google doesn't
> listen to us, and the suggestion that we can influence them because
> Guido van Rossum used to work for them many years ago is naive.
>
> We cannot influence Google's decision about the newsgroup; we cannot
> convince your boss to allow access to the newsgroup at work; and
> apparently we can't convince you that just because you will no longer
> be able to access it from work, doesn't mean you have to stop
> accessing it from home. Oh well, such is life.
>
> (Ironically, the vast bulk of spam on the newsgroup comes from Google
> Groups itself, so if this does happen, it will probably be a nett win
> for the community, even if it does negatively impact some
> individuals.)
>
> > Probably
> > not a big loss to anyone else, but you might wonder how many others
> > are in the same situation...
>
> There's nothing we can do about it, so there is no point wasting time
> wondering.
>
The list I see here is much much cleaner, as anything from google groups 
has been diverted to /dev/null for a year or more. We don't need the 
blather that comes out of googlegroups. If google is unhappy and cuts it 
off, methinks they should run a broom through their own real estate 
first.
>
> --
> Steve



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
-- 
https://mail.python.org/mailman/listinfo/python-list


Jython info

2018-02-10 Thread Prahallad Achar
Hello team,
Is it right to ask Jython related query here? If so kindly check my q here
otherwise sorry for posting here...

Can we access swing objects/events of any applications via Jython?

My present code
Downloaded Jython 2.5

Import sys
Sys.path.append (my java. Jar)

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


Re: $srcdir and $datadir

2018-02-10 Thread Victor Porton
First, I've already solved my problem using setuptools and 
pkg_resources.resource_stream() and an environment variable to specify the 
path to data files.

Ben Finney wrote:
> Victor Porton  writes:
> 
>> In GNU software written in C $srcdir and $datadir are accessible to C
>> code through generated config.h file.
> 
> For what purpose?

I want my program to work both when it is installed (using $datadir) and 
when it is not yet installed (using $srcdir).

> Given that the source may not be at that location after the program is
> compiled – especially, after the program is moved to a different machine
> – what meaning does ‘$srcdir’ have when the program is running?

In GNU system there is support of storing a value (such as source directory) 
into the program itself. If it is moved to a different machine, $srcdir 
remains the same.

> What “data directory” is specified by ‘$datadir’, and why is it assumed
> there is exactly one?

It may be exactly one, but contain subdirectories.

>> What is the right way to config directories for a Python program?
> 
> We'll need to know what those concepts mean, to be able to discuss the
> equivalent (if any) in a Python environment.

-- 
Victor Porton - http://portonvictor.org
-- 
https://mail.python.org/mailman/listinfo/python-list


Spam levels.

2018-02-10 Thread C W Rose via Python-list

I've been reading a limited range of Usenet groups since the late 1980s,
and until the recent problems in comp.lang.python had never bothered with
any sort of filtering; it's easier just to ignore people.  However, the
sheer volume of spam in comp.lang.python finally defeated me, so I set up
a filter in my leafnode NNTP server, which pulls from eternal-september
and gmane (read-only).  The results for the last few weeks are below:

  Jan 20 15:34:39 comp.lang.python: 50 articles fetched, 71 killed
  Jan 21 14:21:30 comp.lang.python: 25 articles fetched, 18 killed
  Jan 26 13:04:40 comp.lang.python: 85 articles fetched, 276 killed
  Jan 28 22:58:42 comp.lang.python: 83 articles fetched, 184 killed
  Jan 29 16:07:11 comp.lang.python: 41 articles fetched, 52 killed
  Jan 30 16:57:03 comp.lang.python: 57 articles fetched, 56 killed
  Jan 31 16:52:01 comp.lang.python: 39 articles fetched, 87 killed
  Feb 1 16:02:49 comp.lang.python: 39 articles fetched, 73 killed
  Feb 2 14:39:46 comp.lang.python: 43 articles fetched, 57 killed
  Feb 3 18:17:55 comp.lang.python: 19 articles fetched, 108 killed
  Feb 4 15:28:03 comp.lang.python: 36 articles fetched, 122 killed
  Feb 5 15:26:08 comp.lang.python: 45 articles fetched, 79 killed
  Feb 6 16:29:40 comp.lang.python: 68 articles fetched, 93 killed
  Feb 7 16:43:26 comp.lang.python: 32 articles fetched, 118 killed
  Feb 8 16:01:14 comp.lang.python: 41 articles fetched, 100 killed
  Feb 9 17:06:09 comp.lang.python: 47 articles fetched, 201 killed

giving the totals:  
  Kept: 750 articles
  Killed: 1695 articles

Until the last few days the spammers were using a fixed format,
but recently I've had to play whack-a-mole with filtering, so the
Killed total is probably underestimated by ten or twenty posts.

No other groups (in the limited set which I read) have the problem,
and I don't understand why the spammers neither spam a range of
groups, nor change their adddresses more frequently.  It may be
that destroying comp.lang.python is their actual objective.

Either way, a depressing state of affairs.

Will

-- 
"As democracy is perfected, the office of the president represents, more and
 more closely, the inner soul of the people.  On some great and glorious day,
 the plain folks of the land will reach their heart's desire at last, and the
 White House will be occupied by a downright fool and a complete narcissistic
 moron." -- H. L. Mencken.

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


Re: Jython info

2018-02-10 Thread Dan Stromberg
On Sat, Feb 10, 2018 at 6:43 AM, Prahallad Achar  wrote:
> Hello team,
> Is it right to ask Jython related query here? If so kindly check my q here
> otherwise sorry for posting here...

I believe it can be done:
http://lmgtfy.com/?q=jython+swing

By the way, Jython 2.5 is pretty old.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Jython info

2018-02-10 Thread Prahallad Achar
Thanks for the kind response.

Yes. I shall upgrade the same. am trying to access GUI action elements from
Jython to automate the Swing desktop application

On Sat, Feb 10, 2018 at 9:50 PM, Dan Stromberg  wrote:

> On Sat, Feb 10, 2018 at 6:43 AM, Prahallad Achar 
> wrote:
> > Hello team,
> > Is it right to ask Jython related query here? If so kindly check my q
> here
> > otherwise sorry for posting here...
>
> I believe it can be done:
> http://lmgtfy.com/?q=jython+swing
>
> By the way, Jython 2.5 is pretty old.
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-10 Thread mm0fmf

On 09/02/2018 21:05, [email protected] wrote:

On Friday, February 9, 2018 at 2:48:17 PM UTC-5, Chris Green wrote:

[email protected] wrote:

On Saturday, February 3, 2018 at 7:15:16 PM UTC-5, pyotr filipivich wrote:

[snip]
 Those of us who do not use google-groups may not notice the loss
of the google groupies.


I use GG to read comp.lang.python because of the following combination
of factors. I would definitely be happier if there was another way to
do this, so that I wouldn't have to wade through lots of spam.

   - I read it from both home and work.

   - I can't install any additional software at work.

   - There is no newsgroup reader software available at work.

   - GG tracks read/unread status of every post. This is shared
 between work and home through my Google account.

   - When I (very rarely) post from work, I can't
 do it by email, since outgoing email is blocked.


Alternative approach, what I do:-

 Run a text mode (but very capable and mouse aware) newsreader on
 my home system, read news locally using that.

 Use ssh (is that available at worK?) to connect from work to home
 and run the same newsreader in the same environment. If you can't
 even ssh from work then you can always use an 'ssh from the web'
 app from your wenb browser.

The newsreader I use is tin by the way.

--
Chris Green
·


ssh would be even a bigger problem here. As I mentioned, I can't even email
from work to the outside! All web sites that provide remote connectivity
tools are blocked.

Regards,
Igor.

If they take such restrictive practices then maybe should consider 
*just* doing your job when at work and leave the browsing to your own time?


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


Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-10 Thread Chris Green
Michael F. Stemper  wrote:
> On 2018-02-09 13:37, Chris Green wrote:
> 
> > Alternative approach, what I do:-
> > 
> >  Run a text mode (but very capable and mouse aware) newsreader on
> >  my home system, read news locally using that.
> > 
> >  Use ssh (is that available at worK?) to connect from work to home
> 
> Your ISP provides that capability? I'm surprised. I'm with Charter and
> the only external IP address is for the cable modem (I think).
> "icanhazip" shows the same one, no matter which computer I use.
> 
You use the same external IP address, just use the right port number
(which you set up your router to allow in).

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: $srcdir and $datadir

2018-02-10 Thread Ben Finney via Python-list
Victor Porton  writes:

> I want my program to work both when it is installed (using $datadir)
> and when it is not yet installed (using $srcdir).

Given your descriptions of both those, I don't see how it can reliably
work; the program will expect directories that may not exist. Why
hard-code them at all, then?

So, I am going to have to ignore the “$srcdir and $datadir” specifics,
and address the stated intent.

The current convention in Python build systems is the Setuptools
library. You will be familiar with the ‘setup.py’ top-level script for
co-ordinating Setuptools actions on a code base.

The installation tool ‘pip’ works with Setuptools data. Use it to
install your distribution from PyPI for production use; use it to
install your code base from local directories for testing; use it with
special options to “install” your code in a development mode while you
work on it.

https://pip.pypa.io/en/stable/reference/pip_install/#usage>
https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs>

-- 
 \“Always code as if the guy who ends up maintaining your code |
  `\ will be a violent psychopath who knows where you live.” —John |
_o__) F. Woods |
Ben Finney

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


Re: [RELEASED] Python 3.4.8 and Python 3.5.5 are now available

2018-02-10 Thread Larry Hastings


Actually, it was updated on the server, but somehow the old version was 
sticking around in the CDN cache.  I "purged" it and it's fine now.  
Weird that it would linger this long!


Cheers,


//arry/

On 02/10/2018 03:20 AM, Serhiy Storchaka wrote:

05.02.18 02:35, Larry Hastings пише:
On behalf of the Python development community, I'm happy to announce 
the availability of Python 3.4.8 and Python 3.5.5.


Both Python 3.4 and 3.5 are in "security fixes only" mode.  Both 
versions only accept security fixes, not conventional bug fixes, and 
both releases are source-only.



You can find Python 3.4.8 here:

    https://www.python.org/downloads/release/python-348/


And you can find Python 3.5.5 here:

    https://www.python.org/downloads/release/python-355/


Online documentation for 3.5 is not updated yet.


https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-5



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


Re: [RELEASED] Python 3.4.8 and Python 3.5.5 are now available

2018-02-10 Thread Larry Hastings


Actually, it was updated on the server, but somehow the old version was 
sticking around in the CDN cache.  I "purged" it and it's fine now.  
Weird that it would linger this long!


Cheers,


//arry/

On 02/10/2018 03:20 AM, Serhiy Storchaka wrote:

05.02.18 02:35, Larry Hastings пише:
On behalf of the Python development community, I'm happy to announce 
the availability of Python 3.4.8 and Python 3.5.5.


Both Python 3.4 and 3.5 are in "security fixes only" mode.  Both 
versions only accept security fixes, not conventional bug fixes, and 
both releases are source-only.



You can find Python 3.4.8 here:

    https://www.python.org/downloads/release/python-348/


And you can find Python 3.5.5 here:

    https://www.python.org/downloads/release/python-355/


Online documentation for 3.5 is not updated yet.


https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-5



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