sharon stone paris hilton

2007-04-22 Thread S S
sharon stone paris hilton www.alphasearch.at www.alphasearch.be www.alphasearch.it www.alphasearch.info www.alphasearch.gr www.alphasearch.es www.alphasearch.se www.alphasearch.dk -- http://mail.python.org/mailman/listinfo/python-list

Lex Python

2005-05-17 Thread s
I am using bumblebee software PARSER GENERATOR to make a C file from LEX regular definitions. I want to compile that C file with VS .NET but I have problems. I am working this for Python regular definitions. Does somebody know how to configure a project to work? Or maybe somone havde done all thi

hai

2010-10-19 Thread Viji Kumar S S
http://123maza.com/35/demand120/ -- http://mail.python.org/mailman/listinfo/python-list

Distutils beginner question - windows

2011-06-03 Thread Seb S
Hi all, Just a quick question , I have a simple script I want to convert into a windows installer and give to some friends. I had a look at http://docs.python.org/distutils/introduction.html and wrote this setup script: #!/usr/bin/env python from distutils.core import setup setup(name="C:

Re: integer to binary 0-padded

2011-06-17 Thread John S
On Jun 15, 9:33 am, Olivier LEMAIRE wrote: > You're right, I use Python 2.6.6 This works great in 2.6.5 and later (and probably earlier). You just have to number your placeholders. The first set of braces formats i (your value), the second set specifies the field with (i.e., 8): >>> for i in xra

WindowsError: exception: access violation

2011-07-21 Thread Sathish S
Hi Ppl, I have been trying to call a C DLL built in GCC with cygwin and Eclipse IDE from python. Since this DLL was built using cygwin it had the following two DLL's as dependency. cygwin1.dll and cyggcc_s-1.dll I'm calling the cygwin_dll_init method in the cygwin1.dll before accessing my DLL. W

Re: WindowsError: exception: access violation

2011-07-21 Thread Sathish S
l 22, 2011 at 7:47 AM, Benjamin Kaplan wrote: > On Thu, Jul 21, 2011 at 6:42 PM, Sathish S > wrote: > > Hi Ppl, > > > > I have been trying to call a C DLL built in GCC with cygwin and Eclipse > IDE > > from python. Since this DLL was built using cygwin it had

Calling Script from Command line not working

2011-08-29 Thread Sathish S
Hi Ppl, We created a DLL using cygwin and have written a class based python module for the same. We have created a sample script for the class based python module, that creates an object of the class and calls various methods in the class. This Test script works fine while I run it from IDLE. Howe

Re: Calling Script from Command line not working

2011-09-01 Thread Sathish S
2011 at 7:56 AM, Gabriel Genellina wrote: > En Mon, 29 Aug 2011 07:40:06 -0300, Sathish S > escribió: > > > We created a DLL using cygwin and have written a class based python module >> for the same. We have created a sample script for the class based python >> module

Re: Calling Script from Command line not working

2011-09-01 Thread Sathish S
able to launch this new process, that why it could be hanging. BTW I'm still trying to get the script running using Python 2.7 from the command prompt. Thanks, Sathish On Fri, Sep 2, 2011 at 11:47 AM, Sathish S wrote: > Hey Gabriel, > Thanks a lot for replying. I was able to run

Unload a DLL

2011-02-24 Thread Sathish S
Hi Ppl, I'm loading a dll using the *cdll.LoadLibrary *function. How can I release the dll after I'm done with it. Are there any functions to do this. Thanks, Sathish -- http://mail.python.org/mailman/listinfo/python-list

Re: pattern matching

2011-02-24 Thread John S
On Feb 23, 9:11 pm, monkeys paw wrote: > if I have a string such as '01/12/2011' and i want > to reformat it as '20110112', how do i pull out the components > of the string and reformat them into a DDMM format? > > I have: > > import re > > test = re.compile('\d\d\/') > f = open('test.html')  

RE: CentOS 5.5 x86_64 rpmbuild from source

2011-03-08 Thread William S .
I will answer myself. For those interested, because rpm will break the dependencies on the OS, you can install 2.7 with a simple bash script: http://willsani.com/2011/03/02/centos-5-5-x86_64-install-python-2-7/ Regards, Will -- http://mail.python.org/mailman/listinfo/python-list

