On 15 Mai, 03:46, Patrick Maupin wrote:
> On May 14, 6:52 pm, Paul Boddie wrote:
> > And suggesting that people have behavioural disorders ("Or because
> > have OCD?") might be a source of amusement to you, or may be a neat
> > debating trick in certain circles yo
On 15 Mai, 04:20, Lawrence D'Oliveiro wrote:
> In message
> , Paul
> Boddie wrote:
> > Although people can argue that usage of the GPL prevents people from
> > potentially contributing because they would not be able to sell
> > proprietary versions of the sof
On 14 Mai, 21:18, Ed Keith wrote:
>
> The GPL is fine when all parties concern understand what source code is
> and what to do with it. But when you add people like my father to the loop
> if gets very ugly very fast.
Sure, and when I'm not otherwise being accused of pushing one
apparently rather
On 14 Mai, 21:14, Patrick Maupin wrote:
>
> If Joe downloads and burns a CD for his friend, he may not have the
> sources and may not have any intention of getting them, and probably
> didn't provide a "written offer." What you're "ignoring for the
> moment" is my whole point, that unlike Ubuntu,
On 14 Mai, 22:12, Patrick Maupin wrote:
>
> I *obviously*
> was explaining that projects which *aren't* marginal, such as PyQt and
> MatLab, are the *only* kinds of projects that would be rewritten for a
> simple license change.
"As far as your comments about PyQt proving out the concept, well du
On 14 Mai, 20:36, Patrick Maupin wrote:
>
> That statement was made in the context of why Carl doesn't use GPL-
> licensed *libraries*. He and I have both explained the difference
> between libraries and programs multiple times, not that you care.
Saying that GPL-licensed applications are accept
On 14 Mai, 19:15, Patrick Maupin wrote:
> On May 14, 11:48 am, Paul Boddie wrote:
> > Section 3 of GPLv2 (and section 6(d) of GPLv3 reads similarly): "If
> > distribution of executable or object code is made by offering access
> > to copy from a designated place, then
On 14 Mai, 19:00, Patrick Maupin wrote:
>
> Would you have agreed had he had said that "MatLab's license doesn't
> do much good" and assigned the same sort of meaning to that statement,
> namely that the MatLab license prevented enough motivated people from
> freely using MatLab in ways that were
On 14 Mai, 17:37, Patrick Maupin wrote:
>
> Before, you were busy pointing me at the GPL FAQ as authoritative.
No, the licence is the authority, although the FAQ would probably be
useful to clarify the licence author's intent in a litigation
environment.
[Fast-forward through the usual tirade, t
On 14 Mai, 09:08, Carl Banks wrote:
> On May 13, 10:59 pm, Steven D'Aprano
> wrote:
> > On Thu, 13 May 2010 17:18:47 -0700, Carl Banks wrote:
> > > 2. Reimplment the functionality seperately (*cough* PySide)
>
> > Yes. So what? In what possible way is this an argument against the GPL?
[...]
>
On 14 Mai, 05:35, Patrick Maupin wrote:
>
> I mean, it's in English and very technically precise, but if you
> follow all the references, you quickly come to realize that the
> license is a "patch" to the GPL.
It is a set of exceptions applied to version 3 of the GPL, done this
way so that the ex
On 14 Mai, 03:56, a...@pythoncraft.com (Aahz) wrote:
>
> IMO this only makes sense if one agrees that people should not be allowed
> to sell software for money. Absent that agreement, your argument about
> freedom seems rather limited.
You'll have to explain this to me because I don't quite follo
On 13 Mai, 22:10, Patrick Maupin wrote:
>
[...]
Just to deal with your Ubuntu "high horse" situation first, you should
take a look at the following for what people regard to be the best
practices around GPL-licensed software distribution:
http://www.softwarefreedom.org/resources/2008/compliance
On 13 Mai, 01:58, Patrick Maupin wrote:
> On May 12, 6:15 pm, Paul Boddie wrote:
> > Right. The "full cost" of software that probably cost them nothing
> > monetarily and which comes with all the sources, some through a chain
> > of distribution and impr
On 13 Mai, 01:36, Patrick Maupin wrote:
>
> Once the court reaches that conclusion, it would only be a tiny step
> to find that the FSF's attempt to claim that clisp infringes the
> readline copyright to be a misuse of that same readline copyright.
> See, e.g. LaserComb v Reynolds, where the defen
On 11 Mai, 14:12, Ed Keith wrote:
> --- On Mon, 5/10/10, Ben Finney wrote:
>
> > So I object to muddying the issue by misrepresenting the source of that
> > force. Whatever force there is in copyright comes from law, not any free
> > software license.
>
> You are the one muddying the waters. It d
On 12 Mai, 20:29, Patrick Maupin wrote:
>
> But nobody's whining about the strings attached to the software. Just
> pointing out why they sometimes won't use a particular piece of
> software, and pointing out that some other people (e.g. random Ubuntu
> users) might not understand the full cost o
On 12 Mai, 21:02, Patrick Maupin wrote:
> On May 12, 1:00 pm, Paul Boddie wrote:
[Quoting himself...]
> > "Not least because people are only obliged to make their work
> > available under a GPL-compatible licence so that people who are using
> > the combined work
On 12 Mai, 16:10, Patrick Maupin wrote:
> On May 12, 7:10 am, Paul Boddie wrote:
> > What the licence asks you to do and what the author of the licence
> > wants you to do are two separate things.
>
> But the whole context was about what RMS wanted me to do and you
> di
On 12 Mai, 16:45, Patrick Maupin wrote:
> On May 12, 7:43 am, Paul Boddie wrote:
> > Thus, "owned my soul" joins "holy war" and "Bin Laden" on the list.
> > That rhetorical toolbox is looking pretty empty at this point.
>
> Not emptier than y
On 11 Mai, 22:50, Patrick Maupin wrote:
> On May 11, 5:34 am, Paul Boddie wrote:
>
> > Yes, *if* you took it. He isn't forcing you to take it, though, is he?
>
> No, but he said a lot of words that I didn't immediately understand
> about what it meant to be free
On 11 Mai, 23:02, Patrick Maupin wrote:
>
> Huh? Permissive licenses offer much better certainty for someone
> attempting a creative mash-up. Different versions of the Apache
> license don't conflict with each other. If I use an MIT-licensed
> component, it doesn't attempt to make me offer my wh
if you're distributing the entire
> application.
I wrote "the software" above when I meant "your software", but I have
not pretended that the whole system need not be available under the
GPL. Otherwise the following text would be logically inconsistent with
such claims:
[.
On 11 Mai, 15:00, Lie Ryan wrote:
>
> Come on, 99% of the projects released under GPL did so because they
> don't want to learn much about the law; they just need to release it
> under a certain license so their users have some legal certainty.
Yes, this is frequently the case. And the GPL does
On 10 Mai, 20:36, Patrick Maupin wrote:
>
> I've addressed this before. Aahz used a word in an accurate, but to
> you, inflammatory, sense, but it's still accurate -- the man *would*
> force you to pay for the chocolate if you took it.
Yes, *if* you took it. He isn't forcing you to take it, thou
On 10 Mai, 17:01, Patrick Maupin wrote:
>
> I'll be charitable and assume the fact that you can make that
> statement without apparent guile merely means that you haven't read
> the post I was referring to:
>
> http://www.gnu.org/philosophy/why-not-lgpl.html
Of course I have read it, and not just
On 10 Mai, 17:06, a...@pythoncraft.com (Aahz) wrote:
> In article
> <074b412a-c2f4-4090-a52c-4d69edb29...@d39g2000yqa.googlegroups.com>,
> Paul Boddie wrote:
> >Actually, the copyleft licences don't "force" anyone to "give back
> >changes": th
On 10 Mai, 08:31, Carl Banks wrote:
> On May 9, 10:08 am, Paul Boddie wrote:
> > Oh sure: the GPL hurts everyone, like all the companies who have made
> > quite a lot of money out of effectively making Linux the new
> > enterprise successor to Unix, plus all the companies an
On 10 Mai, 03:09, Patrick Maupin wrote:
> On May 9, 6:39 pm, Paul Boddie wrote:
> > but if they aren't pitching it directly at you, why would you believe
> > that they are trying to change your behaviour?
>
> Because I've seen people specifically state that
On 10 Mai, 00:02, Patrick Maupin wrote:
>
> You just answered your own question. It's pathetic to try to change
> people's behavior by offering them something worthless if they change
> their license to match yours. (I'm not at all saying that all GPL
> code is worthless, but I have seen things
On 9 Mai, 21:55, Patrick Maupin wrote:
> On May 9, 12:08 pm, Paul Boddie wrote:
>
> > Oh sure: the GPL hurts everyone, like all the companies who have made
> > quite a lot of money out of effectively making Linux the new
> > enterprise successor to Unix, plus all the c
On 9 Mai, 21:07, Patrick Maupin wrote:
> On May 9, 1:02 pm, Paul Boddie wrote:
> >
> > People often argue
> > that the GPL only cares about the software's freedom, not the
> > recipient's freedom, which I find to be a laughable claim because if
> > one
On 9 Mai, 19:55, Steven D'Aprano wrote:
>
> Patrick said that Apple is NOT a "do no evil" company.
Yes, apologies to Patrick for reading something other than what he
wrote. I suppose I've been reading too many Apple apologist
commentaries of late and probably started to skim the text after I hit
On 8 Mai, 22:05, Patrick Maupin wrote:
> On May 8, 2:38 pm, Steven D'Aprano >
> > No, you don't *owe* them anything, but this brings us back to Ben's
> > original post. If you care about the freedoms of Cisco's customers as
> > much as you care about the freedoms of Cisco, then that's a good reas
On 9 Mai, 07:09, Patrick Maupin wrote:
>
> See, for example, Apple's
> support of BSD, Webkit, and LLVM. Apple is not a "do no evil"
> corporation, and their contributions back to these packages are driven
> far more by hard-nosed business decisions th
On 9 Mai, 09:05, Carl Banks wrote:
>
> Bottom line is, GPL hurts everyone: the companies and open source
> community. Unless you're one of a handful of projects with sufficient
> leverage, or are indeed a petty jealous person fighting a holy war,
> the GPL is a bad idea and everyone benefits from
On 21 Feb, 03:00, "sjdevn...@yahoo.com" wrote:
> On Feb 18, 2:58 pm, John Nagle wrote:
>
> > Multiple processes are not the answer. That means loading multiple
> > copies of the same code into different areas of memory. The cache
> > miss rate goes up accordingly.
>
> A decent OS will use c
On 21 Feb, 17:32, Mensanator wrote:
> On Feb 21, 10:30 am, Mensanator wrote:
>
> > What versions of Python does it suuport?
>
> What OS are supported?
>From the Web site referenced in the announcement (http://
dreampie.sourceforge.net/):
"""
# Supports Python 2.5, Python 2.6, Jython 2.5, IronPy
On 14 Feb, 19:41, Steve Howell wrote:
>
> I ditto the profiling recommendation.
>
> http://docs.python.org/library/profile.html
(To the original inquirer...) Try this, too:
http://wiki.python.org/moin/PythonSpeed/Profiling
If you have the tools, it's a lot easier than scanning through tables
of
On 29 Jan, 06:56, Terry Reedy wrote:
> On 1/28/2010 6:47 PM, Paul Boddie wrote:
>
> > What would annoy me if I used Python 3.x would be the apparent lack of
> > the __cmp__ method for conveniently defining comparisons between
> > instances of my own classes. Havin
On 27 Jan, 13:26, Xah Lee wrote:
>
> So, for practical reasons, i think a “key” parameter is fine. But
> chopping off “cmp” is damaging. When your data structure is complex,
> its order is not embedded in some “key”. Taking out “cmp” makes it
> impossible to sort your data structure.
What would a
On 27 Jan, 23:00, Mitchell L Model wrote:
>
> I suppose that since a file: URL is not, strictly speaking, on the
> web, that it shouldn't be opened with a "web" browser.
But anything with a URL is (or should be regarded as being) on the
Web. It may not be anything more than a local resource and
On 15 Jan, 21:14, Timur Tabi wrote:
> After reading several web pages and mailing list threads, I've learned
> that the webbrowser module does not really support opening local
> files, even if I use a file:// URL designator. In most cases,
> webbrowser.open() will indeed open the default web brow
On 28 Des 2009, 08:32, Andrew Jonathan Fine
wrote:
>
> As a hobby to keep me sane, I am attempting to retrain
> part time at home as a jeweler and silversmith, and I sometimes used
> Python for generating and manipulating code for CNC machines.
It occurs to me that in some domains,
On 16 Des, 17:03, "eric_dex...@msn.com" wrote:
> #this should be a cross platform example of os.startfile ( startfile )
> #for windows and linux. this is the first version and
> #linux, mac, other os's commands for exceptions to the
> #rule would be appreciated. at some point this will be
> #in
On 30 Nov, 18:14, inhahe wrote:
> i don't think structs technically exist in Python (though they exist
> in C/C++), but you could always use a plain class like a struct, like
> this, for a simple example:
>
> class Blah:
> pass
>
> b = blah()
> b.eyecolor = "brown"
[...]
Yes, a "bare" class ca
On 22 Nov, 05:10, exar...@twistedmatrix.com wrote:
>
> "tail -f" is implemented by sleeping a little bit and then reading to
> see if there's anything new.
This was the apparent assertion behind the "99 Bottles" concurrency
example:
http://wiki.python.org/moin/Concurrency/99Bottles
However, as I
On 25 Nov, 13:11, Antoine Pitrou wrote:
>
> When you say "executing each kind of bytecode instruction", are you
> talking about the overhead of bytecode dispatch and operand gathering, or
> the total cost including doing the useful work?
Strip away any overhead (dispatch, operand gathering) and j
On 24 Nov, 19:25, Antoine Pitrou wrote:
>
> Sorry, I have trouble parsing your sentence. Do you mean bytecode
> interpretation overhead is minimal compared to the cost of actual useful
> work, or the contrary?
> (IMO both are wrong by the way)
I'm referring to what you're talking about at the end
On 24 Nov, 16:11, Antoine Pitrou wrote:
>
[JUMP_IF_FALSE]
> It tries to evaluate the op of the stack (here nonevar) in a boolean
> context (which theoretically involves calling __nonzero__ on the type)
> and then jumps if the result is False (rather than True).
[...]
> As someone pointed out,
On 17 Nov, 14:48, Aaron Watters wrote:
>
> ... and I still have an issue with the whole "Python is slow"
> meme. The reason NASA doesn't build a faster Python is because
> Python *when augmented with FORTRAN libraries that have been
> tested and optimized for decades and are worth billions of dol
On 16 Nov, 05:51, sturlamolden wrote:
>
> NASA can find money to build a space telescope and put it in orbit.
> They don't find money to create a faster Python, which they use for
> analyzing the data.
Is the analysis in Python really what slows it all down?
> Google is a multi-billion dollar bu
On 15 Nov, 09:30, Terry Reedy wrote:
> greg wrote:
>
[Shed Skin]
> > These restrictions mean that it isn't really quite
> > Python, though.
>
> Python code that only uses a subset of features very much *is* Python
> code. The author of ShedSkin makes no claim that is compiles all Python
> code.
On 27 Okt, 18:26, Aaron Watters wrote:
>
> Alex sent me the traceback (thanks!) and after consulting
> the logs and the pages I figured out that the version of
> Firefox in question was not ignoring my javascript links like
> it should. Instead FF was interpreting them as HTTP links to
> pages th
On 27 Okt, 03:49, Aaron Watters wrote:
>
> WHIFF now includes components for
> implementing "tree views" for web navigation panes
> or other purposes, either using AJAX or frame
> reloads. Try the GenBank demo at
>
> http://aaron.oirt.rutgers.edu/myapp/GenBankTree/index
This looks interesting, b
On 16 Okt, 01:49, Benjamin Kaplan wrote:
>
> Unicode is an abstract concept, and as such can't actually be written
> to a file. To write Unicode to a file, you have to specify an encoding
> so Python has actual bytes to write. If Python doesn't know what
> encoding it should use, it defaults to pl
On 1 Okt, 16:08, John wrote:
>
> I downloaded the cx_freeze source code
> fromhttp://cx-freeze.sourceforge.net/into a directory.
[...]
> From
> here:http://linux.softpedia.com/get/Programming/Assembler-Tools/cx-Freeze-...
> the directions state:
What about the documentation available from th
On 25 Sep, 23:14, Olof Bjarnason wrote:
>
> So what approach do you suggest? I've gotten as far as understanding
> how to add menu-items to the Ubuntu menus, simple .desktop file format
> to do that.
Yes, xdg-desktop-menu will probably do the trick.
> One could "cheat" and write an install.sh sc
On 25 Sep, 13:21, Olof Bjarnason wrote:
>
> I am thinking of two target audiences:
>
> 1. Early adopters/beta-testers. This would include:
> - my non-computer-geek brother on a windows-machine. I'll go for py2exe.
> - any non-geek visiting my blog using windows (py2exe)
I'd really like to hea
On 25 Sep, 09:26, Donn wrote:
>
> You could use distutils (setup.py) and include a readme that explains what
> apt-get commands to use to install pygame, etc. Generally it's better to *not*
> include the kitchen-sink with your apps; rather expect the user to have those
> libraries already or be ab
On 25 Sep, 08:15, Olof Bjarnason wrote:
> Hi!
>
> I write small games in Python/PyGame. I want to find a way to make a
> downloadable package/installer/script to put on my webpage, especially
> for Ubuntu users.
>
> I've skimmed a couple of tutorials on how to generate .deb-files, but,
> wow, it's
On 21 Sep, 02:52, s...@pobox.com wrote:
> I've noticed over the past few weeks a huge increase in the frequency of
> edits in the Python wiki. Many of those are due to Carl Trachte's work on
> non-English pages about Python. There are plenty of other pages going under
> the knife as well though.
On 19 Sep, 21:19, MacRules wrote:
>
> Is there a python profiler just like for C program?
> And tell me which functions or modules take a long time.
>
> Can you show me URL or link on doing this task?
Having already looked at combining Python profilers with KCachegrind
(as suggested by Andrew Dal
On 18 Sep, 23:17, lkcl wrote:
>
> the pyjamas project is taking a slightly different approach to achieve
> this same goal: beat the stuffing out of the pyjamas compiler, rather
> than hand-write such large sections of code in pure javascript, and
> double-run regression tests (once as python, seco
On 17 Sep, 23:24, kj wrote:
> In Dive Into Python, Mark Pilgrim offers the function openAnything
> that can open for reading "anything" (i.e. local files or URLs).
>
> I was wondering if there was already in the standard Python library
> an "official" version of this, that could not only open (for
On 16 Sep, 18:31, lkcl wrote:
>
> http://pyjs.org/examples/timesheet/output/TimeSheet.html
I get this error dialogue message when visiting the above page:
"TimeSheet undefined list assignment index out of range"
Along with the following in-page error, once the data has been
imported:
"JavaScri
On 14 Sep, 04:46, alex23 wrote:
> joy99 wrote:
> > What is the problem I am doing?
>
> Following the wrong installation instructions?
The "wrong" instructions appear to come from this page:
http://docs.djangoproject.com/en/dev/topics/install/
Those instructions are really for Django core devel
On 31 Aug, 00:28, r wrote:
>
> I said it before and i will say it again. I DON"T CARE WHAT LANGUAGE
> WE USE AS LONG AS IT IS A MODERN LANGUAGE FOUNDED ON IDEALS OF
> SIMPLICITY
[Esperanto]
> English is by far already the de-facto lingua franca throughout the
> world.
You don't care, but he
On 30 Aug, 18:00, r wrote:
>
> Hold the phone Paul you are calling me a retarded bigot and i don't
> much appreciate that. I think you are completely misinterpreting my
> post. i and i ask you read it again especially this part...
I didn't call you a "retarded bigot", and yet I did read your post
On 30 Aug, 14:49, r wrote:
>
> It can be made better and if that means add/removing letters or
> redefining what a letter represents i am fine with that. I know first
> hand the hypocrisy of the English language. I am thinking more on the
> lines of English redux!
Elsewhere in this thread you've
On 27 Aug, 15:27, "Diez B. Roggisch" wrote:
>
> You mean it's the problem of the python packaging that it can't deal with
> RPMs, debs, tgzs, OSX bundles, MSIs and
> ?
No, it's the problem of the Pythonic packaging brigade that package
retrieval, building and installing is combined into one unsat
On 26 Aug, 17:48, Jorgen Grahn wrote:
>
> Well, if you are thinking about Debian Linux, it's not as much
> "ripping out" as "splitting into a separate package with a non-obvious
> name". Annoying at times, but hardly an atrocity.
Indeed. Having seen two packages today which insisted on setuptools
On 19 Aug, 13:55, Nuno Santos wrote:
> I have just started using libxml2dom to read html files and I have some
> questions I hope you guys can answer me.
[...]
> >>> table = body.firstChild
> >>> table.nodeName
> u'text' #?! Why!? Shouldn't it be a table? (1)
You answer this yourself just bel
On 18 Aug, 23:02, KillSwitch wrote:
> Hey guys,
> Is it possible to edit a wiki page with python, including logging in
> to edit the page, and inserting text into the edit box, etc. I was
> thinking maybe python would be the language to do this in, because I
> have to iterate through every line in
On 18 Aug, 05:19, ru...@yahoo.com wrote:
>
> Yes, I agree. I should have mentioned this as an exception
> in my "wikis suck" diatribe. Although it far better than
> most wiki's I've seen, it is still pretty easy to find signs
> of typical wiki-ness. On the Documentation page my first
> click was
On 17 Aug, 19:23, Jean-Michel Pichavant
wrote:
>
> Are you suggesting this list reject part of the community regarding its
> sexual orientation, ethnicity, size, culture? If that was the case I'd
> like to know about it.
Careful: you probably meant to write "rejects", not "reject". That
changes t
On 13 Aug, 16:05, ru...@yahoo.com wrote:
>
> All the above not withstanding, I too think a wiki is worth
> trying. But without doing a lot more than just "setting up
> a wiki", I sadly believe even a python.org supported wiki
> is doomed to failure.
The ones on python.org seem to function reasona
On 12 Aug, 17:08, Steven D'Aprano wrote:
> On Wed, 12 Aug 2009 06:24:18 -0700, Paul Boddie wrote:
>
> > What does the Python entry on Wikipedia have to do with editing the
> > Python documentation in a Wiki?
>
> Good question. I was responding to you mentioning W
On 12 Aug, 14:08, Steven D'Aprano wrote:
>
> With tens of millions of web users, it's no surprise that Wikipedia can
> attract thousands of editors. But this does not apply to Python, which
> starts from a comparatively tiny population, primarily those interested
> in Python. Have a look at the Wi
On 12 Aug, 09:58, Steven D'Aprano
wrote:
>
> We know that there are problems. We've said repeatedly that corrections
> and patches are welcome. We've repeatedly told you how to communicate
> your answer to the question of what should be done. None of this is good
> enough for you. I don't know wha
On 11 Aug, 23:50, ru...@yahoo.com wrote:
>
> However, were the Python docs site to provide a wiki, along
> with a mechanism to migrate suggestions developed on the wiki
> into the docs, it might well be a viable (and easier because of
> the wysiwyg effect) way of improving the docs. As other have
On 23 Jul, 05:55, a...@pythoncraft.com (Aahz) wrote:
> In article
> <1c994086-8c58-488f-b3b3-6161c4b2b...@k30g2000yqf.googlegroups.com>,
> Paul Boddie wrote:
>
> >http://www.boddie.org.uk/python/XSLTools.html
>
> Thanks! I'll take a look after OSCON.
The Ja
On 20 Jul, 18:00, a...@pythoncraft.com (Aahz) wrote:
>
> Out of curiosity, are there any JavaScript toolkits that generate code
> that degrades gracefully when JavaScript is disabled?
You mean "Web toolkits which use JavaScript", I presume. I have
written (and use myself) a toolkit/framework calle
On 10 Jul, 04:54, Zac Burns wrote:
> Where do you get this beta? I heard that Psyco V2 is coming out but
> can't find anything on their site to support this.
I found the Subversion repository from the Psyco site:
http://psyco.sourceforge.net/
-> http://codespeak.net/svn/psyco/dist/
-> http://c
On 8 Jul, 16:04, kj wrote:
>
> =
>
> and not to those like, for example,
>
> [] =
>
> or
>
> . =
>
> The former are syntatic sugar for certain namespace modifications
> that leave objects unchanged. The latter are syntactic sugar for
> certain object-modifying method calls that leave na
On 24 Jun, 15:22, "Pegasus" wrote:
> I need help with an implementation of your
> interpreter under PSPE/PSP.
There doesn't seem to be much of an intersection between the PSP and
"mainstream" Python communities, so some more context may have been
desirable here.
[...]
> We believe that the trou
On 19 Jun, 21:41, Carl Banks wrote:
>
> (Note: I'm not talking about releasing the GIL for I/O operations,
> it's not the same thing. I'm talking about the ability to run
> computations on multiple cores at the same time, not to block in 50
> threads at the same time. Multiple cores aren't going
On 16 Jun, 14:48, Lucas P Melo wrote:
> Is there any tool for browsing python code? (I'm having a hard time
> trying to figure this out)
> Anything like cscope with vim would be great.
Are you limiting your inquiry to text editors or IDEs, or are Web-
based solutions also interesting? Often, conv
On 15 Jun, 14:58, willgun wrote:
>
> How to get the total size of a local hard disk?
> I mean total size,not free space.
Which platform are you using? On a Linux-based system you might look
at the contents of /proc/partitions and then, presumably with Python,
parse the contents to yield a number
On 8 Jun, 12:13, bearophileh...@lycos.com wrote:
>
> The C code produced by ShedSkin is a bit hairy but it's 50 times more
> readable than the C jungle produced by Pyrex, where I have lost lot of
> time looking for the missing reference counts, etc.
The C++ code produced by Shed Skin can actually
On 5 Jun, 11:51, Ben Finney wrote:
>
> Actually strings in Python 2.4 or later have the ‘encode’ method, with
> no need for importing extra modules:
>
> =
> $ python -c 'import sys; sys.stdout.write(u"\u03bb\n".encode("utf-8"))'
> λ
>
> $ python -c 'import sys; sys.stdout.write(u"\u03bb\n".enc
On 5 Jun, 03:18, Ron Garret wrote:
>
> According to what I thought I knew about unix (and I had fancied myself
> a bit of an expert until just now) this is impossible. Python is
> obviously picking up a different default encoding when its output is
> being piped to a file, but I always thought on
On 4 Jun, 11:29, Nick Craig-Wood wrote:
>
> For linux I'd run this and parse the results.
>
> # smartctl -i /dev/sda
Also useful is hdparm, particularly with the drive identification and
detailed information options shown respectively below:
# hdparm -i /dev/sda
# hdparm -I /dev/sda
Paul
--
ht
On 3 Jun, 10:58, "Martin v. Löwis" wrote:
> > In Linux, we can get window info by executing 'xwininfo' and then
> > selecting the desired window manually. Can this be done automatically
> > in python?
>
> You can run "xwininfo -tree -root", and then parse the output.
The desktop.windows module pr
On 2 Jun, 16:49, Tep wrote:
> On Jun 2, 3:58 pm, Paul Boddie wrote:
> > Really, you should use the commit method on the cursor object
>
> You mean connection object, do you?
Yes, I meant the connection object. :-)
> I've tried that, but forgotten to remove BEGIN;COMMI
On 2 Jun, 15:32, someone wrote:
> Hi,
> I'm using pyPgSQL for accessing Postgres and do some update and select
> queries.
> and getting WARNING: there is already a transaction in progress if I
> run runUpdate more than once.
I think this is because you're using explicit transaction statements
am
On 26 Mai, 13:46, Gabriel Rossetti
wrote:
>
> def getParams(curs):
> curs.execute("select * from param where id=%d", 1001)
First of all, you should use the database module's parameter style,
which is probably "%s" - something I've thought should be deprecated
for a long time due to the confus
On 26 Mai, 10:09, Pet wrote:
>
> After some time, I've tried, to convert result with unicode(result,
> 'ISO-8859-15') and that was it :)
I haven't really investigated having unicode_results set to false (or
the default) with a database containing UTF-8 (or any non-ASCII
encoded) text, since it's
On 25 Mai, 17:39, someone wrote:
> Hi,
>
> reading content of webpage (encoded in utf-8) with urllib2, I can't
> get parsed data into DB
>
> Exception:
>
> File "/usr/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 3111,
> in execute
> raise OperationalError, msg
> libpq.OperationalError
On 24 Mai, 16:13, Infinity77 wrote:
>
> No, the processing of the data is fast enough, as it is very simple.
> What I was asking is if anyone could share an example of using
> multiprocessing to read a file, along the lines I described above.
Take a look at this section in an article about multi-
1 - 100 of 1056 matches
Mail list logo