"Loris Bennett" writes:
> I am aware that an individual user could use (mini)conda to install a
> more recent version of Python in his/her home directory, but I am
> interested in how root would install such a program.
Root would install the script and required Python version somewhere
depending
Grant Edwards writes:
> No. FWIW, it's the mailing list that's blocking them, not Gmane.
>
> That's why I wrote this:
>
> https://github.com/GrantEdwards/hybrid-inews
>
> It's an inews work-alike that submits most posts via gmanes NNTP
> server, but will deal with particular groups
> (e.g. gm
Dennis Lee Bieber writes:
> On Fri, 1 Apr 2022 03:59:32 +1100, Chris Angelico
> declaimed the following:
>
>
>>That's jmf. Ignore him. He knows nothing about Unicode and is
>>determined to make everyone aware of that fact.
>>
>>He got blocked from the mailing list ages ago, and I don't think
>>a
Chris Angelico writes:
> When you import something, all you're doing is getting a local
> reference to it; "from foo import make_adder" is basically like saying
> "import foo; make_adder = foo.make_adder". The function itself is
> still the same, and it still remembers its original context.
Than
I ran into what seems odd scoping to me when playing with some matching
examples for 3.10.
I kinda thought that if I do from foo import * and from bar import * in
the Python REPL, I'd get everything from foo and bar in the main
scope. Or whatever the scope is at the prompt.
And yet, if I define
Manfred Lotz writes:
> pyinstaller worked fine taking care of message.py and typer module. But
> as said in my other reply it is glibc version dependent.
Perhaps the included freeze.py script (included in the CPython source
that is, in Tools/freeze) is worth considering as well. Although it also
"Steve" writes:
> I am going though a struggle with this and just don't see where it fails.
It seems to me you're putting your data into strings when you need to
put it into lists. And no, adding brackets and commas to your strings so
that printing out the strings makes them look like lists does
Thomas Jollans writes:
> On 10/03/2021 21:50, Mats Wichmann wrote:
>>
>> For the first one, don't feel too bad, this ("opening the normal
>> python") seems to be biting a lot of people recently
>
>
> I wonder why. Python's installation process isn't any different from
> most other Windows softwar
Chris Green writes:
> Why are there both /usr/lib/python3 and /usr/lib/python3.8 on my
> x[ubuntu] system?
While it's more of an Ubuntu (or Debian) question better asked in some
relevant Linux forum, in the end it's because some package managers
decided to do that. You can use commands like thes
Terry Reedy writes:
> Perhaps half of the assigned chars in the first plane are printed
> instead of being replaced with a narrow box. This includes emoticons
> as foreground color outlines on background color. Maybe all of the
> second plane of extended CJK chars are printed. The third plane i
Klaus Jantzen writes:
> On 7/22/20 11:05 PM, Ned Deily wrote:
>> On 2020-07-22 06:20, Klaus Jantzen wrote:
>>> Trying to install Python 3.8.3 with tkinter I run configure with the
>>> following options
>>>
>>> ./configure --enable-optimizations --with-ssl-default-suites=openssl
>>> --with-openssl
Ben Finney writes:
> Emacs and a shell multiplexer (today, that's GNU Screen, but others
> swear that I should try TMux).
I've actually been using tmux for a while. The only reason and the only
thing I can think of that it does and screen doesn't is that tmux can
display italic text and screen a
songbird writes:
> my understanding is that this list is actually
> several combined services (i'm not sure how the
> mailing list operates or how it filters or rejects
> things) and then there is the usenet list comp.lang.python
> (which is how i see articles and replies).
I'm aware but the
Terry Reedy writes:
> On 1/26/2019 6:24 AM, Vrinda Bansal wrote:
>> Dear Sir/Madam,
>>
>> After Installation of the version 3.7.2(64 bit) in Windows 8 when I run the
>> program it gives an error. Screenshot of the error is attached below.
>
> Nope. This is text only mail list. Images are tossed
"Fetchinson . via Python-list" writes:
> And as far as I know pkg-config is used by python's configure script
> so everything should be fine. I also set
> LD_LIBRARY_PATH=/home/fetch/opt/lib:/home/fetch/opt/lib64 and also
> C_INCLUDE_PATH=/home/fetch/opt/include
I looked into this a little. I fo
Chris Angelico writes:
> On Fri, Nov 9, 2018 at 11:11 PM Anssi Saari wrote:
>>
>> Chris Angelico writes:
>>
>> > No helper needed. Safe against command injection. Uses the known
>> > format of the command's output; if you want other information as w
Chris Angelico writes:
> No helper needed. Safe against command injection. Uses the known
> format of the command's output; if you want other information as well
> as the type, you could get that too.
Can someone let me in on this secret helper module? Doesn't seem to
match the helper module in
Cameron Simpson writes:
> On 19Sep2018 09:12, synch1...@gmail.com wrote:
>>I'm just trying to follow along with the logging tutorial documentation and I
>>am getting this error:
>>
>>import logging
>>
>>logging.basicConfig(format= '%(asctime)s % (message)s', datefmt='%m%d%Y
>>%I:%M:%S %p')
>
>
Peter via Python-list writes:
>> from _curses import *
>> ModuleNotFoundError: No module named '_curses'
Oh yes, I tested in Cygwin and maybe it doesn't count? But for Windows
there's a curses wheel available at
https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses
--
https://mail.python.org/
shinobi@f153.n1.z21.fsxnet (shinobi) writes:
> Hello All,
>
> can anyone please let me know what's the path to port linux python curses
> program to Windows?
Is there really anything that needs to be done? At least a simple hello
world python curses program runs on Windows and Linux with no chang
D'Arcy Cain writes:
> One of these days I will have to figure out how to block replies to the
> trolls as well.
Benefit of reading the mailing list via nntp (i.e. gmane): can easily
score down follow-ups to annoying people in addition to their
posts. Well, assuming a decent newsreader.
--
http
Xristos Xristoou writes:
> I want to create a simple python app using pyqt,QWebView and google maps with
> markers.
>
> The problem is that,the markers does not load inside the QWebView, as
> you can see they load just fine in the browser.
Well, since you got a javascript error, maybe Qt4 doesn
Mark Lawrence writes:
>> This may be the result of a misconfigured spam filter, or an actual spam
>> attack; anyway, I've now filtered news.bbs.geek.nz from my feed.
>>
> IIRC the same source for the "nospam" stuff of some months ago which I
> believe was purely accidental.
It's kinda funny, bac
Skip Montanaro writes:
> Neither works for me. The news link clearly fails, but the gmane.org
> link has no search functionality either. Do you have a direct URL to
> comp.lang.python?
Gmane seems to be in the middle of a massive rebuild at the
moment. Comp.lang.python's webpage is
http://dir.gm
Peter Otten <__pete...@web.de> writes:
> Then convert to SVG with an external tool. It looks like ghostscript can do
> that:
>
> $ gs -dBATCH -dNOPAUSE -sDEVICE=svg -sOutputFile=tmp_turtle.svg tmp_turtle.ps
And if not (I at least don't have svg output on three ghostscripts I
tried), pstoedit can
Leam Hall writes:
> Folks on IRC have suggested using virtualenv to test code under
> different python versions. Sadly, I've not found a virtualenv tutorial
> I understand. Anyone have a link to a good one?
I recently used
http://www.simononsoftware.com/virtualenv-tutorial-part-2/ to set up
one.
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
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
"Frank Millman" writes:
> Hi all
>
> This is off-topic, but I would appreciate a comment on this matter.
>
> I have just upgraded my internet connection from ADSL to Fibre.
>
> As part of the process, my ISP sent a text message to my cell phone
> with the username and password I must use to conne
Wildman via Python-list writes:
> On Tue, 29 Nov 2016 18:29:51 -0800, Paul Rubin wrote:
>
>> Wildman writes:
>>> names = array.array("B", '\0' * bytes)
>>> TypeError: cannot use a str to initialize an array with typecode 'B'
>>
>> In Python 2, str is a byte string and you can do that. In P
jones.day...@gmail.com writes:
> but how do I replace the "2008, 8, 18" and "2008, 9, 26" with *my* values?
> I've tried several things (which I can't remember all of) but usually end up
> with an error like this:
Something like this?
today = date.today()
birthday = date(byear, bmonth, bday)
Demosthenes Koptsis writes:
> Hello, i have a PyQT systray app with a menu and two actions.
>
> Action1 is Exit and action2 display a MessageBox with Hello World message.
>
> When i click OK to MessageBox app quits...why?
>
> http://pastebin.com/bVA49k1C
I haven't done anything with Qt in a whil
"Frank Millman" writes:
> Let's see if I can explain. I am using 't' and 'r' instead of 'tree'
> and 'root', but otherwise it is the same as your original example.
>
t = {}
r = t
id(t)
> 2542235910088
id(r)
> 2542235910088
>
> At this point, t and r are both references to the
chenyong20...@gmail.com writes:
> My question is:
> (1) why root is always {}?
Because that's what you wrote. root.setdefault(ch, {}) returns {} and
you assign that to root. You probably want to do just
root.setdefault(ch, {}) instead of root = root.setdefault(ch, {}).
> (2) why tree is {'a': {'
Chris Angelico writes:
> I'm fairly sure most arguments about "readable" or "unreadable" code
> follow the same definitions.
Does it ever. I never thought annotating names one added with one's
initials or copy-pasting code instead of having a boolean expression in
an if statement or keeping old
Antoon Pardon writes:
> Op 29-09-15 om 11:27 schreef ple...@gmail.com:
>> I have a perplexing problem with Python 3 class variables. I wish to
>> generate an unique ID each time an instance of GameClass is
>> created. There are two versions of the __gen_id method with test run
>> results for each
Dennis Lee Bieber writes:
> On Wed, 23 Sep 2015 00:21:22 +0200, Laura Creighton
> declaimed the following:
>
>
>>
>>You need to convert your results into a string first.
>>
>>result_int=1234523
>>result_list=[]
>>
>>for digit in str(result_int):
>>result_list.append(int(digit))
>>
>
>
Marko Rauhamaa writes:
> Ned Batchelder :
>
>> I would find it much clearer to not use a nested class at all, and
>> instead to pass the object into the constructor:
>
> Nested classes are excellent and expressing the state pattern http://en.wikipedia.org/wiki/State_pattern>.
Do you have an exa
Rustom Mody writes:
> Does someone know what it does? [Dont remember where I found it]
One more comment: run Intel's Powertop to see what else you can do to
improve power management on your laptop.
--
https://mail.python.org/mailman/listinfo/python-list
Rustom Mody writes:
> For some reason my Dell laptop runs hot and noisy in linux but cool and
> silent in Windows-8
>
> Running
>
> $ echo "min_power" | sudo tee
> /sys/class/scsi_host/host*/link_power_management_policy
>
> makes the fan slow/stop.
>
> But I am not sure what it does!!
> [I dont
Steven D'Aprano writes:
> Vito De Tullio wrote:
>
>> Steven D'Aprano wrote:
>>
This just does not roll of the fingers well. Too many “reach for
modifier keys” in a row.
>>>
>>> *One* modifier key in a row is too many?
>>>
>>> s o m e SHIFT D o c [ ' SHIFT _ i d ' ]
>>
>> I'm not OP,
Steven D'Aprano writes:
> Here's the one-liner:
>
> python -c 'import socket;y="0"*5000;socket.gethostbyname(y)'
>
>
> I think it is likely that y="0"*5000 would segfault due to lack of
> memory on many machines. I wouldn't trust this as a test.
Hmm, how much RAM does that one-liner actu
Rustom Mody writes:
> How many people (actually machines) out here are vulnerable?
>
> http://security.stackexchange.com/questions/80210/ghost-bug-is-there-a-simple-way-to-test-if-my-system-is-secure
>
> shows a python 1-liner to check
Does that check actually work for anyone? That code didn't s
"Fetchinson ." writes:
> So what's the future proof way of writing/deploying/installing python
> programs on android?
Kivy is it I believe. I've meant to look into it but haven't gotten
around to it...
--
https://mail.python.org/mailman/listinfo/python-list
rfreundlic...@colonial.net writes:
> um, what if I want to USE a command line for python WITHOUT downloading or
> installing it
Then click on the little >_ icon on the web site and you have a python
prompt in your browser.
--
https://mail.python.org/mailman/listinfo/python-list
Rustom Mody writes:
> Pretty... but not exactly what I expect in an interactive console.
I have to agree although the console works for me. But shame on the site
maintainers though, the interactive console comes up with Python 3.3.6
instead of current 3.4.2 (and IPython 2.10, also not the latest
Jamie Mitchell writes:
> I created the 2D array which read as:
Maybe you could try numpy.reshape() on your 1D array?
--
https://mail.python.org/mailman/listinfo/python-list
marc.vanhoomis...@gmail.com writes:
> What should i do to let the same program run on both OS, without changes?
You'd want to set the locale on your Ubuntu box to a UTF8 locale. On
the command line you'd run sudo dpkg-reconfigure locales and proceed
from there, but I guess there might be gooey wa
Chris “Kwpolska” Warrick writes:
>> 2) the phone isn't necessarily visible on a pc as a drive at all.
>> For example the Samsung gs4.
>
> This is actually true for ALL android devices, starting with Android 3.0.
There was just a guy on comp.mobile.android saying his Android 4.2 phone
(BLU Dash
Marko Rauhamaa writes:
> Martin S :
>
>> Is there a point to still use Usenet? Last time I checked noise
>> overwhelmed signal by a factor of something close to 542.
>
> Well, here you are at news:comp.lang.python>, in the middle of all
> that noise.
Besides, there's been a slight resurgence in
memilanuk writes:
> I'm on Ubuntu (14.04 LTS, if it matters) and I've been using
> Thunderbird for a lng time... I've tinkered with slrn off and on
> over the years, tried pan occasionally due to recommendations... but I
> keep ending up back @ Thunderbird. About the only thing it doesn't do
Roy Smith writes:
> I once knew a guy who linked /dev/tty.c to /dev/tty, then he could do
> "cc /dev/tty.c" and type a C program in to the compiler from the
> terminal.
I thought some old C compilers took input from stdin without that kind
of trickery? Oh, looks like modern gcc does it too, as
rxjw...@gmail.com writes:
> Because I am new to Python, I may not describe the question clearly. Could you
> read the original problem on web:
>
> https://docs.python.org/2/howto/regex.html
>
> It says that it gets 'abcb'. Could you explain it to me? Thanks again
Actually, it tries to explain how
不坏阿峰 writes:
> Dear all
>
> i got code recipes from here. and i want to run it on win 7.
> http://code.activestate.com/recipes/577649-dhcp-query/
It works for me as is in Windows 7. It's a Python 3 script though which
might be your problem.
--
https://mail.python.org/mailman/listinfo/python-li
Gregory Ewing writes:
> Current draw of CMOS circuitry is pretty much zero when
> nothing is changing, so if you didn't care how slow it ran,
> you probably could run a server off a watch battery today.
That was before 90 nm when leakage current started dominating over
switching current. But has
Chris Angelico writes:
> I don't have an actual use-case for this, as I don't target
> microcontrollers, but I'm curious: What parts of Py3 syntax aren't
> supported?
I meant to say % formatting for strings but that's apparently been added
recently. My previous micropython build was from Februa
Marko Rauhamaa writes:
> Jabba Laci :
>
>> I tried this:
>>
>> #!/usr/bin/env python -u
>
> The hash-bang notation is quite rigid; it only accepts a single argument
> ("python") to the command ("/usr/bin/env").
>
> I don't know if there is a simple workaround.
Using the relevant environment vari
Terry Reedy writes:
> On 2/27/2014 7:07 AM, Mark H. Harris wrote:
>
>> Oh, and one more thing... whoever is doing the work on IDLE these
>> days, nice job! It is stable, reliable, and just works/
>> appreciate it!
>
> As one of 'them', thank you for the feedback. There are still some
> bugs, bu
hugocoolens writes:
> It often happens I start a python-script I wrote some time ago on another
> system and get messages like "module_x is missing". I then perform an
> apt-cache search module_x, followed by an apt-get install
> name_of_missing_module.deb
> I was wondering whether someone here
Asaf Las writes:
> btw, Python could be language of choice for embedded systems if small
> footprint
> vm could be developed. had seen similar for java having 10-20 KB byte sized
> interpreter with very limited set of functions.
Well, there's the newish Micro python project. Its footprint is
Paulo da Silva writes:
> Hi!
>
> Is there a way to copy a file the same as Unix command:
>
> cp -a --reflink src dest
>
> without invoking a shell command?
I vaguely remember this was asked and answered some time ago and the
answer was no, even just for -a. In fact, the python shutil module
doc
Dennis Lee Bieber writes:
> Does Pan have an option to generate its own Message-ID header?
>
> Headers seem to indicate multiple injections somewhere
Perhaps Pan doesn't? Someone else had multipostings in the Android group
but he was posting via aioe.
--
https://mail.python.org/mail
dic...@his.com writes:
> On Friday, October 18, 2013 12:46:19 PM UTC-4, Steven D'Aprano wrote:
>
>> xterms used to have a feature where they would write the title back to
>> standard input. Unfortunately, it has been disabled for security reasons,
>> so I haven't been able to get this to work (n
random...@fastmail.us writes:
> I would argue that it _should_ be, and that it should populate it with 0
> in gmtime or either with timezone/altzone or by some sort of reverse
> calculation in localtime, but it is not. Another problem to add to my
> list of reasons for my recent python-ideas propo
Kasper Jepsen writes:
> Hi,
>
> I have been using pywinusb.hid for a hid unit, using only feature reports.
> I like to get this code to run on raspbian PI, but i can not fint a good
> library to support HID/feature reports?
> I am a USB newbie
> Can anyone help me, or point me in a direction to
cutems93 writes:
> Thank you everyone for such helpful responses! Actually, I have one more
> question. Does anybody have experience with closed source version control
> software? If so, why did you buy it instead of downloading open source
> software? Does closed source vcs have some benefits
Chris Angelico writes:
> I have tab completion. Beat that, GUI.
Decent GUIs *have* tab completion. Bad GUIs don't.
Oh wait. Is a GUI with tab completion a GUI at all or more of a weird
ass hybrid? What about a CLI that pops up a menu for completions?
--
http://mail.python.org/mailman/listinfo/
eschneide...@comcast.net writes:
> Is there a more efficient way of doing this? Any help is gratly appreciated.
Efficiency in a short program isn't a big thing. You have some pretty
weird things in there, there's no need make single element tuples out of
your strings and then putting those in a l
Νικόλαος Κούρας writes:
> [code]
> root@nikos [/home/nikos/www/cgi-bin]# chmod g+w /var/log/httpd/suexec.log
> root@nikos [/home/nikos/www/cgi-bin]# ls -l /var/log/httpd/suexec.log
> -rw-rw-r-- 1 root root 0 Jun 1 02:52 /var/log/httpd/suexec.log
> [/code]
>
>
> and still iam receiving the same er
Carlos Nepomuceno writes:
> I'd like to have the option to download the source code as text/plain from
> the docs.python.org pages.
>
> For example: when I'm a docs page, such as:
>
> http://docs.python.org/2/library/string.html
>
> and I click the source code link I'm taken to a Mercurial page:
Chris Angelico writes:
> On Thu, May 9, 2013 at 9:30 PM, Jussi Piitulainen
> wrote:
>> 8 Dihedral writes:
>>
>>> This is just the handy style for a non-critical loop.
>>> In a critical loop, the number of the total operation counts
>>> does matter in the execution speed.
>>
>> Do you use sp
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
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.
>
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
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
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
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
Ben Finney writes:
> Hans Mulder writes:
>
>> Don't bother: Python comes with a free IDE named IDLE.
>
> And any decent Unix-alike (most OSen apart from Windows) comes with its
> own IDE: the shell, a good text editor (Vim or Emacs being the primary
> candidates), and a terminal multiplexor (suc
farrellpolym...@gmail.com writes:
> Hello to the group!
>
> I've learned a lot about Ubuntu just trying to install numpy for Python
> 3.2.3. I've finally managed to put it in the Python3.2 directory but when I
> try to import it, I still get there's "no module named numpy." There are
> other mo
Daniel Fetchinson writes:
> But I have zero experience with gui programming in python. So any
> pointers would be much appreciated how to implement a system tray in
> python. Gtk is I guess just one option, one could use other stuff from
> python but I wouldn't know what the simplest approach is.
Cameron Simpson writes:
> My personal habit to to build with (adjust to match):
>
> --prefix=/usr/local/python-2.6.4
>
> and put some symlinks in /usr/local/bin afterwards (python2.6, etc).
There's actually a program for that, it's called stow.
--
http://mail.python.org/mailman/listinfo/pytho
Wolfgang Keller writes:
> This whole cycle of "design GUI"->"generate code"->add own code to
> generated code"->"run application with GUI" has always seemed very
> un-pythonic to me. A dynamic, interpreted language should allow to work
> in a more "lively", "direct" way to build a GUI.
What abou
Mark Lawrence writes:
> I went onto google groups to do a search and saw three threads (there
> may be more) that I've never seen on gmane, which I read via
> thunderbird on windows. The titles are "Is programming art or
> science", "breezypythongui: A New Toolkit for Easy GUIs in Python" and
>
Matej Cepl writes:
> Slightly less flameish answer to the question “What should I do,
> really?” is a tough one: all these suggested answers are bad because
> they don’t deal with the fact, that your input data are obviously
> broken. The rest is just pure GIGO …
Well, sure, but it happens that
Adam Mercer writes:
> Can anyone offer any suggestions as to what is going wrong with the
> above code or offer an alternative way of determining the OpenSSl
> version using python-2.6?
I suppose you could use ctypes to load the library and call SSLeay()
which returns the OpenSSL version number
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
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
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
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
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
"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
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
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
Fig writes:
> My OS is Windows 7, Python 2.7.2, I downloaded and installed the
> python-gasp-0.2.0beta1.win32.exe file, and I also have these
> installed: Python 2.7 pygame-1.9.2a0 and Python 2.7 pywin32-216
Then maybe that old beta version is your problem? For the record, your
code works for me
Sahil Tandon writes:
> I've been tasked with converting some programs from Perl -> Python, and
> am (as will soon be obvious) new to the language.
If it's any help, I have usually done handling of standard input line by
line with this kind of thing:
for inputline in sys.stdin:
--
http://mail.
przemol...@poczta.fm writes:
> Hello,
>
import locale
locale.setlocale(locale.LC_ALL, "pl_PL")
> 'pl_PL'
i=0.20
j=0.25
locale.format('%f', i)
> '0,20'
locale.format('%f', j)
> '0,25'
>
> I need to print the numbers in the following format:
> '0,2' (i)
> '0,25'
Ghodmode writes:
> Newsgroups aren't inherently spam-free. They're filtered. At least
> that's the case with Gmane (http://gmane.org/spam.php).
>
> My own ISP doesn't provide a news server and, although there are many
> links for free open news servers, most of them don't seem to work.
You kno
Thorsten Kampe writes:
> The "perfect programming font" is just the one that looks so good that
> you would also use it for writing email. Dejavu Sans Mono is pretty
> good. Consolas looks also looks good but it is Windows only.
How is Consolas Windows only? Not that I'd put it in my Windows-f
Mel writes:
> def file_to_hash(path, m = hashlib.md5()):
>
> hashlib.md5 *is* called once; that is when the def statement is executed.
Very interesting, I certainly wasn't clear on this. So after that def,
the created hashlib object is in the module's scope and can be
accessed via file_to_hash._
1 - 100 of 149 matches
Mail list logo