Re: .Well, ok, I will try some of that. But I am running window 7, not Linux.

2011-04-22 Thread P S
I did a little writeup for setting PyVISA up in Windows. It's not exactly polished, but it can get you through the difficult bits. If you need any additional help, leave comments/questions on my blog. http://psonghi.wordpress.com/2011/03/29/pyvisa-setup-in-windows/ > On Friday, April 01, 2011 1

SEE KAREENA KAPOOR BOLLYWOOD HOT ACTRESS BOOBS PRESSED IN SHOPPING MALL

2011-05-15 Thread charmi s
SEE KAREENA KAPOOR BOLLYWOOD HOT ACTRESS BOOBS PRESSED IN SHOPPING MALL At http://hollypops.Co.CC Due to GOOGLE security risks, i have hidden the videos in an image. in that website on Right side below search box click on image and watch videos in all angles. -- http://mail.python.org/mailman/li

Re: Weird problem matching with REs

2011-05-29 Thread John S
not make your regex work on my Linux box with Python 2.6. In your case, and because x264 might change their HTML, I suggest the following code, which works great on my system.YMMV. I changed your newline matches to use \s and put some capturing parentheses around the date, so you could grab it. &

Re: Weird problem matching with REs

2011-05-29 Thread John S
On May 29, 12:16 pm, Andrew Berg wrote: > > I've been meaning to learn how to use parenthesis groups. > > Also, be sure to > > use a raw string when composing REs, so you don't run into backslash > > issues. > > How would I do that when grabbing strings from a config file (via the > configparser m

Re: Why no '|' operator for dict?

2018-02-05 Thread Maxime S
2018-02-05 9:14 GMT+01:00 Ian Kelly : > On Mon, Feb 5, 2018 at 12:35 AM, Frank Millman wrote: >> 2. Is there a better way to do what I want? > > The dict.items() view is explicitly set-like and can be unioned, so > you can do this: > > py> dict(d1.items() | d2.items()) > > As to the question of wh

How to loop over a text file (to remove tags and normalize) using Python

2021-03-09 Thread S Monzur
Dear List, Newbie here. I am trying to loop over a text file to remove html tags, punctuation marks, stopwords. I have already used Beautiful Soup (Python v 3.8.3) to scrape the text (newspaper articles) from the site. It returns a list that I saved as a file. However, I am not sure how to use a l

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-09 Thread S Monzur
usly since it's an unindented mess now and can not be read easily. > > On Wed, Mar 10, 2021 at 03:07:14AM +0600, S Monzur wrote: > >Dear List, > > > >Newbie here. I am trying to loop over a text file to remove html tags, > >punctuation marks, stopwords. I have alrea

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-09 Thread S Monzur
rsing > data without using regex ? Just a hint .. > > On Wed, Mar 10, 2021 at 04:22:19AM +0600, S Monzur wrote: > > Thank you and apologies! I did not realize how jumbled it was at the > > receiver's end. > > The code is now at this site : [1]https://pastebi

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-10 Thread S Monzur
. I am now trying to remove the html tags from this text file, and running into issues as mentioned in the previous post. On Wed, Mar 10, 2021 at 3:46 PM Peter Otten <__pete...@web.de> wrote: > On 10/03/2021 04:35, S Monzur wrote: > > Thanks! I ended up using beautiful soup to

Re: C Python extension to export an Function

2016-09-01 Thread Pavel S
If you're familiar with C++, I recommend to have a look at Boost::Python. Sample program: #include #include void world() { std::cout << "hello world" << std::endl; } BOOST_PYTHON_MODULE( hello ) { using namespace ::boost::python; def( "world", &world ); } Usage: python -c "i

Re: comapring 2 sequences of DNA ouput the silent and non mutations

2016-10-30 Thread Maxime S
2016-10-29 21:38 GMT+02:00 : > > Code: > > [...] > > for i in range (len(protein) & len(seq1)) : > > if protein[i] != mutantPRO[i] : >print (protein[i] + str(i) + mutantPRO[i]) >A+= 1 > else: > if seq1[i:i+3] != mutant[i:i+3]: >

Problem while building Python 3.6 from source.

2017-01-13 Thread Michael S
Hello, I am new to this mailing-list and I really don't know whether this mail should belong to python-dev. Please tell me, if so. Unfortunately, I have got the following problem: I wanted to build and install Python 3.6 from source but did not succeed. To clarify my situation, I got as an operat

Re: Problem while building Python 3.6 from source.

2017-01-15 Thread Michael S
Sat, Jan 14, 2017 at 5:00 AM, Michael S wrote: >> Hello, >> I am new to this mailing-list and I really don't know whether this >> mail should belong to python-dev. Please tell me, if so. > > Hi and welcome! This kind of thing is best on this list initially. > >> Unfo

Fwd: QUERY

2018-06-02 Thread S Srihari
To: python-list@python.org I AM UNABLE TO INSTALL PYTHON. KINDLY HELP ME. -- https://mail.python.org/mailman/listinfo/python-list

can't install/run pip (Latest version of Python)

2018-07-15 Thread S Lea
I can't seem to install the pips, DOS gives me the syntex i invalid, any thoughts? Thank you -- https://mail.python.org/mailman/listinfo/python-list

can't install/run pip (Latest version of Python)

2018-07-15 Thread S Lea
I can't seem to install the pips, DOS gives me the syntex i invalid, any thoughts? Thank you -- https://mail.python.org/mailman/listinfo/python-list

Re: can't install/run pip (Latest version of Python)

2018-07-16 Thread S Lea
Thank you for reaching out. 1) Don't know what do you mean by the traceback. 2) In DOS, pip install pandas 3) Yes, in DOS, Win 10 4) 3.7 5) Not getting much info On Sun, Jul 15, 2018 at 5:44 PM, boB Stepp wrote: > On Sun, Jul 15, 2018 at 7:34 PM S Lea wrote: > > > > I c

