[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

2020-03-17 Thread Michael S
Michael S added the comment: Thanks Pablo, sorry, I was just stupid. > Do you think that adding these explicit parentheses would help with help > making this more clear? Maybe. I read the BNF documentation the first time today, but since it's not intended for beginners, I thin

[issue39993] Language Reference - Function definition parameter_list item definition not equivalent to implementation.

2020-03-17 Thread Michael S
New submission from Michael S : I just read https://docs.python.org/3/reference/compound_stmts.html#function-definitions The item parameter_list is defined as: parameter_list::= defparameter ("," defparameter)* "," "/" [&

Re: Problem while building Python 3.6 from source.

2017-01-15 Thread Michael S
t; wrote: > On Sat, Jan 14, 2017 at 5:00 AM, Michael S <michael.s011...@gmail.com> 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

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

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 are quite precise

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.
: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 Python compiled without support

Re: implementing pyshark

2015-04-06 Thread Michael S.
() 1 import gevent_threading ImportError: No 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

wxpython on FreeBSD 6.2 broken

2007-08-26 Thread Michael S
Good day all, I was wondering if anyone was using the latest wxpython on FreeBSD 6. I just installed it yesterday as well as wxGlade. wxGlade doesn't function properly - it does not display any controls. I then tried some simple examples from the web and half of them don't work. Anyone aware of

python MS Office

2007-08-14 Thread Michael S
http://msherman77.blogspot.com/2007/08/python-com.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance doesn't work

2006-12-04 Thread Michael S
How about calling base class __init__ and then the pass statement? --- zefciu [EMAIL PROTECTED] wrote: I have a problem with inheritance under python. The class definition is longer, but the troublesome thing is: from PIL import Image class MandelbrotImage (Image): pass I am

Re: PythonWin And Excel Problem

2006-12-01 Thread Michael S
First of all you should call the random.seed() function. That was at least what I´ve always done. seed([x]) Initialize the basic random number generator. Second of all, calling random.random() will give you this: random() Return the next random floating point number in the range [0.0,

Re: PythonWin And Excel Problem

2006-12-01 Thread Michael S
Andrea, Also, could it be that when you do the following: sheet.Range(A1:A10).Value = therand you actually initialize all 10 cells to the first element of the array? Try to iterate and initialize every cell separately. Michael --- Andrea Gavana [EMAIL PROTECTED] wrote: Hi All, I am

Re: is mod_python borked?

2006-11-02 Thread Michael S
I used it for various projects. It's alright. The only problem I had, was that I was unable to get mod_python and pysqlite to work together. Other than that it was pretty good. --- walterbyrd [EMAIL PROTECTED] wrote: I am considering python, instead of php, for web-application development. I

Re: report progress from C function

2006-11-01 Thread Michael S
I downloaded Pyrex and ran it through their own example. The code looks quite messy, and I even saw a few gotos. I think I will stick with my own code for now. Thanks in any case. --- John Machin [EMAIL PROTECTED] wrote: Michael S wrote: Good day all. I rewrote part of my program in C

Re: report progress from C function

2006-11-01 Thread Michael S
My assembler is very basic, so it wouldn't help, while my C is OK, well sort of. BTW. Neither have I looked at the machine code that the assembler produces. --- Fredrik Lundh [EMAIL PROTECTED] wrote: Michael S wrote: I downloaded Pyrex and ran it through their own example. The code

Re: report progress from C function

2006-11-01 Thread Michael S
What if it doesn't do exactly what you need to? How do you debug through that code? --- Fredrik Lundh [EMAIL PROTECTED] wrote: Michael S wrote: My assembler is very basic, so it wouldn't help, while my C is OK, well sort of. BTW. Neither have I looked at the machine code

Re: best way to check if a file exists?

2006-10-31 Thread Michael S
If you want to open the file for writing just open it with append mode. open(¨filename, a). If it doesn't exist - it'll create it, and if it does it'll start appending to the file For reading - os.path.exists(filename). Or (doesn't make much sense, but still) try to open it for reading and

report progress from C function

2006-10-31 Thread Michael S
Good day all. I rewrote part of my program in C, it's a usually a long task. I wanted to be able to report the progress back to my python program. In my module (in addition to the function that performs the above-mentioned task) there is a function that returns the variable, indicating the

Re: report progress from C function

2006-10-31 Thread Michael S
BTW, why did you rewrite in C rarher than using Pyrex? I was not aware of pyrex. I didn't really mind doing some C, it made me remember the syntax. Thanks a lot. I did think that I could pack a function address as a parameter. --- John Machin [EMAIL PROTECTED] wrote: Michael S wrote: Good

Re: looping through two list simultenously

2006-10-29 Thread Michael S
What if you do it in 2 separate threads? --- CSUIDL PROGRAMMEr [EMAIL PROTECTED] wrote: folks I have two lists i am trying to loop thorough them simultenously. Here is the code i am using f1 = os.popen('ls chatlog*.out') data1=f1.readlines() f1.close() data1=[x.strip() for x in

Re:

2006-10-25 Thread Michael S
and/or choking. --- Gabriel Genellina [EMAIL PROTECTED] wrote: At Tuesday 24/10/2006 23:25, Michael S wrote: I extended part of my program in C, since that part was too involved for Python. Now when I import the module I created and call its functions, I am trying to feedback some information bac

Re: [wxPython-users] Re:

2006-10-25 Thread Michael S
--- Josiah Carlson [EMAIL PROTECTED] wrote: Gabriel Genellina [EMAIL PROTECTED] wrote: At Tuesday 24/10/2006 23:25, Michael S wrote: I extended part of my program in C, since that part was too involved for Python. Now when I import the module I created and call its functions, I am

Re: cleaner way to write this?

2006-10-25 Thread Michael S
How about this? def create_db_name(self): dlg = wx.TextEntryDialog(self.frame, 'Enter a database name:', 'Create New Database') db_name = None #or db_name = if dlg.ShowModal() == wx.ID_OK: db_name = dlg.GetValue()

[no subject]

2006-10-24 Thread Michael S
Good day all. I extended part of my program in C, since that part was too involved for Python. Now when I import the module I created and call its functions, I am trying to feedback some information bac to my wxPython program. The function runs for a while and I wanted to update a progress bar,

python plotting with greek symbols within labels recommendations?

2005-10-04 Thread michael . s . gilbert
hello all, this message is geared toward those of you in the scientific community. i'm looking for a python plotting library that can support rendering greek symbols and other various characters on plot axes labels, etc. I would prefer something that adheres to tex formatting (as implemented in