> Literally any idea will help, pen and paper, printing off all the code
and doing some sort of highlighting session - anything!
> I keep reading bits of code and thinking "well where the hell has that
been defined and what does it mean" to find it was inherited from 3
modules up the chain.
>
> Roy Smith
> As part of our initial interview screen, we give applicants some small
> coding problems to do. One of the things we see a lot is what you could
> call "Java code smell". This is our clue that the person is really a
> Java hacker at heart who just dabbles in Python but isn't
Νίκος Γκρ33κ :
>> What paramstyle are you using?
>
>Yes it is Chris, but i'am not sure what exactly are you asking me.
>Please if you cna pout it even simper for me, thank you.
For instance:
>>> import MySQLdb
>>> MySQLdb.paramstyle
'format'
FWIW and HTH,
DC
--
http://mail.python.org/mailman
Lovely, thanks for the ideas! I remember considering having release()
pick the next thread to notify, where all the waiters were sitting on
separate Conditions or whatever; not sure why I didn't pursue it to the
end. Probably distracted by something shiny; or insufficient brainpower.
:) D
Okay, next silly question. :)
We have a very simple multi-threaded system where a request comes in,
starts running in a thread, and then (zero, one, or two times per request)
gets to a serialization point, where the code does:
with lock:
do_critical_section_stuff_that_might_take_awhile()
> w...@mac.com
> Something like:
> Does a log file exist? -> No -> First run; create log file & continue
> |
> Yes
> |
> Read backwards looking for date change, copy lines after change
> to new file, delete from old file.
Yep, I'm concluding that also.
It just wasn
> d...@davea.name
>
> On 10/23/2012 11:23 AM, David M Chess wrote:
> > We have a TimedRotatingFileHandler with when='midnight'
>
> You give us no clue what's in this class, or how it comes up with the
> filenames used.
Sorry if I was
> jorge
> I'm programming a server that most send a message to each client
> connected to it and nothing else. this is obviously a base of what i
> want to do. the thing is, I made a class wich contains the Handler class
> for the ThreadingTCPServer and starts the server but i don't know how
We have a TimedRotatingFileHandler with when='midnight'.
This works great, splitting the log information across files by date, as
long as the process is actually up at midnight.
But now the users have noticed that if the process isn't up at midnight,
they can end up with lines from two (or I g
> If you (the programmer) want a function that asks the user to enter a
> literal at the input prompt, you'll have to write a post-processing for
> it, which looks for prefixes, for quotes, for backslashes, etc., and
> encodes the result. There very well may be such a decoder in the Python
> libra
or advice greatly appreciated.
DC
David M. Chess
IBM Watson Research Center
--
http://mail.python.org/mailman/listinfo/python-list
11 matches
Mail list logo