Re: can't install/run pip (Latest version of Python)

2018-07-16 Thread S Lea
'pip' not recognized as internal or external command, operable program or batch. And for some reason it's a 32 bit version On Mon, Jul 16, 2018 at 8:03 PM, S Lea wrote: > Thank you for reaching out. > > 1) Don't know what do you mean by the traceback. > 2) In

Re: can't install/run pip (Latest version of Python)

2018-07-16 Thread S Lea
Also, I can't find the location of Python insallation, it refers to C:\Users\Precision\PycharmProjects\my first project from video\venv\Scripts On Mon, Jul 16, 2018 at 8:06 PM, S Lea wrote: > of python 3.7 > > On Mon, Jul 16, 2018 at 8:06 PM, S Lea wrote: > >> 'pip

Re: can't install/run pip (Latest version of Python)

2018-07-16 Thread S Lea
of python 3.7 On Mon, Jul 16, 2018 at 8:06 PM, S Lea wrote: > 'pip' not recognized as internal or external command, operable program or > batch. > > And for some reason it's a 32 bit version > > On Mon, Jul 16, 2018 at 8:03 PM, S Lea wrote: > >> Thank

Re: can't install/run pip (Latest version of Python)

2018-07-17 Thread S Lea
;help", "copyright", "credits" or "license" for more information. >>> Is this what you were suggesting? On Mon, Jul 16, 2018 at 8:47 PM, Gene Heskett wrote: > On Monday 16 July 2018 23:06:19 S Lea wrote: > > > 'pip' not re

Re: can't install/run pip (Latest version of Python)

2018-07-17 Thread S Lea
g pandas Downloading https://files.pythonhosted.org/packages/a9/e8/ ca7637c51767809cd7328dd01e246b8f2ec0fde566c9b7440b91d9a33460 /pandas-0.23.3-cp37-cp37m-win32.whl (6.8MB) 100% |████| 6.8MB 620kB/s Collecting pytz>=2011k (from pandas) Downloading https://files.

Re: can't install/run pip (Latest version of Python)

2018-07-17 Thread S Lea
Also, how does one get a 64 bit version? On Tue, Jul 17, 2018 at 4:04 PM, S Lea wrote: > Terry, > > BLESS YOU!!! > > The second option worked I installed python 3.7 and > then pycharm-community-2018.1.4. I'm following a video course by TTC How > To Program: Computer S

Re: can't install/run pip (Latest version of Python)

