Re: comp.lang.python killfile rule

2017-06-25 Thread Mirage Web Studio
Just felt like posting, wouldn't it be pythonic if it was
if word in [list]:
ignore

Save time and easily maintainable

Cmg

On 23 Jun 2017 02:41, "John Black"  wrote:

All, in case this is useful to anyone, this rule that tells my newsreader
which posts to kill really cleans up the group.  I could not find a way
to key off of anything in the header except keywords because the From
keeps changing and I didn't want to overkill real posts.  I may have to
add a thing or two to this over time, but right now, this seems to be
nailing everything.

John Black

Subject contains "PEDOFILO"
Or
Subject contains "MAI"
Or
Subject contains "SEGRETO"
Or
Subject contains "SETTA"
Or
Subject contains "BAMBINI"
Or
Subject contains "FIGLIO"
Or
Subject contains "PAOLO"
Or
Subject contains "NATALE"
Or
Subject contains "SONO"
Or
Subject contains "GRAZIA"
Or
Subject contains "PORNOSTAR"
Or
Subject contains "PEZZO"
Or
Subject contains "MERDA"
Or
Subject contains "CAZZO"
Or
Subject contains "GALERA"
Or
Subject contains "SICARIO"
Or
Subject contains "ESSERE"
Or
Subject contains "CRIMINALE"
Or
Subject contains "LECCA"
Or
Subject contains "COCAINA"
Or
Subject contains "LESBICA"
Or
Subject contains "NESSUNO"
Or
Subject contains "MAFIOSO"
Or
Subject contains "BERLUSCONI"
Or
Subject contains ""
Or
Subject contains "HARDCORE"
Or
Subject contains "PEDERASTA"
Or
Subject contains "CULO"
Or
Subject contains "NOSTRA"
Or
Subject contains "FOGLIO"
Or
Subject contains "USARE"
Or
Subject contains "FAMIGLIA"
Or
Subject contains "FECE"
Or
Subject contains "CAPO"
Or
Subject contains "SUICIDARE"
Or
Subject contains "OGNI"
Or
Subject contains "CANE"
Or
Subject contains "MERCATO"
Or
Subject contains "VOLTA"
Or
Subject contains "MAFIOSA"
Or
Subject contains "ALMENO"
Or
Subject contains "BASTARDO"
Or
Subject contains "FIGLIA"
Or
Subject contains "BASTARD"
Or
Subject contains "CRIMINAL"
Or
Subject contains "ANNI"
Or
Subject contains "PEDINA"
--
https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: SIP and PyQt5 Installation

2016-12-22 Thread Mirage Web Studio


On December 23, 2016 7:02:03 AM GMT+05:30, churros.stud...@gmail.com wrote:
>Hello, I've been having troubles being able to integrate the PyQt5 GUI
>into my IDEs. I've used various example codes from the web to see if
>the library would import properly but the console sends me back an
>import error saying, "No module named PyQt5". Could someone provide me
>with the steps for not only the installation/configuring of SIP/PyQt
>but also the steps needed to integrate it to the eclipse IDE?
>-- 
>https://mail.python.org/mailman/listinfo/python-list

-- 

If you're on windows and python 3.4 would be sufficient,  then for python 3.4 
you could download windows installer from the pyqt site. Install it after 
installing  python and then you can  Import the libraries as regular libraries. 

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


Re: problem writing excel sheet using python

2016-07-14 Thread Mirage Web Studio


On July 14, 2016 2:59:09 AM GMT+05:30, vineeth menneni 
 wrote:
>Hi I am finding it difficult to create a excel sheet using openpyxl or
>xlsxwriter. The problem is that i am loading a table data from MYSQL db
>which has 600k rows and 15 columns (approximately 100mb data). The
>error that the terminal shows is that "MemoryError". I just wanted to
>know if it is possible to create a excel sheet with the above said data
>in less than one minute using any packages in python. 
>
>Thanks,
>Vineeth
>-- 
>https://mail.python.org/mailman/listinfo/python-list


Try saving data in csv format an then import it in excel 

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


Re: xlwt 1.0.0 released!

2015-04-15 Thread Mirage Web Studio


On 2015-04-16 4:55 AM, Tim Chase wrote:

On 2015-04-15 15:21, Gary Herron wrote:

On 04/15/2015 02:51 PM, Chris Withers wrote:

I'm pleased to announce the release of xlwt 1.0.0.

What a curiously incomplete announcement.  Could you tell us what
xlwt is?  I see no hint here.

Heh, this and its sibling package, xlrd, are Python packages for
writing and reading MS Excel files.  Unlike other Python
Excel-manipulation libraries I've encountered, they don't rely on
having an installed copy of Excel and can thus run on platforms where
Excel doesn't.

They've been pretty robust based on my poking at them, have been
around a good length of time (meaning more bugs have been worked out),
and Chris posts release notes here pretty regularly.  Regularly
enough that I'm pretty sure this isn't the first time he's omitted
the "this is what xlrd/xlwt is" line in his announcement. :-)

Thanks to Chris for all the dirty work done mucking around with .xls
internals to make these modules.

-tkc


xlrd and xlwt have been of great help to me since the time i started 
using python.


thank u for such a nice library.

George

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com

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


Re: How to "wow" someone new to Python

2015-01-16 Thread Mirage Web Studio

On 01/16/2015 08:33 PM, Chris Angelico wrote:
> Scenario: You're introducing someone to Python for the first time.
> S/he may have some previous programming experience, or may be new to
> the whole idea of giving a computer instructions. You have a couple of
> minutes to show off how awesome Python is. What do you do?
>
> I was thinking along the lines of a simple demo in the REPL, showing
> off some of Python's coolest features. But then I got stuck on the
> specifics. What are Python's best coolnesses? What makes for a good
> demo?
>
> Ideally, this should be something that can be demo'd quickly and
> easily, and it should be impressive without going into great details
> of "and see, this is how it works on the inside". So, how would you
> brag about this language?
>
> ChrisA

hello,

I am a newbie to python, I have dwelled in c,qt none in java. php a lot,
though I don't make money with any of those.

The best thing I find is python is very easy, the best part maybe
because of my inexperience with other languages are the List and Dict
data types that just solved problems I had in real life made solvable
with python very easily. when I had to worry about memory and pointers
to memory in those other languages, python just made me focus on the
solution I want. also the way I can read python program just like they
are written in plain eglish :)

a personal problem I tried to solve is that how many characters  exist
in  a sequence statistically (with 2 or more characters in len)  in any
given file and then their count.  For a 100kb file I used practially all
programming knowledge in from the other languages but failed miserably
as the computation were taking more time with each bigger chunck of
file. I would have to do a lot of memery management with python using
those style like deleting list and dict before adding another. but when
I tried to solve the problem natively with python it just took a blink
of an eye for them to solve upto 50kb file. but for larger files
although instant it is just memory consuming since I was limit with 2 gb
I ddin't poke further.

this was my exp and I find programming fun in python like ironman
talking to jarvis

keep computing!!!

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