In article <7fk8v7pijp359t62clgj5g4n3d4acva...@4ax.com>,
Gilles wrote:
> On Wed, 04 Jul 2012 06:28:09 -0400, Roy Smith wrote:
> >You probably want to look at https://www.django-cms.org/. It's not
> >something that a person with "no computer knowledge" co
In article ,
Chris Angelico wrote:
> open("doc1.txt","r")
>
> Python will look for a file called doc1.txt in the directory you run
> the script from (which is often going to be the same directory as your
> .py program).
Well, to pick a nit, the file will be looked for in the current working
d
In article <3e0ef383-9615-4b4d-89c1-e55199711...@googlegroups.com>,
yeryomin.i...@gmail.com wrote:
> On Tuesday, 30 October 2007 21:24:04 UTC+2, Tim Chase wrote:
> > - more detailed questions about the std. libraries (such as
> >datetime/email/csv/zipfile/networking/optparse/unittest)
You
In article ,
Peter wrote:
> One of my favourite questions when interviewing - and it was 100% reliable
> :-) - "what are your hobbies?"
"My hobby happens to be gardening, for which I don't expect to be paid."
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
Christian Heimes wrote:
> Am 09.07.2012 23:22, schrieb Peter:
> > One of my favourite questions when interviewing - and it was 100% reliable
> > :-) - "what are your hobbies?"
> >
> > If the answer included programming then they were hired, if not, then they
> > went to the "B" l
In article ,
Tim Chase wrote:
> As mentioned in another branch of this thread, I don't require
> python historians, but do prefer folks that know which features to
> check availability for deployment.
Heh. Tell me, when did strings get methods? :-)
--
http://mail.python.org/mailman/listinfo/p
In article ,
Vojt®Ãch Pol®¢â°ek wrote:
> Then the menu module kicks in and should launch its
> own loop checking for pygame keyboard events, but right after doing it
> it prints:
> [xcb] Unknown sequence number while processing queue
> [xcb] Most likely this is a multi-threaded client and X
I've been using unittest for many years, but have steadfastly (perhaps
stubbornly) avoided newfangled improvements like nose. I finally
decided to take a serious look at nose. There were a few pain points I
had to work through to get our existing collection of tests to run under
nose. I figu
On Friday, July 6, 2012 9:58:10 AM UTC-4, Steven D'Aprano wrote:
> (Sadly, when I say "we" I mean
> collectively. Many language designers, and programmers, don't have the
> foggiest clue as to what makes a good clean design. Hence C++ and PHP.)
I'm not going to defend C++, but to be fair, a majo
In article ,
pyt...@bdurham.com wrote:
> Hi Roy,
>
> > I've been using unittest for many years, but have steadfastly
> (perhaps stubbornly) avoided newfangled improvements like nose.
> I finally decided to take a serious look at nose.
>
> Thanks for sharing your nose experience.
>
> What mo
In article ,
pyt...@bdurham.com wrote:
> After years of using unittest, what would you say are the pros and
> cons of nose?
BTW, although I'm currently using nose just as a unittest aggregator, I
can see some nice advantages to native nose functionality. The most
obvious is that tests can be
In article <-8sdnvrxgqie25jnnz2dnuvz7qkdn...@bt.com>,
Lipska the Kat wrote:
> I'm not used to using variables without declaring their type
If you truly wanted to recreate this type-bondage style of programming
in Python, it's easy enough to do.
Where you would write in C++:
// Type matching
In article <5006b2e2$0$29978$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Tue, 17 Jul 2012 09:52:59 -0400, Roy Smith wrote:
>
> > you could write in Python:
> >
> > # Type matching will get checked at run-time
> > def my_functi
In article <500804cc$0$29978$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Wed, 18 Jul 2012 23:09:13 -0700, rusi wrote:
>
> > Its not so much a question of language as in programming as language as
> > in layman-speak.
> > One characteristic with our field is that we take ord
In article ,
Peter Otten <__pete...@web.de> wrote:
> subprocess.Popen([
> "C:\\Program Files (x86)\\Java\\jdk1.7.0_05\\bin\\java.exe",
> "-cp",
> "C:\\antlr\\antlr-3.4-complete.jar",
> "org.antlr.Tool",
> "C:\\Users\\Jason\\Documents\\antlr\\java grammar\\Java.g"],
>stdout=subproces
In article <3rcdnuciwpp1gzhnnz2dnuvz7vqaa...@giganews.com>,
Tony the Tiger wrote:
> Hi,
> Is there such a thing in the language, or do I have to invent it myself?
>
> I came up with the following:
>
> # options.modus_list contains, e.g., "[2,3,4]"
> # (a string from the command line)
> # M
In article <500d0632$0$1504$c3e8da3$76491...@news.astraweb.com>,
Steven D'Aprano wrote:
> Technically, no, it's a SyntaxError, because the Original Poster has used
> some sort of "Smart Quotes" characters râÂÂâ instead of good old fashioned
> typewriter-style quotes r'' or r"".
>
> If
In article ,
Chris Angelico wrote:
> But personally, I've always used backslash. It's nothing to do with
> ASCII and everything to do with having it on the keyboard. Before you
> get a language that uses full Unicode, you'll need to have fairly
> generally available keyboards that have those key
Does nose run all of its collected tests in a single process?
I've got a test which monkey-patches an imported module. Will all of the other
tests collected in the same run of nosetests see the patch?
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
Roy Smith wrote:
> Lastly, nose, by default, doesn't say much. When things go wrong and
> you have no clue what's happening, --verbose and --debug are your
> friends.
I found another example of nose not saying much, and this one is kind of
annoying. Unitt
In article <81818a9c-60d3-48da-9345-0c0dfd5b2...@googlegroups.com>,
subhabangal...@gmail.com wrote:
> set1=set(list1)
>
> the code was running fine, but all on a sudden started to give the following
> error,
>
> set1=set(list1)
> TypeError: unhashable type: 'list'
First, make sure you underst
In article ,
Chris Angelico wrote:
> Python's an excellent glue language, but it's also fine for huge
> applications. Yes, it can't multithread across cores if you use
> CPython and are CPU-bound. That's actually a pretty specific
> limitation, and taking out any component of that eliminates the
In article ,
Grant Edwards wrote:
> The last ones I worked on that where the FP format wasn't IEEE were
> the DEC VAX
According to http://en.wikipedia.org/wiki/Vax#History, the last VAX was
produced 7 years ago. I'm sure there's still more than a few chugging
away in corporate data centers
In article ,
Grant Edwards wrote:
> I imagine that VAXes running Unix went extinct in the wild long before
> VAXes running VMS.
Of course they did. VMS is all about vendor lock-in. People who
continue to run VAXen don't do so because they're wedded to the
hardware. They do so because they'
In article <50177b4d$0$29867$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> Do they consider that perhaps there are alternatives to threads?
There's basically two reasons people use threads.
First is because it's a convenient way to multiplex short-lived tasks on
a single proce
In article ,
Laszlo Nagy wrote:
> Yes, I think that is correct. Instead of detaching a child process, you
> can create independent processes and use other frameworks for IPC. For
> example, Pyro. It is not as effective as multiprocessing.Queue, but in
> return, you will have the option to ru
ribed to the Google Groups
> "python-excel" group.
> To post to this group, send an email to python-ex...@googlegroups.com.
> To unsubscribe from this group, send email to python-excel+unsubscribe@**
> googlegroups.com .
> For more options, visit this group at http://groups.go
gs and looks
> more powerful, what do you think?
I'm afraid I have no experience with zeromq, so I can't offer an opinion.
--
Roy Smith
r...@panix.com
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
shearich...@gmail.com wrote:
> I should say I'm talking relational database here and, for various reasons,
> ORMs are not involved.
Just out of curiosity, why do you eschew ORMs?
On the other hand, you really haven't. All you've done is rolled your
own. So, the real question is
In article ,
shearich...@gmail.com wrote:
> > Just out of curiosity, why do you eschew ORMs?
> >
> Good question !
>
> I'm not anti-ORM (in fact in many circs I'm quite pro-ORM) but for some time
> I've been working with a client who doesn't want ORMs used (they do have
> quite good reasons f
In article
<8f1b60a5-0411-4aae-9ee6-0025b493c...@m13g2000vbd.googlegroups.com>,
Jean Dubois wrote:
> Can someone here on this list give a trivial example of what object
> oriented programming is, using only Python?
OOP seems to mean different things to different people. What OOP means
to you
In article <506eb405-eb07-4175-9efb-40475caba...@googlegroups.com>,
John Mordecai Dildy wrote:
> Current Problem at the moment
>
> Traceback (most recent call last):
> File "ex26.py", line 66, in
> beans, jars, crates = secret_formula(start-point)
> NameError: name 'start' is not defined
In article ,
Tim Chase wrote:
> On 08/05/12 15:52, John Mordecai Dildy wrote:
> > Current Problem at the moment
> >
> > Traceback (most recent call last):
> > File "ex26.py", line 66, in
> > beans, jars, crates = secret_formula(start-point)
> > NameError: name 'start' is not defined
> >
On 05/08/2012 20:46, lipska the kat wrote:
> Design Patterns by Gamma, Helm, Johnson and Vlissides
In article ,
Mark Lawrence wrote:
> Please no, that's the worst possible book for someone trying to learn
> OOD in Python.
+1 what Mark said. It's certainly the classic patterns book, but most
In article <501ef904$0$29867$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Sun, 05 Aug 2012 18:45:47 -0400, Dennis Lee Bieber wrote:
>
> > Don't look for Object-Oriented Programming -- since the first widely
> > popular OOP language was C++ (Smalltalk was earlier, but rather
In article ,
Tim Chase wrote:
> On 08/05/12 17:00, John Mordecai Dildy wrote:
> > since when did we start talking about lisp?
>
> Though not a lisper, the Python tie-in was my reply: Python (among
> many other languages) doesn't allow a "-" as a character in
> identifiers as you appeared to us
In article ,
lipska the kat wrote:
> UML works, non technical 'stakeholders' (yuk) can understand it at a
> high level and in my HUMBLE opinion the sequence diagram is the single
> most important piece of documentation in the entire software project
Yup. Sequence diagrams are the most common
I've been tracking down some weird import problems we've been having with
django. Our settings.py file is getting imported twice. It has some
non-idempotent code in it, and we blow up on the second import.
I thought modules could not get imported twice. The first time they get
imported, they
On Tuesday, August 7, 2012 9:52:59 AM UTC-4, Steven D'Aprano wrote:
> In general, you should avoid non-idempotent code. You should
> doubly avoid it during imports, and triply avoid it on days ending with Y.
I don't understand your aversion to non-idempotent code as a general rule.
Most code i
On Tuesday, August 7, 2012 9:55:16 AM UTC-4, Ben Finney wrote:
> The tutorial is misleading on this. It it says plainly:
>
> A module can contain executable statements as well as function
> definitions. […] They are executed only the *first* time the module
> is imported somewhere.
>
In article ,
Cameron Simpson wrote:
> This, I think, is a core issue in this misunderstanding. (I got bitten
> by this too, maybe a year ago. My error, and I'm glad to have improved
> my understanding.)
>
> All of you are saying "two names for the same module", and variations
> thereof. And tha
In article <87hasehvfu@benfinney.id.au>,
Ben Finney wrote:
> Cameron Simpson writes:
>
> > All of you are saying "two names for the same module", and variations
> > thereof. And that is why the doco confuses.
> >
> > I would expect less confusion if the above example were described as
> >
In article ,
Andrew Cooper wrote:
> As for poor implementations,
>
> class Foo(object):
> def __hash__(self):
> return 0
>
> I seriously found that in some older code I had the misfortune of
> reading.
Python assumes you are a consenting adult. If you wish to engage in
activitie
In article ,
Chris Angelico wrote:
> On Fri, Aug 10, 2012 at 9:05 AM, Roy Smith wrote:
> > Python assumes you are a consenting adult. If you wish to engage in
> > activities which are hazardous to your health, so be it.
>
> ... you mean, Python lets you make a hash o
In article ,
Mark Lawrence wrote:
> On 10/08/2012 09:54, Steven D'Aprano wrote:
> > On Thu, 09 Aug 2012 19:16:58 -0500, Tim Chase wrote:
> >
> >> On 08/09/12 18:33, Mark Lawrence wrote:
> >>> On 10/08/2012 00:24, Roy Smith wrote:
> >>&
In article <502791ea$0$29978$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> for x in (0,) if len(L)%2 else (0, 1):
> ...
>
> which is even more explicit and simpler to read even though it is longer.
Ugh.
do_stuff()
if len(L) % 2 == 0:
do_stuff() # reprocess even-length
In article ,
Mark Lawrence wrote:
> On 12/08/2012 17:59, Paul Rubin wrote:
> >> which can be simplified to:
> >> for x in range(len(L)//2 + len(L)%2):
> >
> > for x in range(sum(divmod(len(L), 2))): ...
> >
>
> So who's going to be first in with "and thou shalt not count to 4..."?
You, apparen
In article
<385e732e-1c02-4dd0-ab12-b92890bbe...@o3g2000yqp.googlegroups.com>,
Frank Koshti wrote:
> I'm new to regular expressions. I want to be able to match for tokens
> with all their properties in the following examples. I would
> appreciate some direction on how to proceed.
>
>
> @foo1
In article , kj
wrote:
> As far as I've been able to determine, Python does not remember
> (immutably, that is) the working directory at the program's start-up,
> or, if it does, it does not officially expose this information.
Why would you expect that it would? What would it (or you) do with
In article ,
Chris Angelico wrote:
> Really, the only viable alternative to PEP 393 is a fixed 32-bit
> representation - it's the only way that's guaranteed to provide
> equivalent semantics. The new storage format is guaranteed to take no
> more memory than that, and provide equivalent function
In article <5031bb2f$0$29972$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> > So it may be with utf-8 someday.
>
> Only if you believe that people's ability to generate data will remain
> lower than people's ability to install more storage.
We're not talking *data*, we're talki
In article ,
Michael Torrie wrote:
> Python generally tries to follow unicode
> encoding rules to the letter. Thus if a piece of text cannot be
> represented in the character set of the terminal, then Python will
> properly err out. Other languages you have tried, likely fudge it
> somehow.
In article ,
Walter Hurry wrote:
> It is difficult to think of a sensible use for os.chdir, IMHO.
It is true that you can mostly avoid chdir() by building absolute
pathnames, but it's often more convenient to just cd somewhere and use
names relative to that. Fabric (a very cool tool for writ
In article ,
Michael Torrie wrote:
> > And if you want the "fudge it somehow" behavior (which is often very
> > useful!), there's always http://pypi.python.org/pypi/Unidecode/
>
> Sweet tip, thanks! I often want to process text that has smart quotes,
> emdashes, etc, and convert them to plain
In article ,
Chris Angelico wrote:
> On Tue, Aug 21, 2012 at 10:20 AM, alex23 wrote:
> > On Tue, Aug 21, 2012 at 12:01 AM, Levi Nie wrote:
> >> Does Polymorphism mean python can create object?
> >
> > No. This isn't D&D. Polymorphism has a distinct meaning in computer
> > science, one which yo
In article
<5203ee16-5a80-4cd9-9434-ee2efb645...@kg10g2000pbc.googlegroups.com>,
Anonymous Group wrote:
> What books do you recomend for learning python? Preferably free and/or
> online.
I would start with http://docs.python.org/tutorial/
--
http://mail.python.org/mailman/listinfo/python-list
In article <6b0299df-bc24-406b-8d69-489e990d8...@googlegroups.com>,
Tigerstyle wrote:
> Hi.
>
> I need help with an assignment and I hope you guys can guide me in the right
> direction.
> [code elided]
> 1. The test_1() method includes code to verify that the test directory
> contains only th
ur deployment to using virtualenv (with
--no-site-packages), but we're not fully there yet. And even when we get
there, there will still be opportunities to make these sorts of mistakes.
---
Roy Smith
r...@panix.com
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday, August 23, 2012 1:29:19 PM UTC-4, Terry Reedy wrote:
> One can start with a set rather than tuple of file names.
> filenames = {"this.txt", "that.txt", "the_other.txt"}
Yeah, that's even cleaner. Just be aware, the set notation above is only
available in (IIRC), 2.7 or abo
In article ,
Evan Driscoll wrote:
> > In fact, Python doesn't have variables not as C or Java programmers
> > would understand the term. What it has instead are references to objects
> > (with names as one kind of reference).
>
> OK, I've seen this said a few times, and I have to ask: what do
On Sunday, July 29, 2012 12:01:00 PM UTC-4, lipska the kat wrote:
> How is python used in the real world.
songza.com is pretty close to 100% python. The only significant non-python
code on the server side are mongodb, haproxy, and nginx.
> What sized projects are people involved with
We've got
In article ,
Chris Angelico wrote:
> On Sun, Aug 26, 2012 at 3:45 PM, Evan Driscoll wrote:
> > Third, and more wackily, you could technically create a C implementation
> > that works like Python, where it stores variables (whose addresses aren't
> > taken) in a dict keyed by name, and generates
In article <503a2804$0$6574$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
>>> The mapping of name:address is part of the *compilation* process --
>>> the compiler knows that variable 'x' corresponds to location
>>> 12345678
Just to pick a nit, the compiler probably doesn't know
In article <503f0e45$0$9416$c3e8da3$76491...@news.astraweb.com>,
Steven D'Aprano wrote:
> The only thing which is innovative here is that instead of the Python
> compiler declaring that "all strings will be stored in UCS-2", the
> compiler chooses an implementation for each string as needed. S
In article ,
MRAB wrote:
> What don't you ask Python? I'm sure you'' get something like this:
>
> >>> type(s)
>
BTW, this points out one of the really powerful aspects of Python. The
combination of introspection and a handy interactive interpreter makes
it easy to "just ask the computer".
In article <503f8e33$0$30001$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Thu, 30 Aug 2012 07:02:24 -0400, Roy Smith wrote:
> > Is the implementation smart enough to know that x == y is always False
> > if x and y are using differen
In article ,
Mark Lawrence wrote:
> On 02/09/2012 13:00, Serhiy Storchaka wrote:
> > On 02.09.12 12:52, Peter Otten wrote:
> >> Ian Kelly wrote:
> >>
> >>> Rewriting the example to use locale.strcoll instead:
> >>
> >> sorted(li, key=functools.cmp_to_key(locale.strcoll))
> >>
> >> There is a
In article <50440de2$0$29967$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> > Indexing is O(0) for any string.
>
> I think you mean O(1) for constant-time lookups.
Why settle for constant-time, when you can have zero-time instead :-)
--
http://mail.python.org/mailman/listinfo/p
There's been a bunch of threads lately about string implementations, and
that got me thinking (which is often a dangerous thing).
Let's assume you're testing two strings for equality. You've already
done the obvious quick tests (i.e they're the same length), and you're
down to the O(n) part of
In article <-9cdnaqjtk6nktvnnz2dnuvz_gedn...@westnet.com.au>,
Neil Hodgson wrote:
> The memcpy patch was controversial as it broke Adobe Flash
An added benefit!
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
charvigro...@gmail.com wrote:
> Hi Guys,
>
> Finally I have decided to put best interview question and answers.
>
> Please visit http://www.f2finterview.com/web/CorePython/ for core python and
> http://www.f2finterview.com/web/PythonAdvanced/ for advanced python
I was going to co
In article ,
Ian Kelly wrote:
> It's a bit sad that these are touted as answers to interview
> questions. I wouldn't hire anybody who gave answers like these.
Over time, I've become convinced that most interview questions are crap.
The best programming interview questions always start with,
In article ,
Ian Kelly wrote:
> My mistake. I didn't even know there was a two-arg form of LIMIT.
> Must be a MySQL thing. :-)
What are you talking about? SQL is an ISO Standard. Therefore, all
implementations work the same way. Didn't you get the memo?
--
http://mail.python.org/mailman/l
In article <50485fca$0$29977$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> In any case, the *worst* case for string equality
> testing is certainly O(N) (every character must be looked at), and the
> *best* case is O(1) obviously (the first character fails to match).
The best
In article <50484643$0$29977$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> On Wed, 05 Sep 2012 14:27:44 -0400, Terry Reedy wrote:
>
> > On 9/5/2012 8:48 AM, Ramchandra Apte wrote:
> >
> > > and "a==True" should be automatically changed into memory comparison.
> >
> > I have n
In article , John Nagle
wrote:
> In Python 2.7:
>
>I want to parse standard ISO date/time strings such as
>
> 2012-09-09T18:00:00-07:00
>
> into Python "datetime" objects. The "datetime" object offers
> an output method , datetimeobj.isoformat(), but not an input
> parser. There o
In article ,
Dave Angel wrote:
> For working with datetime, see
> http://docs.python.org/library/datetime.html#datetime.datetime
>
> and look up datetime.strptime()
strptime has two problems.
One is that it's a pain to use (you have to look up all those
inscrutable %-thingies every time
In article <9s4nh9-8dr@chris.zbmc.eu>, tinn...@isbd.co.uk wrote:
> I want to print a series of list elements some of which may not exist,
> e.g. I have a line:-
>
> print day, fld[1], balance, fld[2]
>
> fld[2] doesn't always exist (fld is the result of a split) so the
> print fails whe
In article ,
Token Type wrote:
> I wrote the following function to solve it. However, it pops up
> "AttributeError: 'list' object has no attribute 'lower'". Quite confused, I
> supposed [synset.lemma_names for synset in synset_list] has made all the
> lemma into a list, hasn't it?
I'm not fa
In article , John Nagle
wrote:
> This really should be handled in the standard library, instead of
> everybody rolling their own, badly.
+1
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
Thomas Jollans wrote:
> The ISO date/time format is dead simple and well-defined.
Well defined, perhaps. But nobody who has read the standard could call
it "dead simple". ISO-8601-2004(E) is 40 pages long.
Of course, that fact that it's complicated enough to generate 40 pages
In article <43a68990-d6cf-4362-8c47-b13ce780b...@googlegroups.com>,
Token Type wrote:
> Thanks very much for all of your tips. Take noun as an example. First, I need
> find all the lemma_names in all the synsets whose pos is 'n'. Second, for
> each lemma_name, I will check all their sense numb
In article ,
Token Type wrote:
> > structures are simple, just plain print will work, but for more
> >
> > complicated structures, pprint.pprint() is a life saver.
> >
>
> I did try . However,
>
> >>> pprint.pprint(lemma_list)
>
> Traceback (most recent call last):
> File "", line 1, in
In article ,
Chris Angelico wrote:
> On Tue, Sep 11, 2012 at 7:46 AM, Rhodri James
> wrote:
> > On Sun, 09 Sep 2012 13:14:30 +0100, Roy Smith wrote:
> >
> >> In article ,
> >> Thomas Jollans wrote:
> >>
> >>> The ISO date/time
The atexit docs (http://docs.python.org/library/atexit.html) are very
confusing. In one place they say, "The order in which the functions are
called is not defined". In another place, "all functions registered are
called in last in, first out order". Which is correct?
Also, it's not clear ho
In article ,
Terry Reedy wrote:
> On 9/12/2012 8:58 PM, Roy Smith wrote:
> > The atexit docs (http://docs.python.org/library/atexit.html) are very
> > confusing. In one place they say, "The order in which the functions are
> > called is not defined". I
In article ,
> i see you try to extract only the 1st element of the list, i tried that too
> but it gives me now this weird message:
>
> if you visit my website http://superhost.gr
Do you realize that the hosting service you're using (HostGator) is so
mis-configured that it is exposing your so
In article ,
Íéêüëáïò Êïýñáò wrote:
> I cant beleive that my source code can be seen form ANYONE this easily
Which is why I pointed it out. I mean no disrespect, but you appear to
be in over your head. That's fine (we're all in over our heads at some
point, that's how we learn new thing
In article <4f9d9a0b-539a-4b6a-af3e-b02d1f400...@googlegroups.com>,
Íéêüëáïò Êïýñáò wrote:
> Iam sorry i didnt do that on purpose and i dont know how this is done.
>
> Iam positng via google groups using chrome, thats all i know.
>
> Whats a mailing list?
Is it September already?
--
http://
In article
<6c732de0-b10f-4d40-853c-f62682970...@rg9g2000pbc.googlegroups.com>,
alex23 wrote:
> On Sep 16, 11:18 pm, Ben Finney wrote:
> > Using Google Groups for posting to Usenet has been a bad idea for a long
> > time, but now it just seems to be a sure recipe for annoying the rest of
> > u
Hello, I'm essentially a newbie in Python.
My problem in searching the archives is not knowing what words to use to
ask.
I'm converting windows bat files little by little to Python 3 as I find
time and learn Python.
The most efficient method for some lines is to call Python like:
python -c "i
In article ,
Ian Kelly wrote:
> On Mon, Sep 17, 2012 at 7:08 PM, David Smith wrote:
> > How do I "indent" if I have something like:
> > if (sR=='Cope'): sys.exit(1) elif (sR=='Perform') sys.exit(2) else
> > sys.exit(3)
>
> How
Thank you all. Roy Smith gets the most thanks, though he didn't answer
my general question -- he showed me how to look at that specific
structure differently. Terry Reedy might get thanks for her idea if I
can ever figure the correct escape sequences that will make both windows
and the P
On 2012-09-19 05:22, Thomas Rachel wrote:
Am 18.09.2012 15:03 schrieb David Smith:
I COULD break down each batch file and write dozens of mini python
scripts to be called. I already have a few, too. Efficiency? Speed is
bad, but these are bat files, after all. The cost of trying to work with
a
On 2012-09-19 14:18, Terry Reedy wrote:
stating correctly that it works for exec().
My mistake. I fancied you were talking shell, not python. I now see that
Python 3 has exec() as a built-in.
python -c "exec('print(\"hi\")\nif 0:\n print(\"hi\")\nelif 1:\n
print(\"hi2\")')"
worked right of
On 2012-09-21 08:57, BobAalsma wrote:
This text can be behind a username/password, but for several reasons, I don't
want to know those.
So I would like to set up a situation where the user logs in (if/when
appropriate), points out the URL to my programme and my programme would then be
able to
In article ,
Andriy Kornatskyy wrote:
> I have run recently a benchmark of a trivial 'hello world' application for
> various python web frameworks (bottle, django, flask, pyramid, web.py,
> wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might find
> it interesting:
>
> ht
In article ,
Kevin Walzer wrote:
> the comments of those who say "the only
> language I need to know is Python" strike me as a bit limited.
I have been convinced that "X is the only language I need to know", for
many different values of X over the years.
--
http://mail.python.org/mailman/lis
In article ,
Hannu Krosing wrote:
> You can get only so far using "sales". At some point you have to deliver.
But, by that time, the guy who closed the sale has already cashed his
bonus check, bought his new BMW, and moved on to another company.
And around that time, some poor schmuck of a de
In article <2e8a9e88-9e7e-43f7-a070-ea9054e62...@googlegroups.com>,
Jayden wrote:
> In learning Python, I found there are two types of classes? Which one are
> widely used in new Python code? Is the new-style much better than old-style?
> Thanks!!
If you're just learning Python 2.x, you might
201 - 300 of 3427 matches
Mail list logo