2018-07-17 Thread S Lea
What do you use, Gene? It seems most business program run on Windows. On Tue, Jul 17, 2018 at 5:14 PM, Gene Heskett wrote: > On Tuesday 17 July 2018 18:48:22 S Lea wrote: > > > nd that leads to a > > question, where did you get it?, and how long ago? Maybe its an old

Setting Return-Path in email

2016-05-23 Thread ragav s
toaddress = [to] if cc: msg['Cc'] = cc toaddress = to+","+ cc toaddress = toaddress.split(",") type = 'plain' part = MIMEText(html, type,'utf-8') msg.attach(part) s = smtplib.SMTP('localhost'

Re: errorhandler 2.0.0 Released!

2016-06-06 Thread Pavel S
Hi, can you explain, why is the attribute 'fired' class-level and not instance-level? There must be good reason for modifying class attribute from instance. Dne pondělí 6. června 2016 15:26:08 UTC+2 Chris Withers napsal(a): > Hi All, > > errorhandler is a tiny but useful logging handler for th

Re: UserList - which methods needs to be overriden?

2016-06-10 Thread Maxime S
2016-06-10 10:37 GMT+02:00 Peter Otten <__pete...@web.de>: > > Nagy László Zsolt wrote: > > > I'm not sure wich one is the best. Peter wrote that UserList was left in > > collections only for backward compatiblity. This might be a point > > I'll take that back. I looked around and found no evidence

Re: mod_python compilation error in VS 2008 for py2.7.1

2016-06-14 Thread Pavel S
Have you considered to use rather WSGI-based solution? (for Apache Httpd is mod_wsgi). Mod_python is totally obsolete. -- https://mail.python.org/mailman/listinfo/python-list

__all__ attribute: bug and proposal

2016-06-27 Thread Pavel S
Hi, I today uncovered subtle bug and would like to share it with you. By a mistake, I forgot to put comma into '__all__' tuple of some module. Notice missing comma after 'B'. # module foo.py __all__ = ( 'A', 'B' 'C', ) class A: pass class B: pass class C: pass If you try to import

Re: __all__ attribute: bug and proposal

2016-06-27 Thread Pavel S
> but what about integers or strings? Can you provide example? --- No matter if __all__ uses names or objects, I think it should be validated not only when importing '*', but always. Frankly, do you always unit-test if __all__ works? -- https://mail.python.org/mailman/listinfo/python-list

How to only read words within brackets/ parentheses (in .txt file) using Python

2019-09-04 Thread A S
I understand that reading lines in .txt files would look something like this in Python: with open('filename','r') as fd: lines = fd.readlines() However, how do I run my code to only read the words in my .txt files that are within each balanced parenthesis? I am not sure how to go about it

Finding lines in .txt file that contain keywords from two different set()

2019-09-08 Thread A S
th the .xlsx file txtfilespath = os.chdir("C:/Users//Documents//Text") #Here I am reading and printing all the words in the .txt files and compare with the excel Cell A1: for name in os.listdir(txtfilespath): if name.endswith(".txt"): with open (name, "

Re: psutil.boot_time() ... doesn't ?

2019-11-06 Thread Maxime S
Hello, You may want to read PEP 418 which nicely summaries the different clock available on each platform and their limitations. It looks like CLOCK_BOOTTIME is what you want but it is only available on Linux. Regards, Maxime. Le mer. 6 nov. 2019 à 18:23, R.Wieser a écrit : > Hello all, > >

Extract sentences in nested parentheses using Python

2019-12-02 Thread A S
I am trying to extract all strings in nested parentheses (along with the parentheses itself) in my .txt file. Please see the sample .txt file that I have used in this example here: (https://drive.google.com/open?id=1UKc0ZgY9Fsz5O1rSeBCLqt5dwZkMaQgr). I have tried and done up three different cod

Re: Extract sentences in nested parentheses using Python

2019-12-03 Thread A S
On Tuesday, 3 December 2019 01:01:25 UTC+8, Peter Otten wrote: > A S wrote: > > I think I've seen this question before ;) > > > I am trying to extract all strings in nested parentheses (along with the > > parentheses itself) in my .txt file. Please see the sample .

Re: Extract sentences in nested parentheses using Python

2019-12-05 Thread A S
On Tuesday, 3 December 2019 06:22:52 UTC+8, DL Neil wrote: > On 3/12/19 6:00 AM, Peter Otten wrote: > > A S wrote: > > I think I've seen this question before ;) > > In addition to 'other reasons' for @Peter's comment, it is a common > ComSc worked

Re: Extract sentences in nested parentheses using Python

2019-12-05 Thread A S
On Tuesday, 3 December 2019 23:48:21 UTC+8, Peter Otten wrote: > A S wrote: > > > On Tuesday, 3 December 2019 01:01:25 UTC+8, Peter Otten wrote: > >> A S wrote: > >> > >> I think I've seen this question before ;) > >> > >> > I a

Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread A S
I would like to extract all words within specific keywords in a .txt file. For the keywords, there is a starting keyword of "PROC SQL;" (I need this to be case insensitive) and the ending keyword could be either "RUN;", "quit;" or "QUIT;". This is my sample .txt file. Thus far, this is my code:

Re: Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread A S
On Thursday, 12 December 2019 02:28:09 UTC+8, Ben Bacarisse wrote: > A S writes: > > > I would like to extract all words within specific keywords in a .txt > > file. For the keywords, there is a starting keyword of "PROC SQL;" (I > > need this to be case i

Re: Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread A S
On Thursday, 12 December 2019 04:55:46 UTC+8, Joel Goldstick wrote: > On Wed, Dec 11, 2019 at 1:31 PM Ben Bacarisse wrote: > > > > A S writes: > > > > > I would like to extract all words within specific keywords in a .txt > > > file. For the keywords, t

Re: Fun with IO

2020-01-21 Thread Maxime S
Hi, Le ven. 17 janv. 2020 à 20:11, Frank Millman a écrit : > It works perfectly. However, some pdf's can be large, and there could be > concurrent requests, so I wanted to minimise the memory footprint. So I > tried passing the client_writer directly to the handler - > > await pdf_handler(

Help with oop

2020-02-22 Thread S Y
How can I use remove,add and verify methods in class oop. Which has tuple with allowed values inside class. Like two classes cart and inventory Get Outlook for iOS -- https://mail.python.org/mailman/listinfo/python-list

How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-22 Thread A S
I have contract clauses in Words (.docx) format that needs to be frequently copy and pasted into Excel (.xlsx) to be sent to the third party. The clauses are often updated hence there's always a need to copy and paste these clauses over. I only need to copy and paste all the paragraphs and image

Re: How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-22 Thread A S
On Monday, 23 March 2020 01:58:38 UTC+8, Beverly Pope wrote: > > On Mar 22, 2020, at 9:47 AM, A S wrote: > > > > I can't seem to paste pictures into this discussion so please see both my > > current and desired Excel output here: > > > > https://st

Regarding error code 9

2020-06-25 Thread Manikandan S
Sir/Mam; While installing matplotlib in python i face this issue that it shows error : erro no 9 please reply with some solution for this error i am beginner so please explain in detail about this error and guide me to fix this error. Thank you -- https

"OSError: [Errno 9] Bad file descriptor" When I try to Install the library in conda prompt

2020-07-21 Thread Mathiyazhagan S
Dear Sir/Madam, I'm new to the python program. I'm trying to install the "numby" or anything to add into the library by using the windows command prompt I'm getting some error please find the attachment. So please help me to resolve this issue. Thank you -- https://mail.python.org/mailman/

Re: Is there a log file that tracks every statement that is being executed when a program is running?

2020-10-25 Thread Maxime S
Hi, You can use the trace module for that: https://docs.python.org/3.8/library/trace.html Personally I tend to put print statement at strategic places instead, I find that easier to analyse than a full trace but YMMV. Maxime Le dim. 25 oct. 2020 à 01:25, Steve a écrit : > This would seriousl

Windows process priority setting question...

2005-01-01 Thread Ray S
Is it possible to have an app re-set its own priority? I see that 2.4+ has the ability for sub-processes, but only on creation. Apparently win32process.SetPriorityClass(handle, dwPriorityClass) and PyCWinThread.SetThreadPriority(priority) allows one to change a sub while a the sub is running, but w

Re: The penis is way too delicate for masturbation

2005-09-01 Thread Eve S.
<[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > . > A decent amount of gentle sucking on the other hand never goes amiss. -- sexy .sig wanted -- http://mail.python.org/mailman/listinfo/python-list

Memory Allocation?

2005-02-06 Thread Chris S.
Is it possible to determine how much memory is allocated by an arbitrary Python object? There doesn't seem to be anything in the docs about this, but considering that Python manages memory allocation, why would such a module be more difficult to design than say, the GC? -- http://mail.python.org

Re: Memory Allocation?

2005-02-07 Thread Chris S.
Gerrit Holl wrote: Chris S. wrote: Is it possible to determine how much memory is allocated by an arbitrary Python object? There doesn't seem to be anything in the docs about this, but considering that Python manages memory allocation, why would such a module be more difficult to design

Re: Memory Allocation?

2005-02-07 Thread Chris S.
M.E.Farmer wrote: Hello Chris, I am sure there are many inaccuracies in this story but hey you asked instead of seeking your owns answers so In general you need not worry about memory allocation. Too be more specific objects have a size and most of them are known (at least to a wizard named T

Re: Memory Allocation?

2005-02-07 Thread Chris S.
Donn Cave wrote: In article <[EMAIL PROTECTED]>, "Chris S." <[EMAIL PROTECTED]> wrote: Is it possible to determine how much memory is allocated by an arbitrary Python object? There doesn't seem to be anything in the docs about this, but considering that Python man

subprocess problem on Windows in IDLE and PythonWin

2005-02-15 Thread David S.
Python 2.4 on Windows XP In the python command-line the following works fine: >>> from subprocess import * >>> p = Popen('dir', stdout=PIPE) >From within IDLE or PythonWin I get the following exception: Traceback (most recent call last): File "", line 1, in -toplevel- p = Popen('dir', stdo

Re: [newbie]How to install python under DOS and is there any Wxpython can be installed under dos?

2005-02-15 Thread David S.
john san att.net> writes: > > How to install python under DOS and is there any Wxpython-like can be > installed under dos? > > Thanks. > If you are looking for Windows installers then, yes. See: http://www.wxpython.org/ http://www.wxpython.org/download.php#binaries If you are really looking f

huge help for interactive python

2005-02-16 Thread David S.
If you are using ipython on Windows then you will have made sure you have Gary Bishop's readline library as instructed in the ipython install directions found at: http://ipython.scipy.org/ Even if you use the standard commandline tool, installing readline makes the basic command line a lot eas

Re: huge help for interactive python

2005-02-16 Thread David S.
David S. alumni.tufts.edu> writes: > I am sure it can be improved, but it was easy. By the > way, it generates LaTeK. LaTeX, rather. -- http://mail.python.org/mailman/listinfo/python-list

reuse validation logic with descriptors

2005-03-01 Thread David S.
utes across multiple classes? Thanks, David S. -- http://mail.python.org/mailman/listinfo/python-list

Re: reuse validation logic with descriptors

2005-03-01 Thread David S.
Steven Bethard gmail.com> writes: > > David S. wrote: > > I am looking for a way to implement the same simple validation on many > > instance attributes and I thought descriptors > > (http://users.rcn.com/python/download/Descriptor.htm) looked like the > >

Re: reuse validation logic with descriptors

2005-03-01 Thread David S.
taken reading http://users.rcn.com/python/download/Descriptor.htm about 4 times along with your help to get this straight. Peace, David S. -- http://mail.python.org/mailman/listinfo/python-list

Re: reuse validation logic with descriptors

2005-03-02 Thread David S.
re a little confused about properties and descriptors. > > regards > Steve Quite confused, actually, which was the reason for my original post. Thanks again to those who helped me and any other confused folks understand this bit of Python that much better. Peace, David S. -- http://mail

Re: global variables

2005-03-07 Thread David S.
M.N.A.Smadi grads.ece.mcmaster.ca> writes: > I need to have a varaible that will contain a value that will be > modified in one file, and when coming back to the same file it > should retain the same value. You must import the module in which the variable lives and qualify it appropriately.

Re: how to drop all thread ??

2004-11-29 Thread Chris S.
Leon wrote: if class A( use threading,thread module ) to produce 100 thread,how to drop its (100 thread) when its running As Roggisch suggests, the cleanest way is if the thread kills itself once signaled by an exit condition. However, there is a non-orthodox way of pseudo-forcibly killing threa

Memory leak in python

2005-04-19 Thread Abhishek S
Hi, using python2.2.2 I am seeing that the python application is very slowly eating up the memory. i need help to indentify it. It start with 11MB and keeps growing by 1 MB around every 30mins. #top | grep python 10351 root 15 0 26584 25M 3896 S 0.5 0.8 46:05 1 python2 10351

Fwd: Memory leak in python

2005-04-20 Thread Abhishek S
___ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- Begin Message --- Hi, using python2.2.2 I am seeing that the python application is very slowly eating up the memory. i need help to indentify it. It start with 11MB

Administrators and moderators of Python-list, please erase all the messages that I not should have posted here in python-list!

2015-12-10 Thread françai s
Administrators and moderators of Python-list, please erase all the messages that I not should have posted here in python-list. I ask this because I probably be in future a good programmer famous and I do not want to talk about the topics that I should not have posted here in python-list. I decid

Re: Question about asyncio and blocking operations

2016-01-28 Thread Maxime S
2016-01-28 17:53 GMT+01:00 Ian Kelly : > On Thu, Jan 28, 2016 at 9:40 AM, Frank Millman wrote: > > > The caller requests some data from the database like this. > > > >return_queue = asyncio.Queue() > >sql = 'SELECT ...' > >request_queue.put((return_queue, sql)) > > Note that since thi

Re: Cannot step through asynchronous iterator manually

2016-01-30 Thread Maxime S
2016-01-30 11:51 GMT+01:00 Frank Millman : > "Chris Angelico" wrote in message > news:CAPTjJmoAmVNTCKq7QYaDRNQ67Gcg9TxSXYXCrY==s9djjna...@mail.gmail.com... > > >> On Sat, Jan 30, 2016 at 7:22 PM, Frank Millman >> wrote: >> > We had a recent discussion about the best way to do this, and ChrisA >>

Newbie suggestion: nice tutorial

2014-10-26 Thread Martin S
cancelled... So it was back to the internet - and this one seems pretty comprehensive and understandable: http://www.diveintopython3.net/ It doesn't cover the latest point version of Python (it's still Python 3), but I hope it doesn't matter much? Regards, Martin S -- https://

[OFF-TOPIC] It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code?

2014-11-04 Thread françai s
I intend to write in lowest level of computer programming as a hobby. It is true that is impossible write in binary code, the lowest level of programming that you can write is in hex code? What is the lowest level of programming computers that you can write ? Is binary code? Is hex code? Is an

Re: Broken IF statement

2015-01-13 Thread Maxime S
2015-01-12 22:19 GMT+01:00 : > > https://bpaste.net/show/93be9e15634b <--- Line 19 through 22 > > At all times, my program is assigning the object priority of 0, even if one already exists in the database with a priority of 0 (it's supposed to be assigning it a priority of 1 in those cases). > > I'

subprocess command fails

2015-02-20 Thread Brad s
# cat makekeys.py #!/usr/bin/python3.4 import subprocess import sys import string import os.path import datetime import shlex from time import gmtime, strftime from subprocess import Popen, PIPE, STDOUT pretime = strftime("%Y%m%d%H", gmtime()) time = datetime.datetime.strptime(pretime,'%Y%m%d%H')

Re: subprocess command fails

2015-02-20 Thread Brad s
Yes, the program deletes the same files it produces. It looks to see if old stuff is there and if it exist, it deletes the files and creates and entirely new DNS zone with keys and then it is supposed to sign it. The last step is where it is still failing but your code helped me to figure out wh

Re: subprocess command fails

2015-02-20 Thread Brad s
Time adjustment error: # python3.4 timefix.py 2015022105 2015-02-21 05:00:00 Traceback (most recent call last): File "timefix.py", line 15, in ndate = datetime.datetime.strptime(timeadd, '%Y%m%d%H') TypeError: must be str, not datetime.datetime # cat timefix.py #!/usr/bin/python3.4 impor

Re: subprocess command fails

2015-02-20 Thread Brad s
fixed with now = datetime.datetime.now() later = now + datetime.timedelta(days=2*365) striplater = later.strftime('%Y%m%d%H') # python3.4 makekeys.py Enter the domain to configure keys for? test1234.com Generating key pair..

SSH/Telnet program to Router/switch

2014-02-19 Thread Sujith S
Hi, I am new to programming and python. I am looking for a python script to do ssh/telnet to a network equipment ? I know tcl/perl does this using expect/send. Do we have expect available in python as well or need to use some other method ? Regards Sujith -- https://mail.python.org/mailman/l

Re: Yet Another Switch-Case Syntax Proposal

2014-04-06 Thread Marco S.
On 3 April 2014 20:12, Ian Kelly ian.g.kelly-at-gmail.com | python-list@python.org| wrote: > Use this instead [of continue]: > > switch day case in ("Mon", "Tue", "Wed", "Thu", "Fri"): > go_to_work = True > day_type = "ferial" > if day in ("Tue", "Thu"): > lunch_time = datetime

implementing pyshark

2015-04-06 Thread Michael S.
Hi everyone. while trying to implement pyshark, i am getting this error: import pyshark capture = pyshark.LiveCapture(interface='wlan0') capture.sniff(timeout=50) capture i have tried also to run it through interpreter yet, i got this error: import pyshark

Re: implementing pyshark

2015-04-06 Thread Michael S.
n Mon, 6 Apr 2015 06:40 pm, Michael S. wrote: Hi everyone. while trying to implement pyshark, i am getting this error: [...] ImportError: No module named _threading Well that's awesome. I don't think I've seen that in Python 2.7 before. Apparently, you are using a version of

Re: implementing pyshark

2015-04-06 Thread Michael S.
module named gevent_threading On 04/06/2015 03:11 PM, Peter Otten wrote: Michael S. wrote: Hi everyone. while trying to implement pyshark, i am getting this error: import pyshark capture = pyshark.LiveCapture(interface='wlan0') capture.sniff(timeout=50)

Re: implementing pyshark

2015-04-06 Thread Michael S.
On 04/07/2015 03:55 AM, Steven D'Aprano wrote: On Mon, 6 Apr 2015 10:45 pm, Michael S. wrote: I am using kali-linux(debian based). i have installed all from repository. i haven't tried yet to use the source but i don't think it was compiled incorrectly. Kali's developers

Re: Function decorator having arguments is complicated

2015-04-27 Thread Maxime S
Le lun. 27 avr. 2015 à 04:39, Makoto Kuwata a écrit : > > If function decorator notation could take arguments, > decorator definition would be more simple: > > def multiply(func, n): > def newfunc(*args, **kwargs): > return n * func(*args, **kwargs) > return newfunc > > @multiply

bottle app "crashes"

2015-07-06 Thread Martin S
to an idiot proof instruction on how to deploy a simple bottle application to a live server. /Martin S -- https://mail.python.org/mailman/listinfo/python-list

Re: bottle app "crashes"

2015-07-08 Thread Martin S
d by the application). > > Similar to other answers here, I do not know why your application > stops serving, but I have had success using waitress > (https://pypi.python.org/pypi/waitress) with bottle > (http://bottlepy.org/docs/dev/deployment.html#switching-the-server-backend).

GOTCHA with list comprehension

2015-08-04 Thread Pavel S
Hi, I recently found interesting GOTCHA while doing list comprehension in python 2.6: >>> values = ( True, False, 1, 2, 3, None ) >>> [ value for value in values if value if not None ] [True, 1, 2, 3] I was wondering why this list comprehension returns incorrect results and finally found a typ

Re: GOTCHA with list comprehension

2015-08-05 Thread Pavel S
True if True if True if True ] Dne středa 5. srpna 2015 8:49:20 UTC+2 Pavel S napsal(a): > Hi, > > I recently found interesting GOTCHA while doing list comprehension in python > 2.6: > > >>> values = ( True, False, 1, 2, 3, None ) > >>> [ value for valu

Re: GOTCHA with list comprehension

2015-08-05 Thread Pavel S
$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) $ python --version Python 2.6.6 > Incidentally, why Python 2.6? > > ChrisA -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   >