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
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)* "," "/" [&
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
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
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
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
: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
()
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
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
http://msherman77.blogspot.com/2007/08/python-com.html
--
http://mail.python.org/mailman/listinfo/python-list
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
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,
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
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
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
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
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
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
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
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
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
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
--- 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
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()
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,
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
26 matches
Mail list logo