masood shaik writes:
> Hi
>
> I am trying to call python function from c code.The following
> program i got from the web source while i am trying to run this
> program it throws an segmentation fault.
Yes, the call to PyImport_Import fails and returns a NULL. You could use
the more complete ex
apometron writes:
> Now it is another
> thing, entirely. Rename1.py and Rename2.py works, but why Rename3.py
> dont works?
Well, Rename3.py works for me, even in Windows 7. Maybe you should test
it again?
--
http://mail.python.org/mailman/listinfo/python-list
"W. eWatson" writes:
> One thing I think no one has offered is whether their installation of
> 2.7.2 has the same IDLE oddity that I've described. That is, if you
> right-click on a py file, do you see a choice for the IDLE editor?
I don't have 2.7.2, but my Windows (7, 32 bit) machine has 3.2
goldtech writes:
> Using Windows. Is there a python shell that has a history of typed in
> commands?
Is there a shell that doesn't have history then? At least both the
vanilla shell and Idle both have basic history in Windows. IPython for
more fun.
--
http://mail.python.org/mailman/listinfo/pyt
Dennis Lee Bieber writes:
>> c:\Python32 Start in, and for Target: Python 3.2.2 (64-bit)
>
> Which tells me that the TARGET field is garbaged, since THAT is what
> specifies the program (and arguments) that has to be run when the
> shortcut is double-clicked.
Actually, no, it's what I have
Christian Heimes writes:
>> Mea culpa, forgot that. Yes, use altinstall. Although it's probably
>> not a problem to replace 2.6.6 with 2.7.2 - I doubt that'll break many
>> things.
>
> Except that all 3rd party extensions and packages are missing if you
> install Python manually.
True, they woul
Ian Kelly writes:
> Probably nobody has noticed it until now. It seems to be a quirk of
> the archive files that they are double-gzipped...
Interesting, but I don't think the files are actually double-gzipped. If
I download
http://mail.python.org/pipermail/python-list/2012-January.txt.gz with
w
Jérôme writes:
> - I tried to clarify the dependencies of my program by adding
> "PyGObject (python-gi)."
> I believe PyGObject is the name, but python-gi being the name of the debian
> package (and possibly other distros' package, I didn't check), I assumed it
> would be more helpful.
Benedict Verheyen writes:
> If i need to install a new version of Python, as I happen to have done today,
> I only need to do step 4. Which is maybe 5 minutes of work.
I don't really understand why you compile these common libraries (zlib,
ncurses, readline) yourself instead of using the relevan
Dennis Lee Bieber writes:
> PowerShell is meant to be used for administrative level scripting,
> replacing such things as WSH.
Yeah and WSH has been included since Windows 98... So Windows has been
at least OK with shell scripting VBScript and JScript for the last 15
years or so. And I can
John Immarino writes:
> I coded a Python solution for Problem #14 on the Project Euler
> website. I was very surprised to find that it took 107 sec. to run
> even though it's a pretty simple program. I also coded an equivalent
> solution for the problem in the old MSDOS basic. (That's the 16 bit
Michael Torrie writes:
> Actually, the shell isn't involved in parsing the shebang line at all.
> That's actually done in the kernel by the program loader. So it's the
> kernel that has a problem with it; wonder if Linus would accept a patch
> to ignore the tailing CR?
Worth a try in my opinion
leonardo writes:
> how can i have it print a row of stars beside each number, like this?:
>
> how many seconds?: 5
> 5 * * * * *
> 4 * * * *
> 3 * * *
> 2 * *
> 1 *
> blast off!
You could use the repetition operator * since you have the number of
repetitions needed in i. Alternatively, consider
lug...@elpasotel.net writes:
> I've been working through a Python tutorial online and one of the exercises
> uses the zip command. The only problem is that the command doesn't work.
> I've read through the man page for zip and it looks like what I'm attempting
> should work, but it doesn't.
>
Gilles writes:
> I see Python mentioned in /usr/lib and /usr/share, and was wondering
> if all it'd take to solve this issue, is just to cross-compile the
> interpreter and the rest is just CPU-agnostic Python scripts.
I suppose. In any case, cross compiling Python shouldn't be that hard. I
just
Rounak writes:
> I am a complete newbie. I want to know if the following can be done
> using python or should I learn some other language:
> (Basically, these are applescripts that I wrote while I used Mac OS)
> 1.Web Page Image to Wallpaper:
> A script that takes the current image in a browser
Necronymouse writes:
> Hello, I am learning python for about 2 years and I am bored. Not with
> python but I have a little problem, when i want to write something I
> realise that somebody had alredy written it! So i don´t want to make a
> copy of something but i wanna get better in python skills
Ben Finney writes:
>> bash# /usr/bin/python sample.py
>> File "sample.py", line 2
>> name = "blah"
>> ^
>> SyntaxError: invalid syntax
>
> Indentation is syntax in Python.
At least here with Python 2.5.2 I get "IndentationError: unexpected
indent". I'm just wondering why would the OP g
aj writes:
> I access python from a network share. This works fine on XP but on
> windows 7 it throws the following error:
>
> Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
im
Stefan Behnel writes:
> 'Stable Debian' has a long tradition of being late and outdated on arrival.
> That doesn't mean you can't use existing Debian packages on it.
Yes, but that's beside the point. No released version of Debian ships
with Python3 or even 2.6.
Oh, and RHEL5 and CentOS5 ship wi
Daniel Fetchinson writes:
>> 1. Python 3 is supported by major Linux distributions.
>>
>> FALSE - most distros are shipping with Python 2.4, or 2.5 at best.
>
> This latter statement is false, Fedora 11 and 12 come with python 2.6.
How does your mention of one distro counter that claim? Pe
Blog writes:
> Where did you come up with that information? Almost all of the major
> distros ship with 2.6.x - CentOS, OpenSuSe, Ubuntu, Fedora. (Debian
> does ship with 2.5, but the next major release "sid' is due out in Q2)
I don't see Python 2.6 in my CentOS 5.4 installation. All I see is
2.
Schif Schaf writes:
> (brackets replaced by braces). I can do that with Perl pretty easily:
>
>
> for (<>) {
> s/\[(.+?)\]/\{$1\}/g;
> print;
> }
>
Just curious, but since this is just transpose, then why not simply
tr/[]/{}/? I.e. why use a regular expression at all for this?
jonny lowe writes:
> The result is the same as before. I've tested in fedora11.
I don't think script is the answer here, since it only stores what's
displayed on a terminal and your program's input comes from a file and
is not displayed on the terminal.
Simplest solution is probably that you ha
Julian writes:
> I've asked this question at stackoverflow a few weeks ago, and to make
> it clear: this should NOT be a copy of the stackoverflow-thread
> "hidden features of Python".
Thanks for the hint, interesting stuff in there.
> For those guys would be a poster quite cool which describes
"Diez B. Roggisch" writes:
> Am 13.02.10 17:18, schrieb Anssi Saari:
>> Nobody writes:
>>
>>> A single process can't use much more than 2GiB of RAM without a 64-bit CPU
>>> and OS.
>>
>> That's not really true. Even Windows XP has
Nobody writes:
> A single process can't use much more than 2GiB of RAM without a 64-bit CPU
> and OS.
That's not really true. Even Windows XP has the /3GB boot option to
allow 3 GiB per process. On PCs, free operating systems and server
Windows can use PAE to give access to full 4 GB per process
V8 NUT writes:
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
Could it be you're missing zlib-devel? What does yum info zlib-devel
say? Or locate libz?
--
http://mail.python.org/mailman/listinfo/python-list
"'2+" writes:
> dev = ao.AudioDevice('alsa')
> dev.play(x)
>
> could launch me a semi realtime dj kinda sys
> luckily .. it does seem to be making the right sound
> but why?
> the default of the samplerate and that 16bit happened to match with my thing
> x?
Yes, that seems to be the case from h
Alan Mackenzie writes:
> Hi, Python!
>
> I build Python-2.6.4 on my GNU/Linux (Debian Sarge) box. I get a warning
> message "Failed to find the necessary bits to build these modules:
> _ssl ... RTFS to find out what!".
At a guess, you're missing libssl-dev. You might consider installing
p
Roy Smith writes:
> I'm still searching for as nice a font to use on Linux.
Envy Code R is a lookalike, so maybe worth considering. I haven't
tried actual Monaco on Linux, but apparently it's possible.
Personally, I use -lfp-gamow-medium-r-*-*-7-*-*-*-*-*-*-* in Linux
(Emacs).
--
http://mail.py
John Bond writes:
> Anyone have any experience with this, ideally using Python 3?
I don't but there is a great need to have a working SyncML client for
Thunderbird. Funambol used to have one available, but it has crashing
problems with Thunderbird 3 for some people. The existing extension
was do
Franck Ditter writes:
> Pardon my noobness (?) but why is there a 2.x and 3.x development
> teams working concurrently in Python ?
Well, Python 2.7 is the last major 2.x release, only bugfixes are done
for it, like the 2.7.1 release. Actual developement is in the 3.x
branch now.
> Which one sh
Ben Finney writes:
> Raymond Hettinger writes:
>
>> Compute π ± e by counting Mandlebrot set iterations :-)
>
> Very cool! I love π nerdery.
>
>
> Raymond Hettinger writes:
>
>> > Compute ð ± e by counting Mandlebrot set iterations :-)
>>
>> That should be: pi plus-or-minus e
>
> It was in my
Grant Edwards writes:
> I've lost track of how many times I've tried to learn to use the Gnu
> "info" command and gave up in frustration. I've never seen a program
> with a more difficult to use UI.
As I recall, there are other info viewers like tkinfo for example. But
really, how hard is the
Max Kotasek writes:
> Hello to all out there,
>
> I'm trying to figure out how to parse the responses from fcntl.ioctl()
> calls that modify the serial lines in a way that asserts that the line
> is now changed. For example I may want to drop RTS explicitly, and
> assert that the line has been d
John Nagle writes:
> In theory, the FTP spec supports "three-way transfers", where the
> source, destination, and control can all be on different machines.
> But no modern implementation supports that.
I remember even using that way back when, Unix machines in the 1990s.
But, server to ser
Monte Milanuk writes:
> Hello,
>
> I'm still a relative newbie to python, so I apologize if this is
> covered in detail somewhere and I missed it.
>
> I have a program or two that I want to work on once I get more
> proficient with python and sqlite and tkinter/wxpython. One of the
> big 'featur
Back9 writes:
> Hi,
>
> I have one byte data and want to know each bit info,
> I mean how I can know each bit is set or not?
Other than the tedious anding, oring and shifting, you can convert
your byte to a string (with function bin) and use normal string
handling functions to check if individua
David Robinow writes:
> Really, if you can't be bothered to set your key bindings to something
> you prefer, then I don't think Emacs is the right tool for you.
Uh, I absolutely think Emacs is the right tool for me, but I don't
think I've never changed any key bindings in the 20 years I've used
pyt...@bdurham.com writes:
> 1. Use an existing version control utility. There are lots of options
> here(!), any recommendations on a light weight, open source one that
> xcopy installs under Windows with lots of command line options?
Personally, I like RCS. It seems fulfil your requirements. Yo
Benjamin Kaplan writes:
> Sys.stdin and stdout are files, just like any other. There's nothing
> special about them at compile time. When the interpreter starts, it
> checks to see if they are ttys. If they are, then it tries to figure
> out the terminal's encoding based on the environment.
Just
writes:
> - Pull out text from each PDF page (to search for specific words)
> - Combine separate pdf documents into one document
> - Add bookmarks (with destination settings)
PDF Shuffler is a Python app which does PDF merging and splitting very
well. I don't think it does anything else, though,
kimjeng writes:
> the thing is i have installed gtkglextmm both from source and via a
> slackbuilds package script and i still get the same error,
> help would be a appreciated
You'll just have to check what it is configure actually tests for and
figure out from that why your system doesn't pass
Nobody writes:
> On Wed, 22 Sep 2010 00:31:04 +0200, Hellmut Weber wrote:
>
>> I'm looking for a possibility to access the partiton inforamtion of a
>> hard disk of my computer from within a python program.
>
> Have you considered parsing /proc/partitions?
One could also just read the partition
Lawrence D'Oliveiro writes:
> The Linux kernel includes built-in support for something close to two dozen
> different partition formats, from the common ones like MS-DOS, Solaris, SGI,
> Ultrix, EFI and BSD on down. Why reinvent parts of that when you can get it
> all for free?
Because for th
Dan M writes:
> On Thu, 28 Oct 2010 15:05:56 -0500, Dan M wrote:
>
> Ok, I didn't research enough before I posted this. I see now that this
> *is* indeed a MIME message, and the '?Q' bit says that the next piece is
> quoted-printable, and that the encoding is defined in RFC2047.
>
> So the ques
venkatachalam...@gmail.com writes:
> For example, the data is printed in
> execute_sensor_process.py as follows:
>
> print >>sys.stderr,sens_data
>
> By printing the data onto sys.stderr and assigning a return variable in the
> bash, I am expecting the data to be assigned.
>
> But this is not hap
John Black writes:
> All, in case this is useful to anyone, this rule that tells my newsreader
> which posts to kill really cleans up the group.
I get by just with a very old rule that lowers the score of articles
where the subject is in all caps. Those articles end up in the bottom of
the arti
101 - 149 of 149 matches
Mail list logo