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
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:
Νικόλαος Κούρας 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
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
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/
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
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
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.
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
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
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
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
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
>
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
Phlip writes:
> If the file were huge, the file.read() would allocate a big string and
> thrash memory. (Yes, in 2011 that's still a problem, because these
> files could be movies and whatnot.)
I did a crc32 calculator like that and actually ran into some kind of
string length limit with large 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._
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
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
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'
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.
Grant Edwards writes:
> C wasn't very widely used under VMS, and VMS had it's own screen
> formatting and form handling libraries.
Just curious, what language was widely used in VMS? My VMS experience
is limited to running Maple for a math course in the university in
early 1990s. Didn't know how
rzed writes:
> Did you say "was"? The last time I did any programming on a VMS system
> was ... about 5 1/2 hours ago. Our shop runs OpenVMS now, programs
> mostly in C and BASIC. I've quietly insinuated Python into the mix
> over the last few months, and that has helped my sanity considerably
"John L. Stephens" writes:
> As the parent process terminates 'normally' (either through normal
> termination or SIGINT termination), mulitprocessing steps in and
> performs child process cleanup via the x.terminate() method. If the
> parent terminates any other way, multiprocessing doesn't have
Roy Smith writes:
> I'm not sure how to parse:
>> We cannot use ssh as root remote connectivity as well.
>
> but with 1000's of servers, I really don't see any alternative to ssh,
> with key authentication. You don't really propose to type passwords at
> 1000's of machines, do you?
I guess i
Tim Johnson writes:
> I have python 2.6.5 on my main workstation with ubuntu 10.04. I am
> attempting to set up a temporary test platform on an asus netbook
> with slax running from an SD card. I have installed a python 2.7
> module on the slax OS. (I can't find a python 2.6.5 module for
> slax).
Chris Angelico writes:
> Depending on what exactly is needed, it might be easier to run a
> separate daemon on the computers, one whose sole purpose is to do the
> task / get the statistics needed and return them. Then the Python
> script need only collect each program's returned response.
Those
Roger House writes:
> I tried PyRun_String, but I can't see how it can be used to return a
> tuple (the Py_file_input option always returns None).
There's an example of this at
http://stackoverflow.com/questions/3789881/create-and-call-python-function-from-string-via-c-api
The comments say this
Algis Kabaila writes:
> Are there any modules for vector algebra (three dimensional
> vectors, vector addition, subtraction, multiplication [scalar
> and vector]. Could you give me a reference to such module?
NumPy has array (and matrix) types with support for these basic
operations you mentio
Andreas Tawn writes:
> You might also want to consider http://code.google.com/p/pyeuclid/
Thanks, I was studying quaternions recently and had to use two
packages to get some stuff done. And of course one of them used
ass-backwards declaration for a quaternion and one didn't...
--
http://mail.py
"Waddle, Jim" writes:
> I do not have sufficient knowledge to know how to fix this. I would think
> that this error somehow is related to compiling on aix. If you have any
> suggestions on how to correct this problem , I would appreciate it
I'd have to guess your main problem is not using gcc
Jean-Michel Pichavant writes:
> For a single user, there would be no merge issue.
Really? What about a single user with many computers and environments?
I find myself merging files on occasion because I edited them
separately and forgot to check in changes before doing more edits on a
different
rusi writes:
> I am a bit surprised that no one has mentioned rcs so far
> Not an option if you are not on a *ix system and not something I am
> specifically recommending.
I actually use rcs in Windows. Needs a little setup, but works great,
from Emacs VC-mode too.
--
http://mail.python.org/mai
rusi writes:
>> I actually use rcs in Windows. Needs a little setup, but works great,
>> from Emacs VC-mode too.
>
> Where do you get it?
> [What google is showing seems to be about 10-15 years old]
As far as I know, RCS hasn't been updated since 5.7 which is about 10
years old now. Linux distri
Neal Becker writes:
> Here's some useful snippits for linux:
>
> def get_default_if():
> f = open('/proc/net/route')
> for i in csv.DictReader(f, delimiter="\t"):
> if long(i['Destination'], 16) == 0:
> return i['Iface']
> return None
>
> def get_ip_address(ifname)
Alister Ware writes:
> On Fri, 13 May 2011 13:13:00 +, alister ware wrote:
>
>> I am using gtk.builder with a glade generated GUI
>>
>> I have a simple call back defined for a radio button widget when I use
>> widget.name in linux I get a value of None, windows returns the widget
>> name as
TheSaint writes:
> self.handle= \
> xmlrpclib.ServerProxy('http://localhost:%s/rpc' %int(self.numport))
Couldn't you just try to call something via this handle, like
self.handle.aria2.getVersion()? If there's an error, then start aria2
as a daemon and try again.
--
http://mail.
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.
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
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
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
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
"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
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
"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
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
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
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
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
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': {'
"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
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
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)
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
"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
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
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
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
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/
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')
>
>
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
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
"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
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
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
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
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
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
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
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
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
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
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
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
"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
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
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
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,
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
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
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
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
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
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
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
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
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
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))
>>
>
>
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
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
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
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
不坏阿峰 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
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
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
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
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
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
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
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
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
1 - 100 of 149 matches
Mail list logo